...

Source file src/google.golang.org/api/apigee/v1/apigee-gen.go

Documentation: google.golang.org/api/apigee/v1

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package apigee provides access to the Apigee API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/apigee-api-management/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/apigee/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	apigeeService, err := apigee.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	apigeeService, err := apigee.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	apigeeService, err := apigee.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package apigee // import "google.golang.org/api/apigee/v1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "apigee:v1"
    90  const apiName = "apigee"
    91  const apiVersion = "v1"
    92  const basePath = "https://apigee.googleapis.com/"
    93  const basePathTemplate = "https://apigee.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://apigee.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Hybrid = NewHybridService(s)
   139  	s.Organizations = NewOrganizationsService(s)
   140  	s.Projects = NewProjectsService(s)
   141  	return s, nil
   142  }
   143  
   144  type Service struct {
   145  	client    *http.Client
   146  	BasePath  string // API endpoint base URL
   147  	UserAgent string // optional additional User-Agent fragment
   148  
   149  	Hybrid *HybridService
   150  
   151  	Organizations *OrganizationsService
   152  
   153  	Projects *ProjectsService
   154  }
   155  
   156  func (s *Service) userAgent() string {
   157  	if s.UserAgent == "" {
   158  		return googleapi.UserAgent
   159  	}
   160  	return googleapi.UserAgent + " " + s.UserAgent
   161  }
   162  
   163  func NewHybridService(s *Service) *HybridService {
   164  	rs := &HybridService{s: s}
   165  	rs.Issuers = NewHybridIssuersService(s)
   166  	return rs
   167  }
   168  
   169  type HybridService struct {
   170  	s *Service
   171  
   172  	Issuers *HybridIssuersService
   173  }
   174  
   175  func NewHybridIssuersService(s *Service) *HybridIssuersService {
   176  	rs := &HybridIssuersService{s: s}
   177  	return rs
   178  }
   179  
   180  type HybridIssuersService struct {
   181  	s *Service
   182  }
   183  
   184  func NewOrganizationsService(s *Service) *OrganizationsService {
   185  	rs := &OrganizationsService{s: s}
   186  	rs.Analytics = NewOrganizationsAnalyticsService(s)
   187  	rs.Apiproducts = NewOrganizationsApiproductsService(s)
   188  	rs.Apis = NewOrganizationsApisService(s)
   189  	rs.Appgroups = NewOrganizationsAppgroupsService(s)
   190  	rs.Apps = NewOrganizationsAppsService(s)
   191  	rs.Datacollectors = NewOrganizationsDatacollectorsService(s)
   192  	rs.Deployments = NewOrganizationsDeploymentsService(s)
   193  	rs.Developers = NewOrganizationsDevelopersService(s)
   194  	rs.EndpointAttachments = NewOrganizationsEndpointAttachmentsService(s)
   195  	rs.Envgroups = NewOrganizationsEnvgroupsService(s)
   196  	rs.Environments = NewOrganizationsEnvironmentsService(s)
   197  	rs.HostQueries = NewOrganizationsHostQueriesService(s)
   198  	rs.HostSecurityReports = NewOrganizationsHostSecurityReportsService(s)
   199  	rs.HostStats = NewOrganizationsHostStatsService(s)
   200  	rs.Instances = NewOrganizationsInstancesService(s)
   201  	rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
   202  	rs.Operations = NewOrganizationsOperationsService(s)
   203  	rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s)
   204  	rs.Reports = NewOrganizationsReportsService(s)
   205  	rs.SecurityAssessmentResults = NewOrganizationsSecurityAssessmentResultsService(s)
   206  	rs.SecurityProfiles = NewOrganizationsSecurityProfilesService(s)
   207  	rs.Sharedflows = NewOrganizationsSharedflowsService(s)
   208  	rs.Sites = NewOrganizationsSitesService(s)
   209  	return rs
   210  }
   211  
   212  type OrganizationsService struct {
   213  	s *Service
   214  
   215  	Analytics *OrganizationsAnalyticsService
   216  
   217  	Apiproducts *OrganizationsApiproductsService
   218  
   219  	Apis *OrganizationsApisService
   220  
   221  	Appgroups *OrganizationsAppgroupsService
   222  
   223  	Apps *OrganizationsAppsService
   224  
   225  	Datacollectors *OrganizationsDatacollectorsService
   226  
   227  	Deployments *OrganizationsDeploymentsService
   228  
   229  	Developers *OrganizationsDevelopersService
   230  
   231  	EndpointAttachments *OrganizationsEndpointAttachmentsService
   232  
   233  	Envgroups *OrganizationsEnvgroupsService
   234  
   235  	Environments *OrganizationsEnvironmentsService
   236  
   237  	HostQueries *OrganizationsHostQueriesService
   238  
   239  	HostSecurityReports *OrganizationsHostSecurityReportsService
   240  
   241  	HostStats *OrganizationsHostStatsService
   242  
   243  	Instances *OrganizationsInstancesService
   244  
   245  	Keyvaluemaps *OrganizationsKeyvaluemapsService
   246  
   247  	Operations *OrganizationsOperationsService
   248  
   249  	OptimizedHostStats *OrganizationsOptimizedHostStatsService
   250  
   251  	Reports *OrganizationsReportsService
   252  
   253  	SecurityAssessmentResults *OrganizationsSecurityAssessmentResultsService
   254  
   255  	SecurityProfiles *OrganizationsSecurityProfilesService
   256  
   257  	Sharedflows *OrganizationsSharedflowsService
   258  
   259  	Sites *OrganizationsSitesService
   260  }
   261  
   262  func NewOrganizationsAnalyticsService(s *Service) *OrganizationsAnalyticsService {
   263  	rs := &OrganizationsAnalyticsService{s: s}
   264  	rs.Datastores = NewOrganizationsAnalyticsDatastoresService(s)
   265  	return rs
   266  }
   267  
   268  type OrganizationsAnalyticsService struct {
   269  	s *Service
   270  
   271  	Datastores *OrganizationsAnalyticsDatastoresService
   272  }
   273  
   274  func NewOrganizationsAnalyticsDatastoresService(s *Service) *OrganizationsAnalyticsDatastoresService {
   275  	rs := &OrganizationsAnalyticsDatastoresService{s: s}
   276  	return rs
   277  }
   278  
   279  type OrganizationsAnalyticsDatastoresService struct {
   280  	s *Service
   281  }
   282  
   283  func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
   284  	rs := &OrganizationsApiproductsService{s: s}
   285  	rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
   286  	rs.Rateplans = NewOrganizationsApiproductsRateplansService(s)
   287  	return rs
   288  }
   289  
   290  type OrganizationsApiproductsService struct {
   291  	s *Service
   292  
   293  	Attributes_ *OrganizationsApiproductsAttributesService
   294  
   295  	Rateplans *OrganizationsApiproductsRateplansService
   296  }
   297  
   298  func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
   299  	rs := &OrganizationsApiproductsAttributesService{s: s}
   300  	return rs
   301  }
   302  
   303  type OrganizationsApiproductsAttributesService struct {
   304  	s *Service
   305  }
   306  
   307  func NewOrganizationsApiproductsRateplansService(s *Service) *OrganizationsApiproductsRateplansService {
   308  	rs := &OrganizationsApiproductsRateplansService{s: s}
   309  	return rs
   310  }
   311  
   312  type OrganizationsApiproductsRateplansService struct {
   313  	s *Service
   314  }
   315  
   316  func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
   317  	rs := &OrganizationsApisService{s: s}
   318  	rs.Deployments = NewOrganizationsApisDeploymentsService(s)
   319  	rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
   320  	rs.Revisions = NewOrganizationsApisRevisionsService(s)
   321  	return rs
   322  }
   323  
   324  type OrganizationsApisService struct {
   325  	s *Service
   326  
   327  	Deployments *OrganizationsApisDeploymentsService
   328  
   329  	Keyvaluemaps *OrganizationsApisKeyvaluemapsService
   330  
   331  	Revisions *OrganizationsApisRevisionsService
   332  }
   333  
   334  func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
   335  	rs := &OrganizationsApisDeploymentsService{s: s}
   336  	return rs
   337  }
   338  
   339  type OrganizationsApisDeploymentsService struct {
   340  	s *Service
   341  }
   342  
   343  func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
   344  	rs := &OrganizationsApisKeyvaluemapsService{s: s}
   345  	rs.Entries = NewOrganizationsApisKeyvaluemapsEntriesService(s)
   346  	return rs
   347  }
   348  
   349  type OrganizationsApisKeyvaluemapsService struct {
   350  	s *Service
   351  
   352  	Entries *OrganizationsApisKeyvaluemapsEntriesService
   353  }
   354  
   355  func NewOrganizationsApisKeyvaluemapsEntriesService(s *Service) *OrganizationsApisKeyvaluemapsEntriesService {
   356  	rs := &OrganizationsApisKeyvaluemapsEntriesService{s: s}
   357  	return rs
   358  }
   359  
   360  type OrganizationsApisKeyvaluemapsEntriesService struct {
   361  	s *Service
   362  }
   363  
   364  func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
   365  	rs := &OrganizationsApisRevisionsService{s: s}
   366  	rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
   367  	return rs
   368  }
   369  
   370  type OrganizationsApisRevisionsService struct {
   371  	s *Service
   372  
   373  	Deployments *OrganizationsApisRevisionsDeploymentsService
   374  }
   375  
   376  func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
   377  	rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
   378  	return rs
   379  }
   380  
   381  type OrganizationsApisRevisionsDeploymentsService struct {
   382  	s *Service
   383  }
   384  
   385  func NewOrganizationsAppgroupsService(s *Service) *OrganizationsAppgroupsService {
   386  	rs := &OrganizationsAppgroupsService{s: s}
   387  	rs.Apps = NewOrganizationsAppgroupsAppsService(s)
   388  	return rs
   389  }
   390  
   391  type OrganizationsAppgroupsService struct {
   392  	s *Service
   393  
   394  	Apps *OrganizationsAppgroupsAppsService
   395  }
   396  
   397  func NewOrganizationsAppgroupsAppsService(s *Service) *OrganizationsAppgroupsAppsService {
   398  	rs := &OrganizationsAppgroupsAppsService{s: s}
   399  	rs.Keys = NewOrganizationsAppgroupsAppsKeysService(s)
   400  	return rs
   401  }
   402  
   403  type OrganizationsAppgroupsAppsService struct {
   404  	s *Service
   405  
   406  	Keys *OrganizationsAppgroupsAppsKeysService
   407  }
   408  
   409  func NewOrganizationsAppgroupsAppsKeysService(s *Service) *OrganizationsAppgroupsAppsKeysService {
   410  	rs := &OrganizationsAppgroupsAppsKeysService{s: s}
   411  	rs.Apiproducts = NewOrganizationsAppgroupsAppsKeysApiproductsService(s)
   412  	return rs
   413  }
   414  
   415  type OrganizationsAppgroupsAppsKeysService struct {
   416  	s *Service
   417  
   418  	Apiproducts *OrganizationsAppgroupsAppsKeysApiproductsService
   419  }
   420  
   421  func NewOrganizationsAppgroupsAppsKeysApiproductsService(s *Service) *OrganizationsAppgroupsAppsKeysApiproductsService {
   422  	rs := &OrganizationsAppgroupsAppsKeysApiproductsService{s: s}
   423  	return rs
   424  }
   425  
   426  type OrganizationsAppgroupsAppsKeysApiproductsService struct {
   427  	s *Service
   428  }
   429  
   430  func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
   431  	rs := &OrganizationsAppsService{s: s}
   432  	return rs
   433  }
   434  
   435  type OrganizationsAppsService struct {
   436  	s *Service
   437  }
   438  
   439  func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService {
   440  	rs := &OrganizationsDatacollectorsService{s: s}
   441  	return rs
   442  }
   443  
   444  type OrganizationsDatacollectorsService struct {
   445  	s *Service
   446  }
   447  
   448  func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
   449  	rs := &OrganizationsDeploymentsService{s: s}
   450  	return rs
   451  }
   452  
   453  type OrganizationsDeploymentsService struct {
   454  	s *Service
   455  }
   456  
   457  func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
   458  	rs := &OrganizationsDevelopersService{s: s}
   459  	rs.Apps = NewOrganizationsDevelopersAppsService(s)
   460  	rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
   461  	rs.Balance = NewOrganizationsDevelopersBalanceService(s)
   462  	rs.Subscriptions = NewOrganizationsDevelopersSubscriptionsService(s)
   463  	return rs
   464  }
   465  
   466  type OrganizationsDevelopersService struct {
   467  	s *Service
   468  
   469  	Apps *OrganizationsDevelopersAppsService
   470  
   471  	Attributes_ *OrganizationsDevelopersAttributesService
   472  
   473  	Balance *OrganizationsDevelopersBalanceService
   474  
   475  	Subscriptions *OrganizationsDevelopersSubscriptionsService
   476  }
   477  
   478  func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
   479  	rs := &OrganizationsDevelopersAppsService{s: s}
   480  	rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
   481  	rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
   482  	return rs
   483  }
   484  
   485  type OrganizationsDevelopersAppsService struct {
   486  	s *Service
   487  
   488  	Attributes_ *OrganizationsDevelopersAppsAttributesService
   489  
   490  	Keys *OrganizationsDevelopersAppsKeysService
   491  }
   492  
   493  func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
   494  	rs := &OrganizationsDevelopersAppsAttributesService{s: s}
   495  	return rs
   496  }
   497  
   498  type OrganizationsDevelopersAppsAttributesService struct {
   499  	s *Service
   500  }
   501  
   502  func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
   503  	rs := &OrganizationsDevelopersAppsKeysService{s: s}
   504  	rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
   505  	rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
   506  	return rs
   507  }
   508  
   509  type OrganizationsDevelopersAppsKeysService struct {
   510  	s *Service
   511  
   512  	Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
   513  
   514  	Create_ *OrganizationsDevelopersAppsKeysCreateService
   515  }
   516  
   517  func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
   518  	rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
   519  	return rs
   520  }
   521  
   522  type OrganizationsDevelopersAppsKeysApiproductsService struct {
   523  	s *Service
   524  }
   525  
   526  func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
   527  	rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
   528  	return rs
   529  }
   530  
   531  type OrganizationsDevelopersAppsKeysCreateService struct {
   532  	s *Service
   533  }
   534  
   535  func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
   536  	rs := &OrganizationsDevelopersAttributesService{s: s}
   537  	return rs
   538  }
   539  
   540  type OrganizationsDevelopersAttributesService struct {
   541  	s *Service
   542  }
   543  
   544  func NewOrganizationsDevelopersBalanceService(s *Service) *OrganizationsDevelopersBalanceService {
   545  	rs := &OrganizationsDevelopersBalanceService{s: s}
   546  	return rs
   547  }
   548  
   549  type OrganizationsDevelopersBalanceService struct {
   550  	s *Service
   551  }
   552  
   553  func NewOrganizationsDevelopersSubscriptionsService(s *Service) *OrganizationsDevelopersSubscriptionsService {
   554  	rs := &OrganizationsDevelopersSubscriptionsService{s: s}
   555  	return rs
   556  }
   557  
   558  type OrganizationsDevelopersSubscriptionsService struct {
   559  	s *Service
   560  }
   561  
   562  func NewOrganizationsEndpointAttachmentsService(s *Service) *OrganizationsEndpointAttachmentsService {
   563  	rs := &OrganizationsEndpointAttachmentsService{s: s}
   564  	return rs
   565  }
   566  
   567  type OrganizationsEndpointAttachmentsService struct {
   568  	s *Service
   569  }
   570  
   571  func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService {
   572  	rs := &OrganizationsEnvgroupsService{s: s}
   573  	rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s)
   574  	return rs
   575  }
   576  
   577  type OrganizationsEnvgroupsService struct {
   578  	s *Service
   579  
   580  	Attachments *OrganizationsEnvgroupsAttachmentsService
   581  }
   582  
   583  func NewOrganizationsEnvgroupsAttachmentsService(s *Service) *OrganizationsEnvgroupsAttachmentsService {
   584  	rs := &OrganizationsEnvgroupsAttachmentsService{s: s}
   585  	return rs
   586  }
   587  
   588  type OrganizationsEnvgroupsAttachmentsService struct {
   589  	s *Service
   590  }
   591  
   592  func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
   593  	rs := &OrganizationsEnvironmentsService{s: s}
   594  	rs.AddonsConfig = NewOrganizationsEnvironmentsAddonsConfigService(s)
   595  	rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
   596  	rs.Apis = NewOrganizationsEnvironmentsApisService(s)
   597  	rs.ArchiveDeployments = NewOrganizationsEnvironmentsArchiveDeploymentsService(s)
   598  	rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
   599  	rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
   600  	rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
   601  	rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
   602  	rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
   603  	rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
   604  	rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
   605  	rs.References = NewOrganizationsEnvironmentsReferencesService(s)
   606  	rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
   607  	rs.SecurityActions = NewOrganizationsEnvironmentsSecurityActionsService(s)
   608  	rs.SecurityIncidents = NewOrganizationsEnvironmentsSecurityIncidentsService(s)
   609  	rs.SecurityReports = NewOrganizationsEnvironmentsSecurityReportsService(s)
   610  	rs.SecurityStats = NewOrganizationsEnvironmentsSecurityStatsService(s)
   611  	rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
   612  	rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
   613  	rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
   614  	rs.TraceConfig = NewOrganizationsEnvironmentsTraceConfigService(s)
   615  	return rs
   616  }
   617  
   618  type OrganizationsEnvironmentsService struct {
   619  	s *Service
   620  
   621  	AddonsConfig *OrganizationsEnvironmentsAddonsConfigService
   622  
   623  	Analytics *OrganizationsEnvironmentsAnalyticsService
   624  
   625  	Apis *OrganizationsEnvironmentsApisService
   626  
   627  	ArchiveDeployments *OrganizationsEnvironmentsArchiveDeploymentsService
   628  
   629  	Caches *OrganizationsEnvironmentsCachesService
   630  
   631  	Deployments *OrganizationsEnvironmentsDeploymentsService
   632  
   633  	Flowhooks *OrganizationsEnvironmentsFlowhooksService
   634  
   635  	Keystores *OrganizationsEnvironmentsKeystoresService
   636  
   637  	Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
   638  
   639  	OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
   640  
   641  	Queries *OrganizationsEnvironmentsQueriesService
   642  
   643  	References *OrganizationsEnvironmentsReferencesService
   644  
   645  	Resourcefiles *OrganizationsEnvironmentsResourcefilesService
   646  
   647  	SecurityActions *OrganizationsEnvironmentsSecurityActionsService
   648  
   649  	SecurityIncidents *OrganizationsEnvironmentsSecurityIncidentsService
   650  
   651  	SecurityReports *OrganizationsEnvironmentsSecurityReportsService
   652  
   653  	SecurityStats *OrganizationsEnvironmentsSecurityStatsService
   654  
   655  	Sharedflows *OrganizationsEnvironmentsSharedflowsService
   656  
   657  	Stats *OrganizationsEnvironmentsStatsService
   658  
   659  	Targetservers *OrganizationsEnvironmentsTargetserversService
   660  
   661  	TraceConfig *OrganizationsEnvironmentsTraceConfigService
   662  }
   663  
   664  func NewOrganizationsEnvironmentsAddonsConfigService(s *Service) *OrganizationsEnvironmentsAddonsConfigService {
   665  	rs := &OrganizationsEnvironmentsAddonsConfigService{s: s}
   666  	return rs
   667  }
   668  
   669  type OrganizationsEnvironmentsAddonsConfigService struct {
   670  	s *Service
   671  }
   672  
   673  func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
   674  	rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
   675  	rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
   676  	rs.Exports = NewOrganizationsEnvironmentsAnalyticsExportsService(s)
   677  	return rs
   678  }
   679  
   680  type OrganizationsEnvironmentsAnalyticsService struct {
   681  	s *Service
   682  
   683  	Admin *OrganizationsEnvironmentsAnalyticsAdminService
   684  
   685  	Exports *OrganizationsEnvironmentsAnalyticsExportsService
   686  }
   687  
   688  func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
   689  	rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
   690  	return rs
   691  }
   692  
   693  type OrganizationsEnvironmentsAnalyticsAdminService struct {
   694  	s *Service
   695  }
   696  
   697  func NewOrganizationsEnvironmentsAnalyticsExportsService(s *Service) *OrganizationsEnvironmentsAnalyticsExportsService {
   698  	rs := &OrganizationsEnvironmentsAnalyticsExportsService{s: s}
   699  	return rs
   700  }
   701  
   702  type OrganizationsEnvironmentsAnalyticsExportsService struct {
   703  	s *Service
   704  }
   705  
   706  func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
   707  	rs := &OrganizationsEnvironmentsApisService{s: s}
   708  	rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
   709  	rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
   710  	return rs
   711  }
   712  
   713  type OrganizationsEnvironmentsApisService struct {
   714  	s *Service
   715  
   716  	Deployments *OrganizationsEnvironmentsApisDeploymentsService
   717  
   718  	Revisions *OrganizationsEnvironmentsApisRevisionsService
   719  }
   720  
   721  func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
   722  	rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
   723  	return rs
   724  }
   725  
   726  type OrganizationsEnvironmentsApisDeploymentsService struct {
   727  	s *Service
   728  }
   729  
   730  func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
   731  	rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
   732  	rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
   733  	rs.Deployments = NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s)
   734  	return rs
   735  }
   736  
   737  type OrganizationsEnvironmentsApisRevisionsService struct {
   738  	s *Service
   739  
   740  	Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
   741  
   742  	Deployments *OrganizationsEnvironmentsApisRevisionsDeploymentsService
   743  }
   744  
   745  func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
   746  	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
   747  	rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
   748  	return rs
   749  }
   750  
   751  type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
   752  	s *Service
   753  
   754  	Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
   755  }
   756  
   757  func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
   758  	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
   759  	return rs
   760  }
   761  
   762  type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
   763  	s *Service
   764  }
   765  
   766  func NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDeploymentsService {
   767  	rs := &OrganizationsEnvironmentsApisRevisionsDeploymentsService{s: s}
   768  	return rs
   769  }
   770  
   771  type OrganizationsEnvironmentsApisRevisionsDeploymentsService struct {
   772  	s *Service
   773  }
   774  
   775  func NewOrganizationsEnvironmentsArchiveDeploymentsService(s *Service) *OrganizationsEnvironmentsArchiveDeploymentsService {
   776  	rs := &OrganizationsEnvironmentsArchiveDeploymentsService{s: s}
   777  	return rs
   778  }
   779  
   780  type OrganizationsEnvironmentsArchiveDeploymentsService struct {
   781  	s *Service
   782  }
   783  
   784  func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
   785  	rs := &OrganizationsEnvironmentsCachesService{s: s}
   786  	return rs
   787  }
   788  
   789  type OrganizationsEnvironmentsCachesService struct {
   790  	s *Service
   791  }
   792  
   793  func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
   794  	rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
   795  	return rs
   796  }
   797  
   798  type OrganizationsEnvironmentsDeploymentsService struct {
   799  	s *Service
   800  }
   801  
   802  func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
   803  	rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
   804  	return rs
   805  }
   806  
   807  type OrganizationsEnvironmentsFlowhooksService struct {
   808  	s *Service
   809  }
   810  
   811  func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
   812  	rs := &OrganizationsEnvironmentsKeystoresService{s: s}
   813  	rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
   814  	return rs
   815  }
   816  
   817  type OrganizationsEnvironmentsKeystoresService struct {
   818  	s *Service
   819  
   820  	Aliases *OrganizationsEnvironmentsKeystoresAliasesService
   821  }
   822  
   823  func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
   824  	rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
   825  	return rs
   826  }
   827  
   828  type OrganizationsEnvironmentsKeystoresAliasesService struct {
   829  	s *Service
   830  }
   831  
   832  func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
   833  	rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
   834  	rs.Entries = NewOrganizationsEnvironmentsKeyvaluemapsEntriesService(s)
   835  	return rs
   836  }
   837  
   838  type OrganizationsEnvironmentsKeyvaluemapsService struct {
   839  	s *Service
   840  
   841  	Entries *OrganizationsEnvironmentsKeyvaluemapsEntriesService
   842  }
   843  
   844  func NewOrganizationsEnvironmentsKeyvaluemapsEntriesService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsEntriesService {
   845  	rs := &OrganizationsEnvironmentsKeyvaluemapsEntriesService{s: s}
   846  	return rs
   847  }
   848  
   849  type OrganizationsEnvironmentsKeyvaluemapsEntriesService struct {
   850  	s *Service
   851  }
   852  
   853  func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
   854  	rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
   855  	return rs
   856  }
   857  
   858  type OrganizationsEnvironmentsOptimizedStatsService struct {
   859  	s *Service
   860  }
   861  
   862  func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
   863  	rs := &OrganizationsEnvironmentsQueriesService{s: s}
   864  	return rs
   865  }
   866  
   867  type OrganizationsEnvironmentsQueriesService struct {
   868  	s *Service
   869  }
   870  
   871  func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
   872  	rs := &OrganizationsEnvironmentsReferencesService{s: s}
   873  	return rs
   874  }
   875  
   876  type OrganizationsEnvironmentsReferencesService struct {
   877  	s *Service
   878  }
   879  
   880  func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
   881  	rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
   882  	return rs
   883  }
   884  
   885  type OrganizationsEnvironmentsResourcefilesService struct {
   886  	s *Service
   887  }
   888  
   889  func NewOrganizationsEnvironmentsSecurityActionsService(s *Service) *OrganizationsEnvironmentsSecurityActionsService {
   890  	rs := &OrganizationsEnvironmentsSecurityActionsService{s: s}
   891  	return rs
   892  }
   893  
   894  type OrganizationsEnvironmentsSecurityActionsService struct {
   895  	s *Service
   896  }
   897  
   898  func NewOrganizationsEnvironmentsSecurityIncidentsService(s *Service) *OrganizationsEnvironmentsSecurityIncidentsService {
   899  	rs := &OrganizationsEnvironmentsSecurityIncidentsService{s: s}
   900  	return rs
   901  }
   902  
   903  type OrganizationsEnvironmentsSecurityIncidentsService struct {
   904  	s *Service
   905  }
   906  
   907  func NewOrganizationsEnvironmentsSecurityReportsService(s *Service) *OrganizationsEnvironmentsSecurityReportsService {
   908  	rs := &OrganizationsEnvironmentsSecurityReportsService{s: s}
   909  	return rs
   910  }
   911  
   912  type OrganizationsEnvironmentsSecurityReportsService struct {
   913  	s *Service
   914  }
   915  
   916  func NewOrganizationsEnvironmentsSecurityStatsService(s *Service) *OrganizationsEnvironmentsSecurityStatsService {
   917  	rs := &OrganizationsEnvironmentsSecurityStatsService{s: s}
   918  	return rs
   919  }
   920  
   921  type OrganizationsEnvironmentsSecurityStatsService struct {
   922  	s *Service
   923  }
   924  
   925  func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
   926  	rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
   927  	rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
   928  	rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
   929  	return rs
   930  }
   931  
   932  type OrganizationsEnvironmentsSharedflowsService struct {
   933  	s *Service
   934  
   935  	Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
   936  
   937  	Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
   938  }
   939  
   940  func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
   941  	rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
   942  	return rs
   943  }
   944  
   945  type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
   946  	s *Service
   947  }
   948  
   949  func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
   950  	rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
   951  	return rs
   952  }
   953  
   954  type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
   955  	s *Service
   956  }
   957  
   958  func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
   959  	rs := &OrganizationsEnvironmentsStatsService{s: s}
   960  	return rs
   961  }
   962  
   963  type OrganizationsEnvironmentsStatsService struct {
   964  	s *Service
   965  }
   966  
   967  func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
   968  	rs := &OrganizationsEnvironmentsTargetserversService{s: s}
   969  	return rs
   970  }
   971  
   972  type OrganizationsEnvironmentsTargetserversService struct {
   973  	s *Service
   974  }
   975  
   976  func NewOrganizationsEnvironmentsTraceConfigService(s *Service) *OrganizationsEnvironmentsTraceConfigService {
   977  	rs := &OrganizationsEnvironmentsTraceConfigService{s: s}
   978  	rs.Overrides = NewOrganizationsEnvironmentsTraceConfigOverridesService(s)
   979  	return rs
   980  }
   981  
   982  type OrganizationsEnvironmentsTraceConfigService struct {
   983  	s *Service
   984  
   985  	Overrides *OrganizationsEnvironmentsTraceConfigOverridesService
   986  }
   987  
   988  func NewOrganizationsEnvironmentsTraceConfigOverridesService(s *Service) *OrganizationsEnvironmentsTraceConfigOverridesService {
   989  	rs := &OrganizationsEnvironmentsTraceConfigOverridesService{s: s}
   990  	return rs
   991  }
   992  
   993  type OrganizationsEnvironmentsTraceConfigOverridesService struct {
   994  	s *Service
   995  }
   996  
   997  func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService {
   998  	rs := &OrganizationsHostQueriesService{s: s}
   999  	return rs
  1000  }
  1001  
  1002  type OrganizationsHostQueriesService struct {
  1003  	s *Service
  1004  }
  1005  
  1006  func NewOrganizationsHostSecurityReportsService(s *Service) *OrganizationsHostSecurityReportsService {
  1007  	rs := &OrganizationsHostSecurityReportsService{s: s}
  1008  	return rs
  1009  }
  1010  
  1011  type OrganizationsHostSecurityReportsService struct {
  1012  	s *Service
  1013  }
  1014  
  1015  func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService {
  1016  	rs := &OrganizationsHostStatsService{s: s}
  1017  	return rs
  1018  }
  1019  
  1020  type OrganizationsHostStatsService struct {
  1021  	s *Service
  1022  }
  1023  
  1024  func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService {
  1025  	rs := &OrganizationsInstancesService{s: s}
  1026  	rs.Attachments = NewOrganizationsInstancesAttachmentsService(s)
  1027  	rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s)
  1028  	rs.NatAddresses = NewOrganizationsInstancesNatAddressesService(s)
  1029  	return rs
  1030  }
  1031  
  1032  type OrganizationsInstancesService struct {
  1033  	s *Service
  1034  
  1035  	Attachments *OrganizationsInstancesAttachmentsService
  1036  
  1037  	Canaryevaluations *OrganizationsInstancesCanaryevaluationsService
  1038  
  1039  	NatAddresses *OrganizationsInstancesNatAddressesService
  1040  }
  1041  
  1042  func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService {
  1043  	rs := &OrganizationsInstancesAttachmentsService{s: s}
  1044  	return rs
  1045  }
  1046  
  1047  type OrganizationsInstancesAttachmentsService struct {
  1048  	s *Service
  1049  }
  1050  
  1051  func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService {
  1052  	rs := &OrganizationsInstancesCanaryevaluationsService{s: s}
  1053  	return rs
  1054  }
  1055  
  1056  type OrganizationsInstancesCanaryevaluationsService struct {
  1057  	s *Service
  1058  }
  1059  
  1060  func NewOrganizationsInstancesNatAddressesService(s *Service) *OrganizationsInstancesNatAddressesService {
  1061  	rs := &OrganizationsInstancesNatAddressesService{s: s}
  1062  	return rs
  1063  }
  1064  
  1065  type OrganizationsInstancesNatAddressesService struct {
  1066  	s *Service
  1067  }
  1068  
  1069  func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
  1070  	rs := &OrganizationsKeyvaluemapsService{s: s}
  1071  	rs.Entries = NewOrganizationsKeyvaluemapsEntriesService(s)
  1072  	return rs
  1073  }
  1074  
  1075  type OrganizationsKeyvaluemapsService struct {
  1076  	s *Service
  1077  
  1078  	Entries *OrganizationsKeyvaluemapsEntriesService
  1079  }
  1080  
  1081  func NewOrganizationsKeyvaluemapsEntriesService(s *Service) *OrganizationsKeyvaluemapsEntriesService {
  1082  	rs := &OrganizationsKeyvaluemapsEntriesService{s: s}
  1083  	return rs
  1084  }
  1085  
  1086  type OrganizationsKeyvaluemapsEntriesService struct {
  1087  	s *Service
  1088  }
  1089  
  1090  func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
  1091  	rs := &OrganizationsOperationsService{s: s}
  1092  	return rs
  1093  }
  1094  
  1095  type OrganizationsOperationsService struct {
  1096  	s *Service
  1097  }
  1098  
  1099  func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService {
  1100  	rs := &OrganizationsOptimizedHostStatsService{s: s}
  1101  	return rs
  1102  }
  1103  
  1104  type OrganizationsOptimizedHostStatsService struct {
  1105  	s *Service
  1106  }
  1107  
  1108  func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
  1109  	rs := &OrganizationsReportsService{s: s}
  1110  	return rs
  1111  }
  1112  
  1113  type OrganizationsReportsService struct {
  1114  	s *Service
  1115  }
  1116  
  1117  func NewOrganizationsSecurityAssessmentResultsService(s *Service) *OrganizationsSecurityAssessmentResultsService {
  1118  	rs := &OrganizationsSecurityAssessmentResultsService{s: s}
  1119  	return rs
  1120  }
  1121  
  1122  type OrganizationsSecurityAssessmentResultsService struct {
  1123  	s *Service
  1124  }
  1125  
  1126  func NewOrganizationsSecurityProfilesService(s *Service) *OrganizationsSecurityProfilesService {
  1127  	rs := &OrganizationsSecurityProfilesService{s: s}
  1128  	rs.Environments = NewOrganizationsSecurityProfilesEnvironmentsService(s)
  1129  	return rs
  1130  }
  1131  
  1132  type OrganizationsSecurityProfilesService struct {
  1133  	s *Service
  1134  
  1135  	Environments *OrganizationsSecurityProfilesEnvironmentsService
  1136  }
  1137  
  1138  func NewOrganizationsSecurityProfilesEnvironmentsService(s *Service) *OrganizationsSecurityProfilesEnvironmentsService {
  1139  	rs := &OrganizationsSecurityProfilesEnvironmentsService{s: s}
  1140  	return rs
  1141  }
  1142  
  1143  type OrganizationsSecurityProfilesEnvironmentsService struct {
  1144  	s *Service
  1145  }
  1146  
  1147  func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
  1148  	rs := &OrganizationsSharedflowsService{s: s}
  1149  	rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
  1150  	rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
  1151  	return rs
  1152  }
  1153  
  1154  type OrganizationsSharedflowsService struct {
  1155  	s *Service
  1156  
  1157  	Deployments *OrganizationsSharedflowsDeploymentsService
  1158  
  1159  	Revisions *OrganizationsSharedflowsRevisionsService
  1160  }
  1161  
  1162  func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
  1163  	rs := &OrganizationsSharedflowsDeploymentsService{s: s}
  1164  	return rs
  1165  }
  1166  
  1167  type OrganizationsSharedflowsDeploymentsService struct {
  1168  	s *Service
  1169  }
  1170  
  1171  func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
  1172  	rs := &OrganizationsSharedflowsRevisionsService{s: s}
  1173  	rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
  1174  	return rs
  1175  }
  1176  
  1177  type OrganizationsSharedflowsRevisionsService struct {
  1178  	s *Service
  1179  
  1180  	Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
  1181  }
  1182  
  1183  func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
  1184  	rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
  1185  	return rs
  1186  }
  1187  
  1188  type OrganizationsSharedflowsRevisionsDeploymentsService struct {
  1189  	s *Service
  1190  }
  1191  
  1192  func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService {
  1193  	rs := &OrganizationsSitesService{s: s}
  1194  	rs.Apicategories = NewOrganizationsSitesApicategoriesService(s)
  1195  	rs.Apidocs = NewOrganizationsSitesApidocsService(s)
  1196  	return rs
  1197  }
  1198  
  1199  type OrganizationsSitesService struct {
  1200  	s *Service
  1201  
  1202  	Apicategories *OrganizationsSitesApicategoriesService
  1203  
  1204  	Apidocs *OrganizationsSitesApidocsService
  1205  }
  1206  
  1207  func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService {
  1208  	rs := &OrganizationsSitesApicategoriesService{s: s}
  1209  	return rs
  1210  }
  1211  
  1212  type OrganizationsSitesApicategoriesService struct {
  1213  	s *Service
  1214  }
  1215  
  1216  func NewOrganizationsSitesApidocsService(s *Service) *OrganizationsSitesApidocsService {
  1217  	rs := &OrganizationsSitesApidocsService{s: s}
  1218  	return rs
  1219  }
  1220  
  1221  type OrganizationsSitesApidocsService struct {
  1222  	s *Service
  1223  }
  1224  
  1225  func NewProjectsService(s *Service) *ProjectsService {
  1226  	rs := &ProjectsService{s: s}
  1227  	return rs
  1228  }
  1229  
  1230  type ProjectsService struct {
  1231  	s *Service
  1232  }
  1233  
  1234  // EdgeConfigstoreBundleBadBundle: Describes why a bundle is invalid. Intended
  1235  // for use in error details.
  1236  type EdgeConfigstoreBundleBadBundle struct {
  1237  	// Violations: Describes all precondition violations.
  1238  	Violations []*EdgeConfigstoreBundleBadBundleViolation `json:"violations,omitempty"`
  1239  	// ForceSendFields is a list of field names (e.g. "Violations") to
  1240  	// unconditionally include in API requests. By default, fields with empty or
  1241  	// default values are omitted from API requests. See
  1242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1243  	// details.
  1244  	ForceSendFields []string `json:"-"`
  1245  	// NullFields is a list of field names (e.g. "Violations") to include in API
  1246  	// requests with the JSON null value. By default, fields with empty values are
  1247  	// omitted from API requests. See
  1248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1249  	NullFields []string `json:"-"`
  1250  }
  1251  
  1252  func (s *EdgeConfigstoreBundleBadBundle) MarshalJSON() ([]byte, error) {
  1253  	type NoMethod EdgeConfigstoreBundleBadBundle
  1254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1255  }
  1256  
  1257  // EdgeConfigstoreBundleBadBundleViolation: A message type used to describe a
  1258  // single bundle validation error.
  1259  type EdgeConfigstoreBundleBadBundleViolation struct {
  1260  	// Description: A description of why the bundle is invalid and how to fix it.
  1261  	Description string `json:"description,omitempty"`
  1262  	// Filename: The filename (including relative path from the bundle root) in
  1263  	// which the error occurred.
  1264  	Filename string `json:"filename,omitempty"`
  1265  	// ForceSendFields is a list of field names (e.g. "Description") to
  1266  	// unconditionally include in API requests. By default, fields with empty or
  1267  	// default values are omitted from API requests. See
  1268  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1269  	// details.
  1270  	ForceSendFields []string `json:"-"`
  1271  	// NullFields is a list of field names (e.g. "Description") to include in API
  1272  	// requests with the JSON null value. By default, fields with empty values are
  1273  	// omitted from API requests. See
  1274  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1275  	NullFields []string `json:"-"`
  1276  }
  1277  
  1278  func (s *EdgeConfigstoreBundleBadBundleViolation) MarshalJSON() ([]byte, error) {
  1279  	type NoMethod EdgeConfigstoreBundleBadBundleViolation
  1280  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1281  }
  1282  
  1283  // GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should
  1284  // only be used for payload formats that can't be represented as JSON, such as
  1285  // raw binary or an HTML page. This message can be used both in streaming and
  1286  // non-streaming API methods in the request as well as the response. It can be
  1287  // used as a top-level request field, which is convenient if one wants to
  1288  // extract parameters from either the URL or HTTP template into the request
  1289  // fields and also want access to the raw HTTP body. Example: message
  1290  // GetResourceRequest { // A unique request id. string request_id = 1; // The
  1291  // raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
  1292  // service ResourceService { rpc GetResource(GetResourceRequest) returns
  1293  // (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
  1294  // (google.protobuf.Empty); } Example with streaming methods: service
  1295  // CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
  1296  // google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
  1297  // (stream google.api.HttpBody); } Use of this type only changes how the
  1298  // request and response bodies are handled, all other features will continue to
  1299  // work unchanged.
  1300  type GoogleApiHttpBody struct {
  1301  	// ContentType: The HTTP Content-Type header value specifying the content type
  1302  	// of the body.
  1303  	ContentType string `json:"contentType,omitempty"`
  1304  	// Data: The HTTP request/response body as raw binary.
  1305  	Data string `json:"data,omitempty"`
  1306  	// Extensions: Application specific response metadata. Must be set in the first
  1307  	// response for streaming APIs.
  1308  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
  1309  
  1310  	// ServerResponse contains the HTTP response code and headers from the server.
  1311  	googleapi.ServerResponse `json:"-"`
  1312  	// ForceSendFields is a list of field names (e.g. "ContentType") to
  1313  	// unconditionally include in API requests. By default, fields with empty or
  1314  	// default values are omitted from API requests. See
  1315  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1316  	// details.
  1317  	ForceSendFields []string `json:"-"`
  1318  	// NullFields is a list of field names (e.g. "ContentType") to include in API
  1319  	// requests with the JSON null value. By default, fields with empty values are
  1320  	// omitted from API requests. See
  1321  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1322  	NullFields []string `json:"-"`
  1323  }
  1324  
  1325  func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
  1326  	type NoMethod GoogleApiHttpBody
  1327  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1328  }
  1329  
  1330  // GoogleCloudApigeeV1APIProductAssociation: APIProductAssociation has the API
  1331  // product and its administrative state association.
  1332  type GoogleCloudApigeeV1APIProductAssociation struct {
  1333  	// Apiproduct: API product to be associated with the credential.
  1334  	Apiproduct string `json:"apiproduct,omitempty"`
  1335  	// Status: The API product credential associated status. Valid values are
  1336  	// `approved` or `revoked`.
  1337  	Status string `json:"status,omitempty"`
  1338  	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
  1339  	// unconditionally include in API requests. By default, fields with empty or
  1340  	// default values are omitted from API requests. See
  1341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1342  	// details.
  1343  	ForceSendFields []string `json:"-"`
  1344  	// NullFields is a list of field names (e.g. "Apiproduct") to include in API
  1345  	// requests with the JSON null value. By default, fields with empty values are
  1346  	// omitted from API requests. See
  1347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1348  	NullFields []string `json:"-"`
  1349  }
  1350  
  1351  func (s *GoogleCloudApigeeV1APIProductAssociation) MarshalJSON() ([]byte, error) {
  1352  	type NoMethod GoogleCloudApigeeV1APIProductAssociation
  1353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1354  }
  1355  
  1356  type GoogleCloudApigeeV1Access struct {
  1357  	Get    *GoogleCloudApigeeV1AccessGet    `json:"Get,omitempty"`
  1358  	Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
  1359  	Set    *GoogleCloudApigeeV1AccessSet    `json:"Set,omitempty"`
  1360  	// ForceSendFields is a list of field names (e.g. "Get") to unconditionally
  1361  	// include in API requests. By default, fields with empty or default values are
  1362  	// omitted from API requests. See
  1363  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1364  	// details.
  1365  	ForceSendFields []string `json:"-"`
  1366  	// NullFields is a list of field names (e.g. "Get") to include in API requests
  1367  	// with the JSON null value. By default, fields with empty values are omitted
  1368  	// from API requests. See
  1369  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1370  	NullFields []string `json:"-"`
  1371  }
  1372  
  1373  func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
  1374  	type NoMethod GoogleCloudApigeeV1Access
  1375  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1376  }
  1377  
  1378  // GoogleCloudApigeeV1AccessGet: Get action. For example, "Get" : { "name" :
  1379  // "target.name", "value" : "default" }
  1380  type GoogleCloudApigeeV1AccessGet struct {
  1381  	Name  string `json:"name,omitempty"`
  1382  	Value string `json:"value,omitempty"`
  1383  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1384  	// include in API requests. By default, fields with empty or default values are
  1385  	// omitted from API requests. See
  1386  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1387  	// details.
  1388  	ForceSendFields []string `json:"-"`
  1389  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1390  	// with the JSON null value. By default, fields with empty values are omitted
  1391  	// from API requests. See
  1392  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1393  	NullFields []string `json:"-"`
  1394  }
  1395  
  1396  func (s *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
  1397  	type NoMethod GoogleCloudApigeeV1AccessGet
  1398  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1399  }
  1400  
  1401  // GoogleCloudApigeeV1AccessLoggingConfig: Access logging configuration enables
  1402  // customers to ship the access logs from the tenant projects to their own
  1403  // project's cloud logging. The feature is at the instance level ad disabled by
  1404  // default. It can be enabled during CreateInstance or UpdateInstance.
  1405  type GoogleCloudApigeeV1AccessLoggingConfig struct {
  1406  	// Enabled: Optional. Boolean flag that specifies whether the customer access
  1407  	// log feature is enabled.
  1408  	Enabled bool `json:"enabled,omitempty"`
  1409  	// Filter: Optional. Ship the access log entries that match the status_code
  1410  	// defined in the filter. The status_code is the only expected/supported filter
  1411  	// field. (Ex: status_code) The filter will parse it to the Common Expression
  1412  	// Language semantics for expression evaluation to build the filter condition.
  1413  	// (Ex: "filter": status_code >= 200 && status_code < 300 )
  1414  	Filter string `json:"filter,omitempty"`
  1415  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  1416  	// include in API requests. By default, fields with empty or default values are
  1417  	// omitted from API requests. See
  1418  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1419  	// details.
  1420  	ForceSendFields []string `json:"-"`
  1421  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  1422  	// requests with the JSON null value. By default, fields with empty values are
  1423  	// omitted from API requests. See
  1424  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1425  	NullFields []string `json:"-"`
  1426  }
  1427  
  1428  func (s *GoogleCloudApigeeV1AccessLoggingConfig) MarshalJSON() ([]byte, error) {
  1429  	type NoMethod GoogleCloudApigeeV1AccessLoggingConfig
  1430  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1431  }
  1432  
  1433  // GoogleCloudApigeeV1AccessRemove: Remove action. For example, "Remove" : {
  1434  // "name" : "target.name", "success" : true }
  1435  type GoogleCloudApigeeV1AccessRemove struct {
  1436  	Name    string `json:"name,omitempty"`
  1437  	Success bool   `json:"success,omitempty"`
  1438  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1439  	// include in API requests. By default, fields with empty or default values are
  1440  	// omitted from API requests. See
  1441  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1442  	// details.
  1443  	ForceSendFields []string `json:"-"`
  1444  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1445  	// with the JSON null value. By default, fields with empty values are omitted
  1446  	// from API requests. See
  1447  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1448  	NullFields []string `json:"-"`
  1449  }
  1450  
  1451  func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
  1452  	type NoMethod GoogleCloudApigeeV1AccessRemove
  1453  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1454  }
  1455  
  1456  // GoogleCloudApigeeV1AccessSet: Set action. For example, "Set" : { "name" :
  1457  // "target.name", "success" : true, "value" : "default" }
  1458  type GoogleCloudApigeeV1AccessSet struct {
  1459  	Name    string `json:"name,omitempty"`
  1460  	Success bool   `json:"success,omitempty"`
  1461  	Value   string `json:"value,omitempty"`
  1462  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1463  	// include in API requests. By default, fields with empty or default values are
  1464  	// omitted from API requests. See
  1465  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1466  	// details.
  1467  	ForceSendFields []string `json:"-"`
  1468  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1469  	// with the JSON null value. By default, fields with empty values are omitted
  1470  	// from API requests. See
  1471  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1472  	NullFields []string `json:"-"`
  1473  }
  1474  
  1475  func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
  1476  	type NoMethod GoogleCloudApigeeV1AccessSet
  1477  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1478  }
  1479  
  1480  // GoogleCloudApigeeV1ActivateNatAddressRequest: Request for
  1481  // ActivateNatAddressRequest. Activate the nat address request.
  1482  type GoogleCloudApigeeV1ActivateNatAddressRequest struct {
  1483  }
  1484  
  1485  // GoogleCloudApigeeV1AddonsConfig: Add-on configurations for the Apigee
  1486  // organization.
  1487  type GoogleCloudApigeeV1AddonsConfig struct {
  1488  	// AdvancedApiOpsConfig: Configuration for the Advanced API Ops add-on.
  1489  	AdvancedApiOpsConfig *GoogleCloudApigeeV1AdvancedApiOpsConfig `json:"advancedApiOpsConfig,omitempty"`
  1490  	// AnalyticsConfig: Configuration for the Analytics add-on.
  1491  	AnalyticsConfig *GoogleCloudApigeeV1AnalyticsConfig `json:"analyticsConfig,omitempty"`
  1492  	// ApiSecurityConfig: Configuration for the API Security add-on.
  1493  	ApiSecurityConfig *GoogleCloudApigeeV1ApiSecurityConfig `json:"apiSecurityConfig,omitempty"`
  1494  	// ConnectorsPlatformConfig: Configuration for the Connectors Platform add-on.
  1495  	ConnectorsPlatformConfig *GoogleCloudApigeeV1ConnectorsPlatformConfig `json:"connectorsPlatformConfig,omitempty"`
  1496  	// IntegrationConfig: Configuration for the Integration add-on.
  1497  	IntegrationConfig *GoogleCloudApigeeV1IntegrationConfig `json:"integrationConfig,omitempty"`
  1498  	// MonetizationConfig: Configuration for the Monetization add-on.
  1499  	MonetizationConfig *GoogleCloudApigeeV1MonetizationConfig `json:"monetizationConfig,omitempty"`
  1500  
  1501  	// ServerResponse contains the HTTP response code and headers from the server.
  1502  	googleapi.ServerResponse `json:"-"`
  1503  	// ForceSendFields is a list of field names (e.g. "AdvancedApiOpsConfig") to
  1504  	// unconditionally include in API requests. By default, fields with empty or
  1505  	// default values are omitted from API requests. See
  1506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1507  	// details.
  1508  	ForceSendFields []string `json:"-"`
  1509  	// NullFields is a list of field names (e.g. "AdvancedApiOpsConfig") to include
  1510  	// in API requests with the JSON null value. By default, fields with empty
  1511  	// values are omitted from API requests. See
  1512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1513  	NullFields []string `json:"-"`
  1514  }
  1515  
  1516  func (s *GoogleCloudApigeeV1AddonsConfig) MarshalJSON() ([]byte, error) {
  1517  	type NoMethod GoogleCloudApigeeV1AddonsConfig
  1518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1519  }
  1520  
  1521  // GoogleCloudApigeeV1AdjustDeveloperBalanceRequest: Request for
  1522  // AdjustDeveloperBalance.
  1523  type GoogleCloudApigeeV1AdjustDeveloperBalanceRequest struct {
  1524  	// Adjustment: * A positive value of `adjustment` means that that the API
  1525  	// provider wants to adjust the balance for an under-charged developer i.e. the
  1526  	// balance of the developer will decrease. * A negative value of `adjustment`
  1527  	// means that that the API provider wants to adjust the balance for an
  1528  	// over-charged developer i.e. the balance of the developer will increase.
  1529  	Adjustment *GoogleTypeMoney `json:"adjustment,omitempty"`
  1530  	// ForceSendFields is a list of field names (e.g. "Adjustment") to
  1531  	// unconditionally include in API requests. By default, fields with empty or
  1532  	// default values are omitted from API requests. See
  1533  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1534  	// details.
  1535  	ForceSendFields []string `json:"-"`
  1536  	// NullFields is a list of field names (e.g. "Adjustment") to include in API
  1537  	// requests with the JSON null value. By default, fields with empty values are
  1538  	// omitted from API requests. See
  1539  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1540  	NullFields []string `json:"-"`
  1541  }
  1542  
  1543  func (s *GoogleCloudApigeeV1AdjustDeveloperBalanceRequest) MarshalJSON() ([]byte, error) {
  1544  	type NoMethod GoogleCloudApigeeV1AdjustDeveloperBalanceRequest
  1545  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1546  }
  1547  
  1548  // GoogleCloudApigeeV1AdvancedApiOpsConfig: Configuration for the Advanced API
  1549  // Ops add-on.
  1550  type GoogleCloudApigeeV1AdvancedApiOpsConfig struct {
  1551  	// Enabled: Flag that specifies whether the Advanced API Ops add-on is enabled.
  1552  	Enabled bool `json:"enabled,omitempty"`
  1553  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  1554  	// include in API requests. By default, fields with empty or default values are
  1555  	// omitted from API requests. See
  1556  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1557  	// details.
  1558  	ForceSendFields []string `json:"-"`
  1559  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  1560  	// requests with the JSON null value. By default, fields with empty values are
  1561  	// omitted from API requests. See
  1562  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1563  	NullFields []string `json:"-"`
  1564  }
  1565  
  1566  func (s *GoogleCloudApigeeV1AdvancedApiOpsConfig) MarshalJSON() ([]byte, error) {
  1567  	type NoMethod GoogleCloudApigeeV1AdvancedApiOpsConfig
  1568  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1569  }
  1570  
  1571  // GoogleCloudApigeeV1Alias: Reference to a certificate or key/certificate
  1572  // pair.
  1573  type GoogleCloudApigeeV1Alias struct {
  1574  	// Alias: Resource ID for this alias. Values must match the regular expression
  1575  	// `[^/]{1,255}`.
  1576  	Alias string `json:"alias,omitempty"`
  1577  	// CertsInfo: Chain of certificates under this alias.
  1578  	CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
  1579  	// Type: Type of alias.
  1580  	//
  1581  	// Possible values:
  1582  	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
  1583  	//   "CERT" - Certificate.
  1584  	//   "KEY_CERT" - Key/certificate pair.
  1585  	Type string `json:"type,omitempty"`
  1586  
  1587  	// ServerResponse contains the HTTP response code and headers from the server.
  1588  	googleapi.ServerResponse `json:"-"`
  1589  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
  1590  	// include in API requests. By default, fields with empty or default values are
  1591  	// omitted from API requests. See
  1592  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1593  	// details.
  1594  	ForceSendFields []string `json:"-"`
  1595  	// NullFields is a list of field names (e.g. "Alias") to include in API
  1596  	// requests with the JSON null value. By default, fields with empty values are
  1597  	// omitted from API requests. See
  1598  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1599  	NullFields []string `json:"-"`
  1600  }
  1601  
  1602  func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
  1603  	type NoMethod GoogleCloudApigeeV1Alias
  1604  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1605  }
  1606  
  1607  type GoogleCloudApigeeV1AliasRevisionConfig struct {
  1608  	// Location: Location of the alias file. For example, a Google Cloud Storage
  1609  	// URI.
  1610  	Location string `json:"location,omitempty"`
  1611  	// Name: Name of the alias revision included in the keystore in the following
  1612  	// format:
  1613  	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}/
  1614  	// revisions/{rev}`
  1615  	Name string `json:"name,omitempty"`
  1616  	// Possible values:
  1617  	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
  1618  	//   "CERT" - Certificate.
  1619  	//   "KEY_CERT" - Key/certificate pair.
  1620  	Type string `json:"type,omitempty"`
  1621  	// ForceSendFields is a list of field names (e.g. "Location") to
  1622  	// unconditionally include in API requests. By default, fields with empty or
  1623  	// default values are omitted from API requests. See
  1624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1625  	// details.
  1626  	ForceSendFields []string `json:"-"`
  1627  	// NullFields is a list of field names (e.g. "Location") to include in API
  1628  	// requests with the JSON null value. By default, fields with empty values are
  1629  	// omitted from API requests. See
  1630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1631  	NullFields []string `json:"-"`
  1632  }
  1633  
  1634  func (s *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
  1635  	type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
  1636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1637  }
  1638  
  1639  // GoogleCloudApigeeV1AnalyticsConfig: Configuration for the Analytics add-on.
  1640  type GoogleCloudApigeeV1AnalyticsConfig struct {
  1641  	// Enabled: Whether the Analytics add-on is enabled.
  1642  	Enabled bool `json:"enabled,omitempty"`
  1643  	// ExpireTimeMillis: Output only. Time at which the Analytics add-on expires in
  1644  	// milliseconds since epoch. If unspecified, the add-on will never expire.
  1645  	ExpireTimeMillis int64 `json:"expireTimeMillis,omitempty,string"`
  1646  	// State: Output only. The state of the Analytics add-on.
  1647  	//
  1648  	// Possible values:
  1649  	//   "ADDON_STATE_UNSPECIFIED" - Default value.
  1650  	//   "ENABLING" - Add-on is in progress of enabling.
  1651  	//   "ENABLED" - Add-on is fully enabled and ready to use.
  1652  	//   "DISABLING" - Add-on is in progress of disabling.
  1653  	//   "DISABLED" - Add-on is fully disabled.
  1654  	State string `json:"state,omitempty"`
  1655  	// UpdateTime: Output only. The latest update time.
  1656  	UpdateTime string `json:"updateTime,omitempty"`
  1657  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  1658  	// include in API requests. By default, fields with empty or default values are
  1659  	// omitted from API requests. See
  1660  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1661  	// details.
  1662  	ForceSendFields []string `json:"-"`
  1663  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  1664  	// requests with the JSON null value. By default, fields with empty values are
  1665  	// omitted from API requests. See
  1666  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1667  	NullFields []string `json:"-"`
  1668  }
  1669  
  1670  func (s *GoogleCloudApigeeV1AnalyticsConfig) MarshalJSON() ([]byte, error) {
  1671  	type NoMethod GoogleCloudApigeeV1AnalyticsConfig
  1672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1673  }
  1674  
  1675  // GoogleCloudApigeeV1ApiCategory: `ApiCategory` represents an API category.
  1676  // Catalog items
  1677  // (/apigee/docs/reference/apis/apigee/rest/v1/organizations.sites.apidocs) can
  1678  // be tagged with API categories; users viewing the API catalog in the portal
  1679  // will have the option to browse the catalog by category.
  1680  type GoogleCloudApigeeV1ApiCategory struct {
  1681  	// Id: ID of the category (a UUID).
  1682  	Id string `json:"id,omitempty"`
  1683  	// Name: Name of the category.
  1684  	Name string `json:"name,omitempty"`
  1685  	// SiteId: Name of the portal.
  1686  	SiteId string `json:"siteId,omitempty"`
  1687  	// UpdateTime: Time the category was last modified in milliseconds since epoch.
  1688  	UpdateTime int64 `json:"updateTime,omitempty,string"`
  1689  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  1690  	// include in API requests. By default, fields with empty or default values are
  1691  	// omitted from API requests. See
  1692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1693  	// details.
  1694  	ForceSendFields []string `json:"-"`
  1695  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  1696  	// with the JSON null value. By default, fields with empty values are omitted
  1697  	// from API requests. See
  1698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1699  	NullFields []string `json:"-"`
  1700  }
  1701  
  1702  func (s *GoogleCloudApigeeV1ApiCategory) MarshalJSON() ([]byte, error) {
  1703  	type NoMethod GoogleCloudApigeeV1ApiCategory
  1704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1705  }
  1706  
  1707  // GoogleCloudApigeeV1ApiCategoryResponse: The API category resource wrapped
  1708  // with response status, error_code, etc.
  1709  type GoogleCloudApigeeV1ApiCategoryResponse struct {
  1710  	// Data: The API category resource.
  1711  	Data *GoogleCloudApigeeV1ApiCategory `json:"data,omitempty"`
  1712  	// ErrorCode: Unique error code for the request, if any.
  1713  	ErrorCode string `json:"errorCode,omitempty"`
  1714  	// Message: Description of the operation.
  1715  	Message string `json:"message,omitempty"`
  1716  	// RequestId: Unique ID of the request.
  1717  	RequestId string `json:"requestId,omitempty"`
  1718  	// Status: Status of the operation.
  1719  	Status string `json:"status,omitempty"`
  1720  
  1721  	// ServerResponse contains the HTTP response code and headers from the server.
  1722  	googleapi.ServerResponse `json:"-"`
  1723  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  1724  	// include in API requests. By default, fields with empty or default values are
  1725  	// omitted from API requests. See
  1726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1727  	// details.
  1728  	ForceSendFields []string `json:"-"`
  1729  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  1730  	// with the JSON null value. By default, fields with empty values are omitted
  1731  	// from API requests. See
  1732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1733  	NullFields []string `json:"-"`
  1734  }
  1735  
  1736  func (s *GoogleCloudApigeeV1ApiCategoryResponse) MarshalJSON() ([]byte, error) {
  1737  	type NoMethod GoogleCloudApigeeV1ApiCategoryResponse
  1738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1739  }
  1740  
  1741  // GoogleCloudApigeeV1ApiDoc: `ApiDoc` represents an API catalog item. Catalog
  1742  // items are used in two ways in a portal: - Users can browse and interact with
  1743  // a visual representation of the API documentation - The `api_product_name`
  1744  // field provides a link to a backing [API product]
  1745  // (/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts).
  1746  // Through this link, portal users can create and manage developer apps linked
  1747  // to one or more API products.
  1748  type GoogleCloudApigeeV1ApiDoc struct {
  1749  	// AnonAllowed: Optional. Boolean flag that manages user access to the catalog
  1750  	// item. When true, the catalog item has public visibility and can be viewed
  1751  	// anonymously; otherwise, only registered users may view it. Note: when the
  1752  	// parent portal is enrolled in the audience management feature
  1753  	// (https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature),
  1754  	// and this flag is set to false, visibility is set to an indeterminate state
  1755  	// and must be explicitly specified in the management UI (see Manage the
  1756  	// visibility of an API in your portal
  1757  	// (https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)).
  1758  	// Additionally, when enrolled in the audience management feature, updates to
  1759  	// this flag will be ignored as visibility permissions must be updated in the
  1760  	// management UI.
  1761  	AnonAllowed bool `json:"anonAllowed,omitempty"`
  1762  	// ApiProductName: Required. Immutable. The `name` field of the associated API
  1763  	// product
  1764  	// (/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts). A
  1765  	// portal may have only one catalog item associated with a given API product.
  1766  	ApiProductName string `json:"apiProductName,omitempty"`
  1767  	// CategoryIds: Optional. The IDs of the API categories to which this catalog
  1768  	// item belongs.
  1769  	CategoryIds []string `json:"categoryIds,omitempty"`
  1770  	// Description: Optional. Description of the catalog item. Max length is 10,000
  1771  	// characters.
  1772  	Description string `json:"description,omitempty"`
  1773  	// EdgeAPIProductName: Optional. Immutable. DEPRECATED: use the
  1774  	// `apiProductName` field instead
  1775  	EdgeAPIProductName string `json:"edgeAPIProductName,omitempty"`
  1776  	// GraphqlEndpointUrl: Optional. DEPRECATED: manage documentation through the
  1777  	// `getDocumentation` and `updateDocumentation` methods
  1778  	GraphqlEndpointUrl string `json:"graphqlEndpointUrl,omitempty"`
  1779  	// GraphqlSchema: Optional. DEPRECATED: manage documentation through the
  1780  	// `getDocumentation` and `updateDocumentation` methods
  1781  	GraphqlSchema string `json:"graphqlSchema,omitempty"`
  1782  	// GraphqlSchemaDisplayName: Optional. DEPRECATED: manage documentation through
  1783  	// the `getDocumentation` and `updateDocumentation` methods
  1784  	GraphqlSchemaDisplayName string `json:"graphqlSchemaDisplayName,omitempty"`
  1785  	// Id: Output only. The ID of the catalog item.
  1786  	Id int64 `json:"id,omitempty,string"`
  1787  	// ImageUrl: Optional. Location of the image used for the catalog item in the
  1788  	// catalog. This can be either an image with an external URL or a file path for
  1789  	// image files stored in the portal
  1790  	// (/apigee/docs/api-platform/publish/portal/portal-files"), for example,
  1791  	// `/files/book-tree.jpg`. When specifying the URL of an external image, the
  1792  	// image won't be uploaded to your assets; additionally, loading the image in
  1793  	// the integrated portal will be subject to its availability, which may be
  1794  	// blocked or restricted by content security policies
  1795  	// (/apigee/docs/api-platform/publish/portal/csp). Max length of file path is
  1796  	// 2,083 characters.
  1797  	ImageUrl string `json:"imageUrl,omitempty"`
  1798  	// Modified: Output only. Time the catalog item was last modified in
  1799  	// milliseconds since epoch.
  1800  	Modified int64 `json:"modified,omitempty,string"`
  1801  	// Published: Optional. Denotes whether the catalog item is published to the
  1802  	// portal or is in a draft state. When the parent portal is enrolled in the
  1803  	// audience management feature
  1804  	// (https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature),
  1805  	// the visibility can be set to public on creation by setting the anonAllowed
  1806  	// flag to true or further managed in the management UI (see Manage the
  1807  	// visibility of an API in your portal
  1808  	// (https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility))
  1809  	// before it can be visible to any users. If not enrolled in the audience
  1810  	// management feature, the visibility is managed by the `anonAllowed` flag.
  1811  	Published bool `json:"published,omitempty"`
  1812  	// RequireCallbackUrl: Optional. Whether a callback URL is required when this
  1813  	// catalog item's API product is enabled in a developer app. When true, a
  1814  	// portal user will be required to input a URL when managing the app (this is
  1815  	// typically used for the app's OAuth flow).
  1816  	RequireCallbackUrl bool `json:"requireCallbackUrl,omitempty"`
  1817  	// SiteId: Output only. The ID of the parent portal.
  1818  	SiteId string `json:"siteId,omitempty"`
  1819  	// SpecId: Optional. DEPRECATED: DO NOT USE
  1820  	SpecId string `json:"specId,omitempty"`
  1821  	// Title: Required. The user-facing name of the catalog item. `title` must be a
  1822  	// non-empty string with a max length of 255 characters.
  1823  	Title string `json:"title,omitempty"`
  1824  	// Visibility: Optional. DEPRECATED: use the `published` field instead
  1825  	Visibility bool `json:"visibility,omitempty"`
  1826  	// ForceSendFields is a list of field names (e.g. "AnonAllowed") to
  1827  	// unconditionally include in API requests. By default, fields with empty or
  1828  	// default values are omitted from API requests. See
  1829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1830  	// details.
  1831  	ForceSendFields []string `json:"-"`
  1832  	// NullFields is a list of field names (e.g. "AnonAllowed") to include in API
  1833  	// requests with the JSON null value. By default, fields with empty values are
  1834  	// omitted from API requests. See
  1835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1836  	NullFields []string `json:"-"`
  1837  }
  1838  
  1839  func (s *GoogleCloudApigeeV1ApiDoc) MarshalJSON() ([]byte, error) {
  1840  	type NoMethod GoogleCloudApigeeV1ApiDoc
  1841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1842  }
  1843  
  1844  // GoogleCloudApigeeV1ApiDocDocumentation: The documentation for a catalog
  1845  // item.
  1846  type GoogleCloudApigeeV1ApiDocDocumentation struct {
  1847  	// GraphqlDocumentation: Optional. GraphQL documentation.
  1848  	GraphqlDocumentation *GoogleCloudApigeeV1GraphqlDocumentation `json:"graphqlDocumentation,omitempty"`
  1849  	// OasDocumentation: Optional. OpenAPI Specification documentation.
  1850  	OasDocumentation *GoogleCloudApigeeV1OASDocumentation `json:"oasDocumentation,omitempty"`
  1851  	// ForceSendFields is a list of field names (e.g. "GraphqlDocumentation") to
  1852  	// unconditionally include in API requests. By default, fields with empty or
  1853  	// default values are omitted from API requests. See
  1854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1855  	// details.
  1856  	ForceSendFields []string `json:"-"`
  1857  	// NullFields is a list of field names (e.g. "GraphqlDocumentation") to include
  1858  	// in API requests with the JSON null value. By default, fields with empty
  1859  	// values are omitted from API requests. See
  1860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1861  	NullFields []string `json:"-"`
  1862  }
  1863  
  1864  func (s *GoogleCloudApigeeV1ApiDocDocumentation) MarshalJSON() ([]byte, error) {
  1865  	type NoMethod GoogleCloudApigeeV1ApiDocDocumentation
  1866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1867  }
  1868  
  1869  // GoogleCloudApigeeV1ApiDocDocumentationResponse: The catalog item
  1870  // documentation wrapped with response status, error_code, etc.
  1871  type GoogleCloudApigeeV1ApiDocDocumentationResponse struct {
  1872  	// Data: Output only. The documentation resource.
  1873  	Data *GoogleCloudApigeeV1ApiDocDocumentation `json:"data,omitempty"`
  1874  	// ErrorCode: Output only. Unique error code for the request, if any.
  1875  	ErrorCode string `json:"errorCode,omitempty"`
  1876  	// Message: Output only. Description of the operation.
  1877  	Message string `json:"message,omitempty"`
  1878  	// RequestId: Output only. Unique ID of the request.
  1879  	RequestId string `json:"requestId,omitempty"`
  1880  	// Status: Output only. Status of the operation.
  1881  	Status string `json:"status,omitempty"`
  1882  
  1883  	// ServerResponse contains the HTTP response code and headers from the server.
  1884  	googleapi.ServerResponse `json:"-"`
  1885  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  1886  	// include in API requests. By default, fields with empty or default values are
  1887  	// omitted from API requests. See
  1888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1889  	// details.
  1890  	ForceSendFields []string `json:"-"`
  1891  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  1892  	// with the JSON null value. By default, fields with empty values are omitted
  1893  	// from API requests. See
  1894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1895  	NullFields []string `json:"-"`
  1896  }
  1897  
  1898  func (s *GoogleCloudApigeeV1ApiDocDocumentationResponse) MarshalJSON() ([]byte, error) {
  1899  	type NoMethod GoogleCloudApigeeV1ApiDocDocumentationResponse
  1900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1901  }
  1902  
  1903  // GoogleCloudApigeeV1ApiDocResponse: The catalog item resource wrapped with
  1904  // response status, error_code, etc.
  1905  type GoogleCloudApigeeV1ApiDocResponse struct {
  1906  	// Data: The catalog item resource.
  1907  	Data *GoogleCloudApigeeV1ApiDoc `json:"data,omitempty"`
  1908  	// ErrorCode: Unique error code for the request, if any.
  1909  	ErrorCode string `json:"errorCode,omitempty"`
  1910  	// Message: Description of the operation.
  1911  	Message string `json:"message,omitempty"`
  1912  	// RequestId: Unique ID of the request.
  1913  	RequestId string `json:"requestId,omitempty"`
  1914  	// Status: Status of the operation.
  1915  	Status string `json:"status,omitempty"`
  1916  
  1917  	// ServerResponse contains the HTTP response code and headers from the server.
  1918  	googleapi.ServerResponse `json:"-"`
  1919  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  1920  	// include in API requests. By default, fields with empty or default values are
  1921  	// omitted from API requests. See
  1922  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1923  	// details.
  1924  	ForceSendFields []string `json:"-"`
  1925  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  1926  	// with the JSON null value. By default, fields with empty values are omitted
  1927  	// from API requests. See
  1928  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1929  	NullFields []string `json:"-"`
  1930  }
  1931  
  1932  func (s *GoogleCloudApigeeV1ApiDocResponse) MarshalJSON() ([]byte, error) {
  1933  	type NoMethod GoogleCloudApigeeV1ApiDocResponse
  1934  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1935  }
  1936  
  1937  type GoogleCloudApigeeV1ApiProduct struct {
  1938  	// ApiResources: Comma-separated list of API resources to be bundled in the API
  1939  	// product. By default, the resource paths are mapped from the
  1940  	// `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI
  1941  	// fragment following the ProxyEndpoint base path. For example, if the
  1942  	// `apiResources` element is defined to be `/forecastrss` and the base path
  1943  	// defined for the API proxy is `/weather`, then only requests to
  1944  	// `/weather/forecastrss` are permitted by the API product. You can select a
  1945  	// specific path, or you can select all subpaths with the following wildcard: -
  1946  	// `/**`: Indicates that all sub-URIs are included. - `/*` : Indicates that
  1947  	// only URIs one level down are included. By default, / supports the same
  1948  	// resources as /** as well as the base path defined by the API proxy. For
  1949  	// example, if the base path of the API proxy is `/v1/weatherapikey`, then the
  1950  	// API product supports requests to `/v1/weatherapikey` and to any sub-URIs,
  1951  	// such as `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and
  1952  	// so on. For more information, see Managing API products.
  1953  	ApiResources []string `json:"apiResources,omitempty"`
  1954  	// ApprovalType: Flag that specifies how API keys are approved to access the
  1955  	// APIs defined by the API product. If set to `manual`, the consumer key is
  1956  	// generated and returned in "pending" state. In this case, the API keys won't
  1957  	// work until they have been explicitly approved. If set to `auto`, the
  1958  	// consumer key is generated and returned in "approved" state and can be used
  1959  	// immediately. **Note:** Typically, `auto` is used to provide access to free
  1960  	// or trial API products that provide limited quota or capabilities.
  1961  	ApprovalType string `json:"approvalType,omitempty"`
  1962  	// Attributes: Array of attributes that may be used to extend the default API
  1963  	// product profile with customer-specific metadata. You can specify a maximum
  1964  	// of 18 attributes. Use this property to specify the access level of the API
  1965  	// product as either `public`, `private`, or `internal`. Only products marked
  1966  	// `public` are available to developers in the Apigee developer portal. For
  1967  	// example, you can set a product to `internal` while it is in development and
  1968  	// then change access to `public` when it is ready to release on the portal.
  1969  	// API products marked as `private` do not appear on the portal, but can be
  1970  	// accessed by external developers.
  1971  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  1972  	// CreatedAt: Response only. Creation time of this environment as milliseconds
  1973  	// since epoch.
  1974  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  1975  	// Description: Description of the API product. Include key information about
  1976  	// the API product that is not captured by other fields.
  1977  	Description string `json:"description,omitempty"`
  1978  	// DisplayName: Name displayed in the UI or developer portal to developers
  1979  	// registering for API access.
  1980  	DisplayName string `json:"displayName,omitempty"`
  1981  	// Environments: Comma-separated list of environment names to which the API
  1982  	// product is bound. Requests to environments that are not listed are rejected.
  1983  	// By specifying one or more environments, you can bind the resources listed in
  1984  	// the API product to a specific environment, preventing developers from
  1985  	// accessing those resources through API proxies deployed in another
  1986  	// environment. This setting is used, for example, to prevent resources
  1987  	// associated with API proxies in `prod` from being accessed by API proxies
  1988  	// deployed in `test`.
  1989  	Environments []string `json:"environments,omitempty"`
  1990  	// GraphqlOperationGroup: Configuration used to group Apigee proxies or remote
  1991  	// services with graphQL operation name, graphQL operation type and quotas.
  1992  	// This grouping allows us to precisely set quota for a particular combination
  1993  	// of graphQL name and operation type for a particular proxy request. If
  1994  	// graphQL name is not set, this would imply quota will be applied on all
  1995  	// graphQL requests matching the operation type.
  1996  	GraphqlOperationGroup *GoogleCloudApigeeV1GraphQLOperationGroup `json:"graphqlOperationGroup,omitempty"`
  1997  	// GrpcOperationGroup: Optional. Configuration used to group Apigee proxies
  1998  	// with gRPC services and method names. This grouping allows us to set quota
  1999  	// for a particular proxy with the gRPC service name and method. If a method
  2000  	// name is not set, this implies quota and authorization are applied to all
  2001  	// gRPC methods implemented by that proxy for that particular gRPC service.
  2002  	GrpcOperationGroup *GoogleCloudApigeeV1GrpcOperationGroup `json:"grpcOperationGroup,omitempty"`
  2003  	// LastModifiedAt: Response only. Modified time of this environment as
  2004  	// milliseconds since epoch.
  2005  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  2006  	// Name: Internal name of the API product. Characters you can use in the name
  2007  	// are restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name cannot be
  2008  	// edited when updating the API product.
  2009  	Name string `json:"name,omitempty"`
  2010  	// OperationGroup: Configuration used to group Apigee proxies or remote
  2011  	// services with resources, method types, and quotas. The resource refers to
  2012  	// the resource URI (excluding the base path). With this grouping, the API
  2013  	// product creator is able to fine-tune and give precise control over which
  2014  	// REST methods have access to specific resources and how many calls can be
  2015  	// made (using the `quota` setting). **Note:** The `api_resources` setting
  2016  	// cannot be specified for both the API product and operation group; otherwise
  2017  	// the call will fail.
  2018  	OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"`
  2019  	// Proxies: Comma-separated list of API proxy names to which this API product
  2020  	// is bound. By specifying API proxies, you can associate resources in the API
  2021  	// product with specific API proxies, preventing developers from accessing
  2022  	// those resources through other API proxies. Apigee rejects requests to API
  2023  	// proxies that are not listed. **Note:** The API proxy names must already
  2024  	// exist in the specified environment as they will be validated upon creation.
  2025  	Proxies []string `json:"proxies,omitempty"`
  2026  	// Quota: Number of request messages permitted per app by this API product for
  2027  	// the specified `quotaInterval` and `quotaTimeUnit`. For example, a `quota` of
  2028  	// 50, for a `quotaInterval` of 12 and a `quotaTimeUnit` of hours means 50
  2029  	// requests are allowed every 12 hours.
  2030  	Quota string `json:"quota,omitempty"`
  2031  	// QuotaCounterScope: Scope of the quota decides how the quota counter gets
  2032  	// applied and evaluate for quota violation. If the Scope is set as PROXY, then
  2033  	// all the operations defined for the APIproduct that are associated with the
  2034  	// same proxy will share the same quota counter set at the APIproduct level,
  2035  	// making it a global counter at a proxy level. If the Scope is set as
  2036  	// OPERATION, then each operations get the counter set at the API product
  2037  	// dedicated, making it a local counter. Note that, the QuotaCounterScope
  2038  	// applies only when an operation does not have dedicated quota set for itself.
  2039  	//
  2040  	// Possible values:
  2041  	//   "QUOTA_COUNTER_SCOPE_UNSPECIFIED" - When quota is not explicitly defined
  2042  	// for each operation(REST/GraphQL), the limits set at product level will be
  2043  	// used as a local counter for quota evaluation by all the operations,
  2044  	// independent of proxy association.
  2045  	//   "PROXY" - When quota is not explicitly defined for each
  2046  	// operation(REST/GraphQL), set at product level will be used as a global
  2047  	// counter for quota evaluation by all the operations associated with a
  2048  	// particular proxy.
  2049  	//   "OPERATION" - When quota is not explicitly defined for each
  2050  	// operation(REST/GraphQL), the limits set at product level will be used as a
  2051  	// local counter for quota evaluation by all the operations, independent of
  2052  	// proxy association. This behavior mimics the same as
  2053  	// QUOTA_COUNTER_SCOPE_UNSPECIFIED.
  2054  	QuotaCounterScope string `json:"quotaCounterScope,omitempty"`
  2055  	// QuotaInterval: Time interval over which the number of request messages is
  2056  	// calculated.
  2057  	QuotaInterval string `json:"quotaInterval,omitempty"`
  2058  	// QuotaTimeUnit: Time unit defined for the `quotaInterval`. Valid values
  2059  	// include `minute`, `hour`, `day`, or `month`.
  2060  	QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
  2061  	// Scopes: Comma-separated list of OAuth scopes that are validated at runtime.
  2062  	// Apigee validates that the scopes in any access token presented match the
  2063  	// scopes defined in the OAuth policy associated with the API product.
  2064  	Scopes []string `json:"scopes,omitempty"`
  2065  
  2066  	// ServerResponse contains the HTTP response code and headers from the server.
  2067  	googleapi.ServerResponse `json:"-"`
  2068  	// ForceSendFields is a list of field names (e.g. "ApiResources") to
  2069  	// unconditionally include in API requests. By default, fields with empty or
  2070  	// default values are omitted from API requests. See
  2071  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2072  	// details.
  2073  	ForceSendFields []string `json:"-"`
  2074  	// NullFields is a list of field names (e.g. "ApiResources") to include in API
  2075  	// requests with the JSON null value. By default, fields with empty values are
  2076  	// omitted from API requests. See
  2077  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2078  	NullFields []string `json:"-"`
  2079  }
  2080  
  2081  func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
  2082  	type NoMethod GoogleCloudApigeeV1ApiProduct
  2083  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2084  }
  2085  
  2086  type GoogleCloudApigeeV1ApiProductRef struct {
  2087  	// Apiproduct: Name of the API product.
  2088  	Apiproduct string `json:"apiproduct,omitempty"`
  2089  	// Status: Status of the API product. Valid values are `approved` or `revoked`.
  2090  	Status string `json:"status,omitempty"`
  2091  	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
  2092  	// unconditionally include in API requests. By default, fields with empty or
  2093  	// default values are omitted from API requests. See
  2094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2095  	// details.
  2096  	ForceSendFields []string `json:"-"`
  2097  	// NullFields is a list of field names (e.g. "Apiproduct") to include in API
  2098  	// requests with the JSON null value. By default, fields with empty values are
  2099  	// omitted from API requests. See
  2100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2101  	NullFields []string `json:"-"`
  2102  }
  2103  
  2104  func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
  2105  	type NoMethod GoogleCloudApigeeV1ApiProductRef
  2106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2107  }
  2108  
  2109  // GoogleCloudApigeeV1ApiProxy: Metadata describing the API proxy
  2110  type GoogleCloudApigeeV1ApiProxy struct {
  2111  	// ApiProxyType: Output only. The type of the API proxy.
  2112  	//
  2113  	// Possible values:
  2114  	//   "API_PROXY_TYPE_UNSPECIFIED" - API proxy type not specified.
  2115  	//   "PROGRAMMABLE" - Programmable API Proxies enable you to develop APIs with
  2116  	// highly flexible behavior using bundled policy configuration and one or more
  2117  	// programming languages to describe complex sequential and/or conditional
  2118  	// flows of logic.
  2119  	//   "CONFIGURABLE" - Configurable API Proxies enable you to develop efficient
  2120  	// APIs using simple configuration while complex execution control flow logic
  2121  	// is handled by Apigee. This type only works with the ARCHIVE deployment type
  2122  	// and cannot be combined with the PROXY deployment type.
  2123  	ApiProxyType string `json:"apiProxyType,omitempty"`
  2124  	// Labels: User labels applied to this API Proxy.
  2125  	Labels map[string]string `json:"labels,omitempty"`
  2126  	// LatestRevisionId: Output only. The id of the most recently created revision
  2127  	// for this api proxy.
  2128  	LatestRevisionId string `json:"latestRevisionId,omitempty"`
  2129  	// MetaData: Output only. Metadata describing the API proxy.
  2130  	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
  2131  	// Name: Output only. Name of the API proxy.
  2132  	Name string `json:"name,omitempty"`
  2133  	// ReadOnly: Output only. Whether this proxy is read-only. A read-only proxy
  2134  	// cannot have new revisions created through calls to CreateApiProxyRevision. A
  2135  	// proxy is read-only if it was generated by an archive.
  2136  	ReadOnly bool `json:"readOnly,omitempty"`
  2137  	// Revision: Output only. List of revisions defined for the API proxy.
  2138  	Revision []string `json:"revision,omitempty"`
  2139  
  2140  	// ServerResponse contains the HTTP response code and headers from the server.
  2141  	googleapi.ServerResponse `json:"-"`
  2142  	// ForceSendFields is a list of field names (e.g. "ApiProxyType") to
  2143  	// unconditionally include in API requests. By default, fields with empty or
  2144  	// default values are omitted from API requests. See
  2145  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2146  	// details.
  2147  	ForceSendFields []string `json:"-"`
  2148  	// NullFields is a list of field names (e.g. "ApiProxyType") to include in API
  2149  	// requests with the JSON null value. By default, fields with empty values are
  2150  	// omitted from API requests. See
  2151  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2152  	NullFields []string `json:"-"`
  2153  }
  2154  
  2155  func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
  2156  	type NoMethod GoogleCloudApigeeV1ApiProxy
  2157  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2158  }
  2159  
  2160  // GoogleCloudApigeeV1ApiProxyRevision: API proxy revision.
  2161  type GoogleCloudApigeeV1ApiProxyRevision struct {
  2162  	// Archive: Output only. The archive that generated this proxy revision. This
  2163  	// field is only present on proxy revisions that were generated by an archive.
  2164  	// Proxies generated by archives cannot be updated, deleted, or deployed to
  2165  	// other environments. Format:
  2166  	// `organizations/*/environments/*/archiveDeployments/*`
  2167  	Archive string `json:"archive,omitempty"`
  2168  	// Basepaths: Base URL of the API proxy.
  2169  	Basepaths []string `json:"basepaths,omitempty"`
  2170  	// ConfigurationVersion: Version of the API proxy configuration schema to which
  2171  	// the API proxy conforms. Currently, the only supported value is 4.0
  2172  	// (`majorVersion.minorVersion`). This setting may be used in the future to
  2173  	// track the evolution of the API proxy format.
  2174  	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
  2175  	// ContextInfo: Revision number, app name, and organization for the API proxy.
  2176  	ContextInfo string `json:"contextInfo,omitempty"`
  2177  	// CreatedAt: Time that the API proxy revision was created in milliseconds
  2178  	// since epoch.
  2179  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  2180  	// Description: Description of the API proxy revision.
  2181  	Description string `json:"description,omitempty"`
  2182  	// DisplayName: Human-readable name of the API proxy.
  2183  	DisplayName string `json:"displayName,omitempty"`
  2184  	// EntityMetaDataAsProperties: Metadata describing the API proxy revision as a
  2185  	// key-value map.
  2186  	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
  2187  	// HasExtensiblePolicy: Output only. This field will be marked as true if
  2188  	// revision contains any policies marked as extensible.
  2189  	HasExtensiblePolicy bool `json:"hasExtensiblePolicy,omitempty"`
  2190  	// IntegrationEndpoints: List of IntegrationEndpoints in the
  2191  	// '/integration-endpoints' directory of the API proxy. This is a 'manifest'
  2192  	// setting designed to provide visibility into the contents of the API proxy.
  2193  	IntegrationEndpoints []string `json:"integrationEndpoints,omitempty"`
  2194  	// LastModifiedAt: Time that the API proxy revision was last modified in
  2195  	// milliseconds since epoch.
  2196  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  2197  	// Name: Name of the API proxy.
  2198  	Name string `json:"name,omitempty"`
  2199  	// Policies: List of policy names included in the API proxy revision..
  2200  	Policies []string `json:"policies,omitempty"`
  2201  	// Proxies: List of proxy names included in the API proxy revision.
  2202  	Proxies []string `json:"proxies,omitempty"`
  2203  	// ProxyEndpoints: List of ProxyEndpoints in the `/proxies` directory of the
  2204  	// API proxy. Typically, this element is included only when the API proxy was
  2205  	// created using the Edge UI. This is a 'manifest' setting designed to provide
  2206  	// visibility into the contents of the API proxy.
  2207  	ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
  2208  	// ResourceFiles: List of resource files included in the API proxy revision.
  2209  	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
  2210  	// Resources: List of the resources included in the API proxy revision
  2211  	// formatted as "{type}://{name}".
  2212  	Resources []string `json:"resources,omitempty"`
  2213  	// Revision: API proxy revision.
  2214  	Revision string `json:"revision,omitempty"`
  2215  	// SharedFlows: List of the shared flows included in the API proxy revision.
  2216  	SharedFlows []string `json:"sharedFlows,omitempty"`
  2217  	// Spec: OpenAPI Specification that is associated with the API proxy. The value
  2218  	// is set to a URL or to a path in the specification store.
  2219  	Spec string `json:"spec,omitempty"`
  2220  	// TargetEndpoints: List of TargetEndpoints in the `/targets` directory of the
  2221  	// API proxy. Typically, this element is included only when the API proxy was
  2222  	// created using the Edge UI. This is a 'manifest' setting designed to provide
  2223  	// visibility into the contents of the API proxy.
  2224  	TargetEndpoints []string `json:"targetEndpoints,omitempty"`
  2225  	// TargetServers: List of TargetServers referenced in any TargetEndpoint in the
  2226  	// API proxy. Typically, you will see this element only when the API proxy was
  2227  	// created using the Edge UI. This is a 'manifest' setting designed to provide
  2228  	// visibility into the contents of the API proxy.
  2229  	TargetServers []string `json:"targetServers,omitempty"`
  2230  	// Targets: List of the targets included in the API proxy revision.
  2231  	Targets []string `json:"targets,omitempty"`
  2232  	// Teams: List of the teams included in the API proxy revision.
  2233  	Teams []string `json:"teams,omitempty"`
  2234  	// Type: Type. Set to `Application`. Maintained for compatibility with the
  2235  	// Apigee Edge API.
  2236  	Type string `json:"type,omitempty"`
  2237  
  2238  	// ServerResponse contains the HTTP response code and headers from the server.
  2239  	googleapi.ServerResponse `json:"-"`
  2240  	// ForceSendFields is a list of field names (e.g. "Archive") to unconditionally
  2241  	// include in API requests. By default, fields with empty or default values are
  2242  	// omitted from API requests. See
  2243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2244  	// details.
  2245  	ForceSendFields []string `json:"-"`
  2246  	// NullFields is a list of field names (e.g. "Archive") to include in API
  2247  	// requests with the JSON null value. By default, fields with empty values are
  2248  	// omitted from API requests. See
  2249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2250  	NullFields []string `json:"-"`
  2251  }
  2252  
  2253  func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
  2254  	type NoMethod GoogleCloudApigeeV1ApiProxyRevision
  2255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2256  }
  2257  
  2258  // GoogleCloudApigeeV1ApiSecurityConfig: Configurations of the API Security
  2259  // add-on.
  2260  type GoogleCloudApigeeV1ApiSecurityConfig struct {
  2261  	// Enabled: Flag that specifies whether the API security add-on is enabled.
  2262  	Enabled bool `json:"enabled,omitempty"`
  2263  	// ExpiresAt: Output only. Time at which the API Security add-on expires in in
  2264  	// milliseconds since epoch. If unspecified, the add-on will never expire.
  2265  	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
  2266  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  2267  	// include in API requests. By default, fields with empty or default values are
  2268  	// omitted from API requests. See
  2269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2270  	// details.
  2271  	ForceSendFields []string `json:"-"`
  2272  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  2273  	// requests with the JSON null value. By default, fields with empty values are
  2274  	// omitted from API requests. See
  2275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2276  	NullFields []string `json:"-"`
  2277  }
  2278  
  2279  func (s *GoogleCloudApigeeV1ApiSecurityConfig) MarshalJSON() ([]byte, error) {
  2280  	type NoMethod GoogleCloudApigeeV1ApiSecurityConfig
  2281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2282  }
  2283  
  2284  // GoogleCloudApigeeV1ApiSecurityRuntimeConfig: Response for
  2285  // GetApiSecurityRuntimeConfig[EnvironmentService.GetApiSecurityRuntimeConfig].
  2286  type GoogleCloudApigeeV1ApiSecurityRuntimeConfig struct {
  2287  	// Location: A list of up to 5 Cloud Storage Blobs that contain
  2288  	// SecurityActions.
  2289  	Location []string `json:"location,omitempty"`
  2290  	// Name: Name of the environment API Security Runtime configuration resource.
  2291  	// Format: `organizations/{org}/environments/{env}/apiSecurityRuntimeConfig`
  2292  	Name string `json:"name,omitempty"`
  2293  	// RevisionId: Revision ID of the API Security Runtime configuration. The
  2294  	// higher the value, the more recently the configuration was deployed.
  2295  	RevisionId int64 `json:"revisionId,omitempty,string"`
  2296  	// Uid: Unique ID for the API Security Runtime configuration. The ID will only
  2297  	// change if the environment is deleted and recreated.
  2298  	Uid string `json:"uid,omitempty"`
  2299  	// UpdateTime: Time that the API Security Runtime configuration was updated.
  2300  	UpdateTime string `json:"updateTime,omitempty"`
  2301  
  2302  	// ServerResponse contains the HTTP response code and headers from the server.
  2303  	googleapi.ServerResponse `json:"-"`
  2304  	// ForceSendFields is a list of field names (e.g. "Location") to
  2305  	// unconditionally include in API requests. By default, fields with empty or
  2306  	// default values are omitted from API requests. See
  2307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2308  	// details.
  2309  	ForceSendFields []string `json:"-"`
  2310  	// NullFields is a list of field names (e.g. "Location") to include in API
  2311  	// requests with the JSON null value. By default, fields with empty values are
  2312  	// omitted from API requests. See
  2313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2314  	NullFields []string `json:"-"`
  2315  }
  2316  
  2317  func (s *GoogleCloudApigeeV1ApiSecurityRuntimeConfig) MarshalJSON() ([]byte, error) {
  2318  	type NoMethod GoogleCloudApigeeV1ApiSecurityRuntimeConfig
  2319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2320  }
  2321  
  2322  type GoogleCloudApigeeV1App struct {
  2323  	// ApiProducts: List of API products associated with the app.
  2324  	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
  2325  	// AppGroup: Name of the AppGroup
  2326  	AppGroup string `json:"appGroup,omitempty"`
  2327  	// AppId: ID of the app.
  2328  	AppId string `json:"appId,omitempty"`
  2329  	// Attributes: List of attributes.
  2330  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  2331  	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
  2332  	// communicate authorization codes back to apps.
  2333  	CallbackUrl string `json:"callbackUrl,omitempty"`
  2334  	// CompanyName: Name of the company that owns the app.
  2335  	CompanyName string `json:"companyName,omitempty"`
  2336  	// CreatedAt: Output only. Unix time when the app was created.
  2337  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  2338  	// Credentials: Output only. Set of credentials for the app. Credentials are
  2339  	// API key/secret pairs associated with API products.
  2340  	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
  2341  	// DeveloperEmail: Email of the developer.
  2342  	DeveloperEmail string `json:"developerEmail,omitempty"`
  2343  	// DeveloperId: ID of the developer.
  2344  	DeveloperId string `json:"developerId,omitempty"`
  2345  	// KeyExpiresIn: Duration, in milliseconds, of the consumer key that will be
  2346  	// generated for the app. The default value, -1, indicates an infinite validity
  2347  	// period. Once set, the expiration can't be updated. json key: keyExpiresIn
  2348  	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
  2349  	// LastModifiedAt: Output only. Last modified time as milliseconds since epoch.
  2350  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  2351  	// Name: Name of the app.
  2352  	Name string `json:"name,omitempty"`
  2353  	// Scopes: Scopes to apply to the app. The specified scope names must already
  2354  	// exist on the API product that you associate with the app.
  2355  	Scopes []string `json:"scopes,omitempty"`
  2356  	// Status: Status of the credential.
  2357  	Status string `json:"status,omitempty"`
  2358  
  2359  	// ServerResponse contains the HTTP response code and headers from the server.
  2360  	googleapi.ServerResponse `json:"-"`
  2361  	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
  2362  	// unconditionally include in API requests. By default, fields with empty or
  2363  	// default values are omitted from API requests. See
  2364  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2365  	// details.
  2366  	ForceSendFields []string `json:"-"`
  2367  	// NullFields is a list of field names (e.g. "ApiProducts") to include in API
  2368  	// requests with the JSON null value. By default, fields with empty values are
  2369  	// omitted from API requests. See
  2370  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2371  	NullFields []string `json:"-"`
  2372  }
  2373  
  2374  func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
  2375  	type NoMethod GoogleCloudApigeeV1App
  2376  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2377  }
  2378  
  2379  // GoogleCloudApigeeV1AppGroup: AppGroup contains the request/response fields
  2380  // representing the logical grouping of apps. Note that appgroup_id,
  2381  // create_time and update_time cannot be changed by the user, and gets updated
  2382  // by the system. The name and the organization once provided cannot be edited
  2383  // subsequently.
  2384  type GoogleCloudApigeeV1AppGroup struct {
  2385  	// AppGroupId: Output only. Internal identifier that cannot be edited
  2386  	AppGroupId string `json:"appGroupId,omitempty"`
  2387  	// Attributes: A list of attributes
  2388  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  2389  	// ChannelId: channel identifier identifies the owner maintaing this grouping.
  2390  	ChannelId string `json:"channelId,omitempty"`
  2391  	// ChannelUri: A reference to the associated storefront/marketplace.
  2392  	ChannelUri string `json:"channelUri,omitempty"`
  2393  	// CreatedAt: Output only. Created time as milliseconds since epoch.
  2394  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  2395  	// DisplayName: app group name displayed in the UI
  2396  	DisplayName string `json:"displayName,omitempty"`
  2397  	// LastModifiedAt: Output only. Modified time as milliseconds since epoch.
  2398  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  2399  	// Name: Immutable. Name of the AppGroup. Characters you can use in the name
  2400  	// are restricted to: A-Z0-9._\-$ %.
  2401  	Name string `json:"name,omitempty"`
  2402  	// Organization: Immutable. the org the app group is created
  2403  	Organization string `json:"organization,omitempty"`
  2404  	// Status: Valid values are `active` or `inactive`. Note that the status of the
  2405  	// AppGroup should be updated via UpdateAppGroupRequest by setting the action
  2406  	// as `active` or `inactive`.
  2407  	Status string `json:"status,omitempty"`
  2408  
  2409  	// ServerResponse contains the HTTP response code and headers from the server.
  2410  	googleapi.ServerResponse `json:"-"`
  2411  	// ForceSendFields is a list of field names (e.g. "AppGroupId") to
  2412  	// unconditionally include in API requests. By default, fields with empty or
  2413  	// default values are omitted from API requests. See
  2414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2415  	// details.
  2416  	ForceSendFields []string `json:"-"`
  2417  	// NullFields is a list of field names (e.g. "AppGroupId") to include in API
  2418  	// requests with the JSON null value. By default, fields with empty values are
  2419  	// omitted from API requests. See
  2420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2421  	NullFields []string `json:"-"`
  2422  }
  2423  
  2424  func (s *GoogleCloudApigeeV1AppGroup) MarshalJSON() ([]byte, error) {
  2425  	type NoMethod GoogleCloudApigeeV1AppGroup
  2426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2427  }
  2428  
  2429  // GoogleCloudApigeeV1AppGroupApp: Response for
  2430  // [GetAppGroupApp].[AppGroupApps.GetAppGroupApp],
  2431  // [CreateAppGroupAppRequest].[AppGroupApp.CreateAppGroupAppRequest] and
  2432  // [DeleteAppGroupApp].[AppGroupApp.DeleteAppGroupApp]
  2433  type GoogleCloudApigeeV1AppGroupApp struct {
  2434  	// ApiProducts: List of API products associated with the AppGroup app.
  2435  	ApiProducts []string `json:"apiProducts,omitempty"`
  2436  	// AppGroup: Immutable. Name of the parent AppGroup whose resource name format
  2437  	// is of syntax (organizations/*/appgroups/*).
  2438  	AppGroup string `json:"appGroup,omitempty"`
  2439  	// AppId: Immutable. ID of the AppGroup app.
  2440  	AppId string `json:"appId,omitempty"`
  2441  	// Attributes: List of attributes for the AppGroup app.
  2442  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  2443  	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
  2444  	// communicate authorization codes back to AppGroup apps.
  2445  	CallbackUrl string `json:"callbackUrl,omitempty"`
  2446  	// CreatedAt: Output only. Time the AppGroup app was created in milliseconds
  2447  	// since epoch.
  2448  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  2449  	// Credentials: Output only. Set of credentials for the AppGroup app consisting
  2450  	// of the consumer key/secret pairs associated with the API products.
  2451  	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
  2452  	// KeyExpiresIn: Immutable. Expiration time, in seconds, for the consumer key
  2453  	// that is generated for the AppGroup app. If not set or left to the default
  2454  	// value of `-1`, the API key never expires. The expiration time can't be
  2455  	// updated after it is set.
  2456  	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
  2457  	// LastModifiedAt: Output only. Time the AppGroup app was modified in
  2458  	// milliseconds since epoch.
  2459  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  2460  	// Name: Immutable. Name of the AppGroup app whose resource name format is of
  2461  	// syntax (organizations/*/appgroups/*/apps/*).
  2462  	Name string `json:"name,omitempty"`
  2463  	// Scopes: Scopes to apply to the AppGroup app. The specified scopes must
  2464  	// already exist for the API product that you associate with the AppGroup app.
  2465  	Scopes []string `json:"scopes,omitempty"`
  2466  	// Status: Status of the App. Valid values include `approved` or `revoked`.
  2467  	Status string `json:"status,omitempty"`
  2468  
  2469  	// ServerResponse contains the HTTP response code and headers from the server.
  2470  	googleapi.ServerResponse `json:"-"`
  2471  	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
  2472  	// unconditionally include in API requests. By default, fields with empty or
  2473  	// default values are omitted from API requests. See
  2474  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2475  	// details.
  2476  	ForceSendFields []string `json:"-"`
  2477  	// NullFields is a list of field names (e.g. "ApiProducts") to include in API
  2478  	// requests with the JSON null value. By default, fields with empty values are
  2479  	// omitted from API requests. See
  2480  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2481  	NullFields []string `json:"-"`
  2482  }
  2483  
  2484  func (s *GoogleCloudApigeeV1AppGroupApp) MarshalJSON() ([]byte, error) {
  2485  	type NoMethod GoogleCloudApigeeV1AppGroupApp
  2486  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2487  }
  2488  
  2489  // GoogleCloudApigeeV1AppGroupAppKey: AppGroupAppKey contains all the
  2490  // information associated with the credentials.
  2491  type GoogleCloudApigeeV1AppGroupAppKey struct {
  2492  	// ApiProducts: Output only. List of API products and its status for which the
  2493  	// credential can be used. **Note**: Use UpdateAppGroupAppKeyApiProductRequest
  2494  	// API to make the association after the consumer key and secret are created.
  2495  	ApiProducts []*GoogleCloudApigeeV1APIProductAssociation `json:"apiProducts,omitempty"`
  2496  	// Attributes: List of attributes associated with the credential.
  2497  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  2498  	// ConsumerKey: Immutable. Consumer key.
  2499  	ConsumerKey string `json:"consumerKey,omitempty"`
  2500  	// ConsumerSecret: Secret key.
  2501  	ConsumerSecret string `json:"consumerSecret,omitempty"`
  2502  	// ExpiresAt: Output only. Time the AppGroup app expires in milliseconds since
  2503  	// epoch.
  2504  	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
  2505  	// ExpiresInSeconds: Immutable. Expiration time, in seconds, for the consumer
  2506  	// key. If not set or left to the default value of `-1`, the API key never
  2507  	// expires. The expiration time can't be updated after it is set.
  2508  	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
  2509  	// IssuedAt: Output only. Time the AppGroup app was created in milliseconds
  2510  	// since epoch.
  2511  	IssuedAt int64 `json:"issuedAt,omitempty,string"`
  2512  	// Scopes: Scopes to apply to the app. The specified scope names must already
  2513  	// be defined for the API product that you associate with the app.
  2514  	Scopes []string `json:"scopes,omitempty"`
  2515  	// Status: Status of the credential. Valid values include `approved` or
  2516  	// `revoked`.
  2517  	Status string `json:"status,omitempty"`
  2518  
  2519  	// ServerResponse contains the HTTP response code and headers from the server.
  2520  	googleapi.ServerResponse `json:"-"`
  2521  	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
  2522  	// unconditionally include in API requests. By default, fields with empty or
  2523  	// default values are omitted from API requests. See
  2524  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2525  	// details.
  2526  	ForceSendFields []string `json:"-"`
  2527  	// NullFields is a list of field names (e.g. "ApiProducts") to include in API
  2528  	// requests with the JSON null value. By default, fields with empty values are
  2529  	// omitted from API requests. See
  2530  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2531  	NullFields []string `json:"-"`
  2532  }
  2533  
  2534  func (s *GoogleCloudApigeeV1AppGroupAppKey) MarshalJSON() ([]byte, error) {
  2535  	type NoMethod GoogleCloudApigeeV1AppGroupAppKey
  2536  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2537  }
  2538  
  2539  // GoogleCloudApigeeV1ArchiveDeployment: Archive Deployment information.
  2540  type GoogleCloudApigeeV1ArchiveDeployment struct {
  2541  	// CreatedAt: Output only. The time at which the Archive Deployment was created
  2542  	// in milliseconds since the epoch.
  2543  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  2544  	// GcsUri: Input only. The Google Cloud Storage signed URL returned from
  2545  	// GenerateUploadUrl and used to upload the Archive zip file.
  2546  	GcsUri string `json:"gcsUri,omitempty"`
  2547  	// Labels: User-supplied key-value pairs used to organize ArchiveDeployments.
  2548  	// Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
  2549  	// of maximum 128 bytes, and must conform to the following PCRE regular
  2550  	// expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63
  2551  	// characters long, have a UTF-8 encoding of maximum 128 bytes, and must
  2552  	// conform to the following PCRE regular expression:
  2553  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a
  2554  	// given store.
  2555  	Labels map[string]string `json:"labels,omitempty"`
  2556  	// Name: Name of the Archive Deployment in the following format:
  2557  	// `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
  2558  	Name string `json:"name,omitempty"`
  2559  	// Operation: Output only. A reference to the LRO that created this Archive
  2560  	// Deployment in the following format: `organizations/{org}/operations/{id}`
  2561  	Operation string `json:"operation,omitempty"`
  2562  	// UpdatedAt: Output only. The time at which the Archive Deployment was updated
  2563  	// in milliseconds since the epoch.
  2564  	UpdatedAt int64 `json:"updatedAt,omitempty,string"`
  2565  
  2566  	// ServerResponse contains the HTTP response code and headers from the server.
  2567  	googleapi.ServerResponse `json:"-"`
  2568  	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
  2569  	// unconditionally include in API requests. By default, fields with empty or
  2570  	// default values are omitted from API requests. See
  2571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2572  	// details.
  2573  	ForceSendFields []string `json:"-"`
  2574  	// NullFields is a list of field names (e.g. "CreatedAt") to include in API
  2575  	// requests with the JSON null value. By default, fields with empty values are
  2576  	// omitted from API requests. See
  2577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2578  	NullFields []string `json:"-"`
  2579  }
  2580  
  2581  func (s *GoogleCloudApigeeV1ArchiveDeployment) MarshalJSON() ([]byte, error) {
  2582  	type NoMethod GoogleCloudApigeeV1ArchiveDeployment
  2583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2584  }
  2585  
  2586  type GoogleCloudApigeeV1AsyncQuery struct {
  2587  	// Created: Creation time of the query.
  2588  	Created string `json:"created,omitempty"`
  2589  	// EnvgroupHostname: Hostname is available only when query is executed at host
  2590  	// level.
  2591  	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
  2592  	// Error: Error is set when query fails.
  2593  	Error string `json:"error,omitempty"`
  2594  	// ExecutionTime: ExecutionTime is available only after the query is completed.
  2595  	ExecutionTime string `json:"executionTime,omitempty"`
  2596  	// Name: Asynchronous Query Name.
  2597  	Name string `json:"name,omitempty"`
  2598  	// QueryParams: Contains information like metrics, dimenstions etc of the
  2599  	// AsyncQuery.
  2600  	QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
  2601  	// ReportDefinitionId: Asynchronous Report ID.
  2602  	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
  2603  	// Result: Result is available only after the query is completed.
  2604  	Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
  2605  	// ResultFileSize: ResultFileSize is available only after the query is
  2606  	// completed.
  2607  	ResultFileSize string `json:"resultFileSize,omitempty"`
  2608  	// ResultRows: ResultRows is available only after the query is completed.
  2609  	ResultRows int64 `json:"resultRows,omitempty,string"`
  2610  	// Self: Self link of the query. Example:
  2611  	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d
  2612  	// 0cb961bd` or following format if query is running at host level:
  2613  	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`
  2614  	Self string `json:"self,omitempty"`
  2615  	// State: Query state could be "enqueued", "running", "completed", "failed".
  2616  	State string `json:"state,omitempty"`
  2617  	// Updated: Last updated timestamp for the query.
  2618  	Updated string `json:"updated,omitempty"`
  2619  
  2620  	// ServerResponse contains the HTTP response code and headers from the server.
  2621  	googleapi.ServerResponse `json:"-"`
  2622  	// ForceSendFields is a list of field names (e.g. "Created") to unconditionally
  2623  	// include in API requests. By default, fields with empty or default values are
  2624  	// omitted from API requests. See
  2625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2626  	// details.
  2627  	ForceSendFields []string `json:"-"`
  2628  	// NullFields is a list of field names (e.g. "Created") to include in API
  2629  	// requests with the JSON null value. By default, fields with empty values are
  2630  	// omitted from API requests. See
  2631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2632  	NullFields []string `json:"-"`
  2633  }
  2634  
  2635  func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
  2636  	type NoMethod GoogleCloudApigeeV1AsyncQuery
  2637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2638  }
  2639  
  2640  type GoogleCloudApigeeV1AsyncQueryResult struct {
  2641  	// Expires: Query result will be unaccessable after this time.
  2642  	Expires string `json:"expires,omitempty"`
  2643  	// Self: Self link of the query results. Example:
  2644  	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d
  2645  	// 0cb961bd/result` or following format if query is running at host level:
  2646  	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
  2647  	// `
  2648  	Self string `json:"self,omitempty"`
  2649  	// ForceSendFields is a list of field names (e.g. "Expires") to unconditionally
  2650  	// include in API requests. By default, fields with empty or default values are
  2651  	// omitted from API requests. See
  2652  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2653  	// details.
  2654  	ForceSendFields []string `json:"-"`
  2655  	// NullFields is a list of field names (e.g. "Expires") to include in API
  2656  	// requests with the JSON null value. By default, fields with empty values are
  2657  	// omitted from API requests. See
  2658  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2659  	NullFields []string `json:"-"`
  2660  }
  2661  
  2662  func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
  2663  	type NoMethod GoogleCloudApigeeV1AsyncQueryResult
  2664  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2665  }
  2666  
  2667  type GoogleCloudApigeeV1AsyncQueryResultView struct {
  2668  	// Code: Error code when there is a failure.
  2669  	Code int64 `json:"code,omitempty"`
  2670  	// Error: Error message when there is a failure.
  2671  	Error string `json:"error,omitempty"`
  2672  	// Metadata: Metadata contains information like metrics, dimenstions etc of the
  2673  	// AsyncQuery.
  2674  	Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
  2675  	// Rows: Rows of query result. Each row is a JSON object. Example:
  2676  	// {sum(message_count): 1, developer_app: "(not set)",…}
  2677  	Rows []interface{} `json:"rows,omitempty"`
  2678  	// State: State of retrieving ResultView.
  2679  	State string `json:"state,omitempty"`
  2680  
  2681  	// ServerResponse contains the HTTP response code and headers from the server.
  2682  	googleapi.ServerResponse `json:"-"`
  2683  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2684  	// include in API requests. By default, fields with empty or default values are
  2685  	// omitted from API requests. See
  2686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2687  	// details.
  2688  	ForceSendFields []string `json:"-"`
  2689  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2690  	// with the JSON null value. By default, fields with empty values are omitted
  2691  	// from API requests. See
  2692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2693  	NullFields []string `json:"-"`
  2694  }
  2695  
  2696  func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
  2697  	type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
  2698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2699  }
  2700  
  2701  // GoogleCloudApigeeV1Attribute: Key-value pair to store extra metadata.
  2702  type GoogleCloudApigeeV1Attribute struct {
  2703  	// Name: API key of the attribute.
  2704  	Name string `json:"name,omitempty"`
  2705  	// Value: Value of the attribute.
  2706  	Value string `json:"value,omitempty"`
  2707  
  2708  	// ServerResponse contains the HTTP response code and headers from the server.
  2709  	googleapi.ServerResponse `json:"-"`
  2710  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2711  	// include in API requests. By default, fields with empty or default values are
  2712  	// omitted from API requests. See
  2713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2714  	// details.
  2715  	ForceSendFields []string `json:"-"`
  2716  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2717  	// with the JSON null value. By default, fields with empty values are omitted
  2718  	// from API requests. See
  2719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2720  	NullFields []string `json:"-"`
  2721  }
  2722  
  2723  func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
  2724  	type NoMethod GoogleCloudApigeeV1Attribute
  2725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2726  }
  2727  
  2728  type GoogleCloudApigeeV1Attributes struct {
  2729  	// Attribute: List of attributes.
  2730  	Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
  2731  
  2732  	// ServerResponse contains the HTTP response code and headers from the server.
  2733  	googleapi.ServerResponse `json:"-"`
  2734  	// ForceSendFields is a list of field names (e.g. "Attribute") to
  2735  	// unconditionally include in API requests. By default, fields with empty or
  2736  	// default values are omitted from API requests. See
  2737  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2738  	// details.
  2739  	ForceSendFields []string `json:"-"`
  2740  	// NullFields is a list of field names (e.g. "Attribute") to include in API
  2741  	// requests with the JSON null value. By default, fields with empty values are
  2742  	// omitted from API requests. See
  2743  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2744  	NullFields []string `json:"-"`
  2745  }
  2746  
  2747  func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
  2748  	type NoMethod GoogleCloudApigeeV1Attributes
  2749  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2750  }
  2751  
  2752  // GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest: Request for
  2753  // BatchComputeSecurityAssessmentResults.
  2754  type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest struct {
  2755  	// Include: Include only these resources.
  2756  	Include *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray `json:"include,omitempty"`
  2757  	// IncludeAllResources: Include all resources under the scope.
  2758  	IncludeAllResources *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll `json:"includeAllResources,omitempty"`
  2759  	// PageSize: Optional. The maximum number of results to return. The service may
  2760  	// return fewer than this value. If unspecified, at most 50 results will be
  2761  	// returned.
  2762  	PageSize int64 `json:"pageSize,omitempty"`
  2763  	// PageToken: Optional. A page token, received from a previous
  2764  	// `BatchComputeSecurityAssessmentResults` call. Provide this to retrieve the
  2765  	// subsequent page.
  2766  	PageToken string `json:"pageToken,omitempty"`
  2767  	// Profile: Required. Name of the profile that is used for computation.
  2768  	Profile string `json:"profile,omitempty"`
  2769  	// Scope: Required. Scope of the resources for the computation. For Apigee, the
  2770  	// environment is the scope of the resources.
  2771  	Scope string `json:"scope,omitempty"`
  2772  	// ForceSendFields is a list of field names (e.g. "Include") to unconditionally
  2773  	// include in API requests. By default, fields with empty or default values are
  2774  	// omitted from API requests. See
  2775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2776  	// details.
  2777  	ForceSendFields []string `json:"-"`
  2778  	// NullFields is a list of field names (e.g. "Include") to include in API
  2779  	// requests with the JSON null value. By default, fields with empty values are
  2780  	// omitted from API requests. See
  2781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2782  	NullFields []string `json:"-"`
  2783  }
  2784  
  2785  func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest) MarshalJSON() ([]byte, error) {
  2786  	type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest
  2787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2788  }
  2789  
  2790  // GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll:
  2791  // Message for include_all option.
  2792  type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll struct {
  2793  }
  2794  
  2795  // GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray:
  2796  //
  2797  //	An array of resource messages.
  2798  type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray struct {
  2799  	// Resources: Required. The array of resources. For Apigee, the proxies are
  2800  	// resources.
  2801  	Resources []*GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource `json:"resources,omitempty"`
  2802  	// ForceSendFields is a list of field names (e.g. "Resources") to
  2803  	// unconditionally include in API requests. By default, fields with empty or
  2804  	// default values are omitted from API requests. See
  2805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2806  	// details.
  2807  	ForceSendFields []string `json:"-"`
  2808  	// NullFields is a list of field names (e.g. "Resources") to include in API
  2809  	// requests with the JSON null value. By default, fields with empty values are
  2810  	// omitted from API requests. See
  2811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2812  	NullFields []string `json:"-"`
  2813  }
  2814  
  2815  func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray) MarshalJSON() ([]byte, error) {
  2816  	type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray
  2817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2818  }
  2819  
  2820  // GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayR
  2821  // esource: Resource for which we are computing security assessment.
  2822  type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource struct {
  2823  	// Name: Required. Name of this resource.
  2824  	Name string `json:"name,omitempty"`
  2825  	// Type: Required. Type of this resource.
  2826  	//
  2827  	// Possible values:
  2828  	//   "RESOURCE_TYPE_UNSPECIFIED" - ResourceType not specified.
  2829  	//   "API_PROXY" - Resource is an Apigee Proxy.
  2830  	Type string `json:"type,omitempty"`
  2831  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2832  	// include in API requests. By default, fields with empty or default values are
  2833  	// omitted from API requests. See
  2834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2835  	// details.
  2836  	ForceSendFields []string `json:"-"`
  2837  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2838  	// with the JSON null value. By default, fields with empty values are omitted
  2839  	// from API requests. See
  2840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2841  	NullFields []string `json:"-"`
  2842  }
  2843  
  2844  func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource) MarshalJSON() ([]byte, error) {
  2845  	type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource
  2846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2847  }
  2848  
  2849  // GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse: Response
  2850  // for BatchComputeSecurityAssessmentResults.
  2851  type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse struct {
  2852  	// AssessmentTime: The time of the assessment api call.
  2853  	AssessmentTime string `json:"assessmentTime,omitempty"`
  2854  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2855  	// page. If this field is blank, there are no subsequent pages.
  2856  	NextPageToken string `json:"nextPageToken,omitempty"`
  2857  	// SecurityAssessmentResults: Default sort order is by resource name in
  2858  	// alphabetic order.
  2859  	SecurityAssessmentResults []*GoogleCloudApigeeV1SecurityAssessmentResult `json:"securityAssessmentResults,omitempty"`
  2860  
  2861  	// ServerResponse contains the HTTP response code and headers from the server.
  2862  	googleapi.ServerResponse `json:"-"`
  2863  	// ForceSendFields is a list of field names (e.g. "AssessmentTime") to
  2864  	// unconditionally include in API requests. By default, fields with empty or
  2865  	// default values are omitted from API requests. See
  2866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2867  	// details.
  2868  	ForceSendFields []string `json:"-"`
  2869  	// NullFields is a list of field names (e.g. "AssessmentTime") to include in
  2870  	// API requests with the JSON null value. By default, fields with empty values
  2871  	// are omitted from API requests. See
  2872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2873  	NullFields []string `json:"-"`
  2874  }
  2875  
  2876  func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse) MarshalJSON() ([]byte, error) {
  2877  	type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse
  2878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2879  }
  2880  
  2881  // GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest: Request for
  2882  // BatchUpdateSecurityIncident.
  2883  type GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest struct {
  2884  	// Requests: Optional. Required. The request message specifying the resources
  2885  	// to update. A maximum of 1000 can be modified in a batch.
  2886  	Requests []*GoogleCloudApigeeV1UpdateSecurityIncidentRequest `json:"requests,omitempty"`
  2887  	// ForceSendFields is a list of field names (e.g. "Requests") to
  2888  	// unconditionally include in API requests. By default, fields with empty or
  2889  	// default values are omitted from API requests. See
  2890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2891  	// details.
  2892  	ForceSendFields []string `json:"-"`
  2893  	// NullFields is a list of field names (e.g. "Requests") to include in API
  2894  	// requests with the JSON null value. By default, fields with empty values are
  2895  	// omitted from API requests. See
  2896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2897  	NullFields []string `json:"-"`
  2898  }
  2899  
  2900  func (s *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest) MarshalJSON() ([]byte, error) {
  2901  	type NoMethod GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest
  2902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2903  }
  2904  
  2905  // GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse: Response for
  2906  // BatchUpdateSecurityIncident.
  2907  type GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse struct {
  2908  	// SecurityIncidents: Output only. Updated security incidents
  2909  	SecurityIncidents []*GoogleCloudApigeeV1SecurityIncident `json:"securityIncidents,omitempty"`
  2910  
  2911  	// ServerResponse contains the HTTP response code and headers from the server.
  2912  	googleapi.ServerResponse `json:"-"`
  2913  	// ForceSendFields is a list of field names (e.g. "SecurityIncidents") to
  2914  	// unconditionally include in API requests. By default, fields with empty or
  2915  	// default values are omitted from API requests. See
  2916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2917  	// details.
  2918  	ForceSendFields []string `json:"-"`
  2919  	// NullFields is a list of field names (e.g. "SecurityIncidents") to include in
  2920  	// API requests with the JSON null value. By default, fields with empty values
  2921  	// are omitted from API requests. See
  2922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2923  	NullFields []string `json:"-"`
  2924  }
  2925  
  2926  func (s *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse) MarshalJSON() ([]byte, error) {
  2927  	type NoMethod GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse
  2928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2929  }
  2930  
  2931  // GoogleCloudApigeeV1CanaryEvaluation: CanaryEvaluation represents the canary
  2932  // analysis between two versions of the runtime that is serving requests.
  2933  type GoogleCloudApigeeV1CanaryEvaluation struct {
  2934  	// Control: Required. The stable version that is serving requests.
  2935  	Control string `json:"control,omitempty"`
  2936  	// CreateTime: Output only. Create time of the canary evaluation.
  2937  	CreateTime string `json:"createTime,omitempty"`
  2938  	// EndTime: Required. End time for the evaluation's analysis.
  2939  	EndTime string `json:"endTime,omitempty"`
  2940  	// MetricLabels: Required. Labels used to filter the metrics used for a canary
  2941  	// evaluation.
  2942  	MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"`
  2943  	// Name: Output only. Name of the canary evalution.
  2944  	Name string `json:"name,omitempty"`
  2945  	// StartTime: Required. Start time for the canary evaluation's analysis.
  2946  	StartTime string `json:"startTime,omitempty"`
  2947  	// State: Output only. The current state of the canary evaluation.
  2948  	//
  2949  	// Possible values:
  2950  	//   "STATE_UNSPECIFIED" - No state has been specified.
  2951  	//   "RUNNING" - The canary evaluation is still in progress.
  2952  	//   "SUCCEEDED" - The canary evaluation has finished.
  2953  	State string `json:"state,omitempty"`
  2954  	// Treatment: Required. The newer version that is serving requests.
  2955  	Treatment string `json:"treatment,omitempty"`
  2956  	// Verdict: Output only. The resulting verdict of the canary evaluations: NONE,
  2957  	// PASS, or FAIL.
  2958  	//
  2959  	// Possible values:
  2960  	//   "VERDICT_UNSPECIFIED" - Verdict is not available yet.
  2961  	//   "NONE" - No verdict reached.
  2962  	//   "FAIL" - Evaluation is not good.
  2963  	//   "PASS" - Evaluation is good.
  2964  	Verdict string `json:"verdict,omitempty"`
  2965  
  2966  	// ServerResponse contains the HTTP response code and headers from the server.
  2967  	googleapi.ServerResponse `json:"-"`
  2968  	// ForceSendFields is a list of field names (e.g. "Control") to unconditionally
  2969  	// include in API requests. By default, fields with empty or default values are
  2970  	// omitted from API requests. See
  2971  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2972  	// details.
  2973  	ForceSendFields []string `json:"-"`
  2974  	// NullFields is a list of field names (e.g. "Control") to include in API
  2975  	// requests with the JSON null value. By default, fields with empty values are
  2976  	// omitted from API requests. See
  2977  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2978  	NullFields []string `json:"-"`
  2979  }
  2980  
  2981  func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) {
  2982  	type NoMethod GoogleCloudApigeeV1CanaryEvaluation
  2983  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2984  }
  2985  
  2986  // GoogleCloudApigeeV1CanaryEvaluationMetricLabels: Labels that can be used to
  2987  // filter Apigee metrics.
  2988  type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct {
  2989  	// Env: The environment ID associated with the metrics.
  2990  	Env string `json:"env,omitempty"`
  2991  	// InstanceId: Required. The instance ID associated with the metrics. In Apigee
  2992  	// Hybrid, the value is configured during installation.
  2993  	InstanceId string `json:"instance_id,omitempty"`
  2994  	// Location: Required. The location associated with the metrics.
  2995  	Location string `json:"location,omitempty"`
  2996  	// ForceSendFields is a list of field names (e.g. "Env") to unconditionally
  2997  	// include in API requests. By default, fields with empty or default values are
  2998  	// omitted from API requests. See
  2999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3000  	// details.
  3001  	ForceSendFields []string `json:"-"`
  3002  	// NullFields is a list of field names (e.g. "Env") to include in API requests
  3003  	// with the JSON null value. By default, fields with empty values are omitted
  3004  	// from API requests. See
  3005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3006  	NullFields []string `json:"-"`
  3007  }
  3008  
  3009  func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) {
  3010  	type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels
  3011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3012  }
  3013  
  3014  // GoogleCloudApigeeV1CertInfo: X.509 certificate as defined in RFC 5280.
  3015  type GoogleCloudApigeeV1CertInfo struct {
  3016  	// BasicConstraints: X.509 basic constraints extension.
  3017  	BasicConstraints string `json:"basicConstraints,omitempty"`
  3018  	// ExpiryDate: X.509 `notAfter` validity period in milliseconds since epoch.
  3019  	ExpiryDate int64 `json:"expiryDate,omitempty,string"`
  3020  	// IsValid: Flag that specifies whether the certificate is valid. Flag is set
  3021  	// to `Yes` if the certificate is valid, `No` if expired, or `Not yet` if not
  3022  	// yet valid.
  3023  	IsValid string `json:"isValid,omitempty"`
  3024  	// Issuer: X.509 issuer.
  3025  	Issuer string `json:"issuer,omitempty"`
  3026  	// PublicKey: Public key component of the X.509 subject public key info.
  3027  	PublicKey string `json:"publicKey,omitempty"`
  3028  	// SerialNumber: X.509 serial number.
  3029  	SerialNumber string `json:"serialNumber,omitempty"`
  3030  	// SigAlgName: X.509 signatureAlgorithm.
  3031  	SigAlgName string `json:"sigAlgName,omitempty"`
  3032  	// Subject: X.509 subject.
  3033  	Subject string `json:"subject,omitempty"`
  3034  	// SubjectAlternativeNames: X.509 subject alternative names (SANs) extension.
  3035  	SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
  3036  	// ValidFrom: X.509 `notBefore` validity period in milliseconds since epoch.
  3037  	ValidFrom int64 `json:"validFrom,omitempty,string"`
  3038  	// Version: X.509 version.
  3039  	Version int64 `json:"version,omitempty"`
  3040  	// ForceSendFields is a list of field names (e.g. "BasicConstraints") to
  3041  	// unconditionally include in API requests. By default, fields with empty or
  3042  	// default values are omitted from API requests. See
  3043  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3044  	// details.
  3045  	ForceSendFields []string `json:"-"`
  3046  	// NullFields is a list of field names (e.g. "BasicConstraints") to include in
  3047  	// API requests with the JSON null value. By default, fields with empty values
  3048  	// are omitted from API requests. See
  3049  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3050  	NullFields []string `json:"-"`
  3051  }
  3052  
  3053  func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
  3054  	type NoMethod GoogleCloudApigeeV1CertInfo
  3055  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3056  }
  3057  
  3058  type GoogleCloudApigeeV1Certificate struct {
  3059  	// CertInfo: Chain of certificates under this name.
  3060  	CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
  3061  	// ForceSendFields is a list of field names (e.g. "CertInfo") to
  3062  	// unconditionally include in API requests. By default, fields with empty or
  3063  	// default values are omitted from API requests. See
  3064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3065  	// details.
  3066  	ForceSendFields []string `json:"-"`
  3067  	// NullFields is a list of field names (e.g. "CertInfo") to include in API
  3068  	// requests with the JSON null value. By default, fields with empty values are
  3069  	// omitted from API requests. See
  3070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3071  	NullFields []string `json:"-"`
  3072  }
  3073  
  3074  func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
  3075  	type NoMethod GoogleCloudApigeeV1Certificate
  3076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3077  }
  3078  
  3079  type GoogleCloudApigeeV1CommonNameConfig struct {
  3080  	MatchWildCards bool   `json:"matchWildCards,omitempty"`
  3081  	Name           string `json:"name,omitempty"`
  3082  	// ForceSendFields is a list of field names (e.g. "MatchWildCards") to
  3083  	// unconditionally include in API requests. By default, fields with empty or
  3084  	// default values are omitted from API requests. See
  3085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3086  	// details.
  3087  	ForceSendFields []string `json:"-"`
  3088  	// NullFields is a list of field names (e.g. "MatchWildCards") to include in
  3089  	// API requests with the JSON null value. By default, fields with empty values
  3090  	// are omitted from API requests. See
  3091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3092  	NullFields []string `json:"-"`
  3093  }
  3094  
  3095  func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
  3096  	type NoMethod GoogleCloudApigeeV1CommonNameConfig
  3097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3098  }
  3099  
  3100  // GoogleCloudApigeeV1ComputeEnvironmentScoresRequest: Request for
  3101  // ComputeEnvironmentScores.
  3102  type GoogleCloudApigeeV1ComputeEnvironmentScoresRequest struct {
  3103  	// Filters: Optional. Filters are used to filter scored components. Return all
  3104  	// the components if no filter is mentioned. Example: [{ "scorePath":
  3105  	// "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/source" }, {
  3106  	// "scorePath":
  3107  	// "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/target", }]
  3108  	// This will return components with path:
  3109  	// "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/source" OR
  3110  	// "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/target"
  3111  	Filters []*GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter `json:"filters,omitempty"`
  3112  	// PageSize: Optional. The maximum number of subcomponents to be returned in a
  3113  	// single page. The service may return fewer than this value. If unspecified,
  3114  	// at most 100 subcomponents will be returned in a single page.
  3115  	PageSize int64 `json:"pageSize,omitempty"`
  3116  	// PageToken: Optional. A token that can be sent as `page_token` to retrieve
  3117  	// the next page. If this field is omitted, there are no subsequent pages.
  3118  	PageToken string `json:"pageToken,omitempty"`
  3119  	// TimeRange: Required. Time range for score calculation. At most 14 days of
  3120  	// scores will be returned, and both the start and end dates must be within the
  3121  	// last 90 days.
  3122  	TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
  3123  	// ForceSendFields is a list of field names (e.g. "Filters") to unconditionally
  3124  	// include in API requests. By default, fields with empty or default values are
  3125  	// omitted from API requests. See
  3126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3127  	// details.
  3128  	ForceSendFields []string `json:"-"`
  3129  	// NullFields is a list of field names (e.g. "Filters") to include in API
  3130  	// requests with the JSON null value. By default, fields with empty values are
  3131  	// omitted from API requests. See
  3132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3133  	NullFields []string `json:"-"`
  3134  }
  3135  
  3136  func (s *GoogleCloudApigeeV1ComputeEnvironmentScoresRequest) MarshalJSON() ([]byte, error) {
  3137  	type NoMethod GoogleCloudApigeeV1ComputeEnvironmentScoresRequest
  3138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3139  }
  3140  
  3141  // GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter: Filter scores by
  3142  // component path. Used custom filter instead of AIP-160 as the use cases are
  3143  // highly constrained and predictable.
  3144  type GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter struct {
  3145  	// ScorePath: Optional. Return scores for this component. Example:
  3146  	// "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/source"
  3147  	ScorePath string `json:"scorePath,omitempty"`
  3148  	// ForceSendFields is a list of field names (e.g. "ScorePath") to
  3149  	// unconditionally include in API requests. By default, fields with empty or
  3150  	// default values are omitted from API requests. See
  3151  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3152  	// details.
  3153  	ForceSendFields []string `json:"-"`
  3154  	// NullFields is a list of field names (e.g. "ScorePath") to include in API
  3155  	// requests with the JSON null value. By default, fields with empty values are
  3156  	// omitted from API requests. See
  3157  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3158  	NullFields []string `json:"-"`
  3159  }
  3160  
  3161  func (s *GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter) MarshalJSON() ([]byte, error) {
  3162  	type NoMethod GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter
  3163  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3164  }
  3165  
  3166  // GoogleCloudApigeeV1ComputeEnvironmentScoresResponse: Response for
  3167  // ComputeEnvironmentScores.
  3168  type GoogleCloudApigeeV1ComputeEnvironmentScoresResponse struct {
  3169  	// NextPageToken: A page token, received from a previous `ComputeScore` call.
  3170  	// Provide this to retrieve the subsequent page.
  3171  	NextPageToken string `json:"nextPageToken,omitempty"`
  3172  	// Scores: List of scores. One score per day.
  3173  	Scores []*GoogleCloudApigeeV1Score `json:"scores,omitempty"`
  3174  
  3175  	// ServerResponse contains the HTTP response code and headers from the server.
  3176  	googleapi.ServerResponse `json:"-"`
  3177  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3178  	// unconditionally include in API requests. By default, fields with empty or
  3179  	// default values are omitted from API requests. See
  3180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3181  	// details.
  3182  	ForceSendFields []string `json:"-"`
  3183  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3184  	// requests with the JSON null value. By default, fields with empty values are
  3185  	// omitted from API requests. See
  3186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3187  	NullFields []string `json:"-"`
  3188  }
  3189  
  3190  func (s *GoogleCloudApigeeV1ComputeEnvironmentScoresResponse) MarshalJSON() ([]byte, error) {
  3191  	type NoMethod GoogleCloudApigeeV1ComputeEnvironmentScoresResponse
  3192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3193  }
  3194  
  3195  // GoogleCloudApigeeV1ConfigVersion: Version of the API proxy configuration
  3196  // schema. Currently, only 4.0 is supported.
  3197  type GoogleCloudApigeeV1ConfigVersion struct {
  3198  	// MajorVersion: Major version of the API proxy configuration schema.
  3199  	MajorVersion int64 `json:"majorVersion,omitempty"`
  3200  	// MinorVersion: Minor version of the API proxy configuration schema.
  3201  	MinorVersion int64 `json:"minorVersion,omitempty"`
  3202  	// ForceSendFields is a list of field names (e.g. "MajorVersion") to
  3203  	// unconditionally include in API requests. By default, fields with empty or
  3204  	// default values are omitted from API requests. See
  3205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3206  	// details.
  3207  	ForceSendFields []string `json:"-"`
  3208  	// NullFields is a list of field names (e.g. "MajorVersion") to include in API
  3209  	// requests with the JSON null value. By default, fields with empty values are
  3210  	// omitted from API requests. See
  3211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3212  	NullFields []string `json:"-"`
  3213  }
  3214  
  3215  func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
  3216  	type NoMethod GoogleCloudApigeeV1ConfigVersion
  3217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3218  }
  3219  
  3220  // GoogleCloudApigeeV1ConnectorsPlatformConfig: Configuration for the
  3221  // Connectors Platform add-on.
  3222  type GoogleCloudApigeeV1ConnectorsPlatformConfig struct {
  3223  	// Enabled: Flag that specifies whether the Connectors Platform add-on is
  3224  	// enabled.
  3225  	Enabled bool `json:"enabled,omitempty"`
  3226  	// ExpiresAt: Output only. Time at which the Connectors Platform add-on expires
  3227  	// in milliseconds since epoch. If unspecified, the add-on will never expire.
  3228  	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
  3229  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  3230  	// include in API requests. By default, fields with empty or default values are
  3231  	// omitted from API requests. See
  3232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3233  	// details.
  3234  	ForceSendFields []string `json:"-"`
  3235  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  3236  	// requests with the JSON null value. By default, fields with empty values are
  3237  	// omitted from API requests. See
  3238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3239  	NullFields []string `json:"-"`
  3240  }
  3241  
  3242  func (s *GoogleCloudApigeeV1ConnectorsPlatformConfig) MarshalJSON() ([]byte, error) {
  3243  	type NoMethod GoogleCloudApigeeV1ConnectorsPlatformConfig
  3244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3245  }
  3246  
  3247  type GoogleCloudApigeeV1Credential struct {
  3248  	// ApiProducts: List of API products this credential can be used for.
  3249  	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
  3250  	// Attributes: List of attributes associated with this credential.
  3251  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  3252  	// ConsumerKey: Consumer key.
  3253  	ConsumerKey string `json:"consumerKey,omitempty"`
  3254  	// ConsumerSecret: Secret key.
  3255  	ConsumerSecret string `json:"consumerSecret,omitempty"`
  3256  	// ExpiresAt: Time the credential will expire in milliseconds since epoch.
  3257  	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
  3258  	// IssuedAt: Time the credential was issued in milliseconds since epoch.
  3259  	IssuedAt int64 `json:"issuedAt,omitempty,string"`
  3260  	// Scopes: List of scopes to apply to the app. Specified scopes must already
  3261  	// exist on the API product that you associate with the app.
  3262  	Scopes []string `json:"scopes,omitempty"`
  3263  	// Status: Status of the credential. Valid values include `approved` or
  3264  	// `revoked`.
  3265  	Status string `json:"status,omitempty"`
  3266  	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
  3267  	// unconditionally include in API requests. By default, fields with empty or
  3268  	// default values are omitted from API requests. See
  3269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3270  	// details.
  3271  	ForceSendFields []string `json:"-"`
  3272  	// NullFields is a list of field names (e.g. "ApiProducts") to include in API
  3273  	// requests with the JSON null value. By default, fields with empty values are
  3274  	// omitted from API requests. See
  3275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3276  	NullFields []string `json:"-"`
  3277  }
  3278  
  3279  func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
  3280  	type NoMethod GoogleCloudApigeeV1Credential
  3281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3282  }
  3283  
  3284  // GoogleCloudApigeeV1CreditDeveloperBalanceRequest: Request for
  3285  // CreditDeveloperBalance.
  3286  type GoogleCloudApigeeV1CreditDeveloperBalanceRequest struct {
  3287  	// TransactionAmount: The amount of money to be credited. The wallet
  3288  	// corresponding to the currency specified within `transaction_amount` will be
  3289  	// updated. For example, if you specified `currency_code` within
  3290  	// `transaction_amount` as "USD", then the amount would be added to the wallet
  3291  	// which has the "USD" currency or if no such wallet exists, a new wallet will
  3292  	// be created with the "USD" currency.
  3293  	TransactionAmount *GoogleTypeMoney `json:"transactionAmount,omitempty"`
  3294  	// TransactionId: Each transaction_id uniquely identifies a credit balance
  3295  	// request. If multiple requests are received with the same transaction_id,
  3296  	// only one of them will be considered.
  3297  	TransactionId string `json:"transactionId,omitempty"`
  3298  	// ForceSendFields is a list of field names (e.g. "TransactionAmount") to
  3299  	// unconditionally include in API requests. By default, fields with empty or
  3300  	// default values are omitted from API requests. See
  3301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3302  	// details.
  3303  	ForceSendFields []string `json:"-"`
  3304  	// NullFields is a list of field names (e.g. "TransactionAmount") to include in
  3305  	// API requests with the JSON null value. By default, fields with empty values
  3306  	// are omitted from API requests. See
  3307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3308  	NullFields []string `json:"-"`
  3309  }
  3310  
  3311  func (s *GoogleCloudApigeeV1CreditDeveloperBalanceRequest) MarshalJSON() ([]byte, error) {
  3312  	type NoMethod GoogleCloudApigeeV1CreditDeveloperBalanceRequest
  3313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3314  }
  3315  
  3316  type GoogleCloudApigeeV1CustomReport struct {
  3317  	// ChartType: This field contains the chart type for the report
  3318  	ChartType string `json:"chartType,omitempty"`
  3319  	// Comments: Legacy field: not used. This field contains a list of comments
  3320  	// associated with custom report
  3321  	Comments []string `json:"comments,omitempty"`
  3322  	// CreatedAt: Output only. Unix time when the app was created json key:
  3323  	// createdAt
  3324  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  3325  	// Dimensions: This contains the list of dimensions for the report
  3326  	Dimensions []string `json:"dimensions,omitempty"`
  3327  	// DisplayName: This is the display name for the report
  3328  	DisplayName string `json:"displayName,omitempty"`
  3329  	// Environment: Output only. Environment name
  3330  	Environment string `json:"environment,omitempty"`
  3331  	// Filter: This field contains the filter expression
  3332  	Filter string `json:"filter,omitempty"`
  3333  	// FromTime: Legacy field: not used. Contains the from time for the report
  3334  	FromTime string `json:"fromTime,omitempty"`
  3335  	// LastModifiedAt: Output only. Modified time of this entity as milliseconds
  3336  	// since epoch. json key: lastModifiedAt
  3337  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  3338  	// LastViewedAt: Output only. Last viewed time of this entity as milliseconds
  3339  	// since epoch
  3340  	LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
  3341  	// Limit: Legacy field: not used This field contains the limit for the result
  3342  	// retrieved
  3343  	Limit string `json:"limit,omitempty"`
  3344  	// Metrics: Required. This contains the list of metrics
  3345  	Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
  3346  	// Name: Required. Unique identifier for the report T his is a legacy field
  3347  	// used to encode custom report unique id
  3348  	Name string `json:"name,omitempty"`
  3349  	// Offset: Legacy field: not used. This field contains the offset for the data
  3350  	Offset string `json:"offset,omitempty"`
  3351  	// Organization: Output only. Organization name
  3352  	Organization string `json:"organization,omitempty"`
  3353  	// Properties: This field contains report properties such as ui metadata etc.
  3354  	Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
  3355  	// SortByCols: Legacy field: not used much. Contains the list of sort by
  3356  	// columns
  3357  	SortByCols []string `json:"sortByCols,omitempty"`
  3358  	// SortOrder: Legacy field: not used much. Contains the sort order for the sort
  3359  	// columns
  3360  	SortOrder string `json:"sortOrder,omitempty"`
  3361  	// Tags: Legacy field: not used. This field contains a list of tags associated
  3362  	// with custom report
  3363  	Tags []string `json:"tags,omitempty"`
  3364  	// TimeUnit: This field contains the time unit of aggregation for the report
  3365  	TimeUnit string `json:"timeUnit,omitempty"`
  3366  	// ToTime: Legacy field: not used. Contains the end time for the report
  3367  	ToTime string `json:"toTime,omitempty"`
  3368  	// Topk: Legacy field: not used. This field contains the top k parameter value
  3369  	// for restricting the result
  3370  	Topk string `json:"topk,omitempty"`
  3371  
  3372  	// ServerResponse contains the HTTP response code and headers from the server.
  3373  	googleapi.ServerResponse `json:"-"`
  3374  	// ForceSendFields is a list of field names (e.g. "ChartType") to
  3375  	// unconditionally include in API requests. By default, fields with empty or
  3376  	// default values are omitted from API requests. See
  3377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3378  	// details.
  3379  	ForceSendFields []string `json:"-"`
  3380  	// NullFields is a list of field names (e.g. "ChartType") to include in API
  3381  	// requests with the JSON null value. By default, fields with empty values are
  3382  	// omitted from API requests. See
  3383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3384  	NullFields []string `json:"-"`
  3385  }
  3386  
  3387  func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
  3388  	type NoMethod GoogleCloudApigeeV1CustomReport
  3389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3390  }
  3391  
  3392  // GoogleCloudApigeeV1CustomReportMetric: This encapsulates a metric property
  3393  // of the form sum(message_count) where name is message_count and function is
  3394  // sum
  3395  type GoogleCloudApigeeV1CustomReportMetric struct {
  3396  	// Function: aggregate function
  3397  	Function string `json:"function,omitempty"`
  3398  	// Name: name of the metric
  3399  	Name string `json:"name,omitempty"`
  3400  	// ForceSendFields is a list of field names (e.g. "Function") to
  3401  	// unconditionally include in API requests. By default, fields with empty or
  3402  	// default values are omitted from API requests. See
  3403  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3404  	// details.
  3405  	ForceSendFields []string `json:"-"`
  3406  	// NullFields is a list of field names (e.g. "Function") to include in API
  3407  	// requests with the JSON null value. By default, fields with empty values are
  3408  	// omitted from API requests. See
  3409  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3410  	NullFields []string `json:"-"`
  3411  }
  3412  
  3413  func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
  3414  	type NoMethod GoogleCloudApigeeV1CustomReportMetric
  3415  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3416  }
  3417  
  3418  // GoogleCloudApigeeV1DataCollector: Data collector configuration.
  3419  type GoogleCloudApigeeV1DataCollector struct {
  3420  	// CreatedAt: Output only. The time at which the data collector was created in
  3421  	// milliseconds since the epoch.
  3422  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  3423  	// Description: A description of the data collector.
  3424  	Description string `json:"description,omitempty"`
  3425  	// LastModifiedAt: Output only. The time at which the Data Collector was last
  3426  	// updated in milliseconds since the epoch.
  3427  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  3428  	// Name: ID of the data collector. Must begin with `dc_`.
  3429  	Name string `json:"name,omitempty"`
  3430  	// Type: Immutable. The type of data this data collector will collect.
  3431  	//
  3432  	// Possible values:
  3433  	//   "TYPE_UNSPECIFIED" - For future compatibility.
  3434  	//   "INTEGER" - For integer values.
  3435  	//   "FLOAT" - For float values.
  3436  	//   "STRING" - For string values.
  3437  	//   "BOOLEAN" - For boolean values.
  3438  	//   "DATETIME" - For datetime values.
  3439  	Type string `json:"type,omitempty"`
  3440  
  3441  	// ServerResponse contains the HTTP response code and headers from the server.
  3442  	googleapi.ServerResponse `json:"-"`
  3443  	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
  3444  	// unconditionally include in API requests. By default, fields with empty or
  3445  	// default values are omitted from API requests. See
  3446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3447  	// details.
  3448  	ForceSendFields []string `json:"-"`
  3449  	// NullFields is a list of field names (e.g. "CreatedAt") to include in API
  3450  	// requests with the JSON null value. By default, fields with empty values are
  3451  	// omitted from API requests. See
  3452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3453  	NullFields []string `json:"-"`
  3454  }
  3455  
  3456  func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) {
  3457  	type NoMethod GoogleCloudApigeeV1DataCollector
  3458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3459  }
  3460  
  3461  // GoogleCloudApigeeV1DataCollectorConfig: Data collector and its
  3462  // configuration.
  3463  type GoogleCloudApigeeV1DataCollectorConfig struct {
  3464  	// Name: Name of the data collector in the following format:
  3465  	// `organizations/{org}/datacollectors/{datacollector}`
  3466  	Name string `json:"name,omitempty"`
  3467  	// Type: Data type accepted by the data collector.
  3468  	//
  3469  	// Possible values:
  3470  	//   "TYPE_UNSPECIFIED" - For future compatibility.
  3471  	//   "INTEGER" - For integer values.
  3472  	//   "FLOAT" - For float values.
  3473  	//   "STRING" - For string values.
  3474  	//   "BOOLEAN" - For boolean values.
  3475  	//   "DATETIME" - For datetime values.
  3476  	Type string `json:"type,omitempty"`
  3477  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3478  	// include in API requests. By default, fields with empty or default values are
  3479  	// omitted from API requests. See
  3480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3481  	// details.
  3482  	ForceSendFields []string `json:"-"`
  3483  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3484  	// with the JSON null value. By default, fields with empty values are omitted
  3485  	// from API requests. See
  3486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3487  	NullFields []string `json:"-"`
  3488  }
  3489  
  3490  func (s *GoogleCloudApigeeV1DataCollectorConfig) MarshalJSON() ([]byte, error) {
  3491  	type NoMethod GoogleCloudApigeeV1DataCollectorConfig
  3492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3493  }
  3494  
  3495  // GoogleCloudApigeeV1Datastore: The data store defines the connection to
  3496  // export data repository (Cloud Storage, BigQuery), including the credentials
  3497  // used to access the data repository.
  3498  type GoogleCloudApigeeV1Datastore struct {
  3499  	// CreateTime: Output only. Datastore create time, in milliseconds since the
  3500  	// epoch of 1970-01-01T00:00:00Z
  3501  	CreateTime int64 `json:"createTime,omitempty,string"`
  3502  	// DatastoreConfig: Datastore Configurations.
  3503  	DatastoreConfig *GoogleCloudApigeeV1DatastoreConfig `json:"datastoreConfig,omitempty"`
  3504  	// DisplayName: Required. Display name in UI
  3505  	DisplayName string `json:"displayName,omitempty"`
  3506  	// LastUpdateTime: Output only. Datastore last update time, in milliseconds
  3507  	// since the epoch of 1970-01-01T00:00:00Z
  3508  	LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"`
  3509  	// Org: Output only. Organization that the datastore belongs to
  3510  	Org string `json:"org,omitempty"`
  3511  	// Self: Output only. Resource link of Datastore. Example:
  3512  	// `/organizations/{org}/analytics/datastores/{uuid}`
  3513  	Self string `json:"self,omitempty"`
  3514  	// TargetType: Destination storage type. Supported types `gcs` or `bigquery`.
  3515  	TargetType string `json:"targetType,omitempty"`
  3516  
  3517  	// ServerResponse contains the HTTP response code and headers from the server.
  3518  	googleapi.ServerResponse `json:"-"`
  3519  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3520  	// unconditionally include in API requests. By default, fields with empty or
  3521  	// default values are omitted from API requests. See
  3522  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3523  	// details.
  3524  	ForceSendFields []string `json:"-"`
  3525  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3526  	// requests with the JSON null value. By default, fields with empty values are
  3527  	// omitted from API requests. See
  3528  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3529  	NullFields []string `json:"-"`
  3530  }
  3531  
  3532  func (s *GoogleCloudApigeeV1Datastore) MarshalJSON() ([]byte, error) {
  3533  	type NoMethod GoogleCloudApigeeV1Datastore
  3534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3535  }
  3536  
  3537  // GoogleCloudApigeeV1DatastoreConfig: Configuration detail for datastore
  3538  type GoogleCloudApigeeV1DatastoreConfig struct {
  3539  	// BucketName: Name of the Cloud Storage bucket. Required for `gcs`
  3540  	// target_type.
  3541  	BucketName string `json:"bucketName,omitempty"`
  3542  	// DatasetName: BigQuery dataset name Required for `bigquery` target_type.
  3543  	DatasetName string `json:"datasetName,omitempty"`
  3544  	// Path: Path of Cloud Storage bucket Required for `gcs` target_type.
  3545  	Path string `json:"path,omitempty"`
  3546  	// ProjectId: Required. GCP project in which the datastore exists
  3547  	ProjectId string `json:"projectId,omitempty"`
  3548  	// TablePrefix: Prefix of BigQuery table Required for `bigquery` target_type.
  3549  	TablePrefix string `json:"tablePrefix,omitempty"`
  3550  	// ForceSendFields is a list of field names (e.g. "BucketName") to
  3551  	// unconditionally include in API requests. By default, fields with empty or
  3552  	// default values are omitted from API requests. See
  3553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3554  	// details.
  3555  	ForceSendFields []string `json:"-"`
  3556  	// NullFields is a list of field names (e.g. "BucketName") to include in API
  3557  	// requests with the JSON null value. By default, fields with empty values are
  3558  	// omitted from API requests. See
  3559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3560  	NullFields []string `json:"-"`
  3561  }
  3562  
  3563  func (s *GoogleCloudApigeeV1DatastoreConfig) MarshalJSON() ([]byte, error) {
  3564  	type NoMethod GoogleCloudApigeeV1DatastoreConfig
  3565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3566  }
  3567  
  3568  // GoogleCloudApigeeV1DateRange: Date range of the data to export.
  3569  type GoogleCloudApigeeV1DateRange struct {
  3570  	// End: Required. End date (exclusive) of the data to export in the format
  3571  	// `yyyy-mm-dd`. The date range ends at 00:00:00 UTC on the end date- which
  3572  	// will not be in the output.
  3573  	End string `json:"end,omitempty"`
  3574  	// Start: Required. Start date of the data to export in the format
  3575  	// `yyyy-mm-dd`. The date range begins at 00:00:00 UTC on the start date.
  3576  	Start string `json:"start,omitempty"`
  3577  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  3578  	// include in API requests. By default, fields with empty or default values are
  3579  	// omitted from API requests. See
  3580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3581  	// details.
  3582  	ForceSendFields []string `json:"-"`
  3583  	// NullFields is a list of field names (e.g. "End") to include in API requests
  3584  	// with the JSON null value. By default, fields with empty values are omitted
  3585  	// from API requests. See
  3586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3587  	NullFields []string `json:"-"`
  3588  }
  3589  
  3590  func (s *GoogleCloudApigeeV1DateRange) MarshalJSON() ([]byte, error) {
  3591  	type NoMethod GoogleCloudApigeeV1DateRange
  3592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3593  }
  3594  
  3595  type GoogleCloudApigeeV1DebugMask struct {
  3596  	// FaultJSONPaths: List of JSON paths that specify the JSON elements to be
  3597  	// filtered from JSON payloads in error flows.
  3598  	FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
  3599  	// FaultXPaths: List of XPaths that specify the XML elements to be filtered
  3600  	// from XML payloads in error flows.
  3601  	FaultXPaths []string `json:"faultXPaths,omitempty"`
  3602  	// Name: Name of the debug mask.
  3603  	Name string `json:"name,omitempty"`
  3604  	// Namespaces: Map of namespaces to URIs.
  3605  	Namespaces map[string]string `json:"namespaces,omitempty"`
  3606  	// RequestJSONPaths: List of JSON paths that specify the JSON elements to be
  3607  	// filtered from JSON request message payloads.
  3608  	RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
  3609  	// RequestXPaths: List of XPaths that specify the XML elements to be filtered
  3610  	// from XML request message payloads.
  3611  	RequestXPaths []string `json:"requestXPaths,omitempty"`
  3612  	// ResponseJSONPaths: List of JSON paths that specify the JSON elements to be
  3613  	// filtered from JSON response message payloads.
  3614  	ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
  3615  	// ResponseXPaths: List of XPaths that specify the XML elements to be filtered
  3616  	// from XML response message payloads.
  3617  	ResponseXPaths []string `json:"responseXPaths,omitempty"`
  3618  	// Variables: List of variables that should be masked from the debug output.
  3619  	Variables []string `json:"variables,omitempty"`
  3620  
  3621  	// ServerResponse contains the HTTP response code and headers from the server.
  3622  	googleapi.ServerResponse `json:"-"`
  3623  	// ForceSendFields is a list of field names (e.g. "FaultJSONPaths") to
  3624  	// unconditionally include in API requests. By default, fields with empty or
  3625  	// default values are omitted from API requests. See
  3626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3627  	// details.
  3628  	ForceSendFields []string `json:"-"`
  3629  	// NullFields is a list of field names (e.g. "FaultJSONPaths") to include in
  3630  	// API requests with the JSON null value. By default, fields with empty values
  3631  	// are omitted from API requests. See
  3632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3633  	NullFields []string `json:"-"`
  3634  }
  3635  
  3636  func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
  3637  	type NoMethod GoogleCloudApigeeV1DebugMask
  3638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3639  }
  3640  
  3641  type GoogleCloudApigeeV1DebugSession struct {
  3642  	// Count: Optional. The number of request to be traced. Min = 1, Max = 15,
  3643  	// Default = 10.
  3644  	Count int64 `json:"count,omitempty"`
  3645  	// CreateTime: Output only. The first transaction creation timestamp, recorded
  3646  	// by UAP.
  3647  	CreateTime string `json:"createTime,omitempty"`
  3648  	// Filter: Optional. A conditional statement which is evaluated against the
  3649  	// request message to determine if it should be traced. Syntax matches that of
  3650  	// on API Proxy bundle flow Condition.
  3651  	Filter string `json:"filter,omitempty"`
  3652  	// Name: A unique ID for this DebugSession.
  3653  	Name string `json:"name,omitempty"`
  3654  	// Timeout: Optional. The time in seconds after which this DebugSession should
  3655  	// end. This value will override the value in query param, if both are
  3656  	// provided.
  3657  	Timeout int64 `json:"timeout,omitempty,string"`
  3658  	// Tracesize: Optional. The maximum number of bytes captured from the response
  3659  	// payload. Min = 0, Max = 5120, Default = 5120.
  3660  	Tracesize int64 `json:"tracesize,omitempty"`
  3661  	// Validity: Optional. The length of time, in seconds, that this debug session
  3662  	// is valid, starting from when it's received in the control plane. Min = 1,
  3663  	// Max = 15, Default = 10.
  3664  	Validity int64 `json:"validity,omitempty"`
  3665  
  3666  	// ServerResponse contains the HTTP response code and headers from the server.
  3667  	googleapi.ServerResponse `json:"-"`
  3668  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  3669  	// include in API requests. By default, fields with empty or default values are
  3670  	// omitted from API requests. See
  3671  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3672  	// details.
  3673  	ForceSendFields []string `json:"-"`
  3674  	// NullFields is a list of field names (e.g. "Count") to include in API
  3675  	// requests with the JSON null value. By default, fields with empty values are
  3676  	// omitted from API requests. See
  3677  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3678  	NullFields []string `json:"-"`
  3679  }
  3680  
  3681  func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
  3682  	type NoMethod GoogleCloudApigeeV1DebugSession
  3683  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3684  }
  3685  
  3686  // GoogleCloudApigeeV1DebugSessionTransaction: A transaction contains all of
  3687  // the debug information of the entire message flow of an API call processed by
  3688  // the runtime plane. The information is collected and recorded at critical
  3689  // points of the message flow in the runtime apiproxy.
  3690  type GoogleCloudApigeeV1DebugSessionTransaction struct {
  3691  	// Completed: Flag indicating whether a transaction is completed or not
  3692  	Completed bool `json:"completed,omitempty"`
  3693  	// Point: List of debug data collected by runtime plane at various defined
  3694  	// points in the flow.
  3695  	Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
  3696  
  3697  	// ServerResponse contains the HTTP response code and headers from the server.
  3698  	googleapi.ServerResponse `json:"-"`
  3699  	// ForceSendFields is a list of field names (e.g. "Completed") to
  3700  	// unconditionally include in API requests. By default, fields with empty or
  3701  	// default values are omitted from API requests. See
  3702  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3703  	// details.
  3704  	ForceSendFields []string `json:"-"`
  3705  	// NullFields is a list of field names (e.g. "Completed") to include in API
  3706  	// requests with the JSON null value. By default, fields with empty values are
  3707  	// omitted from API requests. See
  3708  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3709  	NullFields []string `json:"-"`
  3710  }
  3711  
  3712  func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
  3713  	type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
  3714  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3715  }
  3716  
  3717  type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
  3718  	// Message: The response contains only a message field.
  3719  	Message string `json:"message,omitempty"`
  3720  
  3721  	// ServerResponse contains the HTTP response code and headers from the server.
  3722  	googleapi.ServerResponse `json:"-"`
  3723  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  3724  	// include in API requests. By default, fields with empty or default values are
  3725  	// omitted from API requests. See
  3726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3727  	// details.
  3728  	ForceSendFields []string `json:"-"`
  3729  	// NullFields is a list of field names (e.g. "Message") to include in API
  3730  	// requests with the JSON null value. By default, fields with empty values are
  3731  	// omitted from API requests. See
  3732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3733  	NullFields []string `json:"-"`
  3734  }
  3735  
  3736  func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
  3737  	type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
  3738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3739  }
  3740  
  3741  // GoogleCloudApigeeV1DeleteResponse: Response for certain delete operations.
  3742  type GoogleCloudApigeeV1DeleteResponse struct {
  3743  	// ErrorCode: Unique error code for the request, if any.
  3744  	ErrorCode string `json:"errorCode,omitempty"`
  3745  	// GcpResource: Google Cloud name of deleted resource.
  3746  	GcpResource string `json:"gcpResource,omitempty"`
  3747  	// Message: Description of the operation.
  3748  	Message string `json:"message,omitempty"`
  3749  	// RequestId: Unique ID of the request.
  3750  	RequestId string `json:"requestId,omitempty"`
  3751  	// Status: Status of the operation.
  3752  	Status string `json:"status,omitempty"`
  3753  
  3754  	// ServerResponse contains the HTTP response code and headers from the server.
  3755  	googleapi.ServerResponse `json:"-"`
  3756  	// ForceSendFields is a list of field names (e.g. "ErrorCode") to
  3757  	// unconditionally include in API requests. By default, fields with empty or
  3758  	// default values are omitted from API requests. See
  3759  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3760  	// details.
  3761  	ForceSendFields []string `json:"-"`
  3762  	// NullFields is a list of field names (e.g. "ErrorCode") to include in API
  3763  	// requests with the JSON null value. By default, fields with empty values are
  3764  	// omitted from API requests. See
  3765  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3766  	NullFields []string `json:"-"`
  3767  }
  3768  
  3769  func (s *GoogleCloudApigeeV1DeleteResponse) MarshalJSON() ([]byte, error) {
  3770  	type NoMethod GoogleCloudApigeeV1DeleteResponse
  3771  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3772  }
  3773  
  3774  type GoogleCloudApigeeV1Deployment struct {
  3775  	// ApiProxy: API proxy.
  3776  	ApiProxy string `json:"apiProxy,omitempty"`
  3777  	// DeployStartTime: Time the API proxy was marked `deployed` in the control
  3778  	// plane in millisconds since epoch.
  3779  	DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
  3780  	// Environment: Environment.
  3781  	Environment string `json:"environment,omitempty"`
  3782  	// Errors: Errors reported for this deployment. Populated only when state ==
  3783  	// ERROR. **Note**: This field is displayed only when viewing deployment
  3784  	// status.
  3785  	Errors []*GoogleRpcStatus `json:"errors,omitempty"`
  3786  	// Instances: Status reported by each runtime instance. **Note**: This field is
  3787  	// displayed only when viewing deployment status.
  3788  	Instances []*GoogleCloudApigeeV1InstanceDeploymentStatus `json:"instances,omitempty"`
  3789  	// Pods: Status reported by runtime pods. **Note**: **This field is
  3790  	// deprecated**. Runtime versions 1.3 and above report instance level status
  3791  	// rather than pod status.
  3792  	Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
  3793  	// ProxyDeploymentType: Output only. The type of the deployment (standard or
  3794  	// extensible) Deployed proxy revision will be marked as extensible in
  3795  	// following 2 cases. 1. The deployed proxy revision uses extensible policies.
  3796  	// 2. If a environment supports flowhooks and flow hook is configured.
  3797  	//
  3798  	// Possible values:
  3799  	//   "PROXY_DEPLOYMENT_TYPE_UNSPECIFIED" - Default value till public preview.
  3800  	// After public preview this value should not be returned.
  3801  	//   "STANDARD" - Deployment will be of type Standard if only Standard proxies
  3802  	// are used
  3803  	//   "EXTENSIBLE" - Proxy will be of type Extensible if deployments uses one or
  3804  	// more Extensible proxies
  3805  	ProxyDeploymentType string `json:"proxyDeploymentType,omitempty"`
  3806  	// Revision: API proxy revision.
  3807  	Revision string `json:"revision,omitempty"`
  3808  	// RouteConflicts: Conflicts in the desired state routing configuration. The
  3809  	// presence of conflicts does not cause the state to be `ERROR`, but it will
  3810  	// mean that some of the deployment's base paths are not routed to its
  3811  	// environment. If the conflicts change, the state will transition to
  3812  	// `PROGRESSING` until the latest configuration is rolled out to all instances.
  3813  	// **Note**: This field is displayed only when viewing deployment status.
  3814  	RouteConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routeConflicts,omitempty"`
  3815  	// ServiceAccount: The full resource name of Cloud IAM Service Account that
  3816  	// this deployment is using, eg, `projects/-/serviceAccounts/{email}`.
  3817  	ServiceAccount string `json:"serviceAccount,omitempty"`
  3818  	// State: Current state of the deployment. **Note**: This field is displayed
  3819  	// only when viewing deployment status.
  3820  	//
  3821  	// Possible values:
  3822  	//   "RUNTIME_STATE_UNSPECIFIED" - This value should never be returned.
  3823  	//   "READY" - Runtime has loaded the deployment.
  3824  	//   "PROGRESSING" - Deployment is not fully ready in the runtime.
  3825  	//   "ERROR" - Encountered an error with the deployment that requires
  3826  	// intervention.
  3827  	State string `json:"state,omitempty"`
  3828  
  3829  	// ServerResponse contains the HTTP response code and headers from the server.
  3830  	googleapi.ServerResponse `json:"-"`
  3831  	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
  3832  	// unconditionally include in API requests. By default, fields with empty or
  3833  	// default values are omitted from API requests. See
  3834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3835  	// details.
  3836  	ForceSendFields []string `json:"-"`
  3837  	// NullFields is a list of field names (e.g. "ApiProxy") to include in API
  3838  	// requests with the JSON null value. By default, fields with empty values are
  3839  	// omitted from API requests. See
  3840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3841  	NullFields []string `json:"-"`
  3842  }
  3843  
  3844  func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
  3845  	type NoMethod GoogleCloudApigeeV1Deployment
  3846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3847  }
  3848  
  3849  // GoogleCloudApigeeV1DeploymentChangeReport: Response for
  3850  // GenerateDeployChangeReport and GenerateUndeployChangeReport. This report
  3851  // contains any validation failures that would cause the deployment to be
  3852  // rejected, as well changes and conflicts in routing that may occur due to the
  3853  // new deployment. The existence of a routing warning does not necessarily
  3854  // imply that the deployment request is bad, if the desired state of the
  3855  // deployment request is to effect a routing change. The primary purposes of
  3856  // the routing messages are: 1) To inform users of routing changes that may
  3857  // have an effect on traffic currently being routed to other existing
  3858  // deployments. 2) To warn users if some base path in the proxy will not
  3859  // receive traffic due to an existing deployment having already claimed that
  3860  // base path. The presence of routing conflicts/changes will not cause
  3861  // non-dry-run DeployApiProxy/UndeployApiProxy requests to be rejected.
  3862  type GoogleCloudApigeeV1DeploymentChangeReport struct {
  3863  	// RoutingChanges: All routing changes that may result from a deployment
  3864  	// request.
  3865  	RoutingChanges []*GoogleCloudApigeeV1DeploymentChangeReportRoutingChange `json:"routingChanges,omitempty"`
  3866  	// RoutingConflicts: All base path conflicts detected for a deployment request.
  3867  	RoutingConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routingConflicts,omitempty"`
  3868  	// ValidationErrors: Validation errors that would cause the deployment change
  3869  	// request to be rejected.
  3870  	ValidationErrors *GoogleRpcPreconditionFailure `json:"validationErrors,omitempty"`
  3871  
  3872  	// ServerResponse contains the HTTP response code and headers from the server.
  3873  	googleapi.ServerResponse `json:"-"`
  3874  	// ForceSendFields is a list of field names (e.g. "RoutingChanges") to
  3875  	// unconditionally include in API requests. By default, fields with empty or
  3876  	// default values are omitted from API requests. See
  3877  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3878  	// details.
  3879  	ForceSendFields []string `json:"-"`
  3880  	// NullFields is a list of field names (e.g. "RoutingChanges") to include in
  3881  	// API requests with the JSON null value. By default, fields with empty values
  3882  	// are omitted from API requests. See
  3883  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3884  	NullFields []string `json:"-"`
  3885  }
  3886  
  3887  func (s *GoogleCloudApigeeV1DeploymentChangeReport) MarshalJSON() ([]byte, error) {
  3888  	type NoMethod GoogleCloudApigeeV1DeploymentChangeReport
  3889  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3890  }
  3891  
  3892  // GoogleCloudApigeeV1DeploymentChangeReportRoutingChange: Describes a
  3893  // potential routing change that may occur as a result of some deployment
  3894  // operation.
  3895  type GoogleCloudApigeeV1DeploymentChangeReportRoutingChange struct {
  3896  	// Description: Human-readable description of this routing change.
  3897  	Description string `json:"description,omitempty"`
  3898  	// EnvironmentGroup: Name of the environment group affected by this routing
  3899  	// change.
  3900  	EnvironmentGroup string `json:"environmentGroup,omitempty"`
  3901  	// FromDeployment: Base path/deployment that may stop receiving some traffic.
  3902  	FromDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"fromDeployment,omitempty"`
  3903  	// ShouldSequenceRollout: Set to `true` if using sequenced rollout would make
  3904  	// this routing change safer. **Note**: This does not necessarily imply that
  3905  	// automated sequenced rollout mode is supported for the operation.
  3906  	ShouldSequenceRollout bool `json:"shouldSequenceRollout,omitempty"`
  3907  	// ToDeployment: Base path/deployment that may start receiving that traffic.
  3908  	// May be null if no deployment is able to receive the traffic.
  3909  	ToDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"toDeployment,omitempty"`
  3910  	// ForceSendFields is a list of field names (e.g. "Description") to
  3911  	// unconditionally include in API requests. By default, fields with empty or
  3912  	// default values are omitted from API requests. See
  3913  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3914  	// details.
  3915  	ForceSendFields []string `json:"-"`
  3916  	// NullFields is a list of field names (e.g. "Description") to include in API
  3917  	// requests with the JSON null value. By default, fields with empty values are
  3918  	// omitted from API requests. See
  3919  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3920  	NullFields []string `json:"-"`
  3921  }
  3922  
  3923  func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingChange) MarshalJSON() ([]byte, error) {
  3924  	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingChange
  3925  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3926  }
  3927  
  3928  // GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict: Describes a
  3929  // routing conflict that may cause a deployment not to receive traffic at some
  3930  // base path.
  3931  type GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict struct {
  3932  	// ConflictingDeployment: Existing base path/deployment causing the conflict.
  3933  	ConflictingDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"conflictingDeployment,omitempty"`
  3934  	// Description: Human-readable description of this conflict.
  3935  	Description string `json:"description,omitempty"`
  3936  	// EnvironmentGroup: Name of the environment group in which this conflict
  3937  	// exists.
  3938  	EnvironmentGroup string `json:"environmentGroup,omitempty"`
  3939  	// ForceSendFields is a list of field names (e.g. "ConflictingDeployment") to
  3940  	// unconditionally include in API requests. By default, fields with empty or
  3941  	// default values are omitted from API requests. See
  3942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3943  	// details.
  3944  	ForceSendFields []string `json:"-"`
  3945  	// NullFields is a list of field names (e.g. "ConflictingDeployment") to
  3946  	// include in API requests with the JSON null value. By default, fields with
  3947  	// empty values are omitted from API requests. See
  3948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3949  	NullFields []string `json:"-"`
  3950  }
  3951  
  3952  func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict) MarshalJSON() ([]byte, error) {
  3953  	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
  3954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3955  }
  3956  
  3957  // GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment: Tuple
  3958  // representing a base path and the deployment containing it.
  3959  type GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment struct {
  3960  	// ApiProxy: Name of the deployed API proxy revision containing the base path.
  3961  	ApiProxy string `json:"apiProxy,omitempty"`
  3962  	// Basepath: Base path receiving traffic.
  3963  	Basepath string `json:"basepath,omitempty"`
  3964  	// Environment: Name of the environment in which the proxy is deployed.
  3965  	Environment string `json:"environment,omitempty"`
  3966  	// Revision: Name of the deployed API proxy revision containing the base path.
  3967  	Revision string `json:"revision,omitempty"`
  3968  	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
  3969  	// unconditionally include in API requests. By default, fields with empty or
  3970  	// default values are omitted from API requests. See
  3971  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3972  	// details.
  3973  	ForceSendFields []string `json:"-"`
  3974  	// NullFields is a list of field names (e.g. "ApiProxy") to include in API
  3975  	// requests with the JSON null value. By default, fields with empty values are
  3976  	// omitted from API requests. See
  3977  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3978  	NullFields []string `json:"-"`
  3979  }
  3980  
  3981  func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON() ([]byte, error) {
  3982  	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment
  3983  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3984  }
  3985  
  3986  // GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 11
  3987  type GoogleCloudApigeeV1DeploymentConfig struct {
  3988  	// Attributes: Additional key-value metadata for the deployment.
  3989  	Attributes map[string]string `json:"attributes,omitempty"`
  3990  	// BasePath: Base path where the application will be hosted. Defaults to "/".
  3991  	BasePath string `json:"basePath,omitempty"`
  3992  	// DeploymentGroups: The list of deployment groups in which this proxy should
  3993  	// be deployed. Not currently populated for shared flows.
  3994  	DeploymentGroups []string `json:"deploymentGroups,omitempty"`
  3995  	// Endpoints: A mapping from basepaths to proxy endpoint names in this proxy.
  3996  	// Not populated for shared flows.
  3997  	Endpoints map[string]string `json:"endpoints,omitempty"`
  3998  	// Location: Location of the API proxy bundle as a URI.
  3999  	Location string `json:"location,omitempty"`
  4000  	// Name: Name of the API or shared flow revision to be deployed in the
  4001  	// following format: `organizations/{org}/apis/{api}/revisions/{rev}` or
  4002  	// `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
  4003  	Name string `json:"name,omitempty"`
  4004  	// ProxyUid: Unique ID of the API proxy revision.
  4005  	ProxyUid string `json:"proxyUid,omitempty"`
  4006  	// ServiceAccount: The service account identity associated with this
  4007  	// deployment. If non-empty, will be in the following format:
  4008  	// `projects/-/serviceAccounts/{account_email}`
  4009  	ServiceAccount string `json:"serviceAccount,omitempty"`
  4010  	// Uid: Unique ID. The ID will only change if the deployment is deleted and
  4011  	// recreated.
  4012  	Uid string `json:"uid,omitempty"`
  4013  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  4014  	// unconditionally include in API requests. By default, fields with empty or
  4015  	// default values are omitted from API requests. See
  4016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4017  	// details.
  4018  	ForceSendFields []string `json:"-"`
  4019  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  4020  	// requests with the JSON null value. By default, fields with empty values are
  4021  	// omitted from API requests. See
  4022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4023  	NullFields []string `json:"-"`
  4024  }
  4025  
  4026  func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
  4027  	type NoMethod GoogleCloudApigeeV1DeploymentConfig
  4028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4029  }
  4030  
  4031  // GoogleCloudApigeeV1DeploymentGroupConfig: DeploymentGroupConfig represents a
  4032  // deployment group that should be present in a particular environment.
  4033  type GoogleCloudApigeeV1DeploymentGroupConfig struct {
  4034  	// DeploymentGroupType: Type of the deployment group, which will be either
  4035  	// Standard or Extensible.
  4036  	//
  4037  	// Possible values:
  4038  	//   "DEPLOYMENT_GROUP_TYPE_UNSPECIFIED" - Unspecified type
  4039  	//   "STANDARD" - Standard type
  4040  	//   "EXTENSIBLE" - Extensible Type
  4041  	DeploymentGroupType string `json:"deploymentGroupType,omitempty"`
  4042  	// Name: Name of the deployment group in the following format:
  4043  	// `organizations/{org}/environments/{env}/deploymentGroups/{group}`.
  4044  	Name string `json:"name,omitempty"`
  4045  	// RevisionId: Revision number which can be used by the runtime to detect if
  4046  	// the deployment group has changed between two versions.
  4047  	RevisionId int64 `json:"revisionId,omitempty,string"`
  4048  	// Uid: Unique ID. The ID will only change if the deployment group is deleted
  4049  	// and recreated.
  4050  	Uid string `json:"uid,omitempty"`
  4051  	// ForceSendFields is a list of field names (e.g. "DeploymentGroupType") to
  4052  	// unconditionally include in API requests. By default, fields with empty or
  4053  	// default values are omitted from API requests. See
  4054  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4055  	// details.
  4056  	ForceSendFields []string `json:"-"`
  4057  	// NullFields is a list of field names (e.g. "DeploymentGroupType") to include
  4058  	// in API requests with the JSON null value. By default, fields with empty
  4059  	// values are omitted from API requests. See
  4060  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4061  	NullFields []string `json:"-"`
  4062  }
  4063  
  4064  func (s *GoogleCloudApigeeV1DeploymentGroupConfig) MarshalJSON() ([]byte, error) {
  4065  	type NoMethod GoogleCloudApigeeV1DeploymentGroupConfig
  4066  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4067  }
  4068  
  4069  type GoogleCloudApigeeV1Developer struct {
  4070  	// AccessType: Access type.
  4071  	AccessType string `json:"accessType,omitempty"`
  4072  	// AppFamily: Developer app family.
  4073  	AppFamily string `json:"appFamily,omitempty"`
  4074  	// Apps: List of apps associated with the developer.
  4075  	Apps []string `json:"apps,omitempty"`
  4076  	// Attributes: Optional. Developer attributes (name/value pairs). The custom
  4077  	// attribute limit is 18.
  4078  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  4079  	// Companies: List of companies associated with the developer.
  4080  	Companies []string `json:"companies,omitempty"`
  4081  	// CreatedAt: Output only. Time at which the developer was created in
  4082  	// milliseconds since epoch.
  4083  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4084  	// DeveloperId: ID of the developer. **Note**: IDs are generated internally by
  4085  	// Apigee and are not guaranteed to stay the same over time.
  4086  	DeveloperId string `json:"developerId,omitempty"`
  4087  	// Email: Required. Email address of the developer. This value is used to
  4088  	// uniquely identify the developer in Apigee hybrid. Note that the email
  4089  	// address has to be in lowercase only.
  4090  	Email string `json:"email,omitempty"`
  4091  	// FirstName: Required. First name of the developer.
  4092  	FirstName string `json:"firstName,omitempty"`
  4093  	// LastModifiedAt: Output only. Time at which the developer was last modified
  4094  	// in milliseconds since epoch.
  4095  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  4096  	// LastName: Required. Last name of the developer.
  4097  	LastName string `json:"lastName,omitempty"`
  4098  	// OrganizationName: Output only. Name of the Apigee organization in which the
  4099  	// developer resides.
  4100  	OrganizationName string `json:"organizationName,omitempty"`
  4101  	// Status: Output only. Status of the developer. Valid values are `active` and
  4102  	// `inactive`.
  4103  	Status string `json:"status,omitempty"`
  4104  	// UserName: Required. User name of the developer. Not used by Apigee hybrid.
  4105  	UserName string `json:"userName,omitempty"`
  4106  
  4107  	// ServerResponse contains the HTTP response code and headers from the server.
  4108  	googleapi.ServerResponse `json:"-"`
  4109  	// ForceSendFields is a list of field names (e.g. "AccessType") to
  4110  	// unconditionally include in API requests. By default, fields with empty or
  4111  	// default values are omitted from API requests. See
  4112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4113  	// details.
  4114  	ForceSendFields []string `json:"-"`
  4115  	// NullFields is a list of field names (e.g. "AccessType") to include in API
  4116  	// requests with the JSON null value. By default, fields with empty values are
  4117  	// omitted from API requests. See
  4118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4119  	NullFields []string `json:"-"`
  4120  }
  4121  
  4122  func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
  4123  	type NoMethod GoogleCloudApigeeV1Developer
  4124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4125  }
  4126  
  4127  type GoogleCloudApigeeV1DeveloperApp struct {
  4128  	// ApiProducts: List of API products associated with the developer app.
  4129  	ApiProducts []string `json:"apiProducts,omitempty"`
  4130  	// AppFamily: Developer app family.
  4131  	AppFamily string `json:"appFamily,omitempty"`
  4132  	// AppId: ID of the developer app.
  4133  	AppId string `json:"appId,omitempty"`
  4134  	// Attributes: List of attributes for the developer app.
  4135  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  4136  	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
  4137  	// communicate authorization codes back to developer apps.
  4138  	CallbackUrl string `json:"callbackUrl,omitempty"`
  4139  	// CreatedAt: Output only. Time the developer app was created in milliseconds
  4140  	// since epoch.
  4141  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4142  	// Credentials: Output only. Set of credentials for the developer app
  4143  	// consisting of the consumer key/secret pairs associated with the API
  4144  	// products.
  4145  	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
  4146  	// DeveloperId: ID of the developer.
  4147  	DeveloperId string `json:"developerId,omitempty"`
  4148  	// KeyExpiresIn: Expiration time, in milliseconds, for the consumer key that is
  4149  	// generated for the developer app. If not set or left to the default value of
  4150  	// `-1`, the API key never expires. The expiration time can't be updated after
  4151  	// it is set.
  4152  	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
  4153  	// LastModifiedAt: Output only. Time the developer app was modified in
  4154  	// milliseconds since epoch.
  4155  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  4156  	// Name: Name of the developer app.
  4157  	Name string `json:"name,omitempty"`
  4158  	// Scopes: Scopes to apply to the developer app. The specified scopes must
  4159  	// already exist for the API product that you associate with the developer app.
  4160  	Scopes []string `json:"scopes,omitempty"`
  4161  	// Status: Status of the credential. Valid values include `approved` or
  4162  	// `revoked`.
  4163  	Status string `json:"status,omitempty"`
  4164  
  4165  	// ServerResponse contains the HTTP response code and headers from the server.
  4166  	googleapi.ServerResponse `json:"-"`
  4167  	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
  4168  	// unconditionally include in API requests. By default, fields with empty or
  4169  	// default values are omitted from API requests. See
  4170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4171  	// details.
  4172  	ForceSendFields []string `json:"-"`
  4173  	// NullFields is a list of field names (e.g. "ApiProducts") to include in API
  4174  	// requests with the JSON null value. By default, fields with empty values are
  4175  	// omitted from API requests. See
  4176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4177  	NullFields []string `json:"-"`
  4178  }
  4179  
  4180  func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
  4181  	type NoMethod GoogleCloudApigeeV1DeveloperApp
  4182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4183  }
  4184  
  4185  type GoogleCloudApigeeV1DeveloperAppKey struct {
  4186  	// ApiProducts: List of API products for which the credential can be used.
  4187  	// **Note**: Do not specify the list of API products when creating a consumer
  4188  	// key and secret for a developer app. Instead, use the UpdateDeveloperAppKey
  4189  	// API to make the association after the consumer key and secret are created.
  4190  	ApiProducts []interface{} `json:"apiProducts,omitempty"`
  4191  	// Attributes: List of attributes associated with the credential.
  4192  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  4193  	// ConsumerKey: Consumer key.
  4194  	ConsumerKey string `json:"consumerKey,omitempty"`
  4195  	// ConsumerSecret: Secret key.
  4196  	ConsumerSecret string `json:"consumerSecret,omitempty"`
  4197  	// ExpiresAt: Time the developer app expires in milliseconds since epoch.
  4198  	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
  4199  	// ExpiresInSeconds: Input only. Expiration time, in seconds, for the consumer
  4200  	// key. If not set or left to the default value of `-1`, the API key never
  4201  	// expires. The expiration time can't be updated after it is set.
  4202  	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
  4203  	// IssuedAt: Time the developer app was created in milliseconds since epoch.
  4204  	IssuedAt int64 `json:"issuedAt,omitempty,string"`
  4205  	// Scopes: Scopes to apply to the app. The specified scope names must already
  4206  	// be defined for the API product that you associate with the app.
  4207  	Scopes []string `json:"scopes,omitempty"`
  4208  	// Status: Status of the credential. Valid values include `approved` or
  4209  	// `revoked`.
  4210  	Status string `json:"status,omitempty"`
  4211  
  4212  	// ServerResponse contains the HTTP response code and headers from the server.
  4213  	googleapi.ServerResponse `json:"-"`
  4214  	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
  4215  	// unconditionally include in API requests. By default, fields with empty or
  4216  	// default values are omitted from API requests. See
  4217  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4218  	// details.
  4219  	ForceSendFields []string `json:"-"`
  4220  	// NullFields is a list of field names (e.g. "ApiProducts") to include in API
  4221  	// requests with the JSON null value. By default, fields with empty values are
  4222  	// omitted from API requests. See
  4223  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4224  	NullFields []string `json:"-"`
  4225  }
  4226  
  4227  func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
  4228  	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
  4229  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4230  }
  4231  
  4232  // GoogleCloudApigeeV1DeveloperBalance: Account balance for the developer.
  4233  type GoogleCloudApigeeV1DeveloperBalance struct {
  4234  	// Wallets: Output only. List of all wallets. Each individual wallet stores the
  4235  	// account balance for a particular currency.
  4236  	Wallets []*GoogleCloudApigeeV1DeveloperBalanceWallet `json:"wallets,omitempty"`
  4237  
  4238  	// ServerResponse contains the HTTP response code and headers from the server.
  4239  	googleapi.ServerResponse `json:"-"`
  4240  	// ForceSendFields is a list of field names (e.g. "Wallets") to unconditionally
  4241  	// include in API requests. By default, fields with empty or default values are
  4242  	// omitted from API requests. See
  4243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4244  	// details.
  4245  	ForceSendFields []string `json:"-"`
  4246  	// NullFields is a list of field names (e.g. "Wallets") to include in API
  4247  	// requests with the JSON null value. By default, fields with empty values are
  4248  	// omitted from API requests. See
  4249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4250  	NullFields []string `json:"-"`
  4251  }
  4252  
  4253  func (s *GoogleCloudApigeeV1DeveloperBalance) MarshalJSON() ([]byte, error) {
  4254  	type NoMethod GoogleCloudApigeeV1DeveloperBalance
  4255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4256  }
  4257  
  4258  // GoogleCloudApigeeV1DeveloperBalanceWallet: Wallet used to manage an account
  4259  // balance for a particular currency.
  4260  type GoogleCloudApigeeV1DeveloperBalanceWallet struct {
  4261  	// Balance: Current remaining balance of the developer for a particular
  4262  	// currency.
  4263  	Balance *GoogleTypeMoney `json:"balance,omitempty"`
  4264  	// LastCreditTime: Output only. Time at which the developer last added credit
  4265  	// to the account in milliseconds since epoch.
  4266  	LastCreditTime int64 `json:"lastCreditTime,omitempty,string"`
  4267  	// ForceSendFields is a list of field names (e.g. "Balance") to unconditionally
  4268  	// include in API requests. By default, fields with empty or default values are
  4269  	// omitted from API requests. See
  4270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4271  	// details.
  4272  	ForceSendFields []string `json:"-"`
  4273  	// NullFields is a list of field names (e.g. "Balance") to include in API
  4274  	// requests with the JSON null value. By default, fields with empty values are
  4275  	// omitted from API requests. See
  4276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4277  	NullFields []string `json:"-"`
  4278  }
  4279  
  4280  func (s *GoogleCloudApigeeV1DeveloperBalanceWallet) MarshalJSON() ([]byte, error) {
  4281  	type NoMethod GoogleCloudApigeeV1DeveloperBalanceWallet
  4282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4283  }
  4284  
  4285  // GoogleCloudApigeeV1DeveloperMonetizationConfig: Monetization configuration
  4286  // for the developer.
  4287  type GoogleCloudApigeeV1DeveloperMonetizationConfig struct {
  4288  	// BillingType: Billing type.
  4289  	//
  4290  	// Possible values:
  4291  	//   "BILLING_TYPE_UNSPECIFIED" - The default/unset value.
  4292  	//   "PREPAID" - Developer pays in advance for the use of APIs and the charged
  4293  	// amount is deducted from their account balance.
  4294  	//   "POSTPAID" - Developer does not maintain an account balance. The API
  4295  	// provider bills the developer for API usage.
  4296  	BillingType string `json:"billingType,omitempty"`
  4297  
  4298  	// ServerResponse contains the HTTP response code and headers from the server.
  4299  	googleapi.ServerResponse `json:"-"`
  4300  	// ForceSendFields is a list of field names (e.g. "BillingType") to
  4301  	// unconditionally include in API requests. By default, fields with empty or
  4302  	// default values are omitted from API requests. See
  4303  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4304  	// details.
  4305  	ForceSendFields []string `json:"-"`
  4306  	// NullFields is a list of field names (e.g. "BillingType") to include in API
  4307  	// requests with the JSON null value. By default, fields with empty values are
  4308  	// omitted from API requests. See
  4309  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4310  	NullFields []string `json:"-"`
  4311  }
  4312  
  4313  func (s *GoogleCloudApigeeV1DeveloperMonetizationConfig) MarshalJSON() ([]byte, error) {
  4314  	type NoMethod GoogleCloudApigeeV1DeveloperMonetizationConfig
  4315  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4316  }
  4317  
  4318  // GoogleCloudApigeeV1DeveloperSubscription: Structure of a
  4319  // DeveloperSubscription.
  4320  type GoogleCloudApigeeV1DeveloperSubscription struct {
  4321  	// Apiproduct: Name of the API product for which the developer is purchasing a
  4322  	// subscription.
  4323  	Apiproduct string `json:"apiproduct,omitempty"`
  4324  	// CreatedAt: Output only. Time when the API product subscription was created
  4325  	// in milliseconds since epoch.
  4326  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4327  	// EndTime: Time when the API product subscription ends in milliseconds since
  4328  	// epoch.
  4329  	EndTime int64 `json:"endTime,omitempty,string"`
  4330  	// LastModifiedAt: Output only. Time when the API product subscription was last
  4331  	// modified in milliseconds since epoch.
  4332  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  4333  	// Name: Output only. Name of the API product subscription.
  4334  	Name string `json:"name,omitempty"`
  4335  	// StartTime: Time when the API product subscription starts in milliseconds
  4336  	// since epoch.
  4337  	StartTime int64 `json:"startTime,omitempty,string"`
  4338  
  4339  	// ServerResponse contains the HTTP response code and headers from the server.
  4340  	googleapi.ServerResponse `json:"-"`
  4341  	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
  4342  	// unconditionally include in API requests. By default, fields with empty or
  4343  	// default values are omitted from API requests. See
  4344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4345  	// details.
  4346  	ForceSendFields []string `json:"-"`
  4347  	// NullFields is a list of field names (e.g. "Apiproduct") to include in API
  4348  	// requests with the JSON null value. By default, fields with empty values are
  4349  	// omitted from API requests. See
  4350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4351  	NullFields []string `json:"-"`
  4352  }
  4353  
  4354  func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) {
  4355  	type NoMethod GoogleCloudApigeeV1DeveloperSubscription
  4356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4357  }
  4358  
  4359  // GoogleCloudApigeeV1DimensionMetric: Encapsulates a metric grouped by
  4360  // dimension.
  4361  type GoogleCloudApigeeV1DimensionMetric struct {
  4362  	// IndividualNames: Individual dimension names. E.g. ["dim1_name",
  4363  	// "dim2_name"].
  4364  	IndividualNames []string `json:"individualNames,omitempty"`
  4365  	// Metrics: List of metrics.
  4366  	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
  4367  	// Name: Comma joined dimension names. E.g. "dim1_name,dim2_name". Deprecated.
  4368  	// If name already has comma before join, we may get wrong splits. Please use
  4369  	// individual_names.
  4370  	Name string `json:"name,omitempty"`
  4371  	// ForceSendFields is a list of field names (e.g. "IndividualNames") to
  4372  	// unconditionally include in API requests. By default, fields with empty or
  4373  	// default values are omitted from API requests. See
  4374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4375  	// details.
  4376  	ForceSendFields []string `json:"-"`
  4377  	// NullFields is a list of field names (e.g. "IndividualNames") to include in
  4378  	// API requests with the JSON null value. By default, fields with empty values
  4379  	// are omitted from API requests. See
  4380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4381  	NullFields []string `json:"-"`
  4382  }
  4383  
  4384  func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
  4385  	type NoMethod GoogleCloudApigeeV1DimensionMetric
  4386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4387  }
  4388  
  4389  // GoogleCloudApigeeV1DisableSecurityActionRequest: Message to disable an
  4390  // enabled SecurityAction.
  4391  type GoogleCloudApigeeV1DisableSecurityActionRequest struct {
  4392  }
  4393  
  4394  // GoogleCloudApigeeV1DocumentationFile: Documentation file contents for a
  4395  // catalog item.
  4396  type GoogleCloudApigeeV1DocumentationFile struct {
  4397  	// Contents: Required. The file contents. The max size is 4 MB.
  4398  	Contents string `json:"contents,omitempty"`
  4399  	// DisplayName: Required. A display name for the file, shown in the management
  4400  	// UI. Max length is 255 characters.
  4401  	DisplayName string `json:"displayName,omitempty"`
  4402  	// ForceSendFields is a list of field names (e.g. "Contents") to
  4403  	// unconditionally include in API requests. By default, fields with empty or
  4404  	// default values are omitted from API requests. See
  4405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4406  	// details.
  4407  	ForceSendFields []string `json:"-"`
  4408  	// NullFields is a list of field names (e.g. "Contents") to include in API
  4409  	// requests with the JSON null value. By default, fields with empty values are
  4410  	// omitted from API requests. See
  4411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4412  	NullFields []string `json:"-"`
  4413  }
  4414  
  4415  func (s *GoogleCloudApigeeV1DocumentationFile) MarshalJSON() ([]byte, error) {
  4416  	type NoMethod GoogleCloudApigeeV1DocumentationFile
  4417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4418  }
  4419  
  4420  // GoogleCloudApigeeV1EnableSecurityActionRequest: Message to enable a disabled
  4421  // SecurityAction.
  4422  type GoogleCloudApigeeV1EnableSecurityActionRequest struct {
  4423  }
  4424  
  4425  // GoogleCloudApigeeV1EndpointAttachment: Apigee endpoint attachment. For more
  4426  // information, see [Southbound networking patterns]
  4427  // (https://cloud.google.com/apigee/docs/api-platform/architecture/southbound-networking-patterns-endpoints).
  4428  type GoogleCloudApigeeV1EndpointAttachment struct {
  4429  	// ConnectionState: Output only. State of the endpoint attachment connection to
  4430  	// the service attachment.
  4431  	//
  4432  	// Possible values:
  4433  	//   "CONNECTION_STATE_UNSPECIFIED" - The connection state has not been set.
  4434  	//   "UNAVAILABLE" - The connection state is unavailable at this time, possibly
  4435  	// because the endpoint attachment is currently being provisioned.
  4436  	//   "PENDING" - The connection is pending acceptance by the PSC producer.
  4437  	//   "ACCEPTED" - The connection has been accepted by the PSC producer.
  4438  	//   "REJECTED" - The connection has been rejected by the PSC producer.
  4439  	//   "CLOSED" - The connection has been closed by the PSC producer and will not
  4440  	// serve traffic going forward.
  4441  	//   "FROZEN" - The connection has been frozen by the PSC producer and will not
  4442  	// serve traffic.
  4443  	//   "NEEDS_ATTENTION" - The connection has been accepted by the PSC producer,
  4444  	// but it is not ready to serve the traffic due to producer side issues.
  4445  	ConnectionState string `json:"connectionState,omitempty"`
  4446  	// Host: Output only. Host that can be used in either the HTTP target endpoint
  4447  	// directly or as the host in target server.
  4448  	Host string `json:"host,omitempty"`
  4449  	// Location: Required. Location of the endpoint attachment.
  4450  	Location string `json:"location,omitempty"`
  4451  	// Name: Name of the endpoint attachment. Use the following structure in your
  4452  	// request: `organizations/{org}/endpointAttachments/{endpoint_attachment}`
  4453  	Name string `json:"name,omitempty"`
  4454  	// ServiceAttachment: Format: projects/*/regions/*/serviceAttachments/*
  4455  	ServiceAttachment string `json:"serviceAttachment,omitempty"`
  4456  	// State: Output only. State of the endpoint attachment. Values other than
  4457  	// `ACTIVE` mean the resource is not ready to use.
  4458  	//
  4459  	// Possible values:
  4460  	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
  4461  	//   "CREATING" - Resource is being created.
  4462  	//   "ACTIVE" - Resource is provisioned and ready to use.
  4463  	//   "DELETING" - The resource is being deleted.
  4464  	//   "UPDATING" - The resource is being updated.
  4465  	State string `json:"state,omitempty"`
  4466  
  4467  	// ServerResponse contains the HTTP response code and headers from the server.
  4468  	googleapi.ServerResponse `json:"-"`
  4469  	// ForceSendFields is a list of field names (e.g. "ConnectionState") to
  4470  	// unconditionally include in API requests. By default, fields with empty or
  4471  	// default values are omitted from API requests. See
  4472  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4473  	// details.
  4474  	ForceSendFields []string `json:"-"`
  4475  	// NullFields is a list of field names (e.g. "ConnectionState") to include in
  4476  	// API requests with the JSON null value. By default, fields with empty values
  4477  	// are omitted from API requests. See
  4478  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4479  	NullFields []string `json:"-"`
  4480  }
  4481  
  4482  func (s *GoogleCloudApigeeV1EndpointAttachment) MarshalJSON() ([]byte, error) {
  4483  	type NoMethod GoogleCloudApigeeV1EndpointAttachment
  4484  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4485  }
  4486  
  4487  // GoogleCloudApigeeV1EndpointChainingRule: EndpointChainingRule specifies the
  4488  // proxies contained in a particular deployment group, so that other deployment
  4489  // groups can find them in chaining calls.
  4490  type GoogleCloudApigeeV1EndpointChainingRule struct {
  4491  	// DeploymentGroup: The deployment group to target for cross-shard chaining
  4492  	// calls to these proxies.
  4493  	DeploymentGroup string `json:"deploymentGroup,omitempty"`
  4494  	// ProxyIds: List of proxy ids which may be found in the given deployment
  4495  	// group.
  4496  	ProxyIds []string `json:"proxyIds,omitempty"`
  4497  	// ForceSendFields is a list of field names (e.g. "DeploymentGroup") to
  4498  	// unconditionally include in API requests. By default, fields with empty or
  4499  	// default values are omitted from API requests. See
  4500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4501  	// details.
  4502  	ForceSendFields []string `json:"-"`
  4503  	// NullFields is a list of field names (e.g. "DeploymentGroup") to include in
  4504  	// API requests with the JSON null value. By default, fields with empty values
  4505  	// are omitted from API requests. See
  4506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4507  	NullFields []string `json:"-"`
  4508  }
  4509  
  4510  func (s *GoogleCloudApigeeV1EndpointChainingRule) MarshalJSON() ([]byte, error) {
  4511  	type NoMethod GoogleCloudApigeeV1EndpointChainingRule
  4512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4513  }
  4514  
  4515  // GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities in this
  4516  // API.
  4517  type GoogleCloudApigeeV1EntityMetadata struct {
  4518  	// CreatedAt: Time at which the API proxy was created, in milliseconds since
  4519  	// epoch.
  4520  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4521  	// LastModifiedAt: Time at which the API proxy was most recently modified, in
  4522  	// milliseconds since epoch.
  4523  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  4524  	// SubType: The type of entity described
  4525  	SubType string `json:"subType,omitempty"`
  4526  	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
  4527  	// unconditionally include in API requests. By default, fields with empty or
  4528  	// default values are omitted from API requests. See
  4529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4530  	// details.
  4531  	ForceSendFields []string `json:"-"`
  4532  	// NullFields is a list of field names (e.g. "CreatedAt") to include in API
  4533  	// requests with the JSON null value. By default, fields with empty values are
  4534  	// omitted from API requests. See
  4535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4536  	NullFields []string `json:"-"`
  4537  }
  4538  
  4539  func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
  4540  	type NoMethod GoogleCloudApigeeV1EntityMetadata
  4541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4542  }
  4543  
  4544  type GoogleCloudApigeeV1Environment struct {
  4545  	// ApiProxyType: Optional. API Proxy type supported by the environment. The
  4546  	// type can be set when creating the Environment and cannot be changed.
  4547  	//
  4548  	// Possible values:
  4549  	//   "API_PROXY_TYPE_UNSPECIFIED" - API proxy type not specified.
  4550  	//   "PROGRAMMABLE" - Programmable API Proxies enable you to develop APIs with
  4551  	// highly flexible behavior using bundled policy configuration and one or more
  4552  	// programming languages to describe complex sequential and/or conditional
  4553  	// flows of logic.
  4554  	//   "CONFIGURABLE" - Configurable API Proxies enable you to develop efficient
  4555  	// APIs using simple configuration while complex execution control flow logic
  4556  	// is handled by Apigee. This type only works with the ARCHIVE deployment type
  4557  	// and cannot be combined with the PROXY deployment type.
  4558  	ApiProxyType string `json:"apiProxyType,omitempty"`
  4559  	// CreatedAt: Output only. Creation time of this environment as milliseconds
  4560  	// since epoch.
  4561  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4562  	// DeploymentType: Optional. Deployment type supported by the environment. The
  4563  	// deployment type can be set when creating the environment and cannot be
  4564  	// changed. When you enable archive deployment, you will be **prevented from
  4565  	// performing** a subset of actions
  4566  	// (/apigee/docs/api-platform/local-development/overview#prevented-actions)
  4567  	// within the environment, including: * Managing the deployment of API proxy or
  4568  	// shared flow revisions * Creating, updating, or deleting resource files *
  4569  	// Creating, updating, or deleting target servers
  4570  	//
  4571  	// Possible values:
  4572  	//   "DEPLOYMENT_TYPE_UNSPECIFIED" - Deployment type not specified.
  4573  	//   "PROXY" - Proxy deployment enables you to develop and deploy API proxies
  4574  	// using Apigee on Google Cloud. This cannot currently be combined with the
  4575  	// CONFIGURABLE API proxy type.
  4576  	//   "ARCHIVE" - Archive deployment enables you to develop API proxies locally
  4577  	// then deploy an archive of your API proxy configuration to an environment in
  4578  	// Apigee on Google Cloud. You will be prevented from performing a [subset of
  4579  	// actions](/apigee/docs/api-platform/local-development/overview#prevented-actio
  4580  	// ns) within the environment.
  4581  	DeploymentType string `json:"deploymentType,omitempty"`
  4582  	// Description: Optional. Description of the environment.
  4583  	Description string `json:"description,omitempty"`
  4584  	// DisplayName: Optional. Display name for this environment.
  4585  	DisplayName string `json:"displayName,omitempty"`
  4586  	// ForwardProxyUri: Optional. URI of the forward proxy to be applied to the
  4587  	// runtime instances in this environment. Must be in the format of
  4588  	// {scheme}://{hostname}:{port}. Note that the scheme must be one of "http" or
  4589  	// "https", and the port must be supplied. To remove a forward proxy setting,
  4590  	// update the field to an empty value. Note: At this time, PUT operations to
  4591  	// add forwardProxyUri to an existing environment fail if the environment has
  4592  	// nodeConfig set up. To successfully add the forwardProxyUri setting in this
  4593  	// case, include the NodeConfig details with the request.
  4594  	ForwardProxyUri      string `json:"forwardProxyUri,omitempty"`
  4595  	HasAttachedFlowHooks bool   `json:"hasAttachedFlowHooks,omitempty"`
  4596  	// LastModifiedAt: Output only. Last modification time of this environment as
  4597  	// milliseconds since epoch.
  4598  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  4599  	// Name: Required. Name of the environment. Values must match the regular
  4600  	// expression `^[.\\p{Alnum}-_]{1,255}$`
  4601  	Name string `json:"name,omitempty"`
  4602  	// NodeConfig: Optional. NodeConfig of the environment.
  4603  	NodeConfig *GoogleCloudApigeeV1NodeConfig `json:"nodeConfig,omitempty"`
  4604  	// Properties: Optional. Key-value pairs that may be used for customizing the
  4605  	// environment.
  4606  	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
  4607  	// State: Output only. State of the environment. Values other than ACTIVE means
  4608  	// the resource is not ready to use.
  4609  	//
  4610  	// Possible values:
  4611  	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
  4612  	//   "CREATING" - Resource is being created.
  4613  	//   "ACTIVE" - Resource is provisioned and ready to use.
  4614  	//   "DELETING" - The resource is being deleted.
  4615  	//   "UPDATING" - The resource is being updated.
  4616  	State string `json:"state,omitempty"`
  4617  	// Type: Optional. EnvironmentType selected for the environment.
  4618  	//
  4619  	// Possible values:
  4620  	//   "ENVIRONMENT_TYPE_UNSPECIFIED" - Environment type not specified.
  4621  	//   "BASE" - This is the default type. Base environment has limited capacity
  4622  	// and capabilities and are usually used when you are getting started with
  4623  	// Apigee or while experimenting. Refer to Apigee's public documentation for
  4624  	// more details.
  4625  	//   "INTERMEDIATE" - Intermediate environment supports API management features
  4626  	// and higher capacity than Base environment. Refer to Apigee's public
  4627  	// documentation for more details.
  4628  	//   "COMPREHENSIVE" - Comprehensive environment supports advanced capabilites
  4629  	// and even higher capacity than Intermediate environment. Refer to Apigee's
  4630  	// public documentation for more details.
  4631  	Type string `json:"type,omitempty"`
  4632  
  4633  	// ServerResponse contains the HTTP response code and headers from the server.
  4634  	googleapi.ServerResponse `json:"-"`
  4635  	// ForceSendFields is a list of field names (e.g. "ApiProxyType") to
  4636  	// unconditionally include in API requests. By default, fields with empty or
  4637  	// default values are omitted from API requests. See
  4638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4639  	// details.
  4640  	ForceSendFields []string `json:"-"`
  4641  	// NullFields is a list of field names (e.g. "ApiProxyType") to include in API
  4642  	// requests with the JSON null value. By default, fields with empty values are
  4643  	// omitted from API requests. See
  4644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4645  	NullFields []string `json:"-"`
  4646  }
  4647  
  4648  func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
  4649  	type NoMethod GoogleCloudApigeeV1Environment
  4650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4651  }
  4652  
  4653  type GoogleCloudApigeeV1EnvironmentConfig struct {
  4654  	// AddonsConfig: The latest runtime configurations for add-ons.
  4655  	AddonsConfig *GoogleCloudApigeeV1RuntimeAddonsConfig `json:"addonsConfig,omitempty"`
  4656  	// ArcConfigLocation: The location for the config blob of API Runtime Control,
  4657  	// aka Envoy Adapter, for op-based authentication as a URI, e.g. a Cloud
  4658  	// Storage URI. This is only used by Envoy-based gateways.
  4659  	ArcConfigLocation string `json:"arcConfigLocation,omitempty"`
  4660  	// CreateTime: Time that the environment configuration was created.
  4661  	CreateTime string `json:"createTime,omitempty"`
  4662  	// DataCollectors: List of data collectors used by the deployments in the
  4663  	// environment.
  4664  	DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
  4665  	// DebugMask: Debug mask that applies to all deployments in the environment.
  4666  	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
  4667  	// DeploymentGroups: List of deployment groups in the environment.
  4668  	DeploymentGroups []*GoogleCloudApigeeV1DeploymentGroupConfig `json:"deploymentGroups,omitempty"`
  4669  	// Deployments: List of deployments in the environment.
  4670  	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
  4671  	// EnvScopedRevisionId: Revision ID for environment-scoped resources (e.g.
  4672  	// target servers, keystores) in this config. This ID will increment any time a
  4673  	// resource not scoped to a deployment group changes.
  4674  	EnvScopedRevisionId int64 `json:"envScopedRevisionId,omitempty,string"`
  4675  	// FeatureFlags: Feature flags inherited from the organization and environment.
  4676  	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
  4677  	// Flowhooks: List of flow hooks in the environment.
  4678  	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
  4679  	// ForwardProxyUri: The forward proxy's url to be used by the runtime. When
  4680  	// set, runtime will send requests to the target via the given forward proxy.
  4681  	// This is only used by programmable gateways.
  4682  	ForwardProxyUri string `json:"forwardProxyUri,omitempty"`
  4683  	// GatewayConfigLocation: The location for the gateway config blob as a URI,
  4684  	// e.g. a Cloud Storage URI. This is only used by Envoy-based gateways.
  4685  	GatewayConfigLocation string `json:"gatewayConfigLocation,omitempty"`
  4686  	// Keystores: List of keystores in the environment.
  4687  	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
  4688  	// Name: Name of the environment configuration in the following format:
  4689  	// `organizations/{org}/environments/{env}/configs/{config}`
  4690  	Name string `json:"name,omitempty"`
  4691  	// Provider: Used by the Control plane to add context information to help
  4692  	// detect the source of the document during diagnostics and debugging.
  4693  	Provider string `json:"provider,omitempty"`
  4694  	// PubsubTopic: Name of the PubSub topic for the environment.
  4695  	PubsubTopic string `json:"pubsubTopic,omitempty"`
  4696  	// ResourceReferences: List of resource references in the environment.
  4697  	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
  4698  	// Resources: List of resource versions in the environment.
  4699  	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
  4700  	// RevisionId: Revision ID of the environment configuration. The higher the
  4701  	// value, the more recently the configuration was deployed.
  4702  	RevisionId int64 `json:"revisionId,omitempty,string"`
  4703  	// SequenceNumber: DEPRECATED: Use revision_id.
  4704  	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
  4705  	// Targets: List of target servers in the environment. Disabled target servers
  4706  	// are not displayed.
  4707  	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
  4708  	// TraceConfig: Trace configurations. Contains config for the environment and
  4709  	// config overrides for specific API proxies.
  4710  	TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
  4711  	// Uid: Unique ID for the environment configuration. The ID will only change if
  4712  	// the environment is deleted and recreated.
  4713  	Uid string `json:"uid,omitempty"`
  4714  
  4715  	// ServerResponse contains the HTTP response code and headers from the server.
  4716  	googleapi.ServerResponse `json:"-"`
  4717  	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
  4718  	// unconditionally include in API requests. By default, fields with empty or
  4719  	// default values are omitted from API requests. See
  4720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4721  	// details.
  4722  	ForceSendFields []string `json:"-"`
  4723  	// NullFields is a list of field names (e.g. "AddonsConfig") to include in API
  4724  	// requests with the JSON null value. By default, fields with empty values are
  4725  	// omitted from API requests. See
  4726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4727  	NullFields []string `json:"-"`
  4728  }
  4729  
  4730  func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
  4731  	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
  4732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4733  }
  4734  
  4735  // GoogleCloudApigeeV1EnvironmentGroup: EnvironmentGroup configuration. An
  4736  // environment group is used to group one or more Apigee environments under a
  4737  // single host name.
  4738  type GoogleCloudApigeeV1EnvironmentGroup struct {
  4739  	// CreatedAt: Output only. The time at which the environment group was created
  4740  	// as milliseconds since epoch.
  4741  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4742  	// Hostnames: Required. Host names for this environment group.
  4743  	Hostnames []string `json:"hostnames,omitempty"`
  4744  	// LastModifiedAt: Output only. The time at which the environment group was
  4745  	// last updated as milliseconds since epoch.
  4746  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  4747  	// Name: ID of the environment group.
  4748  	Name string `json:"name,omitempty"`
  4749  	// State: Output only. State of the environment group. Values other than ACTIVE
  4750  	// means the resource is not ready to use.
  4751  	//
  4752  	// Possible values:
  4753  	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
  4754  	//   "CREATING" - Resource is being created.
  4755  	//   "ACTIVE" - Resource is provisioned and ready to use.
  4756  	//   "DELETING" - The resource is being deleted.
  4757  	//   "UPDATING" - The resource is being updated.
  4758  	State string `json:"state,omitempty"`
  4759  
  4760  	// ServerResponse contains the HTTP response code and headers from the server.
  4761  	googleapi.ServerResponse `json:"-"`
  4762  	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
  4763  	// unconditionally include in API requests. By default, fields with empty or
  4764  	// default values are omitted from API requests. See
  4765  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4766  	// details.
  4767  	ForceSendFields []string `json:"-"`
  4768  	// NullFields is a list of field names (e.g. "CreatedAt") to include in API
  4769  	// requests with the JSON null value. By default, fields with empty values are
  4770  	// omitted from API requests. See
  4771  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4772  	NullFields []string `json:"-"`
  4773  }
  4774  
  4775  func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
  4776  	type NoMethod GoogleCloudApigeeV1EnvironmentGroup
  4777  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4778  }
  4779  
  4780  // GoogleCloudApigeeV1EnvironmentGroupAttachment: EnvironmentGroupAttachment is
  4781  // a resource which defines an attachment of an environment to an environment
  4782  // group.
  4783  type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
  4784  	// CreatedAt: Output only. The time at which the environment group attachment
  4785  	// was created as milliseconds since epoch.
  4786  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  4787  	// Environment: Required. ID of the attached environment.
  4788  	Environment string `json:"environment,omitempty"`
  4789  	// EnvironmentGroupId: Output only. ID of the environment group.
  4790  	EnvironmentGroupId string `json:"environmentGroupId,omitempty"`
  4791  	// Name: ID of the environment group attachment.
  4792  	Name string `json:"name,omitempty"`
  4793  
  4794  	// ServerResponse contains the HTTP response code and headers from the server.
  4795  	googleapi.ServerResponse `json:"-"`
  4796  	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
  4797  	// unconditionally include in API requests. By default, fields with empty or
  4798  	// default values are omitted from API requests. See
  4799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4800  	// details.
  4801  	ForceSendFields []string `json:"-"`
  4802  	// NullFields is a list of field names (e.g. "CreatedAt") to include in API
  4803  	// requests with the JSON null value. By default, fields with empty values are
  4804  	// omitted from API requests. See
  4805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4806  	NullFields []string `json:"-"`
  4807  }
  4808  
  4809  func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
  4810  	type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
  4811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4812  }
  4813  
  4814  // GoogleCloudApigeeV1EnvironmentGroupConfig: EnvironmentGroupConfig is a
  4815  // revisioned snapshot of an EnvironmentGroup and its associated routing rules.
  4816  type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
  4817  	// EndpointChainingRules: A list of proxies in each deployment group for proxy
  4818  	// chaining calls.
  4819  	EndpointChainingRules []*GoogleCloudApigeeV1EndpointChainingRule `json:"endpointChainingRules,omitempty"`
  4820  	// Hostnames: Host names for the environment group.
  4821  	Hostnames []string `json:"hostnames,omitempty"`
  4822  	// Location: When this message appears in the top-level IngressConfig, this
  4823  	// field will be populated in lieu of the inlined routing_rules and hostnames
  4824  	// fields. Some URL for downloading the full EnvironmentGroupConfig for this
  4825  	// group.
  4826  	Location string `json:"location,omitempty"`
  4827  	// Name: Name of the environment group in the following format:
  4828  	// `organizations/{org}/envgroups/{envgroup}`.
  4829  	Name string `json:"name,omitempty"`
  4830  	// RevisionId: Revision id that defines the ordering of the
  4831  	// EnvironmentGroupConfig resource. The higher the revision, the more recently
  4832  	// the configuration was deployed.
  4833  	RevisionId int64 `json:"revisionId,omitempty,string"`
  4834  	// RoutingRules: Ordered list of routing rules defining how traffic to this
  4835  	// environment group's hostnames should be routed to different environments.
  4836  	RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
  4837  	// Uid: A unique id for the environment group config that will only change if
  4838  	// the environment group is deleted and recreated.
  4839  	Uid string `json:"uid,omitempty"`
  4840  
  4841  	// ServerResponse contains the HTTP response code and headers from the server.
  4842  	googleapi.ServerResponse `json:"-"`
  4843  	// ForceSendFields is a list of field names (e.g. "EndpointChainingRules") to
  4844  	// unconditionally include in API requests. By default, fields with empty or
  4845  	// default values are omitted from API requests. See
  4846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4847  	// details.
  4848  	ForceSendFields []string `json:"-"`
  4849  	// NullFields is a list of field names (e.g. "EndpointChainingRules") to
  4850  	// include in API requests with the JSON null value. By default, fields with
  4851  	// empty values are omitted from API requests. See
  4852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4853  	NullFields []string `json:"-"`
  4854  }
  4855  
  4856  func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
  4857  	type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
  4858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4859  }
  4860  
  4861  // GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest: Request for
  4862  // ExpireDeveloperSubscription.
  4863  type GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest struct {
  4864  }
  4865  
  4866  // GoogleCloudApigeeV1Export: Details of an export job.
  4867  type GoogleCloudApigeeV1Export struct {
  4868  	// Created: Output only. Time the export job was created.
  4869  	Created string `json:"created,omitempty"`
  4870  	// DatastoreName: Name of the datastore that is the destination of the export
  4871  	// job [datastore]
  4872  	DatastoreName string `json:"datastoreName,omitempty"`
  4873  	// Description: Description of the export job.
  4874  	Description string `json:"description,omitempty"`
  4875  	// Error: Output only. Error is set when export fails
  4876  	Error string `json:"error,omitempty"`
  4877  	// ExecutionTime: Output only. Execution time for this export job. If the job
  4878  	// is still in progress, it will be set to the amount of time that has elapsed
  4879  	// since`created`, in seconds. Else, it will set to (`updated` - `created`), in
  4880  	// seconds.
  4881  	ExecutionTime string `json:"executionTime,omitempty"`
  4882  	// Name: Display name of the export job.
  4883  	Name string `json:"name,omitempty"`
  4884  	// Self: Output only. Self link of the export job. A URI that can be used to
  4885  	// retrieve the status of an export job. Example:
  4886  	// `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f30-46d6
  4887  	// -ae6f-318d0cb961bd`
  4888  	Self string `json:"self,omitempty"`
  4889  	// State: Output only. Status of the export job. Valid values include
  4890  	// `enqueued`, `running`, `completed`, and `failed`.
  4891  	State string `json:"state,omitempty"`
  4892  	// Updated: Output only. Time the export job was last updated.
  4893  	Updated string `json:"updated,omitempty"`
  4894  
  4895  	// ServerResponse contains the HTTP response code and headers from the server.
  4896  	googleapi.ServerResponse `json:"-"`
  4897  	// ForceSendFields is a list of field names (e.g. "Created") to unconditionally
  4898  	// include in API requests. By default, fields with empty or default values are
  4899  	// omitted from API requests. See
  4900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4901  	// details.
  4902  	ForceSendFields []string `json:"-"`
  4903  	// NullFields is a list of field names (e.g. "Created") to include in API
  4904  	// requests with the JSON null value. By default, fields with empty values are
  4905  	// omitted from API requests. See
  4906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4907  	NullFields []string `json:"-"`
  4908  }
  4909  
  4910  func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
  4911  	type NoMethod GoogleCloudApigeeV1Export
  4912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4913  }
  4914  
  4915  // GoogleCloudApigeeV1ExportRequest: Request body for [CreateExportRequest]
  4916  type GoogleCloudApigeeV1ExportRequest struct {
  4917  	// CsvDelimiter: Optional. Delimiter used in the CSV file, if `outputFormat` is
  4918  	// set to `csv`. Defaults to the `,` (comma) character. Supported delimiter
  4919  	// characters include comma (`,`), pipe (`|`), and tab (`\t`).
  4920  	CsvDelimiter string `json:"csvDelimiter,omitempty"`
  4921  	// DatastoreName: Required. Name of the preconfigured datastore.
  4922  	DatastoreName string `json:"datastoreName,omitempty"`
  4923  	// DateRange: Required. Date range of the data to export.
  4924  	DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
  4925  	// Description: Optional. Description of the export job.
  4926  	Description string `json:"description,omitempty"`
  4927  	// Name: Required. Display name of the export job.
  4928  	Name string `json:"name,omitempty"`
  4929  	// OutputFormat: Optional. Output format of the export. Valid values include:
  4930  	// `csv` or `json`. Defaults to `json`. Note: Configure the delimiter for CSV
  4931  	// output using the `csvDelimiter` property.
  4932  	OutputFormat string `json:"outputFormat,omitempty"`
  4933  	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
  4934  	// unconditionally include in API requests. By default, fields with empty or
  4935  	// default values are omitted from API requests. See
  4936  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4937  	// details.
  4938  	ForceSendFields []string `json:"-"`
  4939  	// NullFields is a list of field names (e.g. "CsvDelimiter") to include in API
  4940  	// requests with the JSON null value. By default, fields with empty values are
  4941  	// omitted from API requests. See
  4942  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4943  	NullFields []string `json:"-"`
  4944  }
  4945  
  4946  func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
  4947  	type NoMethod GoogleCloudApigeeV1ExportRequest
  4948  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4949  }
  4950  
  4951  type GoogleCloudApigeeV1FlowHook struct {
  4952  	// ContinueOnError: Optional. Flag that specifies whether execution should
  4953  	// continue if the flow hook throws an exception. Set to `true` to continue
  4954  	// execution. Set to `false` to stop execution if the flow hook throws an
  4955  	// exception. Defaults to `true`.
  4956  	ContinueOnError bool `json:"continueOnError,omitempty"`
  4957  	// Description: Description of the flow hook.
  4958  	Description string `json:"description,omitempty"`
  4959  	// FlowHookPoint: Output only. Where in the API call flow the flow hook is
  4960  	// invoked. Must be one of `PreProxyFlowHook`, `PostProxyFlowHook`,
  4961  	// `PreTargetFlowHook`, or `PostTargetFlowHook`.
  4962  	FlowHookPoint string `json:"flowHookPoint,omitempty"`
  4963  	// SharedFlow: Shared flow attached to this flow hook, or empty if there is
  4964  	// none attached.
  4965  	SharedFlow string `json:"sharedFlow,omitempty"`
  4966  
  4967  	// ServerResponse contains the HTTP response code and headers from the server.
  4968  	googleapi.ServerResponse `json:"-"`
  4969  	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
  4970  	// unconditionally include in API requests. By default, fields with empty or
  4971  	// default values are omitted from API requests. See
  4972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4973  	// details.
  4974  	ForceSendFields []string `json:"-"`
  4975  	// NullFields is a list of field names (e.g. "ContinueOnError") to include in
  4976  	// API requests with the JSON null value. By default, fields with empty values
  4977  	// are omitted from API requests. See
  4978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4979  	NullFields []string `json:"-"`
  4980  }
  4981  
  4982  func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
  4983  	type NoMethod GoogleCloudApigeeV1FlowHook
  4984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4985  }
  4986  
  4987  type GoogleCloudApigeeV1FlowHookConfig struct {
  4988  	// ContinueOnError: Flag that specifies whether the flow should abort after an
  4989  	// error in the flow hook. Defaults to `true` (continue on error).
  4990  	ContinueOnError bool `json:"continueOnError,omitempty"`
  4991  	// Name: Name of the flow hook in the following format:
  4992  	// `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid `point`
  4993  	// values include: `PreProxyFlowHook`, `PostProxyFlowHook`,
  4994  	// `PreTargetFlowHook`, and `PostTargetFlowHook`
  4995  	Name string `json:"name,omitempty"`
  4996  	// SharedFlowName: Name of the shared flow to invoke in the following format:
  4997  	// `organizations/{org}/sharedflows/{sharedflow}`
  4998  	SharedFlowName string `json:"sharedFlowName,omitempty"`
  4999  	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
  5000  	// unconditionally include in API requests. By default, fields with empty or
  5001  	// default values are omitted from API requests. See
  5002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5003  	// details.
  5004  	ForceSendFields []string `json:"-"`
  5005  	// NullFields is a list of field names (e.g. "ContinueOnError") to include in
  5006  	// API requests with the JSON null value. By default, fields with empty values
  5007  	// are omitted from API requests. See
  5008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5009  	NullFields []string `json:"-"`
  5010  }
  5011  
  5012  func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
  5013  	type NoMethod GoogleCloudApigeeV1FlowHookConfig
  5014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5015  }
  5016  
  5017  // GoogleCloudApigeeV1GenerateDownloadUrlRequest: Request for
  5018  // GenerateDownloadUrl method.
  5019  type GoogleCloudApigeeV1GenerateDownloadUrlRequest struct {
  5020  }
  5021  
  5022  // GoogleCloudApigeeV1GenerateDownloadUrlResponse: Response for
  5023  // GenerateDownloadUrl method.
  5024  type GoogleCloudApigeeV1GenerateDownloadUrlResponse struct {
  5025  	// DownloadUri: The Google Cloud Storage signed URL that can be used to
  5026  	// download the Archive zip file.
  5027  	DownloadUri string `json:"downloadUri,omitempty"`
  5028  
  5029  	// ServerResponse contains the HTTP response code and headers from the server.
  5030  	googleapi.ServerResponse `json:"-"`
  5031  	// ForceSendFields is a list of field names (e.g. "DownloadUri") to
  5032  	// unconditionally include in API requests. By default, fields with empty or
  5033  	// default values are omitted from API requests. See
  5034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5035  	// details.
  5036  	ForceSendFields []string `json:"-"`
  5037  	// NullFields is a list of field names (e.g. "DownloadUri") to include in API
  5038  	// requests with the JSON null value. By default, fields with empty values are
  5039  	// omitted from API requests. See
  5040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5041  	NullFields []string `json:"-"`
  5042  }
  5043  
  5044  func (s *GoogleCloudApigeeV1GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) {
  5045  	type NoMethod GoogleCloudApigeeV1GenerateDownloadUrlResponse
  5046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5047  }
  5048  
  5049  // GoogleCloudApigeeV1GenerateUploadUrlRequest: Request for GenerateUploadUrl
  5050  // method.
  5051  type GoogleCloudApigeeV1GenerateUploadUrlRequest struct {
  5052  }
  5053  
  5054  // GoogleCloudApigeeV1GenerateUploadUrlResponse: Response for GenerateUploadUrl
  5055  // method.
  5056  type GoogleCloudApigeeV1GenerateUploadUrlResponse struct {
  5057  	// UploadUri: The Google Cloud Storage signed URL that can be used to upload a
  5058  	// new Archive zip file.
  5059  	UploadUri string `json:"uploadUri,omitempty"`
  5060  
  5061  	// ServerResponse contains the HTTP response code and headers from the server.
  5062  	googleapi.ServerResponse `json:"-"`
  5063  	// ForceSendFields is a list of field names (e.g. "UploadUri") to
  5064  	// unconditionally include in API requests. By default, fields with empty or
  5065  	// default values are omitted from API requests. See
  5066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5067  	// details.
  5068  	ForceSendFields []string `json:"-"`
  5069  	// NullFields is a list of field names (e.g. "UploadUri") to include in API
  5070  	// requests with the JSON null value. By default, fields with empty values are
  5071  	// omitted from API requests. See
  5072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5073  	NullFields []string `json:"-"`
  5074  }
  5075  
  5076  func (s *GoogleCloudApigeeV1GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) {
  5077  	type NoMethod GoogleCloudApigeeV1GenerateUploadUrlResponse
  5078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5079  }
  5080  
  5081  // GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse: The response for
  5082  // GetAsyncQueryResultUrl
  5083  type GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse struct {
  5084  	// Urls: The list of Signed URLs generated by the CreateAsyncQuery request
  5085  	Urls []*GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo `json:"urls,omitempty"`
  5086  
  5087  	// ServerResponse contains the HTTP response code and headers from the server.
  5088  	googleapi.ServerResponse `json:"-"`
  5089  	// ForceSendFields is a list of field names (e.g. "Urls") to unconditionally
  5090  	// include in API requests. By default, fields with empty or default values are
  5091  	// omitted from API requests. See
  5092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5093  	// details.
  5094  	ForceSendFields []string `json:"-"`
  5095  	// NullFields is a list of field names (e.g. "Urls") to include in API requests
  5096  	// with the JSON null value. By default, fields with empty values are omitted
  5097  	// from API requests. See
  5098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5099  	NullFields []string `json:"-"`
  5100  }
  5101  
  5102  func (s *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse) MarshalJSON() ([]byte, error) {
  5103  	type NoMethod GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse
  5104  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5105  }
  5106  
  5107  // GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo: A Signed URL and
  5108  // the relevant metadata associated with it.
  5109  type GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo struct {
  5110  	// Md5: The MD5 Hash of the JSON data
  5111  	Md5 string `json:"md5,omitempty"`
  5112  	// SizeBytes: The size of the returned file in bytes
  5113  	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
  5114  	// Uri: The signed URL of the JSON data. Will be of the form
  5115  	// `https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Algorithm=
  5116  	// GOOG4-RSA-SHA256&X-Goog-Credential=example%40example-project.iam.gserviceacco
  5117  	// unt
  5118  	// .com%2F20181026%2Fus-central1%2Fstorage%2Fgoog4_request&X-Goog-Date=20181026T
  5119  	// 18
  5120  	// 1309Z&X-Goog-Expires=900&X-Goog-SignedHeaders=host&X-Goog-Signature=247a2aa45
  5121  	// f16
  5122  	// 9edf4d187d54e7cc46e4731b1e6273242c4f4c39a1d2507a0e58706e25e3a85a7dbb891d62afa
  5123  	// 849
  5124  	// 6def8e260c1db863d9ace85ff0a184b894b117fe46d1225c82f2aa19efd52cf21d3e2022b3b86
  5125  	// 8dc
  5126  	// c1aca2741951ed5bf3bb25a34f5e9316a2841e8ff4c530b22ceaa1c5ce09c7cbb5732631510c2
  5127  	// 058
  5128  	// 0e61723f5594de3aea497f195456a2ff2bdd0d13bad47289d8611b6f9cfeef0c46c91a455b94e
  5129  	// 90a
  5130  	// 66924f722292d21e24d31dcfb38ce0c0f353ffa5a9756fc2a9f2b40bc2113206a81e324fc4fd6
  5131  	// 823
  5132  	// a29163fa845c8ae7eca1fcf6e5bb48b3200983c56c5ca81fffb151cca7402beddfc4a76b13344
  5133  	// 703 2ea7abedc098d2eb14a7`
  5134  	Uri string `json:"uri,omitempty"`
  5135  	// ForceSendFields is a list of field names (e.g. "Md5") to unconditionally
  5136  	// include in API requests. By default, fields with empty or default values are
  5137  	// omitted from API requests. See
  5138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5139  	// details.
  5140  	ForceSendFields []string `json:"-"`
  5141  	// NullFields is a list of field names (e.g. "Md5") to include in API requests
  5142  	// with the JSON null value. By default, fields with empty values are omitted
  5143  	// from API requests. See
  5144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5145  	NullFields []string `json:"-"`
  5146  }
  5147  
  5148  func (s *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo) MarshalJSON() ([]byte, error) {
  5149  	type NoMethod GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo
  5150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5151  }
  5152  
  5153  // GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for
  5154  // GetSyncAuthorization.
  5155  type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
  5156  }
  5157  
  5158  // GoogleCloudApigeeV1GraphQLOperation: Represents the pairing of GraphQL
  5159  // operation types and the GraphQL operation name.
  5160  type GoogleCloudApigeeV1GraphQLOperation struct {
  5161  	// Operation: GraphQL operation name. The name and operation type will be used
  5162  	// to apply quotas. If no name is specified, the quota will be applied to all
  5163  	// GraphQL operations irrespective of their operation names in the payload.
  5164  	Operation string `json:"operation,omitempty"`
  5165  	// OperationTypes: Required. GraphQL operation types. Valid values include
  5166  	// `query` or `mutation`. **Note**: Apigee does not currently support
  5167  	// `subscription` types.
  5168  	OperationTypes []string `json:"operationTypes,omitempty"`
  5169  	// ForceSendFields is a list of field names (e.g. "Operation") to
  5170  	// unconditionally include in API requests. By default, fields with empty or
  5171  	// default values are omitted from API requests. See
  5172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5173  	// details.
  5174  	ForceSendFields []string `json:"-"`
  5175  	// NullFields is a list of field names (e.g. "Operation") to include in API
  5176  	// requests with the JSON null value. By default, fields with empty values are
  5177  	// omitted from API requests. See
  5178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5179  	NullFields []string `json:"-"`
  5180  }
  5181  
  5182  func (s *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
  5183  	type NoMethod GoogleCloudApigeeV1GraphQLOperation
  5184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5185  }
  5186  
  5187  // GoogleCloudApigeeV1GraphQLOperationConfig: Binds the resources in a proxy or
  5188  // remote service with the GraphQL operation and its associated quota
  5189  // enforcement.
  5190  type GoogleCloudApigeeV1GraphQLOperationConfig struct {
  5191  	// ApiSource: Required. Name of the API proxy endpoint or remote service with
  5192  	// which the GraphQL operation and quota are associated.
  5193  	ApiSource string `json:"apiSource,omitempty"`
  5194  	// Attributes: Custom attributes associated with the operation.
  5195  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  5196  	// Operations: Required. List of GraphQL name/operation type pairs for the
  5197  	// proxy or remote service to which quota will be applied. If only operation
  5198  	// types are specified, the quota will be applied to all GraphQL requests
  5199  	// irrespective of the GraphQL name. **Note**: Currently, you can specify only
  5200  	// a single GraphQLOperation. Specifying more than one will cause the operation
  5201  	// to fail.
  5202  	Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
  5203  	// Quota: Quota parameters to be enforced for the resources, methods, and API
  5204  	// source combination. If none are specified, quota enforcement will not be
  5205  	// done.
  5206  	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
  5207  	// ForceSendFields is a list of field names (e.g. "ApiSource") to
  5208  	// unconditionally include in API requests. By default, fields with empty or
  5209  	// default values are omitted from API requests. See
  5210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5211  	// details.
  5212  	ForceSendFields []string `json:"-"`
  5213  	// NullFields is a list of field names (e.g. "ApiSource") to include in API
  5214  	// requests with the JSON null value. By default, fields with empty values are
  5215  	// omitted from API requests. See
  5216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5217  	NullFields []string `json:"-"`
  5218  }
  5219  
  5220  func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
  5221  	type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
  5222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5223  }
  5224  
  5225  // GoogleCloudApigeeV1GraphQLOperationGroup: List of graphQL operation
  5226  // configuration details associated with Apigee API proxies or remote services.
  5227  // Remote services are non-Apigee proxies, such as Istio-Envoy.
  5228  type GoogleCloudApigeeV1GraphQLOperationGroup struct {
  5229  	// OperationConfigType: Flag that specifies whether the configuration is for
  5230  	// Apigee API proxy or a remote service. Valid values include `proxy` or
  5231  	// `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API proxies
  5232  	// are associated with the API product. Set to `remoteservice` when non-Apigee
  5233  	// proxies like Istio-Envoy are associated with the API product.
  5234  	OperationConfigType string `json:"operationConfigType,omitempty"`
  5235  	// OperationConfigs: Required. List of operation configurations for either
  5236  	// Apigee API proxies or other remote services that are associated with this
  5237  	// API product.
  5238  	OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
  5239  	// ForceSendFields is a list of field names (e.g. "OperationConfigType") to
  5240  	// unconditionally include in API requests. By default, fields with empty or
  5241  	// default values are omitted from API requests. See
  5242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5243  	// details.
  5244  	ForceSendFields []string `json:"-"`
  5245  	// NullFields is a list of field names (e.g. "OperationConfigType") to include
  5246  	// in API requests with the JSON null value. By default, fields with empty
  5247  	// values are omitted from API requests. See
  5248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5249  	NullFields []string `json:"-"`
  5250  }
  5251  
  5252  func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
  5253  	type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
  5254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5255  }
  5256  
  5257  // GoogleCloudApigeeV1GraphqlDocumentation: GraphQL documentation for a catalog
  5258  // item.
  5259  type GoogleCloudApigeeV1GraphqlDocumentation struct {
  5260  	// EndpointUri: Required. The GraphQL endpoint URI to be queried by API
  5261  	// consumers. Max length is 2,083 characters.
  5262  	EndpointUri string `json:"endpointUri,omitempty"`
  5263  	// Schema: Required. The documentation file contents for the GraphQL schema.
  5264  	Schema *GoogleCloudApigeeV1DocumentationFile `json:"schema,omitempty"`
  5265  	// ForceSendFields is a list of field names (e.g. "EndpointUri") to
  5266  	// unconditionally include in API requests. By default, fields with empty or
  5267  	// default values are omitted from API requests. See
  5268  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5269  	// details.
  5270  	ForceSendFields []string `json:"-"`
  5271  	// NullFields is a list of field names (e.g. "EndpointUri") to include in API
  5272  	// requests with the JSON null value. By default, fields with empty values are
  5273  	// omitted from API requests. See
  5274  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5275  	NullFields []string `json:"-"`
  5276  }
  5277  
  5278  func (s *GoogleCloudApigeeV1GraphqlDocumentation) MarshalJSON() ([]byte, error) {
  5279  	type NoMethod GoogleCloudApigeeV1GraphqlDocumentation
  5280  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5281  }
  5282  
  5283  // GoogleCloudApigeeV1GrpcOperationConfig: Binds the resources in a proxy or
  5284  // remote service with the gRPC operation and its associated quota enforcement.
  5285  type GoogleCloudApigeeV1GrpcOperationConfig struct {
  5286  	// ApiSource: Required. Name of the API proxy with which the gRPC operation and
  5287  	// quota are associated.
  5288  	ApiSource string `json:"apiSource,omitempty"`
  5289  	// Attributes: Custom attributes associated with the operation.
  5290  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  5291  	// Methods: List of unqualified gRPC method names for the proxy to which quota
  5292  	// will be applied. If this field is empty, the Quota will apply to all
  5293  	// operations on the gRPC service defined on the proxy. Example: Given a proxy
  5294  	// that is configured to serve com.petstore.PetService, the methods
  5295  	// com.petstore.PetService.ListPets and com.petstore.PetService.GetPet would be
  5296  	// specified here as simply ["ListPets", "GetPet"].
  5297  	Methods []string `json:"methods,omitempty"`
  5298  	// Quota: Quota parameters to be enforced for the methods and API source
  5299  	// combination. If none are specified, quota enforcement will not be done.
  5300  	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
  5301  	// Service: Required. gRPC Service name associated to be associated with the
  5302  	// API proxy, on which quota rules can be applied upon.
  5303  	Service string `json:"service,omitempty"`
  5304  	// ForceSendFields is a list of field names (e.g. "ApiSource") to
  5305  	// unconditionally include in API requests. By default, fields with empty or
  5306  	// default values are omitted from API requests. See
  5307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5308  	// details.
  5309  	ForceSendFields []string `json:"-"`
  5310  	// NullFields is a list of field names (e.g. "ApiSource") to include in API
  5311  	// requests with the JSON null value. By default, fields with empty values are
  5312  	// omitted from API requests. See
  5313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5314  	NullFields []string `json:"-"`
  5315  }
  5316  
  5317  func (s *GoogleCloudApigeeV1GrpcOperationConfig) MarshalJSON() ([]byte, error) {
  5318  	type NoMethod GoogleCloudApigeeV1GrpcOperationConfig
  5319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5320  }
  5321  
  5322  // GoogleCloudApigeeV1GrpcOperationGroup: List of gRPC operation configuration
  5323  // details associated with Apigee API proxies.
  5324  type GoogleCloudApigeeV1GrpcOperationGroup struct {
  5325  	// OperationConfigs: Required. List of operation configurations for either
  5326  	// Apigee API proxies that are associated with this API product.
  5327  	OperationConfigs []*GoogleCloudApigeeV1GrpcOperationConfig `json:"operationConfigs,omitempty"`
  5328  	// ForceSendFields is a list of field names (e.g. "OperationConfigs") to
  5329  	// unconditionally include in API requests. By default, fields with empty or
  5330  	// default values are omitted from API requests. See
  5331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5332  	// details.
  5333  	ForceSendFields []string `json:"-"`
  5334  	// NullFields is a list of field names (e.g. "OperationConfigs") to include in
  5335  	// API requests with the JSON null value. By default, fields with empty values
  5336  	// are omitted from API requests. See
  5337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5338  	NullFields []string `json:"-"`
  5339  }
  5340  
  5341  func (s *GoogleCloudApigeeV1GrpcOperationGroup) MarshalJSON() ([]byte, error) {
  5342  	type NoMethod GoogleCloudApigeeV1GrpcOperationGroup
  5343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5344  }
  5345  
  5346  type GoogleCloudApigeeV1IngressConfig struct {
  5347  	// EnvironmentGroups: List of environment groups in the organization.
  5348  	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
  5349  	// Name: Name of the resource in the following format:
  5350  	// `organizations/{org}/deployedIngressConfig`.
  5351  	Name string `json:"name,omitempty"`
  5352  	// RevisionCreateTime: Time at which the IngressConfig revision was created.
  5353  	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
  5354  	// RevisionId: Revision id that defines the ordering on IngressConfig
  5355  	// resources. The higher the revision, the more recently the configuration was
  5356  	// deployed.
  5357  	RevisionId int64 `json:"revisionId,omitempty,string"`
  5358  	// Uid: A unique id for the ingress config that will only change if the
  5359  	// organization is deleted and recreated.
  5360  	Uid string `json:"uid,omitempty"`
  5361  
  5362  	// ServerResponse contains the HTTP response code and headers from the server.
  5363  	googleapi.ServerResponse `json:"-"`
  5364  	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups") to
  5365  	// unconditionally include in API requests. By default, fields with empty or
  5366  	// default values are omitted from API requests. See
  5367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5368  	// details.
  5369  	ForceSendFields []string `json:"-"`
  5370  	// NullFields is a list of field names (e.g. "EnvironmentGroups") to include in
  5371  	// API requests with the JSON null value. By default, fields with empty values
  5372  	// are omitted from API requests. See
  5373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5374  	NullFields []string `json:"-"`
  5375  }
  5376  
  5377  func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
  5378  	type NoMethod GoogleCloudApigeeV1IngressConfig
  5379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5380  }
  5381  
  5382  // GoogleCloudApigeeV1Instance: Apigee runtime instance.
  5383  type GoogleCloudApigeeV1Instance struct {
  5384  	// AccessLoggingConfig: Optional. Access logging configuration enables the
  5385  	// access logging feature at the instance. Apigee customers can enable access
  5386  	// logging to ship the access logs to their own project's cloud logging.
  5387  	AccessLoggingConfig *GoogleCloudApigeeV1AccessLoggingConfig `json:"accessLoggingConfig,omitempty"`
  5388  	// ConsumerAcceptList: Optional. Customer accept list represents the list of
  5389  	// projects (id/number) on customer side that can privately connect to the
  5390  	// service attachment. It is an optional field which the customers can provide
  5391  	// during the instance creation. By default, the customer project associated
  5392  	// with the Apigee organization will be included to the list.
  5393  	ConsumerAcceptList []string `json:"consumerAcceptList,omitempty"`
  5394  	// CreatedAt: Output only. Time the instance was created in milliseconds since
  5395  	// epoch.
  5396  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  5397  	// Description: Optional. Description of the instance.
  5398  	Description string `json:"description,omitempty"`
  5399  	// DiskEncryptionKeyName: Customer Managed Encryption Key (CMEK) used for disk
  5400  	// and volume encryption. If not specified, a Google-Managed encryption key
  5401  	// will be used. Use the following format:
  5402  	// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`
  5403  	DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
  5404  	// DisplayName: Optional. Display name for the instance.
  5405  	DisplayName string `json:"displayName,omitempty"`
  5406  	// Host: Output only. Internal hostname or IP address of the Apigee endpoint
  5407  	// used by clients to connect to the service.
  5408  	Host string `json:"host,omitempty"`
  5409  	// IpRange: Optional. Comma-separated list of CIDR blocks of length 22 and/or
  5410  	// 28 used to create the Apigee instance. Providing CIDR ranges is optional.
  5411  	// You can provide just /22 or /28 or both (or neither). Ranges you provide
  5412  	// should be freely available as part of a larger named range you have
  5413  	// allocated to the Service Networking peering. If this parameter is not
  5414  	// provided, Apigee automatically requests an available /22 and /28 CIDR block
  5415  	// from Service Networking. Use the /22 CIDR block for configuring your
  5416  	// firewall needs to allow traffic from Apigee. Input formats: `a.b.c.d/22` or
  5417  	// `e.f.g.h/28` or `a.b.c.d/22,e.f.g.h/28`
  5418  	IpRange string `json:"ipRange,omitempty"`
  5419  	// LastModifiedAt: Output only. Time the instance was last modified in
  5420  	// milliseconds since epoch.
  5421  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  5422  	// Location: Required. Compute Engine location where the instance resides.
  5423  	Location string `json:"location,omitempty"`
  5424  	// Name: Required. Resource ID of the instance. Values must match the regular
  5425  	// expression `^a-z{0,30}[a-z\d]$`.
  5426  	Name string `json:"name,omitempty"`
  5427  	// PeeringCidrRange: Optional. Size of the CIDR block range that will be
  5428  	// reserved by the instance. PAID organizations support `SLASH_16` to
  5429  	// `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations support only
  5430  	// `SLASH_23`.
  5431  	//
  5432  	// Possible values:
  5433  	//   "CIDR_RANGE_UNSPECIFIED" - Range not specified.
  5434  	//   "SLASH_16" - `/16` CIDR range.
  5435  	//   "SLASH_17" - `/17` CIDR range.
  5436  	//   "SLASH_18" - `/18` CIDR range.
  5437  	//   "SLASH_19" - `/19` CIDR range.
  5438  	//   "SLASH_20" - `/20` CIDR range.
  5439  	//   "SLASH_22" - `/22` CIDR range. Supported for evaluation only.
  5440  	//   "SLASH_23" - `/23` CIDR range. Supported for evaluation only.
  5441  	PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
  5442  	// Port: Output only. Port number of the exposed Apigee endpoint.
  5443  	Port string `json:"port,omitempty"`
  5444  	// RuntimeVersion: Output only. Version of the runtime system running in the
  5445  	// instance. The runtime system is the set of components that serve the API
  5446  	// Proxy traffic in your Environments.
  5447  	RuntimeVersion string `json:"runtimeVersion,omitempty"`
  5448  	// ServiceAttachment: Output only. Resource name of the service attachment
  5449  	// created for the instance in the format:
  5450  	// `projects/*/regions/*/serviceAttachments/*` Apigee customers can privately
  5451  	// forward traffic to this service attachment using the PSC endpoints.
  5452  	ServiceAttachment string `json:"serviceAttachment,omitempty"`
  5453  	// State: Output only. State of the instance. Values other than `ACTIVE` means
  5454  	// the resource is not ready to use.
  5455  	//
  5456  	// Possible values:
  5457  	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
  5458  	//   "CREATING" - Resource is being created.
  5459  	//   "ACTIVE" - Resource is provisioned and ready to use.
  5460  	//   "DELETING" - The resource is being deleted.
  5461  	//   "UPDATING" - The resource is being updated.
  5462  	State string `json:"state,omitempty"`
  5463  
  5464  	// ServerResponse contains the HTTP response code and headers from the server.
  5465  	googleapi.ServerResponse `json:"-"`
  5466  	// ForceSendFields is a list of field names (e.g. "AccessLoggingConfig") to
  5467  	// unconditionally include in API requests. By default, fields with empty or
  5468  	// default values are omitted from API requests. See
  5469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5470  	// details.
  5471  	ForceSendFields []string `json:"-"`
  5472  	// NullFields is a list of field names (e.g. "AccessLoggingConfig") to include
  5473  	// in API requests with the JSON null value. By default, fields with empty
  5474  	// values are omitted from API requests. See
  5475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5476  	NullFields []string `json:"-"`
  5477  }
  5478  
  5479  func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
  5480  	type NoMethod GoogleCloudApigeeV1Instance
  5481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5482  }
  5483  
  5484  // GoogleCloudApigeeV1InstanceAttachment: InstanceAttachment represents the
  5485  // installation of an environment onto an instance.
  5486  type GoogleCloudApigeeV1InstanceAttachment struct {
  5487  	// CreatedAt: Output only. Time the attachment was created in milliseconds
  5488  	// since epoch.
  5489  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  5490  	// Environment: ID of the attached environment.
  5491  	Environment string `json:"environment,omitempty"`
  5492  	// Name: Output only. ID of the attachment.
  5493  	Name string `json:"name,omitempty"`
  5494  
  5495  	// ServerResponse contains the HTTP response code and headers from the server.
  5496  	googleapi.ServerResponse `json:"-"`
  5497  	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
  5498  	// unconditionally include in API requests. By default, fields with empty or
  5499  	// default values are omitted from API requests. See
  5500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5501  	// details.
  5502  	ForceSendFields []string `json:"-"`
  5503  	// NullFields is a list of field names (e.g. "CreatedAt") to include in API
  5504  	// requests with the JSON null value. By default, fields with empty values are
  5505  	// omitted from API requests. See
  5506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5507  	NullFields []string `json:"-"`
  5508  }
  5509  
  5510  func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
  5511  	type NoMethod GoogleCloudApigeeV1InstanceAttachment
  5512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5513  }
  5514  
  5515  // GoogleCloudApigeeV1InstanceDeploymentStatus: The status of a deployment as
  5516  // reported by a single instance.
  5517  type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
  5518  	// DeployedRevisions: Revisions currently deployed in MPs.
  5519  	DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
  5520  	// DeployedRoutes: Current routes deployed in the ingress routing table. A
  5521  	// route which is missing will appear in `missing_routes`.
  5522  	DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
  5523  	// Instance: ID of the instance reporting the status.
  5524  	Instance string `json:"instance,omitempty"`
  5525  	// ForceSendFields is a list of field names (e.g. "DeployedRevisions") to
  5526  	// unconditionally include in API requests. By default, fields with empty or
  5527  	// default values are omitted from API requests. See
  5528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5529  	// details.
  5530  	ForceSendFields []string `json:"-"`
  5531  	// NullFields is a list of field names (e.g. "DeployedRevisions") to include in
  5532  	// API requests with the JSON null value. By default, fields with empty values
  5533  	// are omitted from API requests. See
  5534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5535  	NullFields []string `json:"-"`
  5536  }
  5537  
  5538  func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
  5539  	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
  5540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5541  }
  5542  
  5543  // GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision: Revisions
  5544  // deployed in the MPs.
  5545  type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
  5546  	// Percentage: Percentage of MP replicas reporting this revision.
  5547  	Percentage int64 `json:"percentage,omitempty"`
  5548  	// Revision: API proxy revision reported as deployed.
  5549  	Revision string `json:"revision,omitempty"`
  5550  	// ForceSendFields is a list of field names (e.g. "Percentage") to
  5551  	// unconditionally include in API requests. By default, fields with empty or
  5552  	// default values are omitted from API requests. See
  5553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5554  	// details.
  5555  	ForceSendFields []string `json:"-"`
  5556  	// NullFields is a list of field names (e.g. "Percentage") to include in API
  5557  	// requests with the JSON null value. By default, fields with empty values are
  5558  	// omitted from API requests. See
  5559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5560  	NullFields []string `json:"-"`
  5561  }
  5562  
  5563  func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
  5564  	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
  5565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5566  }
  5567  
  5568  // GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute: Route deployed in
  5569  // the ingress routing table.
  5570  type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
  5571  	// Basepath: Base path in the routing table.
  5572  	Basepath string `json:"basepath,omitempty"`
  5573  	// Envgroup: Environment group where this route is installed.
  5574  	Envgroup string `json:"envgroup,omitempty"`
  5575  	// Environment: Destination environment. This will be empty if the route is not
  5576  	// yet reported.
  5577  	Environment string `json:"environment,omitempty"`
  5578  	// Percentage: Percentage of ingress replicas reporting this route.
  5579  	Percentage int64 `json:"percentage,omitempty"`
  5580  	// ForceSendFields is a list of field names (e.g. "Basepath") to
  5581  	// unconditionally include in API requests. By default, fields with empty or
  5582  	// default values are omitted from API requests. See
  5583  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5584  	// details.
  5585  	ForceSendFields []string `json:"-"`
  5586  	// NullFields is a list of field names (e.g. "Basepath") to include in API
  5587  	// requests with the JSON null value. By default, fields with empty values are
  5588  	// omitted from API requests. See
  5589  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5590  	NullFields []string `json:"-"`
  5591  }
  5592  
  5593  func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
  5594  	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
  5595  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5596  }
  5597  
  5598  // GoogleCloudApigeeV1IntegrationConfig: Configuration for the Integration
  5599  // add-on.
  5600  type GoogleCloudApigeeV1IntegrationConfig struct {
  5601  	// Enabled: Flag that specifies whether the Integration add-on is enabled.
  5602  	Enabled bool `json:"enabled,omitempty"`
  5603  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  5604  	// include in API requests. By default, fields with empty or default values are
  5605  	// omitted from API requests. See
  5606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5607  	// details.
  5608  	ForceSendFields []string `json:"-"`
  5609  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  5610  	// requests with the JSON null value. By default, fields with empty values are
  5611  	// omitted from API requests. See
  5612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5613  	NullFields []string `json:"-"`
  5614  }
  5615  
  5616  func (s *GoogleCloudApigeeV1IntegrationConfig) MarshalJSON() ([]byte, error) {
  5617  	type NoMethod GoogleCloudApigeeV1IntegrationConfig
  5618  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5619  }
  5620  
  5621  type GoogleCloudApigeeV1KeyAliasReference struct {
  5622  	// AliasId: Alias ID. Must exist in the keystore referred to by the reference.
  5623  	AliasId string `json:"aliasId,omitempty"`
  5624  	// Reference: Reference name in the following format:
  5625  	// `organizations/{org}/environments/{env}/references/{reference}`
  5626  	Reference string `json:"reference,omitempty"`
  5627  	// ForceSendFields is a list of field names (e.g. "AliasId") to unconditionally
  5628  	// include in API requests. By default, fields with empty or default values are
  5629  	// omitted from API requests. See
  5630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5631  	// details.
  5632  	ForceSendFields []string `json:"-"`
  5633  	// NullFields is a list of field names (e.g. "AliasId") to include in API
  5634  	// requests with the JSON null value. By default, fields with empty values are
  5635  	// omitted from API requests. See
  5636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5637  	NullFields []string `json:"-"`
  5638  }
  5639  
  5640  func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
  5641  	type NoMethod GoogleCloudApigeeV1KeyAliasReference
  5642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5643  }
  5644  
  5645  // GoogleCloudApigeeV1KeyValueEntry: Key value map pair where the value
  5646  // represents the data associated with the corresponding key. **Note**:
  5647  // Supported for Apigee hybrid 1.8.x and higher.
  5648  type GoogleCloudApigeeV1KeyValueEntry struct {
  5649  	// Name: Resource URI that can be used to identify the scope of the key value
  5650  	// map entries.
  5651  	Name string `json:"name,omitempty"`
  5652  	// Value: Required. Data or payload that is being retrieved and associated with
  5653  	// the unique key.
  5654  	Value string `json:"value,omitempty"`
  5655  
  5656  	// ServerResponse contains the HTTP response code and headers from the server.
  5657  	googleapi.ServerResponse `json:"-"`
  5658  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  5659  	// include in API requests. By default, fields with empty or default values are
  5660  	// omitted from API requests. See
  5661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5662  	// details.
  5663  	ForceSendFields []string `json:"-"`
  5664  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  5665  	// with the JSON null value. By default, fields with empty values are omitted
  5666  	// from API requests. See
  5667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5668  	NullFields []string `json:"-"`
  5669  }
  5670  
  5671  func (s *GoogleCloudApigeeV1KeyValueEntry) MarshalJSON() ([]byte, error) {
  5672  	type NoMethod GoogleCloudApigeeV1KeyValueEntry
  5673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5674  }
  5675  
  5676  // GoogleCloudApigeeV1KeyValueMap: Collection of key/value string pairs.
  5677  type GoogleCloudApigeeV1KeyValueMap struct {
  5678  	// Encrypted: Required. Flag that specifies whether entry values will be
  5679  	// encrypted. This field is retained for backward compatibility and the value
  5680  	// of encrypted will always be `true`. Apigee X and hybrid do not support
  5681  	// unencrypted key value maps.
  5682  	Encrypted bool `json:"encrypted,omitempty"`
  5683  	// Name: Required. ID of the key value map.
  5684  	Name string `json:"name,omitempty"`
  5685  
  5686  	// ServerResponse contains the HTTP response code and headers from the server.
  5687  	googleapi.ServerResponse `json:"-"`
  5688  	// ForceSendFields is a list of field names (e.g. "Encrypted") to
  5689  	// unconditionally include in API requests. By default, fields with empty or
  5690  	// default values are omitted from API requests. See
  5691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5692  	// details.
  5693  	ForceSendFields []string `json:"-"`
  5694  	// NullFields is a list of field names (e.g. "Encrypted") to include in API
  5695  	// requests with the JSON null value. By default, fields with empty values are
  5696  	// omitted from API requests. See
  5697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5698  	NullFields []string `json:"-"`
  5699  }
  5700  
  5701  func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
  5702  	type NoMethod GoogleCloudApigeeV1KeyValueMap
  5703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5704  }
  5705  
  5706  // GoogleCloudApigeeV1Keystore: Datastore for Certificates and Aliases.
  5707  type GoogleCloudApigeeV1Keystore struct {
  5708  	// Aliases: Output only. Aliases in this keystore.
  5709  	Aliases []string `json:"aliases,omitempty"`
  5710  	// Name: Required. Resource ID for this keystore. Values must match the regular
  5711  	// expression `[\w[:space:].-]{1,255}`.
  5712  	Name string `json:"name,omitempty"`
  5713  
  5714  	// ServerResponse contains the HTTP response code and headers from the server.
  5715  	googleapi.ServerResponse `json:"-"`
  5716  	// ForceSendFields is a list of field names (e.g. "Aliases") to unconditionally
  5717  	// include in API requests. By default, fields with empty or default values are
  5718  	// omitted from API requests. See
  5719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5720  	// details.
  5721  	ForceSendFields []string `json:"-"`
  5722  	// NullFields is a list of field names (e.g. "Aliases") to include in API
  5723  	// requests with the JSON null value. By default, fields with empty values are
  5724  	// omitted from API requests. See
  5725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5726  	NullFields []string `json:"-"`
  5727  }
  5728  
  5729  func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
  5730  	type NoMethod GoogleCloudApigeeV1Keystore
  5731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5732  }
  5733  
  5734  type GoogleCloudApigeeV1KeystoreConfig struct {
  5735  	// Aliases: Aliases in the keystore.
  5736  	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
  5737  	// Name: Resource name in the following format:
  5738  	// `organizations/{org}/environments/{env}/keystores/{keystore}`
  5739  	Name string `json:"name,omitempty"`
  5740  	// ForceSendFields is a list of field names (e.g. "Aliases") to unconditionally
  5741  	// include in API requests. By default, fields with empty or default values are
  5742  	// omitted from API requests. See
  5743  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5744  	// details.
  5745  	ForceSendFields []string `json:"-"`
  5746  	// NullFields is a list of field names (e.g. "Aliases") to include in API
  5747  	// requests with the JSON null value. By default, fields with empty values are
  5748  	// omitted from API requests. See
  5749  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5750  	NullFields []string `json:"-"`
  5751  }
  5752  
  5753  func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
  5754  	type NoMethod GoogleCloudApigeeV1KeystoreConfig
  5755  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5756  }
  5757  
  5758  // GoogleCloudApigeeV1ListApiCategoriesResponse: The response for
  5759  // `ListApiCategoriesRequest`. Next ID: 6
  5760  type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
  5761  	// Data: The API category resources.
  5762  	Data []*GoogleCloudApigeeV1ApiCategory `json:"data,omitempty"`
  5763  	// ErrorCode: Unique error code for the request, if any.
  5764  	ErrorCode string `json:"errorCode,omitempty"`
  5765  	// Message: Description of the operation.
  5766  	Message string `json:"message,omitempty"`
  5767  	// RequestId: Unique ID of the request.
  5768  	RequestId string `json:"requestId,omitempty"`
  5769  	// Status: Status of the operation.
  5770  	Status string `json:"status,omitempty"`
  5771  
  5772  	// ServerResponse contains the HTTP response code and headers from the server.
  5773  	googleapi.ServerResponse `json:"-"`
  5774  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  5775  	// include in API requests. By default, fields with empty or default values are
  5776  	// omitted from API requests. See
  5777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5778  	// details.
  5779  	ForceSendFields []string `json:"-"`
  5780  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  5781  	// with the JSON null value. By default, fields with empty values are omitted
  5782  	// from API requests. See
  5783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5784  	NullFields []string `json:"-"`
  5785  }
  5786  
  5787  func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
  5788  	type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
  5789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5790  }
  5791  
  5792  type GoogleCloudApigeeV1ListApiDocsResponse struct {
  5793  	// Data: The catalog item resources.
  5794  	Data []*GoogleCloudApigeeV1ApiDoc `json:"data,omitempty"`
  5795  	// ErrorCode: Unique error code for the request, if any.
  5796  	ErrorCode string `json:"errorCode,omitempty"`
  5797  	// Message: Description of the operation.
  5798  	Message string `json:"message,omitempty"`
  5799  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  5800  	// next page. If this field is omitted, there are no subsequent pages.
  5801  	NextPageToken string `json:"nextPageToken,omitempty"`
  5802  	// RequestId: Unique ID of the request.
  5803  	RequestId string `json:"requestId,omitempty"`
  5804  	// Status: Status of the operation.
  5805  	Status string `json:"status,omitempty"`
  5806  
  5807  	// ServerResponse contains the HTTP response code and headers from the server.
  5808  	googleapi.ServerResponse `json:"-"`
  5809  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  5810  	// include in API requests. By default, fields with empty or default values are
  5811  	// omitted from API requests. See
  5812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5813  	// details.
  5814  	ForceSendFields []string `json:"-"`
  5815  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  5816  	// with the JSON null value. By default, fields with empty values are omitted
  5817  	// from API requests. See
  5818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5819  	NullFields []string `json:"-"`
  5820  }
  5821  
  5822  func (s *GoogleCloudApigeeV1ListApiDocsResponse) MarshalJSON() ([]byte, error) {
  5823  	type NoMethod GoogleCloudApigeeV1ListApiDocsResponse
  5824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5825  }
  5826  
  5827  type GoogleCloudApigeeV1ListApiProductsResponse struct {
  5828  	// ApiProduct: Lists all API product names defined for an organization.
  5829  	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
  5830  
  5831  	// ServerResponse contains the HTTP response code and headers from the server.
  5832  	googleapi.ServerResponse `json:"-"`
  5833  	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
  5834  	// unconditionally include in API requests. By default, fields with empty or
  5835  	// default values are omitted from API requests. See
  5836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5837  	// details.
  5838  	ForceSendFields []string `json:"-"`
  5839  	// NullFields is a list of field names (e.g. "ApiProduct") to include in API
  5840  	// requests with the JSON null value. By default, fields with empty values are
  5841  	// omitted from API requests. See
  5842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5843  	NullFields []string `json:"-"`
  5844  }
  5845  
  5846  func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
  5847  	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
  5848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5849  }
  5850  
  5851  // GoogleCloudApigeeV1ListApiProxiesResponse: To change this message, in the
  5852  // same CL add a change log in go/changing-api-proto-breaks-ui
  5853  type GoogleCloudApigeeV1ListApiProxiesResponse struct {
  5854  	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
  5855  
  5856  	// ServerResponse contains the HTTP response code and headers from the server.
  5857  	googleapi.ServerResponse `json:"-"`
  5858  	// ForceSendFields is a list of field names (e.g. "Proxies") to unconditionally
  5859  	// include in API requests. By default, fields with empty or default values are
  5860  	// omitted from API requests. See
  5861  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5862  	// details.
  5863  	ForceSendFields []string `json:"-"`
  5864  	// NullFields is a list of field names (e.g. "Proxies") to include in API
  5865  	// requests with the JSON null value. By default, fields with empty values are
  5866  	// omitted from API requests. See
  5867  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5868  	NullFields []string `json:"-"`
  5869  }
  5870  
  5871  func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
  5872  	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
  5873  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5874  }
  5875  
  5876  // GoogleCloudApigeeV1ListAppGroupAppsResponse: Response for ListAppGroupApps
  5877  type GoogleCloudApigeeV1ListAppGroupAppsResponse struct {
  5878  	// AppGroupApps: List of AppGroup apps and their credentials.
  5879  	AppGroupApps []*GoogleCloudApigeeV1AppGroupApp `json:"appGroupApps,omitempty"`
  5880  	// NextPageToken: Token that can be sent as `next_page_token` to retrieve the
  5881  	// next page. If this field is omitted, there are no subsequent pages.
  5882  	NextPageToken string `json:"nextPageToken,omitempty"`
  5883  
  5884  	// ServerResponse contains the HTTP response code and headers from the server.
  5885  	googleapi.ServerResponse `json:"-"`
  5886  	// ForceSendFields is a list of field names (e.g. "AppGroupApps") to
  5887  	// unconditionally include in API requests. By default, fields with empty or
  5888  	// default values are omitted from API requests. See
  5889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5890  	// details.
  5891  	ForceSendFields []string `json:"-"`
  5892  	// NullFields is a list of field names (e.g. "AppGroupApps") to include in API
  5893  	// requests with the JSON null value. By default, fields with empty values are
  5894  	// omitted from API requests. See
  5895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5896  	NullFields []string `json:"-"`
  5897  }
  5898  
  5899  func (s *GoogleCloudApigeeV1ListAppGroupAppsResponse) MarshalJSON() ([]byte, error) {
  5900  	type NoMethod GoogleCloudApigeeV1ListAppGroupAppsResponse
  5901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5902  }
  5903  
  5904  // GoogleCloudApigeeV1ListAppGroupsResponse: ListAppGroupsResponse contains the
  5905  // 0 or more AppGroups, along with the optional page token and the total count
  5906  // of apps.
  5907  type GoogleCloudApigeeV1ListAppGroupsResponse struct {
  5908  	// AppGroups: List of AppGroups.
  5909  	AppGroups []*GoogleCloudApigeeV1AppGroup `json:"appGroups,omitempty"`
  5910  	// NextPageToken: Token that can be sent as `next_page_token` to retrieve the
  5911  	// next page. If this field is omitted, there are no subsequent pages.
  5912  	NextPageToken string `json:"nextPageToken,omitempty"`
  5913  	// TotalSize: Total count of AppGroups.
  5914  	TotalSize int64 `json:"totalSize,omitempty"`
  5915  
  5916  	// ServerResponse contains the HTTP response code and headers from the server.
  5917  	googleapi.ServerResponse `json:"-"`
  5918  	// ForceSendFields is a list of field names (e.g. "AppGroups") to
  5919  	// unconditionally include in API requests. By default, fields with empty or
  5920  	// default values are omitted from API requests. See
  5921  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5922  	// details.
  5923  	ForceSendFields []string `json:"-"`
  5924  	// NullFields is a list of field names (e.g. "AppGroups") to include in API
  5925  	// requests with the JSON null value. By default, fields with empty values are
  5926  	// omitted from API requests. See
  5927  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5928  	NullFields []string `json:"-"`
  5929  }
  5930  
  5931  func (s *GoogleCloudApigeeV1ListAppGroupsResponse) MarshalJSON() ([]byte, error) {
  5932  	type NoMethod GoogleCloudApigeeV1ListAppGroupsResponse
  5933  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5934  }
  5935  
  5936  type GoogleCloudApigeeV1ListAppsResponse struct {
  5937  	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
  5938  	// NextPageToken: Token that can be sent as `next_page_token` to retrieve the
  5939  	// next page. If this field is omitted, there are no subsequent pages.
  5940  	NextPageToken string `json:"nextPageToken,omitempty"`
  5941  	// TotalSize: Total count of Apps.
  5942  	TotalSize int64 `json:"totalSize,omitempty"`
  5943  
  5944  	// ServerResponse contains the HTTP response code and headers from the server.
  5945  	googleapi.ServerResponse `json:"-"`
  5946  	// ForceSendFields is a list of field names (e.g. "App") to unconditionally
  5947  	// include in API requests. By default, fields with empty or default values are
  5948  	// omitted from API requests. See
  5949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5950  	// details.
  5951  	ForceSendFields []string `json:"-"`
  5952  	// NullFields is a list of field names (e.g. "App") to include in API requests
  5953  	// with the JSON null value. By default, fields with empty values are omitted
  5954  	// from API requests. See
  5955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5956  	NullFields []string `json:"-"`
  5957  }
  5958  
  5959  func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
  5960  	type NoMethod GoogleCloudApigeeV1ListAppsResponse
  5961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5962  }
  5963  
  5964  // GoogleCloudApigeeV1ListArchiveDeploymentsResponse: Response for
  5965  // ListArchiveDeployments method.
  5966  type GoogleCloudApigeeV1ListArchiveDeploymentsResponse struct {
  5967  	// ArchiveDeployments: Archive Deployments in the specified environment.
  5968  	ArchiveDeployments []*GoogleCloudApigeeV1ArchiveDeployment `json:"archiveDeployments,omitempty"`
  5969  	// NextPageToken: Page token that you can include in a ListArchiveDeployments
  5970  	// request to retrieve the next page. If omitted, no subsequent pages exist.
  5971  	NextPageToken string `json:"nextPageToken,omitempty"`
  5972  
  5973  	// ServerResponse contains the HTTP response code and headers from the server.
  5974  	googleapi.ServerResponse `json:"-"`
  5975  	// ForceSendFields is a list of field names (e.g. "ArchiveDeployments") to
  5976  	// unconditionally include in API requests. By default, fields with empty or
  5977  	// default values are omitted from API requests. See
  5978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5979  	// details.
  5980  	ForceSendFields []string `json:"-"`
  5981  	// NullFields is a list of field names (e.g. "ArchiveDeployments") to include
  5982  	// in API requests with the JSON null value. By default, fields with empty
  5983  	// values are omitted from API requests. See
  5984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5985  	NullFields []string `json:"-"`
  5986  }
  5987  
  5988  func (s *GoogleCloudApigeeV1ListArchiveDeploymentsResponse) MarshalJSON() ([]byte, error) {
  5989  	type NoMethod GoogleCloudApigeeV1ListArchiveDeploymentsResponse
  5990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5991  }
  5992  
  5993  // GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
  5994  // ListAsyncQueries.
  5995  type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
  5996  	// Queries: The asynchronous queries belong to requested resource name.
  5997  	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
  5998  
  5999  	// ServerResponse contains the HTTP response code and headers from the server.
  6000  	googleapi.ServerResponse `json:"-"`
  6001  	// ForceSendFields is a list of field names (e.g. "Queries") to unconditionally
  6002  	// include in API requests. By default, fields with empty or default values are
  6003  	// omitted from API requests. See
  6004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6005  	// details.
  6006  	ForceSendFields []string `json:"-"`
  6007  	// NullFields is a list of field names (e.g. "Queries") to include in API
  6008  	// requests with the JSON null value. By default, fields with empty values are
  6009  	// omitted from API requests. See
  6010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6011  	NullFields []string `json:"-"`
  6012  }
  6013  
  6014  func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
  6015  	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
  6016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6017  }
  6018  
  6019  // GoogleCloudApigeeV1ListCustomReportsResponse: This message encapsulates a
  6020  // list of custom report definitions
  6021  type GoogleCloudApigeeV1ListCustomReportsResponse struct {
  6022  	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
  6023  
  6024  	// ServerResponse contains the HTTP response code and headers from the server.
  6025  	googleapi.ServerResponse `json:"-"`
  6026  	// ForceSendFields is a list of field names (e.g. "Qualifier") to
  6027  	// unconditionally include in API requests. By default, fields with empty or
  6028  	// default values are omitted from API requests. See
  6029  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6030  	// details.
  6031  	ForceSendFields []string `json:"-"`
  6032  	// NullFields is a list of field names (e.g. "Qualifier") to include in API
  6033  	// requests with the JSON null value. By default, fields with empty values are
  6034  	// omitted from API requests. See
  6035  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6036  	NullFields []string `json:"-"`
  6037  }
  6038  
  6039  func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
  6040  	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
  6041  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6042  }
  6043  
  6044  // GoogleCloudApigeeV1ListDataCollectorsResponse: Response for
  6045  // ListDataCollectors.
  6046  type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
  6047  	// DataCollectors: Data collectors in the specified organization.
  6048  	DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
  6049  	// NextPageToken: Page token that you can include in a ListDataCollectors
  6050  	// request to retrieve the next page. If omitted, no subsequent pages exist.
  6051  	NextPageToken string `json:"nextPageToken,omitempty"`
  6052  
  6053  	// ServerResponse contains the HTTP response code and headers from the server.
  6054  	googleapi.ServerResponse `json:"-"`
  6055  	// ForceSendFields is a list of field names (e.g. "DataCollectors") to
  6056  	// unconditionally include in API requests. By default, fields with empty or
  6057  	// default values are omitted from API requests. See
  6058  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6059  	// details.
  6060  	ForceSendFields []string `json:"-"`
  6061  	// NullFields is a list of field names (e.g. "DataCollectors") to include in
  6062  	// API requests with the JSON null value. By default, fields with empty values
  6063  	// are omitted from API requests. See
  6064  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6065  	NullFields []string `json:"-"`
  6066  }
  6067  
  6068  func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
  6069  	type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
  6070  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6071  }
  6072  
  6073  // GoogleCloudApigeeV1ListDatastoresResponse: The response for ListDatastores
  6074  type GoogleCloudApigeeV1ListDatastoresResponse struct {
  6075  	// Datastores: A list of datastores
  6076  	Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
  6077  
  6078  	// ServerResponse contains the HTTP response code and headers from the server.
  6079  	googleapi.ServerResponse `json:"-"`
  6080  	// ForceSendFields is a list of field names (e.g. "Datastores") to
  6081  	// unconditionally include in API requests. By default, fields with empty or
  6082  	// default values are omitted from API requests. See
  6083  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6084  	// details.
  6085  	ForceSendFields []string `json:"-"`
  6086  	// NullFields is a list of field names (e.g. "Datastores") to include in API
  6087  	// requests with the JSON null value. By default, fields with empty values are
  6088  	// omitted from API requests. See
  6089  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6090  	NullFields []string `json:"-"`
  6091  }
  6092  
  6093  func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
  6094  	type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
  6095  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6096  }
  6097  
  6098  type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
  6099  	// NextPageToken: Page token that you can include in a ListDebugSessionsRequest
  6100  	// to retrieve the next page. If omitted, no subsequent pages exist.
  6101  	NextPageToken string `json:"nextPageToken,omitempty"`
  6102  	// Sessions: Session info that includes debug session ID and the first
  6103  	// transaction creation timestamp.
  6104  	Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
  6105  
  6106  	// ServerResponse contains the HTTP response code and headers from the server.
  6107  	googleapi.ServerResponse `json:"-"`
  6108  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6109  	// unconditionally include in API requests. By default, fields with empty or
  6110  	// default values are omitted from API requests. See
  6111  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6112  	// details.
  6113  	ForceSendFields []string `json:"-"`
  6114  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6115  	// requests with the JSON null value. By default, fields with empty values are
  6116  	// omitted from API requests. See
  6117  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6118  	NullFields []string `json:"-"`
  6119  }
  6120  
  6121  func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
  6122  	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
  6123  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6124  }
  6125  
  6126  type GoogleCloudApigeeV1ListDeploymentsResponse struct {
  6127  	// Deployments: List of deployments.
  6128  	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
  6129  
  6130  	// ServerResponse contains the HTTP response code and headers from the server.
  6131  	googleapi.ServerResponse `json:"-"`
  6132  	// ForceSendFields is a list of field names (e.g. "Deployments") to
  6133  	// unconditionally include in API requests. By default, fields with empty or
  6134  	// default values are omitted from API requests. See
  6135  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6136  	// details.
  6137  	ForceSendFields []string `json:"-"`
  6138  	// NullFields is a list of field names (e.g. "Deployments") to include in API
  6139  	// requests with the JSON null value. By default, fields with empty values are
  6140  	// omitted from API requests. See
  6141  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6142  	NullFields []string `json:"-"`
  6143  }
  6144  
  6145  func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
  6146  	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
  6147  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6148  }
  6149  
  6150  type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
  6151  	// App: List of developer apps and their credentials.
  6152  	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
  6153  
  6154  	// ServerResponse contains the HTTP response code and headers from the server.
  6155  	googleapi.ServerResponse `json:"-"`
  6156  	// ForceSendFields is a list of field names (e.g. "App") to unconditionally
  6157  	// include in API requests. By default, fields with empty or default values are
  6158  	// omitted from API requests. See
  6159  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6160  	// details.
  6161  	ForceSendFields []string `json:"-"`
  6162  	// NullFields is a list of field names (e.g. "App") to include in API requests
  6163  	// with the JSON null value. By default, fields with empty values are omitted
  6164  	// from API requests. See
  6165  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6166  	NullFields []string `json:"-"`
  6167  }
  6168  
  6169  func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
  6170  	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
  6171  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6172  }
  6173  
  6174  // GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse: Response for
  6175  // ListDeveloperSubscriptions.
  6176  type GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse struct {
  6177  	// DeveloperSubscriptions: List of all subscriptions.
  6178  	DeveloperSubscriptions []*GoogleCloudApigeeV1DeveloperSubscription `json:"developerSubscriptions,omitempty"`
  6179  	// NextStartKey: Value that can be sent as `startKey` to retrieve the next page
  6180  	// of content. If this field is omitted, there are no subsequent pages.
  6181  	NextStartKey string `json:"nextStartKey,omitempty"`
  6182  
  6183  	// ServerResponse contains the HTTP response code and headers from the server.
  6184  	googleapi.ServerResponse `json:"-"`
  6185  	// ForceSendFields is a list of field names (e.g. "DeveloperSubscriptions") to
  6186  	// unconditionally include in API requests. By default, fields with empty or
  6187  	// default values are omitted from API requests. See
  6188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6189  	// details.
  6190  	ForceSendFields []string `json:"-"`
  6191  	// NullFields is a list of field names (e.g. "DeveloperSubscriptions") to
  6192  	// include in API requests with the JSON null value. By default, fields with
  6193  	// empty values are omitted from API requests. See
  6194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6195  	NullFields []string `json:"-"`
  6196  }
  6197  
  6198  func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([]byte, error) {
  6199  	type NoMethod GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
  6200  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6201  }
  6202  
  6203  // GoogleCloudApigeeV1ListEndpointAttachmentsResponse: Response for
  6204  // ListEndpointAttachments method.
  6205  type GoogleCloudApigeeV1ListEndpointAttachmentsResponse struct {
  6206  	// EndpointAttachments: Endpoint attachments in the specified organization.
  6207  	EndpointAttachments []*GoogleCloudApigeeV1EndpointAttachment `json:"endpointAttachments,omitempty"`
  6208  	// NextPageToken: Page token that you can include in an
  6209  	// `ListEndpointAttachments` request to retrieve the next page. If omitted, no
  6210  	// subsequent pages exist.
  6211  	NextPageToken string `json:"nextPageToken,omitempty"`
  6212  
  6213  	// ServerResponse contains the HTTP response code and headers from the server.
  6214  	googleapi.ServerResponse `json:"-"`
  6215  	// ForceSendFields is a list of field names (e.g. "EndpointAttachments") to
  6216  	// unconditionally include in API requests. By default, fields with empty or
  6217  	// default values are omitted from API requests. See
  6218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6219  	// details.
  6220  	ForceSendFields []string `json:"-"`
  6221  	// NullFields is a list of field names (e.g. "EndpointAttachments") to include
  6222  	// in API requests with the JSON null value. By default, fields with empty
  6223  	// values are omitted from API requests. See
  6224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6225  	NullFields []string `json:"-"`
  6226  }
  6227  
  6228  func (s *GoogleCloudApigeeV1ListEndpointAttachmentsResponse) MarshalJSON() ([]byte, error) {
  6229  	type NoMethod GoogleCloudApigeeV1ListEndpointAttachmentsResponse
  6230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6231  }
  6232  
  6233  // GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response for
  6234  // ListEnvironmentGroupAttachments.
  6235  type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
  6236  	// EnvironmentGroupAttachments: EnvironmentGroupAttachments for the specified
  6237  	// environment group.
  6238  	EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
  6239  	// NextPageToken: Page token that you can include in a
  6240  	// ListEnvironmentGroupAttachments request to retrieve the next page. If
  6241  	// omitted, no subsequent pages exist.
  6242  	NextPageToken string `json:"nextPageToken,omitempty"`
  6243  
  6244  	// ServerResponse contains the HTTP response code and headers from the server.
  6245  	googleapi.ServerResponse `json:"-"`
  6246  	// ForceSendFields is a list of field names (e.g.
  6247  	// "EnvironmentGroupAttachments") to unconditionally include in API requests.
  6248  	// By default, fields with empty or default values are omitted from API
  6249  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  6250  	// for more details.
  6251  	ForceSendFields []string `json:"-"`
  6252  	// NullFields is a list of field names (e.g. "EnvironmentGroupAttachments") to
  6253  	// include in API requests with the JSON null value. By default, fields with
  6254  	// empty values are omitted from API requests. See
  6255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6256  	NullFields []string `json:"-"`
  6257  }
  6258  
  6259  func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
  6260  	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
  6261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6262  }
  6263  
  6264  // GoogleCloudApigeeV1ListEnvironmentGroupsResponse: Response for
  6265  // ListEnvironmentGroups.
  6266  type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
  6267  	// EnvironmentGroups: EnvironmentGroups in the specified organization.
  6268  	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
  6269  	// NextPageToken: Page token that you can include in a ListEnvironmentGroups
  6270  	// request to retrieve the next page. If omitted, no subsequent pages exist.
  6271  	NextPageToken string `json:"nextPageToken,omitempty"`
  6272  
  6273  	// ServerResponse contains the HTTP response code and headers from the server.
  6274  	googleapi.ServerResponse `json:"-"`
  6275  	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups") to
  6276  	// unconditionally include in API requests. By default, fields with empty or
  6277  	// default values are omitted from API requests. See
  6278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6279  	// details.
  6280  	ForceSendFields []string `json:"-"`
  6281  	// NullFields is a list of field names (e.g. "EnvironmentGroups") to include in
  6282  	// API requests with the JSON null value. By default, fields with empty values
  6283  	// are omitted from API requests. See
  6284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6285  	NullFields []string `json:"-"`
  6286  }
  6287  
  6288  func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
  6289  	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
  6290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6291  }
  6292  
  6293  // GoogleCloudApigeeV1ListEnvironmentResourcesResponse: Response for
  6294  // ListEnvironmentResources
  6295  type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
  6296  	// ResourceFile: List of resources files.
  6297  	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
  6298  
  6299  	// ServerResponse contains the HTTP response code and headers from the server.
  6300  	googleapi.ServerResponse `json:"-"`
  6301  	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
  6302  	// unconditionally include in API requests. By default, fields with empty or
  6303  	// default values are omitted from API requests. See
  6304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6305  	// details.
  6306  	ForceSendFields []string `json:"-"`
  6307  	// NullFields is a list of field names (e.g. "ResourceFile") to include in API
  6308  	// requests with the JSON null value. By default, fields with empty values are
  6309  	// omitted from API requests. See
  6310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6311  	NullFields []string `json:"-"`
  6312  }
  6313  
  6314  func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
  6315  	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
  6316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6317  }
  6318  
  6319  // GoogleCloudApigeeV1ListExportsResponse: The response for ListExports
  6320  type GoogleCloudApigeeV1ListExportsResponse struct {
  6321  	// Exports: Details of the export jobs.
  6322  	Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
  6323  
  6324  	// ServerResponse contains the HTTP response code and headers from the server.
  6325  	googleapi.ServerResponse `json:"-"`
  6326  	// ForceSendFields is a list of field names (e.g. "Exports") to unconditionally
  6327  	// include in API requests. By default, fields with empty or default values are
  6328  	// omitted from API requests. See
  6329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6330  	// details.
  6331  	ForceSendFields []string `json:"-"`
  6332  	// NullFields is a list of field names (e.g. "Exports") to include in API
  6333  	// requests with the JSON null value. By default, fields with empty values are
  6334  	// omitted from API requests. See
  6335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6336  	NullFields []string `json:"-"`
  6337  }
  6338  
  6339  func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
  6340  	type NoMethod GoogleCloudApigeeV1ListExportsResponse
  6341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6342  }
  6343  
  6344  type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
  6345  	// Issuers: Lists of hybrid services and its trusted issuer email ids.
  6346  	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
  6347  
  6348  	// ServerResponse contains the HTTP response code and headers from the server.
  6349  	googleapi.ServerResponse `json:"-"`
  6350  	// ForceSendFields is a list of field names (e.g. "Issuers") to unconditionally
  6351  	// include in API requests. By default, fields with empty or default values are
  6352  	// omitted from API requests. See
  6353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6354  	// details.
  6355  	ForceSendFields []string `json:"-"`
  6356  	// NullFields is a list of field names (e.g. "Issuers") to include in API
  6357  	// requests with the JSON null value. By default, fields with empty values are
  6358  	// omitted from API requests. See
  6359  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6360  	NullFields []string `json:"-"`
  6361  }
  6362  
  6363  func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
  6364  	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
  6365  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6366  }
  6367  
  6368  // GoogleCloudApigeeV1ListInstanceAttachmentsResponse: Response for
  6369  // ListInstanceAttachments.
  6370  type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
  6371  	// Attachments: Attachments for the instance.
  6372  	Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
  6373  	// NextPageToken: Page token that you can include in a ListInstanceAttachments
  6374  	// request to retrieve the next page of content. If omitted, no subsequent
  6375  	// pages exist.
  6376  	NextPageToken string `json:"nextPageToken,omitempty"`
  6377  
  6378  	// ServerResponse contains the HTTP response code and headers from the server.
  6379  	googleapi.ServerResponse `json:"-"`
  6380  	// ForceSendFields is a list of field names (e.g. "Attachments") to
  6381  	// unconditionally include in API requests. By default, fields with empty or
  6382  	// default values are omitted from API requests. See
  6383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6384  	// details.
  6385  	ForceSendFields []string `json:"-"`
  6386  	// NullFields is a list of field names (e.g. "Attachments") to include in API
  6387  	// requests with the JSON null value. By default, fields with empty values are
  6388  	// omitted from API requests. See
  6389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6390  	NullFields []string `json:"-"`
  6391  }
  6392  
  6393  func (s *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
  6394  	type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
  6395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6396  }
  6397  
  6398  // GoogleCloudApigeeV1ListInstancesResponse: Response for ListInstances.
  6399  type GoogleCloudApigeeV1ListInstancesResponse struct {
  6400  	// Instances: Instances in the specified organization.
  6401  	Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
  6402  	// NextPageToken: Page token that you can include in a ListInstance request to
  6403  	// retrieve the next page of content. If omitted, no subsequent pages exist.
  6404  	NextPageToken string `json:"nextPageToken,omitempty"`
  6405  
  6406  	// ServerResponse contains the HTTP response code and headers from the server.
  6407  	googleapi.ServerResponse `json:"-"`
  6408  	// ForceSendFields is a list of field names (e.g. "Instances") to
  6409  	// unconditionally include in API requests. By default, fields with empty or
  6410  	// default values are omitted from API requests. See
  6411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6412  	// details.
  6413  	ForceSendFields []string `json:"-"`
  6414  	// NullFields is a list of field names (e.g. "Instances") to include in API
  6415  	// requests with the JSON null value. By default, fields with empty values are
  6416  	// omitted from API requests. See
  6417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6418  	NullFields []string `json:"-"`
  6419  }
  6420  
  6421  func (s *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
  6422  	type NoMethod GoogleCloudApigeeV1ListInstancesResponse
  6423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6424  }
  6425  
  6426  // GoogleCloudApigeeV1ListKeyValueEntriesResponse: The request structure for
  6427  // listing key value map keys and its corresponding values.
  6428  type GoogleCloudApigeeV1ListKeyValueEntriesResponse struct {
  6429  	// KeyValueEntries: One or more key value map keys and values.
  6430  	KeyValueEntries []*GoogleCloudApigeeV1KeyValueEntry `json:"keyValueEntries,omitempty"`
  6431  	// NextPageToken: Token that can be sent as `next_page_token` to retrieve the
  6432  	// next page. If this field is omitted, there are no subsequent pages.
  6433  	NextPageToken string `json:"nextPageToken,omitempty"`
  6434  
  6435  	// ServerResponse contains the HTTP response code and headers from the server.
  6436  	googleapi.ServerResponse `json:"-"`
  6437  	// ForceSendFields is a list of field names (e.g. "KeyValueEntries") to
  6438  	// unconditionally include in API requests. By default, fields with empty or
  6439  	// default values are omitted from API requests. See
  6440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6441  	// details.
  6442  	ForceSendFields []string `json:"-"`
  6443  	// NullFields is a list of field names (e.g. "KeyValueEntries") to include in
  6444  	// API requests with the JSON null value. By default, fields with empty values
  6445  	// are omitted from API requests. See
  6446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6447  	NullFields []string `json:"-"`
  6448  }
  6449  
  6450  func (s *GoogleCloudApigeeV1ListKeyValueEntriesResponse) MarshalJSON() ([]byte, error) {
  6451  	type NoMethod GoogleCloudApigeeV1ListKeyValueEntriesResponse
  6452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6453  }
  6454  
  6455  // GoogleCloudApigeeV1ListNatAddressesResponse: Response for ListNatAddresses.
  6456  type GoogleCloudApigeeV1ListNatAddressesResponse struct {
  6457  	// NatAddresses: List of NAT Addresses for the instance.
  6458  	NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
  6459  	// NextPageToken: Page token that you can include in a ListNatAddresses request
  6460  	// to retrieve the next page of content. If omitted, no subsequent pages exist.
  6461  	NextPageToken string `json:"nextPageToken,omitempty"`
  6462  
  6463  	// ServerResponse contains the HTTP response code and headers from the server.
  6464  	googleapi.ServerResponse `json:"-"`
  6465  	// ForceSendFields is a list of field names (e.g. "NatAddresses") to
  6466  	// unconditionally include in API requests. By default, fields with empty or
  6467  	// default values are omitted from API requests. See
  6468  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6469  	// details.
  6470  	ForceSendFields []string `json:"-"`
  6471  	// NullFields is a list of field names (e.g. "NatAddresses") to include in API
  6472  	// requests with the JSON null value. By default, fields with empty values are
  6473  	// omitted from API requests. See
  6474  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6475  	NullFields []string `json:"-"`
  6476  }
  6477  
  6478  func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
  6479  	type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
  6480  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6481  }
  6482  
  6483  type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
  6484  	// Developer: List of developers.
  6485  	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
  6486  
  6487  	// ServerResponse contains the HTTP response code and headers from the server.
  6488  	googleapi.ServerResponse `json:"-"`
  6489  	// ForceSendFields is a list of field names (e.g. "Developer") to
  6490  	// unconditionally include in API requests. By default, fields with empty or
  6491  	// default values are omitted from API requests. See
  6492  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6493  	// details.
  6494  	ForceSendFields []string `json:"-"`
  6495  	// NullFields is a list of field names (e.g. "Developer") to include in API
  6496  	// requests with the JSON null value. By default, fields with empty values are
  6497  	// omitted from API requests. See
  6498  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6499  	NullFields []string `json:"-"`
  6500  }
  6501  
  6502  func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
  6503  	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
  6504  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6505  }
  6506  
  6507  type GoogleCloudApigeeV1ListOrganizationsResponse struct {
  6508  	// Organizations: List of Apigee organizations and associated Google Cloud
  6509  	// projects.
  6510  	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
  6511  
  6512  	// ServerResponse contains the HTTP response code and headers from the server.
  6513  	googleapi.ServerResponse `json:"-"`
  6514  	// ForceSendFields is a list of field names (e.g. "Organizations") to
  6515  	// unconditionally include in API requests. By default, fields with empty or
  6516  	// default values are omitted from API requests. See
  6517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6518  	// details.
  6519  	ForceSendFields []string `json:"-"`
  6520  	// NullFields is a list of field names (e.g. "Organizations") to include in API
  6521  	// requests with the JSON null value. By default, fields with empty values are
  6522  	// omitted from API requests. See
  6523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6524  	NullFields []string `json:"-"`
  6525  }
  6526  
  6527  func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
  6528  	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
  6529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6530  }
  6531  
  6532  // GoogleCloudApigeeV1ListRatePlansResponse: Response for ListRatePlans.
  6533  type GoogleCloudApigeeV1ListRatePlansResponse struct {
  6534  	// NextStartKey: Value that can be sent as `startKey` to retrieve the next page
  6535  	// of content. If this field is omitted, there are no subsequent pages.
  6536  	NextStartKey string `json:"nextStartKey,omitempty"`
  6537  	// RatePlans: List of rate plans in an organization.
  6538  	RatePlans []*GoogleCloudApigeeV1RatePlan `json:"ratePlans,omitempty"`
  6539  
  6540  	// ServerResponse contains the HTTP response code and headers from the server.
  6541  	googleapi.ServerResponse `json:"-"`
  6542  	// ForceSendFields is a list of field names (e.g. "NextStartKey") to
  6543  	// unconditionally include in API requests. By default, fields with empty or
  6544  	// default values are omitted from API requests. See
  6545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6546  	// details.
  6547  	ForceSendFields []string `json:"-"`
  6548  	// NullFields is a list of field names (e.g. "NextStartKey") to include in API
  6549  	// requests with the JSON null value. By default, fields with empty values are
  6550  	// omitted from API requests. See
  6551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6552  	NullFields []string `json:"-"`
  6553  }
  6554  
  6555  func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) {
  6556  	type NoMethod GoogleCloudApigeeV1ListRatePlansResponse
  6557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6558  }
  6559  
  6560  // GoogleCloudApigeeV1ListSecurityActionsResponse: Contains a list of
  6561  // SecurityActions in response to a ListSecurityActionRequest.
  6562  type GoogleCloudApigeeV1ListSecurityActionsResponse struct {
  6563  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6564  	// next page. If this field is omitted, there are no subsequent pages.
  6565  	NextPageToken string `json:"nextPageToken,omitempty"`
  6566  	// SecurityActions: The SecurityActions for the specified environment.
  6567  	SecurityActions []*GoogleCloudApigeeV1SecurityAction `json:"securityActions,omitempty"`
  6568  
  6569  	// ServerResponse contains the HTTP response code and headers from the server.
  6570  	googleapi.ServerResponse `json:"-"`
  6571  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6572  	// unconditionally include in API requests. By default, fields with empty or
  6573  	// default values are omitted from API requests. See
  6574  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6575  	// details.
  6576  	ForceSendFields []string `json:"-"`
  6577  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6578  	// requests with the JSON null value. By default, fields with empty values are
  6579  	// omitted from API requests. See
  6580  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6581  	NullFields []string `json:"-"`
  6582  }
  6583  
  6584  func (s *GoogleCloudApigeeV1ListSecurityActionsResponse) MarshalJSON() ([]byte, error) {
  6585  	type NoMethod GoogleCloudApigeeV1ListSecurityActionsResponse
  6586  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6587  }
  6588  
  6589  // GoogleCloudApigeeV1ListSecurityIncidentsResponse: Response for
  6590  // ListSecurityIncidents.
  6591  type GoogleCloudApigeeV1ListSecurityIncidentsResponse struct {
  6592  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  6593  	// page. If this field is omitted, there are no subsequent pages.
  6594  	NextPageToken string `json:"nextPageToken,omitempty"`
  6595  	// SecurityIncidents: List of security incidents in the organization
  6596  	SecurityIncidents []*GoogleCloudApigeeV1SecurityIncident `json:"securityIncidents,omitempty"`
  6597  
  6598  	// ServerResponse contains the HTTP response code and headers from the server.
  6599  	googleapi.ServerResponse `json:"-"`
  6600  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6601  	// unconditionally include in API requests. By default, fields with empty or
  6602  	// default values are omitted from API requests. See
  6603  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6604  	// details.
  6605  	ForceSendFields []string `json:"-"`
  6606  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6607  	// requests with the JSON null value. By default, fields with empty values are
  6608  	// omitted from API requests. See
  6609  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6610  	NullFields []string `json:"-"`
  6611  }
  6612  
  6613  func (s *GoogleCloudApigeeV1ListSecurityIncidentsResponse) MarshalJSON() ([]byte, error) {
  6614  	type NoMethod GoogleCloudApigeeV1ListSecurityIncidentsResponse
  6615  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6616  }
  6617  
  6618  // GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse: Response for
  6619  // ListSecurityProfileRevisions.
  6620  type GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse struct {
  6621  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  6622  	// page. If this field is omitted, there are no subsequent pages.
  6623  	NextPageToken string `json:"nextPageToken,omitempty"`
  6624  	// SecurityProfiles: List of security profile revisions. The revisions may be
  6625  	// attached or unattached to any environment.
  6626  	SecurityProfiles []*GoogleCloudApigeeV1SecurityProfile `json:"securityProfiles,omitempty"`
  6627  
  6628  	// ServerResponse contains the HTTP response code and headers from the server.
  6629  	googleapi.ServerResponse `json:"-"`
  6630  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6631  	// unconditionally include in API requests. By default, fields with empty or
  6632  	// default values are omitted from API requests. See
  6633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6634  	// details.
  6635  	ForceSendFields []string `json:"-"`
  6636  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6637  	// requests with the JSON null value. By default, fields with empty values are
  6638  	// omitted from API requests. See
  6639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6640  	NullFields []string `json:"-"`
  6641  }
  6642  
  6643  func (s *GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse) MarshalJSON() ([]byte, error) {
  6644  	type NoMethod GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse
  6645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6646  }
  6647  
  6648  // GoogleCloudApigeeV1ListSecurityProfilesResponse: Response for
  6649  // ListSecurityProfiles.
  6650  type GoogleCloudApigeeV1ListSecurityProfilesResponse struct {
  6651  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  6652  	// page. If this field is omitted, there are no subsequent pages.
  6653  	NextPageToken string `json:"nextPageToken,omitempty"`
  6654  	// SecurityProfiles: List of security profiles in the organization. The
  6655  	// profiles may be attached or unattached to any environment. This will return
  6656  	// latest revision of each profile.
  6657  	SecurityProfiles []*GoogleCloudApigeeV1SecurityProfile `json:"securityProfiles,omitempty"`
  6658  
  6659  	// ServerResponse contains the HTTP response code and headers from the server.
  6660  	googleapi.ServerResponse `json:"-"`
  6661  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6662  	// unconditionally include in API requests. By default, fields with empty or
  6663  	// default values are omitted from API requests. See
  6664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6665  	// details.
  6666  	ForceSendFields []string `json:"-"`
  6667  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6668  	// requests with the JSON null value. By default, fields with empty values are
  6669  	// omitted from API requests. See
  6670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6671  	NullFields []string `json:"-"`
  6672  }
  6673  
  6674  func (s *GoogleCloudApigeeV1ListSecurityProfilesResponse) MarshalJSON() ([]byte, error) {
  6675  	type NoMethod GoogleCloudApigeeV1ListSecurityProfilesResponse
  6676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6677  }
  6678  
  6679  // GoogleCloudApigeeV1ListSecurityReportsResponse: The response for
  6680  // SecurityReports.
  6681  type GoogleCloudApigeeV1ListSecurityReportsResponse struct {
  6682  	// NextPageToken: If the number of security reports exceeded the page size
  6683  	// requested, the token can be used to fetch the next page in a subsequent
  6684  	// call. If the response is the last page and there are no more reports to
  6685  	// return this field is left empty.
  6686  	NextPageToken string `json:"nextPageToken,omitempty"`
  6687  	// SecurityReports: The security reports belong to requested resource name.
  6688  	SecurityReports []*GoogleCloudApigeeV1SecurityReport `json:"securityReports,omitempty"`
  6689  
  6690  	// ServerResponse contains the HTTP response code and headers from the server.
  6691  	googleapi.ServerResponse `json:"-"`
  6692  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6693  	// unconditionally include in API requests. By default, fields with empty or
  6694  	// default values are omitted from API requests. See
  6695  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6696  	// details.
  6697  	ForceSendFields []string `json:"-"`
  6698  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6699  	// requests with the JSON null value. By default, fields with empty values are
  6700  	// omitted from API requests. See
  6701  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6702  	NullFields []string `json:"-"`
  6703  }
  6704  
  6705  func (s *GoogleCloudApigeeV1ListSecurityReportsResponse) MarshalJSON() ([]byte, error) {
  6706  	type NoMethod GoogleCloudApigeeV1ListSecurityReportsResponse
  6707  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6708  }
  6709  
  6710  // GoogleCloudApigeeV1ListSharedFlowsResponse: To change this message, in the
  6711  // same CL add a change log in go/changing-api-proto-breaks-ui
  6712  type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
  6713  	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
  6714  
  6715  	// ServerResponse contains the HTTP response code and headers from the server.
  6716  	googleapi.ServerResponse `json:"-"`
  6717  	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
  6718  	// unconditionally include in API requests. By default, fields with empty or
  6719  	// default values are omitted from API requests. See
  6720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6721  	// details.
  6722  	ForceSendFields []string `json:"-"`
  6723  	// NullFields is a list of field names (e.g. "SharedFlows") to include in API
  6724  	// requests with the JSON null value. By default, fields with empty values are
  6725  	// omitted from API requests. See
  6726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6727  	NullFields []string `json:"-"`
  6728  }
  6729  
  6730  func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
  6731  	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
  6732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6733  }
  6734  
  6735  // GoogleCloudApigeeV1ListTraceConfigOverridesResponse: Response for
  6736  // ListTraceConfigOverrides.
  6737  type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
  6738  	// NextPageToken: Token value that can be passed as `page_token` to retrieve
  6739  	// the next page of content.
  6740  	NextPageToken string `json:"nextPageToken,omitempty"`
  6741  	// TraceConfigOverrides: List all trace configuration overrides in an
  6742  	// environment.
  6743  	TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
  6744  
  6745  	// ServerResponse contains the HTTP response code and headers from the server.
  6746  	googleapi.ServerResponse `json:"-"`
  6747  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6748  	// unconditionally include in API requests. By default, fields with empty or
  6749  	// default values are omitted from API requests. See
  6750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6751  	// details.
  6752  	ForceSendFields []string `json:"-"`
  6753  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6754  	// requests with the JSON null value. By default, fields with empty values are
  6755  	// omitted from API requests. See
  6756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6757  	NullFields []string `json:"-"`
  6758  }
  6759  
  6760  func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
  6761  	type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
  6762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6763  }
  6764  
  6765  // GoogleCloudApigeeV1Metadata: Encapsulates additional information about query
  6766  // execution.
  6767  type GoogleCloudApigeeV1Metadata struct {
  6768  	// Errors: List of error messages as strings.
  6769  	Errors []string `json:"errors,omitempty"`
  6770  	// Notices: List of additional information such as data source, if result was
  6771  	// truncated. For example: ``` "notices": [ "Source:Postgres", "PG
  6772  	// Host:uappg0rw.e2e.apigeeks.net", "query served
  6773  	// by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed", "Table used:
  6774  	// edge.api.uapgroup2.agg_api" ]```
  6775  	Notices []string `json:"notices,omitempty"`
  6776  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  6777  	// include in API requests. By default, fields with empty or default values are
  6778  	// omitted from API requests. See
  6779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6780  	// details.
  6781  	ForceSendFields []string `json:"-"`
  6782  	// NullFields is a list of field names (e.g. "Errors") to include in API
  6783  	// requests with the JSON null value. By default, fields with empty values are
  6784  	// omitted from API requests. See
  6785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6786  	NullFields []string `json:"-"`
  6787  }
  6788  
  6789  func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
  6790  	type NoMethod GoogleCloudApigeeV1Metadata
  6791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6792  }
  6793  
  6794  // GoogleCloudApigeeV1Metric: Encapsulates the metric data point. For example:
  6795  // ```{ "name": "sum(message_count)", "values" : [ { "timestamp":
  6796  // 1549004400000, "value": "39.0" }, { "timestamp" : 1548997200000, "value" :
  6797  // "0.0" } ] }``` or ```{ "name": "sum(message_count)", "values" : ["39.0"]
  6798  // }```
  6799  type GoogleCloudApigeeV1Metric struct {
  6800  	// Name: Metric name.
  6801  	Name string `json:"name,omitempty"`
  6802  	// Values: List of metric values. Possible value formats include:
  6803  	// "values":["39.0"]` or "values":[ { "value": "39.0", "timestamp":
  6804  	// 1232434354} ]`
  6805  	Values []interface{} `json:"values,omitempty"`
  6806  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  6807  	// include in API requests. By default, fields with empty or default values are
  6808  	// omitted from API requests. See
  6809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6810  	// details.
  6811  	ForceSendFields []string `json:"-"`
  6812  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  6813  	// with the JSON null value. By default, fields with empty values are omitted
  6814  	// from API requests. See
  6815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6816  	NullFields []string `json:"-"`
  6817  }
  6818  
  6819  func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
  6820  	type NoMethod GoogleCloudApigeeV1Metric
  6821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6822  }
  6823  
  6824  // GoogleCloudApigeeV1MetricAggregation: The optionally aggregated metric to
  6825  // query with its ordering.
  6826  type GoogleCloudApigeeV1MetricAggregation struct {
  6827  	// Aggregation: Aggregation function associated with the metric.
  6828  	//
  6829  	// Possible values:
  6830  	//   "AGGREGATION_FUNCTION_UNSPECIFIED" - Unspecified Aggregation function.
  6831  	//   "AVG" - Average.
  6832  	//   "SUM" - Summation.
  6833  	//   "MIN" - Min.
  6834  	//   "MAX" - Max.
  6835  	//   "COUNT_DISTINCT" - Count distinct
  6836  	Aggregation string `json:"aggregation,omitempty"`
  6837  	// Name: Name of the metric
  6838  	Name string `json:"name,omitempty"`
  6839  	// Order: Ordering for this aggregation in the result. For time series this is
  6840  	// ignored since the ordering of points depends only on the timestamp, not the
  6841  	// values.
  6842  	//
  6843  	// Possible values:
  6844  	//   "ORDER_UNSPECIFIED" - Unspecified order. Default is Descending.
  6845  	//   "ASCENDING" - Ascending sort order.
  6846  	//   "DESCENDING" - Descending sort order.
  6847  	Order string `json:"order,omitempty"`
  6848  	// ForceSendFields is a list of field names (e.g. "Aggregation") to
  6849  	// unconditionally include in API requests. By default, fields with empty or
  6850  	// default values are omitted from API requests. See
  6851  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6852  	// details.
  6853  	ForceSendFields []string `json:"-"`
  6854  	// NullFields is a list of field names (e.g. "Aggregation") to include in API
  6855  	// requests with the JSON null value. By default, fields with empty values are
  6856  	// omitted from API requests. See
  6857  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6858  	NullFields []string `json:"-"`
  6859  }
  6860  
  6861  func (s *GoogleCloudApigeeV1MetricAggregation) MarshalJSON() ([]byte, error) {
  6862  	type NoMethod GoogleCloudApigeeV1MetricAggregation
  6863  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6864  }
  6865  
  6866  // GoogleCloudApigeeV1MonetizationConfig: Configuration for the Monetization
  6867  // add-on.
  6868  type GoogleCloudApigeeV1MonetizationConfig struct {
  6869  	// Enabled: Flag that specifies whether the Monetization add-on is enabled.
  6870  	Enabled bool `json:"enabled,omitempty"`
  6871  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  6872  	// include in API requests. By default, fields with empty or default values are
  6873  	// omitted from API requests. See
  6874  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6875  	// details.
  6876  	ForceSendFields []string `json:"-"`
  6877  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  6878  	// requests with the JSON null value. By default, fields with empty values are
  6879  	// omitted from API requests. See
  6880  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6881  	NullFields []string `json:"-"`
  6882  }
  6883  
  6884  func (s *GoogleCloudApigeeV1MonetizationConfig) MarshalJSON() ([]byte, error) {
  6885  	type NoMethod GoogleCloudApigeeV1MonetizationConfig
  6886  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6887  }
  6888  
  6889  // GoogleCloudApigeeV1NatAddress: Apigee NAT(network address translation)
  6890  // address. A NAT address is a static external IP address used for Internet
  6891  // egress traffic.
  6892  type GoogleCloudApigeeV1NatAddress struct {
  6893  	// IpAddress: Output only. The static IPV4 address.
  6894  	IpAddress string `json:"ipAddress,omitempty"`
  6895  	// Name: Required. Resource ID of the NAT address.
  6896  	Name string `json:"name,omitempty"`
  6897  	// State: Output only. State of the nat address.
  6898  	//
  6899  	// Possible values:
  6900  	//   "STATE_UNSPECIFIED" - The resource is in an unspecified state.
  6901  	//   "CREATING" - The NAT address is being created.
  6902  	//   "RESERVED" - The NAT address is reserved but not yet used for Internet
  6903  	// egress.
  6904  	//   "ACTIVE" - The NAT address is active and used for Internet egress.
  6905  	//   "DELETING" - The NAT address is being deleted.
  6906  	State string `json:"state,omitempty"`
  6907  
  6908  	// ServerResponse contains the HTTP response code and headers from the server.
  6909  	googleapi.ServerResponse `json:"-"`
  6910  	// ForceSendFields is a list of field names (e.g. "IpAddress") to
  6911  	// unconditionally include in API requests. By default, fields with empty or
  6912  	// default values are omitted from API requests. See
  6913  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6914  	// details.
  6915  	ForceSendFields []string `json:"-"`
  6916  	// NullFields is a list of field names (e.g. "IpAddress") to include in API
  6917  	// requests with the JSON null value. By default, fields with empty values are
  6918  	// omitted from API requests. See
  6919  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6920  	NullFields []string `json:"-"`
  6921  }
  6922  
  6923  func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
  6924  	type NoMethod GoogleCloudApigeeV1NatAddress
  6925  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6926  }
  6927  
  6928  // GoogleCloudApigeeV1NodeConfig: NodeConfig for setting the min/max number of
  6929  // nodes associated with the environment.
  6930  type GoogleCloudApigeeV1NodeConfig struct {
  6931  	// CurrentAggregateNodeCount: Output only. The current total number of gateway
  6932  	// nodes that each environment currently has across all instances.
  6933  	CurrentAggregateNodeCount int64 `json:"currentAggregateNodeCount,omitempty,string"`
  6934  	// MaxNodeCount: Optional. The maximum total number of gateway nodes that the
  6935  	// is reserved for all instances that has the specified environment. If not
  6936  	// specified, the default is determined by the recommended maximum number of
  6937  	// nodes for that gateway.
  6938  	MaxNodeCount int64 `json:"maxNodeCount,omitempty,string"`
  6939  	// MinNodeCount: Optional. The minimum total number of gateway nodes that the
  6940  	// is reserved for all instances that has the specified environment. If not
  6941  	// specified, the default is determined by the recommended minimum number of
  6942  	// nodes for that gateway.
  6943  	MinNodeCount int64 `json:"minNodeCount,omitempty,string"`
  6944  	// ForceSendFields is a list of field names (e.g. "CurrentAggregateNodeCount")
  6945  	// to unconditionally include in API requests. By default, fields with empty or
  6946  	// default values are omitted from API requests. See
  6947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6948  	// details.
  6949  	ForceSendFields []string `json:"-"`
  6950  	// NullFields is a list of field names (e.g. "CurrentAggregateNodeCount") to
  6951  	// include in API requests with the JSON null value. By default, fields with
  6952  	// empty values are omitted from API requests. See
  6953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6954  	NullFields []string `json:"-"`
  6955  }
  6956  
  6957  func (s *GoogleCloudApigeeV1NodeConfig) MarshalJSON() ([]byte, error) {
  6958  	type NoMethod GoogleCloudApigeeV1NodeConfig
  6959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6960  }
  6961  
  6962  // GoogleCloudApigeeV1OASDocumentation: OpenAPI Specification documentation for
  6963  // a catalog item.
  6964  type GoogleCloudApigeeV1OASDocumentation struct {
  6965  	// Format: Output only. The format of the input specification file contents.
  6966  	//
  6967  	// Possible values:
  6968  	//   "FORMAT_UNSPECIFIED" - The format is not available.
  6969  	//   "YAML" - YAML format.
  6970  	//   "JSON" - JSON format.
  6971  	Format string `json:"format,omitempty"`
  6972  	// Spec: Required. The documentation file contents for the OpenAPI
  6973  	// Specification. JSON and YAML file formats are supported.
  6974  	Spec *GoogleCloudApigeeV1DocumentationFile `json:"spec,omitempty"`
  6975  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
  6976  	// include in API requests. By default, fields with empty or default values are
  6977  	// omitted from API requests. See
  6978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6979  	// details.
  6980  	ForceSendFields []string `json:"-"`
  6981  	// NullFields is a list of field names (e.g. "Format") to include in API
  6982  	// requests with the JSON null value. By default, fields with empty values are
  6983  	// omitted from API requests. See
  6984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6985  	NullFields []string `json:"-"`
  6986  }
  6987  
  6988  func (s *GoogleCloudApigeeV1OASDocumentation) MarshalJSON() ([]byte, error) {
  6989  	type NoMethod GoogleCloudApigeeV1OASDocumentation
  6990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6991  }
  6992  
  6993  // GoogleCloudApigeeV1Operation: Represents the pairing of REST resource path
  6994  // and the actions (verbs) allowed on the resource path.
  6995  type GoogleCloudApigeeV1Operation struct {
  6996  	// Methods: methods refers to the REST verbs as in
  6997  	// https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. When none specified,
  6998  	// all verb types are allowed.
  6999  	Methods []string `json:"methods,omitempty"`
  7000  	// Resource: Required. REST resource path associated with the API proxy or
  7001  	// remote service.
  7002  	Resource string `json:"resource,omitempty"`
  7003  	// ForceSendFields is a list of field names (e.g. "Methods") to unconditionally
  7004  	// include in API requests. By default, fields with empty or default values are
  7005  	// omitted from API requests. See
  7006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7007  	// details.
  7008  	ForceSendFields []string `json:"-"`
  7009  	// NullFields is a list of field names (e.g. "Methods") to include in API
  7010  	// requests with the JSON null value. By default, fields with empty values are
  7011  	// omitted from API requests. See
  7012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7013  	NullFields []string `json:"-"`
  7014  }
  7015  
  7016  func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
  7017  	type NoMethod GoogleCloudApigeeV1Operation
  7018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7019  }
  7020  
  7021  // GoogleCloudApigeeV1OperationConfig: Binds the resources in an API proxy or
  7022  // remote service with the allowed REST methods and associated quota
  7023  // enforcement.
  7024  type GoogleCloudApigeeV1OperationConfig struct {
  7025  	// ApiSource: Required. Name of the API proxy or remote service with which the
  7026  	// resources, methods, and quota are associated.
  7027  	ApiSource string `json:"apiSource,omitempty"`
  7028  	// Attributes: Custom attributes associated with the operation.
  7029  	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
  7030  	// Operations: List of resource/method pairs for the API proxy or remote
  7031  	// service to which quota will applied. **Note**: Currently, you can specify
  7032  	// only a single resource/method pair. The call will fail if more than one
  7033  	// resource/method pair is provided.
  7034  	Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
  7035  	// Quota: Quota parameters to be enforced for the resources, methods, and API
  7036  	// source combination. If none are specified, quota enforcement will not be
  7037  	// done.
  7038  	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
  7039  	// ForceSendFields is a list of field names (e.g. "ApiSource") to
  7040  	// unconditionally include in API requests. By default, fields with empty or
  7041  	// default values are omitted from API requests. See
  7042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7043  	// details.
  7044  	ForceSendFields []string `json:"-"`
  7045  	// NullFields is a list of field names (e.g. "ApiSource") to include in API
  7046  	// requests with the JSON null value. By default, fields with empty values are
  7047  	// omitted from API requests. See
  7048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7049  	NullFields []string `json:"-"`
  7050  }
  7051  
  7052  func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
  7053  	type NoMethod GoogleCloudApigeeV1OperationConfig
  7054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7055  }
  7056  
  7057  // GoogleCloudApigeeV1OperationGroup: List of operation configuration details
  7058  // associated with Apigee API proxies or remote services. Remote services are
  7059  // non-Apigee proxies, such as Istio-Envoy.
  7060  type GoogleCloudApigeeV1OperationGroup struct {
  7061  	// OperationConfigType: Flag that specifes whether the configuration is for
  7062  	// Apigee API proxy or a remote service. Valid values include `proxy` or
  7063  	// `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API proxies
  7064  	// are associated with the API product. Set to `remoteservice` when non-Apigee
  7065  	// proxies like Istio-Envoy are associated with the API product.
  7066  	OperationConfigType string `json:"operationConfigType,omitempty"`
  7067  	// OperationConfigs: Required. List of operation configurations for either
  7068  	// Apigee API proxies or other remote services that are associated with this
  7069  	// API product.
  7070  	OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
  7071  	// ForceSendFields is a list of field names (e.g. "OperationConfigType") to
  7072  	// unconditionally include in API requests. By default, fields with empty or
  7073  	// default values are omitted from API requests. See
  7074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7075  	// details.
  7076  	ForceSendFields []string `json:"-"`
  7077  	// NullFields is a list of field names (e.g. "OperationConfigType") to include
  7078  	// in API requests with the JSON null value. By default, fields with empty
  7079  	// values are omitted from API requests. See
  7080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7081  	NullFields []string `json:"-"`
  7082  }
  7083  
  7084  func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
  7085  	type NoMethod GoogleCloudApigeeV1OperationGroup
  7086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7087  }
  7088  
  7089  // GoogleCloudApigeeV1OperationMetadata: Metadata describing an Operation.
  7090  type GoogleCloudApigeeV1OperationMetadata struct {
  7091  	// Possible values:
  7092  	//   "OPERATION_TYPE_UNSPECIFIED"
  7093  	//   "INSERT"
  7094  	//   "DELETE"
  7095  	//   "UPDATE"
  7096  	OperationType string `json:"operationType,omitempty"`
  7097  	// Progress: Progress of the operation.
  7098  	Progress *GoogleCloudApigeeV1OperationMetadataProgress `json:"progress,omitempty"`
  7099  	// Possible values:
  7100  	//   "STATE_UNSPECIFIED"
  7101  	//   "NOT_STARTED"
  7102  	//   "IN_PROGRESS"
  7103  	//   "FINISHED"
  7104  	State string `json:"state,omitempty"`
  7105  	// TargetResourceName: Name of the resource for which the operation is
  7106  	// operating on.
  7107  	TargetResourceName string `json:"targetResourceName,omitempty"`
  7108  	// Warnings: Warnings encountered while executing the operation.
  7109  	Warnings []string `json:"warnings,omitempty"`
  7110  	// ForceSendFields is a list of field names (e.g. "OperationType") to
  7111  	// unconditionally include in API requests. By default, fields with empty or
  7112  	// default values are omitted from API requests. See
  7113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7114  	// details.
  7115  	ForceSendFields []string `json:"-"`
  7116  	// NullFields is a list of field names (e.g. "OperationType") to include in API
  7117  	// requests with the JSON null value. By default, fields with empty values are
  7118  	// omitted from API requests. See
  7119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7120  	NullFields []string `json:"-"`
  7121  }
  7122  
  7123  func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
  7124  	type NoMethod GoogleCloudApigeeV1OperationMetadata
  7125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7126  }
  7127  
  7128  // GoogleCloudApigeeV1OperationMetadataProgress: Information about operation
  7129  // progress.
  7130  type GoogleCloudApigeeV1OperationMetadataProgress struct {
  7131  	// Description: Description of the operation's progress.
  7132  	Description string `json:"description,omitempty"`
  7133  	// Details: The additional details of the progress.
  7134  	Details googleapi.RawMessage `json:"details,omitempty"`
  7135  	// PercentDone: The percentage of the operation progress.
  7136  	PercentDone int64 `json:"percentDone,omitempty"`
  7137  	// State: State of the operation.
  7138  	//
  7139  	// Possible values:
  7140  	//   "STATE_UNSPECIFIED"
  7141  	//   "NOT_STARTED"
  7142  	//   "IN_PROGRESS"
  7143  	//   "FINISHED"
  7144  	State string `json:"state,omitempty"`
  7145  	// ForceSendFields is a list of field names (e.g. "Description") to
  7146  	// unconditionally include in API requests. By default, fields with empty or
  7147  	// default values are omitted from API requests. See
  7148  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7149  	// details.
  7150  	ForceSendFields []string `json:"-"`
  7151  	// NullFields is a list of field names (e.g. "Description") to include in API
  7152  	// requests with the JSON null value. By default, fields with empty values are
  7153  	// omitted from API requests. See
  7154  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7155  	NullFields []string `json:"-"`
  7156  }
  7157  
  7158  func (s *GoogleCloudApigeeV1OperationMetadataProgress) MarshalJSON() ([]byte, error) {
  7159  	type NoMethod GoogleCloudApigeeV1OperationMetadataProgress
  7160  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7161  }
  7162  
  7163  type GoogleCloudApigeeV1OptimizedStats struct {
  7164  	// Response: Wraps the `stats` response for JavaScript Optimized Scenario with
  7165  	// a response key. For example: ```{ "Response": { "TimeUnit": [], "metaData":
  7166  	// { "errors": [], "notices": [ "Source:Postgres", "Table used:
  7167  	// edge.api.aaxgroup001.agg_api", "PG
  7168  	// Host:ruappg08-ro.production.apigeeks.net", "query served
  7169  	// by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated": false,
  7170  	// "stats": { "data": [ { "identifier": { "names": [ "apiproxy" ], "values": [
  7171  	// "sirjee" ] }, "metric": [ { "env": "prod", "name": "sum(message_count)",
  7172  	// "values": [ 36.0 ] }, { "env": "prod", "name": "sum(is_error)", "values": [
  7173  	// 36.0 ] } ] } ] } } }```
  7174  	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
  7175  
  7176  	// ServerResponse contains the HTTP response code and headers from the server.
  7177  	googleapi.ServerResponse `json:"-"`
  7178  	// ForceSendFields is a list of field names (e.g. "Response") to
  7179  	// unconditionally include in API requests. By default, fields with empty or
  7180  	// default values are omitted from API requests. See
  7181  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7182  	// details.
  7183  	ForceSendFields []string `json:"-"`
  7184  	// NullFields is a list of field names (e.g. "Response") to include in API
  7185  	// requests with the JSON null value. By default, fields with empty values are
  7186  	// omitted from API requests. See
  7187  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7188  	NullFields []string `json:"-"`
  7189  }
  7190  
  7191  func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
  7192  	type NoMethod GoogleCloudApigeeV1OptimizedStats
  7193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7194  }
  7195  
  7196  // GoogleCloudApigeeV1OptimizedStatsNode: Encapsulates a data node as
  7197  // represented below: ``` { "identifier": { "names": [ "apiproxy" ], "values":
  7198  // [ "sirjee" ] }, "metric": [ { "env": "prod", "name": "sum(message_count)",
  7199  // "values": [ 36.0 ] } ] }``` or ``` { "env": "prod", "name":
  7200  // "sum(message_count)", "values": [ 36.0 ] }``` Depending on whether a
  7201  // dimension is present in the query or not the data node type can be a simple
  7202  // metric value or dimension identifier with list of metrics.
  7203  type GoogleCloudApigeeV1OptimizedStatsNode struct {
  7204  	Data []interface{} `json:"data,omitempty"`
  7205  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  7206  	// include in API requests. By default, fields with empty or default values are
  7207  	// omitted from API requests. See
  7208  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7209  	// details.
  7210  	ForceSendFields []string `json:"-"`
  7211  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  7212  	// with the JSON null value. By default, fields with empty values are omitted
  7213  	// from API requests. See
  7214  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7215  	NullFields []string `json:"-"`
  7216  }
  7217  
  7218  func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
  7219  	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
  7220  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7221  }
  7222  
  7223  // GoogleCloudApigeeV1OptimizedStatsResponse: Encapsulates a response format
  7224  // for JavaScript Optimized Scenario.
  7225  type GoogleCloudApigeeV1OptimizedStatsResponse struct {
  7226  	// TimeUnit: List of time unit values. Time unit refers to an epoch timestamp
  7227  	// value.
  7228  	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
  7229  	// MetaData: Metadata information about the query executed.
  7230  	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
  7231  	// ResultTruncated: Boolean flag that indicates whether the results were
  7232  	// truncated based on the limit parameter.
  7233  	ResultTruncated bool `json:"resultTruncated,omitempty"`
  7234  	// Stats: `stats` results.
  7235  	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
  7236  	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
  7237  	// unconditionally include in API requests. By default, fields with empty or
  7238  	// default values are omitted from API requests. See
  7239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7240  	// details.
  7241  	ForceSendFields []string `json:"-"`
  7242  	// NullFields is a list of field names (e.g. "TimeUnit") to include in API
  7243  	// requests with the JSON null value. By default, fields with empty values are
  7244  	// omitted from API requests. See
  7245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7246  	NullFields []string `json:"-"`
  7247  }
  7248  
  7249  func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
  7250  	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
  7251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7252  }
  7253  
  7254  type GoogleCloudApigeeV1Organization struct {
  7255  	// AddonsConfig: Addon configurations of the Apigee organization.
  7256  	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
  7257  	// AnalyticsRegion: Required. DEPRECATED: This field will eventually be
  7258  	// deprecated and replaced with a differently-named field. Primary Google Cloud
  7259  	// region for analytics data storage. For valid values, see Create an Apigee
  7260  	// organization
  7261  	// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
  7262  	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
  7263  	// ApiConsumerDataEncryptionKeyName: Cloud KMS key name used for encrypting API
  7264  	// consumer data. If not specified or BillingType (#BillingType) is
  7265  	// `EVALUATION`, a Google-Managed encryption key will be used. Format:
  7266  	// `projects/*/locations/*/keyRings/*/cryptoKeys/*`
  7267  	ApiConsumerDataEncryptionKeyName string `json:"apiConsumerDataEncryptionKeyName,omitempty"`
  7268  	// ApiConsumerDataLocation: This field is needed only for customers using
  7269  	// non-default data residency regions. Apigee stores some control plane data
  7270  	// only in single region. This field determines which single region Apigee
  7271  	// should use. For example: "us-west1" when control plane is in US or
  7272  	// "europe-west2" when control plane is in EU.
  7273  	ApiConsumerDataLocation string `json:"apiConsumerDataLocation,omitempty"`
  7274  	// ApigeeProjectId: Output only. Apigee Project ID associated with the
  7275  	// organization. Use this project to allowlist Apigee in the Service Attachment
  7276  	// when using private service connect with Apigee.
  7277  	ApigeeProjectId string `json:"apigeeProjectId,omitempty"`
  7278  	// Attributes: Not used by Apigee.
  7279  	Attributes []string `json:"attributes,omitempty"`
  7280  	// AuthorizedNetwork: Compute Engine network used for Service Networking to be
  7281  	// peered with Apigee runtime instances. See Getting started with the Service
  7282  	// Networking API
  7283  	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
  7284  	// Valid only when RuntimeType (#RuntimeType) is set to `CLOUD`. The value must
  7285  	// be set before the creation of a runtime instance and can be updated only
  7286  	// when there are no runtime instances. For example: `default`. Apigee also
  7287  	// supports shared VPC (that is, the host network project is not the same as
  7288  	// the one that is peering with Apigee). See Shared VPC overview
  7289  	// (https://cloud.google.com/vpc/docs/shared-vpc). To use a shared VPC network,
  7290  	// use the following format:
  7291  	// `projects/{host-project-id}/{region}/networks/{network-name}`. For example:
  7292  	// `projects/my-sharedvpc-host/global/networks/mynetwork` **Note:** Not
  7293  	// supported for Apigee hybrid.
  7294  	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
  7295  	// BillingType: Billing type of the Apigee organization. See Apigee pricing
  7296  	// (https://cloud.google.com/apigee/pricing).
  7297  	//
  7298  	// Possible values:
  7299  	//   "BILLING_TYPE_UNSPECIFIED" - Billing type not specified.
  7300  	//   "SUBSCRIPTION" - A pre-paid subscription to Apigee.
  7301  	//   "EVALUATION" - Free and limited access to Apigee for evaluation purposes
  7302  	// only.
  7303  	//   "PAYG" - Access to Apigee using a Pay-As-You-Go plan.
  7304  	BillingType string `json:"billingType,omitempty"`
  7305  	// CaCertificate: Output only. Base64-encoded public certificate for the root
  7306  	// CA of the Apigee organization. Valid only when RuntimeType (#RuntimeType) is
  7307  	// `CLOUD`.
  7308  	CaCertificate string `json:"caCertificate,omitempty"`
  7309  	// ControlPlaneEncryptionKeyName: Cloud KMS key name used for encrypting
  7310  	// control plane data that is stored in a multi region. Only used for the data
  7311  	// residency region "US" or "EU". If not specified or BillingType
  7312  	// (#BillingType) is `EVALUATION`, a Google-Managed encryption key will be
  7313  	// used. Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`
  7314  	ControlPlaneEncryptionKeyName string `json:"controlPlaneEncryptionKeyName,omitempty"`
  7315  	// CreatedAt: Output only. Time that the Apigee organization was created in
  7316  	// milliseconds since epoch.
  7317  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  7318  	// CustomerName: Not used by Apigee.
  7319  	CustomerName string `json:"customerName,omitempty"`
  7320  	// Description: Description of the Apigee organization.
  7321  	Description string `json:"description,omitempty"`
  7322  	// DisableVpcPeering: Optional. Flag that specifies whether the VPC Peering
  7323  	// through Private Google Access should be disabled between the consumer
  7324  	// network and Apigee. Valid only when RuntimeType is set to CLOUD. Required if
  7325  	// an authorizedNetwork on the consumer project is not provided, in which case
  7326  	// the flag should be set to true. The value must be set before the creation of
  7327  	// any Apigee runtime instance and can be updated only when there are no
  7328  	// runtime instances. **Note:** Apigee will be deprecating the vpc peering
  7329  	// model that requires you to provide 'authorizedNetwork', by making the
  7330  	// non-peering model as the default way of provisioning Apigee organization in
  7331  	// future. So, this will be a temporary flag to enable the transition. Not
  7332  	// supported for Apigee hybrid.
  7333  	DisableVpcPeering bool `json:"disableVpcPeering,omitempty"`
  7334  	// DisplayName: Display name for the Apigee organization. Unused, but reserved
  7335  	// for future use.
  7336  	DisplayName string `json:"displayName,omitempty"`
  7337  	// Environments: Output only. List of environments in the Apigee organization.
  7338  	Environments []string `json:"environments,omitempty"`
  7339  	// ExpiresAt: Output only. Time that the Apigee organization is scheduled for
  7340  	// deletion.
  7341  	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
  7342  	// LastModifiedAt: Output only. Time that the Apigee organization was last
  7343  	// modified in milliseconds since epoch.
  7344  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  7345  	// Name: Output only. Name of the Apigee organization.
  7346  	Name string `json:"name,omitempty"`
  7347  	// PortalDisabled: Configuration for the Portals settings.
  7348  	PortalDisabled bool `json:"portalDisabled,omitempty"`
  7349  	// ProjectId: Output only. Project ID associated with the Apigee organization.
  7350  	ProjectId string `json:"projectId,omitempty"`
  7351  	// Properties: Properties defined in the Apigee organization profile.
  7352  	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
  7353  	// RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for encrypting the
  7354  	// data that is stored and replicated across runtime instances. Update is not
  7355  	// allowed after the organization is created. If not specified or RuntimeType
  7356  	// (#RuntimeType) is `TRIAL`, a Google-Managed encryption key will be used. For
  7357  	// example: "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:**
  7358  	// Not supported for Apigee hybrid.
  7359  	RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
  7360  	// RuntimeType: Required. Runtime type of the Apigee organization based on the
  7361  	// Apigee subscription purchased.
  7362  	//
  7363  	// Possible values:
  7364  	//   "RUNTIME_TYPE_UNSPECIFIED" - Runtime type not specified.
  7365  	//   "CLOUD" - Google-managed Apigee runtime.
  7366  	//   "HYBRID" - User-managed Apigee hybrid runtime.
  7367  	RuntimeType string `json:"runtimeType,omitempty"`
  7368  	// State: Output only. State of the organization. Values other than ACTIVE
  7369  	// means the resource is not ready to use.
  7370  	//
  7371  	// Possible values:
  7372  	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
  7373  	//   "CREATING" - Resource is being created.
  7374  	//   "ACTIVE" - Resource is provisioned and ready to use.
  7375  	//   "DELETING" - The resource is being deleted.
  7376  	//   "UPDATING" - The resource is being updated.
  7377  	State string `json:"state,omitempty"`
  7378  	// SubscriptionPlan: Output only. Subscription plan that the customer has
  7379  	// purchased. Output only.
  7380  	//
  7381  	// Possible values:
  7382  	//   "SUBSCRIPTION_PLAN_UNSPECIFIED" - Subscription plan not specified.
  7383  	//   "SUBSCRIPTION_2021" - Traditional subscription plan.
  7384  	//   "SUBSCRIPTION_2024" - New subscription plan that provides standard proxy
  7385  	// and scaled proxy implementation.
  7386  	SubscriptionPlan string `json:"subscriptionPlan,omitempty"`
  7387  	// SubscriptionType: Output only. DEPRECATED: This will eventually be replaced
  7388  	// by BillingType. Subscription type of the Apigee organization. Valid values
  7389  	// include trial (free, limited, and for evaluation purposes only) or paid
  7390  	// (full subscription has been purchased). See Apigee pricing
  7391  	// (https://cloud.google.com/apigee/pricing/).
  7392  	//
  7393  	// Possible values:
  7394  	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Subscription type not specified.
  7395  	//   "PAID" - Full subscription to Apigee has been purchased.
  7396  	//   "TRIAL" - Subscription to Apigee is free, limited, and used for evaluation
  7397  	// purposes only.
  7398  	SubscriptionType string `json:"subscriptionType,omitempty"`
  7399  	// Type: Not used by Apigee.
  7400  	//
  7401  	// Possible values:
  7402  	//   "TYPE_UNSPECIFIED" - Subscription type not specified.
  7403  	//   "TYPE_TRIAL" - Subscription to Apigee is free, limited, and used for
  7404  	// evaluation purposes only.
  7405  	//   "TYPE_PAID" - Full subscription to Apigee has been purchased. See [Apigee
  7406  	// pricing](https://cloud.google.com/apigee/pricing/).
  7407  	//   "TYPE_INTERNAL" - For internal users only.
  7408  	Type string `json:"type,omitempty"`
  7409  
  7410  	// ServerResponse contains the HTTP response code and headers from the server.
  7411  	googleapi.ServerResponse `json:"-"`
  7412  	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
  7413  	// unconditionally include in API requests. By default, fields with empty or
  7414  	// default values are omitted from API requests. See
  7415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7416  	// details.
  7417  	ForceSendFields []string `json:"-"`
  7418  	// NullFields is a list of field names (e.g. "AddonsConfig") to include in API
  7419  	// requests with the JSON null value. By default, fields with empty values are
  7420  	// omitted from API requests. See
  7421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7422  	NullFields []string `json:"-"`
  7423  }
  7424  
  7425  func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
  7426  	type NoMethod GoogleCloudApigeeV1Organization
  7427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7428  }
  7429  
  7430  type GoogleCloudApigeeV1OrganizationProjectMapping struct {
  7431  	// Location: Output only. The Google Cloud region where control plane data is
  7432  	// located. For more information, see
  7433  	// https://cloud.google.com/about/locations/.
  7434  	Location string `json:"location,omitempty"`
  7435  	// Organization: Name of the Apigee organization.
  7436  	Organization string `json:"organization,omitempty"`
  7437  	// ProjectId: Google Cloud project associated with the Apigee organization
  7438  	ProjectId string `json:"projectId,omitempty"`
  7439  	// ProjectIds: DEPRECATED: Use `project_id`. An Apigee Organization is mapped
  7440  	// to a single project.
  7441  	ProjectIds []string `json:"projectIds,omitempty"`
  7442  
  7443  	// ServerResponse contains the HTTP response code and headers from the server.
  7444  	googleapi.ServerResponse `json:"-"`
  7445  	// ForceSendFields is a list of field names (e.g. "Location") to
  7446  	// unconditionally include in API requests. By default, fields with empty or
  7447  	// default values are omitted from API requests. See
  7448  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7449  	// details.
  7450  	ForceSendFields []string `json:"-"`
  7451  	// NullFields is a list of field names (e.g. "Location") to include in API
  7452  	// requests with the JSON null value. By default, fields with empty values are
  7453  	// omitted from API requests. See
  7454  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7455  	NullFields []string `json:"-"`
  7456  }
  7457  
  7458  func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
  7459  	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
  7460  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7461  }
  7462  
  7463  type GoogleCloudApigeeV1PodStatus struct {
  7464  	// AppVersion: Version of the application running in the pod.
  7465  	AppVersion string `json:"appVersion,omitempty"`
  7466  	// DeploymentStatus: Status of the deployment. Valid values include: -
  7467  	// `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not yet
  7468  	// reported on the deployment.
  7469  	DeploymentStatus string `json:"deploymentStatus,omitempty"`
  7470  	// DeploymentStatusTime: Time the deployment status was reported in
  7471  	// milliseconds since epoch.
  7472  	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
  7473  	// DeploymentTime: Time the proxy was deployed in milliseconds since epoch.
  7474  	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
  7475  	// PodName: Name of the pod which is reporting the status.
  7476  	PodName string `json:"podName,omitempty"`
  7477  	// PodStatus: Overall status of the pod (not this specific deployment). Valid
  7478  	// values include: - `active`: Up to date. - `stale` : Recently out of date.
  7479  	// Pods that have not reported status in a long time are excluded from the
  7480  	// output.
  7481  	PodStatus string `json:"podStatus,omitempty"`
  7482  	// PodStatusTime: Time the pod status was reported in milliseconds since epoch.
  7483  	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
  7484  	// StatusCode: Code associated with the deployment status.
  7485  	StatusCode string `json:"statusCode,omitempty"`
  7486  	// StatusCodeDetails: Human-readable message associated with the status code.
  7487  	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
  7488  	// ForceSendFields is a list of field names (e.g. "AppVersion") to
  7489  	// unconditionally include in API requests. By default, fields with empty or
  7490  	// default values are omitted from API requests. See
  7491  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7492  	// details.
  7493  	ForceSendFields []string `json:"-"`
  7494  	// NullFields is a list of field names (e.g. "AppVersion") to include in API
  7495  	// requests with the JSON null value. By default, fields with empty values are
  7496  	// omitted from API requests. See
  7497  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7498  	NullFields []string `json:"-"`
  7499  }
  7500  
  7501  func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
  7502  	type NoMethod GoogleCloudApigeeV1PodStatus
  7503  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7504  }
  7505  
  7506  // GoogleCloudApigeeV1Point: Point is a group of information collected by
  7507  // runtime plane at critical points of the message flow of the processed API
  7508  // request. This is a list of supported point IDs, categorized to three major
  7509  // buckets. For each category, debug points that we are currently supporting
  7510  // are listed below: - Flow status debug points: StateChange FlowInfo Condition
  7511  // Execution DebugMask Error - Flow control debug points: FlowCallout Paused
  7512  // Resumed FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor
  7513  // FlowCalloutStepDefinition CustomTarget StepDefinition Oauth2ServicePoint
  7514  // RaiseFault NodeJS The detail information of the given debug point is stored
  7515  // in a list of results.
  7516  type GoogleCloudApigeeV1Point struct {
  7517  	// Id: Name of a step in the transaction.
  7518  	Id string `json:"id,omitempty"`
  7519  	// Results: List of results extracted from a given debug point.
  7520  	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
  7521  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  7522  	// include in API requests. By default, fields with empty or default values are
  7523  	// omitted from API requests. See
  7524  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7525  	// details.
  7526  	ForceSendFields []string `json:"-"`
  7527  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  7528  	// with the JSON null value. By default, fields with empty values are omitted
  7529  	// from API requests. See
  7530  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7531  	NullFields []string `json:"-"`
  7532  }
  7533  
  7534  func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
  7535  	type NoMethod GoogleCloudApigeeV1Point
  7536  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7537  }
  7538  
  7539  // GoogleCloudApigeeV1ProfileConfig: ProfileConfig defines a set of categories
  7540  // and policies which will be used to compute security score.
  7541  type GoogleCloudApigeeV1ProfileConfig struct {
  7542  	// Categories: List of categories of profile config.
  7543  	Categories []*GoogleCloudApigeeV1ProfileConfigCategory `json:"categories,omitempty"`
  7544  	// ForceSendFields is a list of field names (e.g. "Categories") to
  7545  	// unconditionally include in API requests. By default, fields with empty or
  7546  	// default values are omitted from API requests. See
  7547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7548  	// details.
  7549  	ForceSendFields []string `json:"-"`
  7550  	// NullFields is a list of field names (e.g. "Categories") to include in API
  7551  	// requests with the JSON null value. By default, fields with empty values are
  7552  	// omitted from API requests. See
  7553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7554  	NullFields []string `json:"-"`
  7555  }
  7556  
  7557  func (s *GoogleCloudApigeeV1ProfileConfig) MarshalJSON() ([]byte, error) {
  7558  	type NoMethod GoogleCloudApigeeV1ProfileConfig
  7559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7560  }
  7561  
  7562  // GoogleCloudApigeeV1ProfileConfigAbuse: Checks for abuse, which includes any
  7563  // requests sent to the API for purposes other than what it is intended for,
  7564  // such as high volumes of requests, data scraping, and abuse related to
  7565  // authorization.
  7566  type GoogleCloudApigeeV1ProfileConfigAbuse struct {
  7567  }
  7568  
  7569  // GoogleCloudApigeeV1ProfileConfigAuthorization: By default, following
  7570  // policies will be included: - JWS - JWT - OAuth - BasicAuth - APIKey
  7571  type GoogleCloudApigeeV1ProfileConfigAuthorization struct {
  7572  }
  7573  
  7574  // GoogleCloudApigeeV1ProfileConfigCORS: Checks to see if you have CORS policy
  7575  // in place.
  7576  type GoogleCloudApigeeV1ProfileConfigCORS struct {
  7577  }
  7578  
  7579  // GoogleCloudApigeeV1ProfileConfigCategory: Advanced API Security provides
  7580  // security profile that scores the following categories.
  7581  type GoogleCloudApigeeV1ProfileConfigCategory struct {
  7582  	// Abuse: Checks for abuse, which includes any requests sent to the API for
  7583  	// purposes other than what it is intended for, such as high volumes of
  7584  	// requests, data scraping, and abuse related to authorization.
  7585  	Abuse *GoogleCloudApigeeV1ProfileConfigAbuse `json:"abuse,omitempty"`
  7586  	// Authorization: Checks to see if you have an authorization policy in place.
  7587  	Authorization *GoogleCloudApigeeV1ProfileConfigAuthorization `json:"authorization,omitempty"`
  7588  	// Cors: Checks to see if you have CORS policy in place.
  7589  	Cors *GoogleCloudApigeeV1ProfileConfigCORS `json:"cors,omitempty"`
  7590  	// Mediation: Checks to see if you have a mediation policy in place.
  7591  	Mediation *GoogleCloudApigeeV1ProfileConfigMediation `json:"mediation,omitempty"`
  7592  	// Mtls: Checks to see if you have configured mTLS for the target server.
  7593  	Mtls *GoogleCloudApigeeV1ProfileConfigMTLS `json:"mtls,omitempty"`
  7594  	// Threat: Checks to see if you have a threat protection policy in place.
  7595  	Threat *GoogleCloudApigeeV1ProfileConfigThreat `json:"threat,omitempty"`
  7596  	// ForceSendFields is a list of field names (e.g. "Abuse") to unconditionally
  7597  	// include in API requests. By default, fields with empty or default values are
  7598  	// omitted from API requests. See
  7599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7600  	// details.
  7601  	ForceSendFields []string `json:"-"`
  7602  	// NullFields is a list of field names (e.g. "Abuse") to include in API
  7603  	// requests with the JSON null value. By default, fields with empty values are
  7604  	// omitted from API requests. See
  7605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7606  	NullFields []string `json:"-"`
  7607  }
  7608  
  7609  func (s *GoogleCloudApigeeV1ProfileConfigCategory) MarshalJSON() ([]byte, error) {
  7610  	type NoMethod GoogleCloudApigeeV1ProfileConfigCategory
  7611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7612  }
  7613  
  7614  // GoogleCloudApigeeV1ProfileConfigMTLS: Checks to see if you have configured
  7615  // mTLS for the target server.
  7616  type GoogleCloudApigeeV1ProfileConfigMTLS struct {
  7617  }
  7618  
  7619  // GoogleCloudApigeeV1ProfileConfigMediation: By default, following policies
  7620  // will be included: - OASValidation - SOAPMessageValidation
  7621  type GoogleCloudApigeeV1ProfileConfigMediation struct {
  7622  }
  7623  
  7624  // GoogleCloudApigeeV1ProfileConfigThreat: By default, following policies will
  7625  // be included: - XMLThreatProtection - JSONThreatProtection
  7626  type GoogleCloudApigeeV1ProfileConfigThreat struct {
  7627  }
  7628  
  7629  // GoogleCloudApigeeV1Properties: Message for compatibility with legacy Edge
  7630  // specification for Java Properties object in JSON.
  7631  type GoogleCloudApigeeV1Properties struct {
  7632  	// Property: List of all properties in the object
  7633  	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
  7634  	// ForceSendFields is a list of field names (e.g. "Property") to
  7635  	// unconditionally include in API requests. By default, fields with empty or
  7636  	// default values are omitted from API requests. See
  7637  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7638  	// details.
  7639  	ForceSendFields []string `json:"-"`
  7640  	// NullFields is a list of field names (e.g. "Property") to include in API
  7641  	// requests with the JSON null value. By default, fields with empty values are
  7642  	// omitted from API requests. See
  7643  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7644  	NullFields []string `json:"-"`
  7645  }
  7646  
  7647  func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
  7648  	type NoMethod GoogleCloudApigeeV1Properties
  7649  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7650  }
  7651  
  7652  // GoogleCloudApigeeV1Property: A single property entry in the Properties
  7653  // message.
  7654  type GoogleCloudApigeeV1Property struct {
  7655  	// Name: The property key
  7656  	Name string `json:"name,omitempty"`
  7657  	// Value: The property value
  7658  	Value string `json:"value,omitempty"`
  7659  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  7660  	// include in API requests. By default, fields with empty or default values are
  7661  	// omitted from API requests. See
  7662  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7663  	// details.
  7664  	ForceSendFields []string `json:"-"`
  7665  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  7666  	// with the JSON null value. By default, fields with empty values are omitted
  7667  	// from API requests. See
  7668  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7669  	NullFields []string `json:"-"`
  7670  }
  7671  
  7672  func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
  7673  	type NoMethod GoogleCloudApigeeV1Property
  7674  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7675  }
  7676  
  7677  // GoogleCloudApigeeV1ProvisionOrganizationRequest: Request for
  7678  // ProvisionOrganization.
  7679  type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
  7680  	// AnalyticsRegion: Primary Cloud Platform region for analytics data storage.
  7681  	// For valid values, see Create an organization
  7682  	// (https://cloud.google.com/apigee/docs/hybrid/latest/precog-provision).
  7683  	// Defaults to `us-west1`.
  7684  	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
  7685  	// AuthorizedNetwork: Compute Engine network used for Service Networking to be
  7686  	// peered with Apigee runtime instances. See Getting started with the Service
  7687  	// Networking API
  7688  	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
  7689  	// Apigee also supports shared VPC (that is, the host network project is not
  7690  	// the same as the one that is peering with Apigee). See Shared VPC overview
  7691  	// (https://cloud.google.com/vpc/docs/shared-vpc). To use a shared VPC network,
  7692  	// use the following format:
  7693  	// `projects/{host-project-id}/{region}/networks/{network-name}`. For example:
  7694  	// `projects/my-sharedvpc-host/global/networks/mynetwork`
  7695  	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
  7696  	// DisableVpcPeering: Optional. Flag that specifies whether the VPC Peering
  7697  	// through Private Google Access should be disabled between the consumer
  7698  	// network and Apigee. Required if an authorizedNetwork on the consumer project
  7699  	// is not provided, in which case the flag should be set to true. The value
  7700  	// must be set before the creation of any Apigee runtime instance and can be
  7701  	// updated only when there are no runtime instances. **Note:** Apigee will be
  7702  	// deprecating the vpc peering model that requires you to provide
  7703  	// 'authorizedNetwork', by making the non-peering model as the default way of
  7704  	// provisioning Apigee organization in future. So, this will be a temporary
  7705  	// flag to enable the transition. Not supported for Apigee hybrid.
  7706  	DisableVpcPeering bool `json:"disableVpcPeering,omitempty"`
  7707  	// RuntimeLocation: Cloud Platform location for the runtime instance. Defaults
  7708  	// to zone `us-west1-a`. If a region is provided, `EVAL` organizations will use
  7709  	// the region for automatically selecting a zone for the runtime instance.
  7710  	RuntimeLocation string `json:"runtimeLocation,omitempty"`
  7711  	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
  7712  	// unconditionally include in API requests. By default, fields with empty or
  7713  	// default values are omitted from API requests. See
  7714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7715  	// details.
  7716  	ForceSendFields []string `json:"-"`
  7717  	// NullFields is a list of field names (e.g. "AnalyticsRegion") to include in
  7718  	// API requests with the JSON null value. By default, fields with empty values
  7719  	// are omitted from API requests. See
  7720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7721  	NullFields []string `json:"-"`
  7722  }
  7723  
  7724  func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
  7725  	type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
  7726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7727  }
  7728  
  7729  type GoogleCloudApigeeV1Query struct {
  7730  	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is set to
  7731  	// `csv`. Defaults to the `,` (comma) character. Supported delimiter characters
  7732  	// include comma (`,`), pipe (`|`), and tab (`\t`).
  7733  	CsvDelimiter string `json:"csvDelimiter,omitempty"`
  7734  	// Dimensions: A list of dimensions.
  7735  	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
  7736  	Dimensions []string `json:"dimensions,omitempty"`
  7737  	// EnvgroupHostname: Hostname needs to be specified if query intends to run at
  7738  	// host level. This field is only allowed when query is submitted by
  7739  	// CreateHostAsyncQuery where analytics data will be grouped by organization
  7740  	// and hostname.
  7741  	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
  7742  	// Filter: Boolean expression that can be used to filter data. Filter
  7743  	// expressions can be combined using AND/OR terms and should be fully
  7744  	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions, and
  7745  	// filters reference
  7746  	// https://docs.apigee.com/api-platform/analytics/analytics-reference for more
  7747  	// information on the fields available to filter on. For more information on
  7748  	// the tokens that you use to build filter expressions, see Filter expression
  7749  	// syntax.
  7750  	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
  7751  	Filter string `json:"filter,omitempty"`
  7752  	// GroupByTimeUnit: Time unit used to group the result set. Valid values
  7753  	// include: second, minute, hour, day, week, or month. If a query includes
  7754  	// groupByTimeUnit, then the result is an aggregation based on the specified
  7755  	// time unit and the resultant timestamp does not include milliseconds
  7756  	// precision. If a query omits groupByTimeUnit, then the resultant timestamp
  7757  	// includes milliseconds precision.
  7758  	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
  7759  	// Limit: Maximum number of rows that can be returned in the result.
  7760  	Limit int64 `json:"limit,omitempty"`
  7761  	// Metrics: A list of Metrics.
  7762  	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
  7763  	// Name: Asynchronous Query Name.
  7764  	Name string `json:"name,omitempty"`
  7765  	// OutputFormat: Valid values include: `csv` or `json`. Defaults to `json`.
  7766  	// Note: Configure the delimiter for CSV output using the csvDelimiter
  7767  	// property.
  7768  	OutputFormat string `json:"outputFormat,omitempty"`
  7769  	// ReportDefinitionId: Asynchronous Report ID.
  7770  	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
  7771  	// TimeRange: Required. Time range for the query. Can use the following
  7772  	// predefined strings to specify the time range: `last60minutes` `last24hours`
  7773  	// `last7days` Or, specify the timeRange as a structure describing start and
  7774  	// end timestamps in the ISO format: yyyy-mm-ddThh:mm:ssZ. Example:
  7775  	// "timeRange": { "start": "2018-07-29T00:13:00Z", "end":
  7776  	// "2018-08-01T00:18:00Z" }
  7777  	TimeRange interface{} `json:"timeRange,omitempty"`
  7778  	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
  7779  	// unconditionally include in API requests. By default, fields with empty or
  7780  	// default values are omitted from API requests. See
  7781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7782  	// details.
  7783  	ForceSendFields []string `json:"-"`
  7784  	// NullFields is a list of field names (e.g. "CsvDelimiter") to include in API
  7785  	// requests with the JSON null value. By default, fields with empty values are
  7786  	// omitted from API requests. See
  7787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7788  	NullFields []string `json:"-"`
  7789  }
  7790  
  7791  func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
  7792  	type NoMethod GoogleCloudApigeeV1Query
  7793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7794  }
  7795  
  7796  type GoogleCloudApigeeV1QueryMetadata struct {
  7797  	// Dimensions: Dimensions of the AsyncQuery.
  7798  	Dimensions []string `json:"dimensions,omitempty"`
  7799  	// EndTimestamp: End timestamp of the query range.
  7800  	EndTimestamp string `json:"endTimestamp,omitempty"`
  7801  	// Metrics: Metrics of the AsyncQuery. Example:
  7802  	// ["name:message_count,func:sum,alias:sum_message_count"]
  7803  	Metrics []string `json:"metrics,omitempty"`
  7804  	// OutputFormat: Output format.
  7805  	OutputFormat string `json:"outputFormat,omitempty"`
  7806  	// StartTimestamp: Start timestamp of the query range.
  7807  	StartTimestamp string `json:"startTimestamp,omitempty"`
  7808  	// TimeUnit: Query GroupBy time unit.
  7809  	TimeUnit string `json:"timeUnit,omitempty"`
  7810  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
  7811  	// unconditionally include in API requests. By default, fields with empty or
  7812  	// default values are omitted from API requests. See
  7813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7814  	// details.
  7815  	ForceSendFields []string `json:"-"`
  7816  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
  7817  	// requests with the JSON null value. By default, fields with empty values are
  7818  	// omitted from API requests. See
  7819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7820  	NullFields []string `json:"-"`
  7821  }
  7822  
  7823  func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
  7824  	type NoMethod GoogleCloudApigeeV1QueryMetadata
  7825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7826  }
  7827  
  7828  // GoogleCloudApigeeV1QueryMetric: More info about Metric:
  7829  // https://docs.apigee.com/api-platform/analytics/analytics-reference#metrics
  7830  type GoogleCloudApigeeV1QueryMetric struct {
  7831  	// Alias: Alias for the metric. Alias will be used to replace metric name in
  7832  	// query results.
  7833  	Alias string `json:"alias,omitempty"`
  7834  	// Function: Aggregation function: avg, min, max, or sum.
  7835  	Function string `json:"function,omitempty"`
  7836  	// Name: Required. Metric name.
  7837  	Name string `json:"name,omitempty"`
  7838  	// Operator: One of `+`, `-`, `/`, `%`, `*`.
  7839  	Operator string `json:"operator,omitempty"`
  7840  	// Value: Operand value should be provided when operator is set.
  7841  	Value string `json:"value,omitempty"`
  7842  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
  7843  	// include in API requests. By default, fields with empty or default values are
  7844  	// omitted from API requests. See
  7845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7846  	// details.
  7847  	ForceSendFields []string `json:"-"`
  7848  	// NullFields is a list of field names (e.g. "Alias") to include in API
  7849  	// requests with the JSON null value. By default, fields with empty values are
  7850  	// omitted from API requests. See
  7851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7852  	NullFields []string `json:"-"`
  7853  }
  7854  
  7855  func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
  7856  	type NoMethod GoogleCloudApigeeV1QueryMetric
  7857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7858  }
  7859  
  7860  // GoogleCloudApigeeV1QueryTabularStatsRequest: Request payload representing
  7861  // the query to be run for fetching security statistics as rows.
  7862  type GoogleCloudApigeeV1QueryTabularStatsRequest struct {
  7863  	// Dimensions: Required. List of dimension names to group the aggregations by.
  7864  	Dimensions []string `json:"dimensions,omitempty"`
  7865  	// Filter: Filter further on specific dimension values. Follows the same
  7866  	// grammar as custom report's filter expressions. Example, apiproxy eq
  7867  	// 'foobar'.
  7868  	// https://cloud.google.com/apigee/docs/api-platform/analytics/analytics-reference#filters
  7869  	Filter string `json:"filter,omitempty"`
  7870  	// Metrics: Required. List of metrics and their aggregations.
  7871  	Metrics []*GoogleCloudApigeeV1MetricAggregation `json:"metrics,omitempty"`
  7872  	// PageSize: Page size represents the number of rows.
  7873  	PageSize int64 `json:"pageSize,omitempty"`
  7874  	// PageToken: Identifies a sequence of rows.
  7875  	PageToken string `json:"pageToken,omitempty"`
  7876  	// TimeRange: Time range for the stats.
  7877  	TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
  7878  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
  7879  	// unconditionally include in API requests. By default, fields with empty or
  7880  	// default values are omitted from API requests. See
  7881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7882  	// details.
  7883  	ForceSendFields []string `json:"-"`
  7884  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
  7885  	// requests with the JSON null value. By default, fields with empty values are
  7886  	// omitted from API requests. See
  7887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7888  	NullFields []string `json:"-"`
  7889  }
  7890  
  7891  func (s *GoogleCloudApigeeV1QueryTabularStatsRequest) MarshalJSON() ([]byte, error) {
  7892  	type NoMethod GoogleCloudApigeeV1QueryTabularStatsRequest
  7893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7894  }
  7895  
  7896  // GoogleCloudApigeeV1QueryTabularStatsResponse: Encapsulates two kinds of
  7897  // stats that are results of the dimensions and aggregations requested. -
  7898  // Tabular rows. - Time series data. Example of tabular rows, Represents
  7899  // security stats results as a row of flat values.
  7900  type GoogleCloudApigeeV1QueryTabularStatsResponse struct {
  7901  	// Columns: Column names corresponding to the same order as the inner values in
  7902  	// the stats field.
  7903  	Columns []string `json:"columns,omitempty"`
  7904  	// NextPageToken: Next page token.
  7905  	NextPageToken string `json:"nextPageToken,omitempty"`
  7906  	// Values: Resultant rows from the executed query.
  7907  	Values [][]interface{} `json:"values,omitempty"`
  7908  
  7909  	// ServerResponse contains the HTTP response code and headers from the server.
  7910  	googleapi.ServerResponse `json:"-"`
  7911  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  7912  	// include in API requests. By default, fields with empty or default values are
  7913  	// omitted from API requests. See
  7914  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7915  	// details.
  7916  	ForceSendFields []string `json:"-"`
  7917  	// NullFields is a list of field names (e.g. "Columns") to include in API
  7918  	// requests with the JSON null value. By default, fields with empty values are
  7919  	// omitted from API requests. See
  7920  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7921  	NullFields []string `json:"-"`
  7922  }
  7923  
  7924  func (s *GoogleCloudApigeeV1QueryTabularStatsResponse) MarshalJSON() ([]byte, error) {
  7925  	type NoMethod GoogleCloudApigeeV1QueryTabularStatsResponse
  7926  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7927  }
  7928  
  7929  // GoogleCloudApigeeV1QueryTimeSeriesStatsRequest: QueryTimeSeriesStatsRequest
  7930  // represents a query that returns a collection of time series sequences
  7931  // grouped by their values.
  7932  type GoogleCloudApigeeV1QueryTimeSeriesStatsRequest struct {
  7933  	// Dimensions: List of dimension names to group the aggregations by. If no
  7934  	// dimensions are passed, a single trend line representing the requested metric
  7935  	// aggregations grouped by environment is returned.
  7936  	Dimensions []string `json:"dimensions,omitempty"`
  7937  	// Filter: Filter further on specific dimension values. Follows the same
  7938  	// grammar as custom report's filter expressions. Example, apiproxy eq
  7939  	// 'foobar'.
  7940  	// https://cloud.google.com/apigee/docs/api-platform/analytics/analytics-reference#filters
  7941  	Filter string `json:"filter,omitempty"`
  7942  	// Metrics: Required. List of metrics and their aggregations.
  7943  	Metrics []*GoogleCloudApigeeV1MetricAggregation `json:"metrics,omitempty"`
  7944  	// PageSize: Page size represents the number of time series sequences, one per
  7945  	// unique set of dimensions and their values.
  7946  	PageSize int64 `json:"pageSize,omitempty"`
  7947  	// PageToken: Page token stands for a specific collection of time series
  7948  	// sequences.
  7949  	PageToken string `json:"pageToken,omitempty"`
  7950  	// TimeRange: Required. Time range for the stats.
  7951  	TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
  7952  	// TimestampOrder: Order the sequences in increasing or decreasing order of
  7953  	// timestamps. Default is descending order of timestamps (latest first).
  7954  	//
  7955  	// Possible values:
  7956  	//   "ORDER_UNSPECIFIED" - Unspecified order. Default is Descending.
  7957  	//   "ASCENDING" - Ascending sort order.
  7958  	//   "DESCENDING" - Descending sort order.
  7959  	TimestampOrder string `json:"timestampOrder,omitempty"`
  7960  	// WindowSize: Time buckets to group the stats by.
  7961  	//
  7962  	// Possible values:
  7963  	//   "WINDOW_SIZE_UNSPECIFIED" - Unspecified window size. Default is 1 hour.
  7964  	//   "MINUTE" - 1 Minute window
  7965  	//   "HOUR" - 1 Hour window
  7966  	//   "DAY" - 1 Day window
  7967  	//   "MONTH" - 1 Month window
  7968  	WindowSize string `json:"windowSize,omitempty"`
  7969  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
  7970  	// unconditionally include in API requests. By default, fields with empty or
  7971  	// default values are omitted from API requests. See
  7972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7973  	// details.
  7974  	ForceSendFields []string `json:"-"`
  7975  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
  7976  	// requests with the JSON null value. By default, fields with empty values are
  7977  	// omitted from API requests. See
  7978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7979  	NullFields []string `json:"-"`
  7980  }
  7981  
  7982  func (s *GoogleCloudApigeeV1QueryTimeSeriesStatsRequest) MarshalJSON() ([]byte, error) {
  7983  	type NoMethod GoogleCloudApigeeV1QueryTimeSeriesStatsRequest
  7984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7985  }
  7986  
  7987  // GoogleCloudApigeeV1QueryTimeSeriesStatsResponse: Represents security stats
  7988  // result as a collection of time series sequences.
  7989  type GoogleCloudApigeeV1QueryTimeSeriesStatsResponse struct {
  7990  	// Columns: Column names corresponding to the same order as the inner values in
  7991  	// the stats field.
  7992  	Columns []string `json:"columns,omitempty"`
  7993  	// NextPageToken: Next page token.
  7994  	NextPageToken string `json:"nextPageToken,omitempty"`
  7995  	// Values: Results of the query returned as a JSON array.
  7996  	Values []*GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence `json:"values,omitempty"`
  7997  
  7998  	// ServerResponse contains the HTTP response code and headers from the server.
  7999  	googleapi.ServerResponse `json:"-"`
  8000  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  8001  	// include in API requests. By default, fields with empty or default values are
  8002  	// omitted from API requests. See
  8003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8004  	// details.
  8005  	ForceSendFields []string `json:"-"`
  8006  	// NullFields is a list of field names (e.g. "Columns") to include in API
  8007  	// requests with the JSON null value. By default, fields with empty values are
  8008  	// omitted from API requests. See
  8009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8010  	NullFields []string `json:"-"`
  8011  }
  8012  
  8013  func (s *GoogleCloudApigeeV1QueryTimeSeriesStatsResponse) MarshalJSON() ([]byte, error) {
  8014  	type NoMethod GoogleCloudApigeeV1QueryTimeSeriesStatsResponse
  8015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8016  }
  8017  
  8018  // GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence: A sequence of time
  8019  // series.
  8020  type GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence struct {
  8021  	// Dimensions: Map of dimensions and their values that uniquely identifies a
  8022  	// time series sequence.
  8023  	Dimensions map[string]string `json:"dimensions,omitempty"`
  8024  	// Points: List of points. First value of each inner list is a timestamp.
  8025  	Points [][]interface{} `json:"points,omitempty"`
  8026  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
  8027  	// unconditionally include in API requests. By default, fields with empty or
  8028  	// default values are omitted from API requests. See
  8029  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8030  	// details.
  8031  	ForceSendFields []string `json:"-"`
  8032  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
  8033  	// requests with the JSON null value. By default, fields with empty values are
  8034  	// omitted from API requests. See
  8035  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8036  	NullFields []string `json:"-"`
  8037  }
  8038  
  8039  func (s *GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence) MarshalJSON() ([]byte, error) {
  8040  	type NoMethod GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence
  8041  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8042  }
  8043  
  8044  // GoogleCloudApigeeV1Quota: Quota contains the essential parameters needed
  8045  // that can be applied on the resources, methods, API source combination
  8046  // associated with this API product. While Quota is optional, setting it
  8047  // prevents requests from exceeding the provisioned parameters.
  8048  type GoogleCloudApigeeV1Quota struct {
  8049  	// Interval: Required. Time interval over which the number of request messages
  8050  	// is calculated.
  8051  	Interval string `json:"interval,omitempty"`
  8052  	// Limit: Required. Upper limit allowed for the time interval and time unit
  8053  	// specified. Requests exceeding this limit will be rejected.
  8054  	Limit string `json:"limit,omitempty"`
  8055  	// TimeUnit: Time unit defined for the `interval`. Valid values include
  8056  	// `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are valid,
  8057  	// the default value is `hour`; otherwise, the default is null.
  8058  	TimeUnit string `json:"timeUnit,omitempty"`
  8059  	// ForceSendFields is a list of field names (e.g. "Interval") to
  8060  	// unconditionally include in API requests. By default, fields with empty or
  8061  	// default values are omitted from API requests. See
  8062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8063  	// details.
  8064  	ForceSendFields []string `json:"-"`
  8065  	// NullFields is a list of field names (e.g. "Interval") to include in API
  8066  	// requests with the JSON null value. By default, fields with empty values are
  8067  	// omitted from API requests. See
  8068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8069  	NullFields []string `json:"-"`
  8070  }
  8071  
  8072  func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
  8073  	type NoMethod GoogleCloudApigeeV1Quota
  8074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8075  }
  8076  
  8077  // GoogleCloudApigeeV1RatePlan: Rate plan details.
  8078  type GoogleCloudApigeeV1RatePlan struct {
  8079  	// Apiproduct: Name of the API product that the rate plan is associated with.
  8080  	Apiproduct string `json:"apiproduct,omitempty"`
  8081  	// BillingPeriod: Frequency at which the customer will be billed.
  8082  	//
  8083  	// Possible values:
  8084  	//   "BILLING_PERIOD_UNSPECIFIED" - Billing period not specified.
  8085  	//   "WEEKLY" - Weekly billing period. **Note**: Not supported by Apigee at
  8086  	// this time.
  8087  	//   "MONTHLY" - Monthly billing period.
  8088  	BillingPeriod string `json:"billingPeriod,omitempty"`
  8089  	// ConsumptionPricingRates: API call volume ranges and the fees charged when
  8090  	// the total number of API calls is within a given range. The method used to
  8091  	// calculate the final fee depends on the selected pricing model. For example,
  8092  	// if the pricing model is `STAIRSTEP` and the ranges are defined as follows:
  8093  	// ``` { "start": 1, "end": 100, "fee": 75 }, { "start": 101, "end": 200,
  8094  	// "fee": 100 }, } ``` Then the following fees would be charged based on the
  8095  	// total number of API calls (assuming the currency selected is `USD`): * 1
  8096  	// call costs $75 * 50 calls cost $75 * 150 calls cost $100 The number of API
  8097  	// calls cannot exceed 200.
  8098  	ConsumptionPricingRates []*GoogleCloudApigeeV1RateRange `json:"consumptionPricingRates,omitempty"`
  8099  	// ConsumptionPricingType: Pricing model used for consumption-based charges.
  8100  	//
  8101  	// Possible values:
  8102  	//   "CONSUMPTION_PRICING_TYPE_UNSPECIFIED" - Pricing model not specified. This
  8103  	// is the default.
  8104  	//   "FIXED_PER_UNIT" - Fixed rate charged for each API call.
  8105  	//   "BANDED" - Variable rate charged for each API call based on price tiers.
  8106  	// Example: * 1-100 calls cost $2 per call * 101-200 calls cost $1.50 per call
  8107  	// * 201-300 calls cost $1 per call * Total price for 50 calls: 50 x $2 = $100
  8108  	// * Total price for 150 calls: 100 x $2 + 50 x $1.5 = $275 * Total price for
  8109  	// 250 calls: 100 x $2 + 100 x $1.5 + 50 x $1 = $400. **Note**: Not supported
  8110  	// by Apigee at this time.
  8111  	//   "TIERED" - **Note**: Not supported by Apigee at this time.
  8112  	//   "STAIRSTEP" - **Note**: Not supported by Apigee at this time.
  8113  	ConsumptionPricingType string `json:"consumptionPricingType,omitempty"`
  8114  	// CreatedAt: Output only. Time that the rate plan was created in milliseconds
  8115  	// since epoch.
  8116  	CreatedAt int64 `json:"createdAt,omitempty,string"`
  8117  	// CurrencyCode: Currency to be used for billing. Consists of a three-letter
  8118  	// code as defined by the ISO 4217 (https://en.wikipedia.org/wiki/ISO_4217)
  8119  	// standard.
  8120  	CurrencyCode string `json:"currencyCode,omitempty"`
  8121  	// Description: Description of the rate plan.
  8122  	Description string `json:"description,omitempty"`
  8123  	// DisplayName: Display name of the rate plan.
  8124  	DisplayName string `json:"displayName,omitempty"`
  8125  	// EndTime: Time when the rate plan will expire in milliseconds since epoch.
  8126  	// Set to 0 or `null` to indicate that the rate plan should never expire.
  8127  	EndTime int64 `json:"endTime,omitempty,string"`
  8128  	// FixedFeeFrequency: Frequency at which the fixed fee is charged.
  8129  	FixedFeeFrequency int64 `json:"fixedFeeFrequency,omitempty"`
  8130  	// FixedRecurringFee: Fixed amount that is charged at a defined interval and
  8131  	// billed in advance of use of the API product. The fee will be prorated for
  8132  	// the first billing period.
  8133  	FixedRecurringFee *GoogleTypeMoney `json:"fixedRecurringFee,omitempty"`
  8134  	// LastModifiedAt: Output only. Time the rate plan was last modified in
  8135  	// milliseconds since epoch.
  8136  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
  8137  	// Name: Output only. Name of the rate plan.
  8138  	Name string `json:"name,omitempty"`
  8139  	// PaymentFundingModel: DEPRECATED: This field is no longer supported and will
  8140  	// eventually be removed when Apigee Hybrid 1.5/1.6 is no longer supported.
  8141  	// Instead, use the `billingType` field inside `DeveloperMonetizationConfig`
  8142  	// resource. Flag that specifies the billing account type, prepaid or postpaid.
  8143  	//
  8144  	// Possible values:
  8145  	//   "PAYMENT_FUNDING_MODEL_UNSPECIFIED" - Billing account type not specified.
  8146  	//   "PREPAID" - Prepaid billing account type. Developer pays in advance for
  8147  	// the use of your API products. Funds are deducted from their prepaid account
  8148  	// balance. **Note**: Not supported by Apigee at this time.
  8149  	//   "POSTPAID" - Postpaid billing account type. Developer is billed through an
  8150  	// invoice after using your API products.
  8151  	PaymentFundingModel string `json:"paymentFundingModel,omitempty"`
  8152  	// RevenueShareRates: Details of the revenue sharing model.
  8153  	RevenueShareRates []*GoogleCloudApigeeV1RevenueShareRange `json:"revenueShareRates,omitempty"`
  8154  	// RevenueShareType: Method used to calculate the revenue that is shared with
  8155  	// developers.
  8156  	//
  8157  	// Possible values:
  8158  	//   "REVENUE_SHARE_TYPE_UNSPECIFIED" - Revenue share type is not specified.
  8159  	//   "FIXED" - Fixed percentage of the total revenue will be shared. The
  8160  	// percentage to be shared can be configured by the API provider.
  8161  	//   "VOLUME_BANDED" - Amount of revenue shared depends on the number of API
  8162  	// calls. The API call volume ranges and the revenue share percentage for each
  8163  	// volume can be configured by the API provider. **Note**: Not supported by
  8164  	// Apigee at this time.
  8165  	RevenueShareType string `json:"revenueShareType,omitempty"`
  8166  	// SetupFee: Initial, one-time fee paid when purchasing the API product.
  8167  	SetupFee *GoogleTypeMoney `json:"setupFee,omitempty"`
  8168  	// StartTime: Time when the rate plan becomes active in milliseconds since
  8169  	// epoch.
  8170  	StartTime int64 `json:"startTime,omitempty,string"`
  8171  	// State: Current state of the rate plan (draft or published).
  8172  	//
  8173  	// Possible values:
  8174  	//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
  8175  	//   "DRAFT" - Rate plan is in draft mode and only visible to API providers.
  8176  	//   "PUBLISHED" - Rate plan is published and will become visible to developers
  8177  	// for the configured duration (between `startTime` and `endTime`).
  8178  	State string `json:"state,omitempty"`
  8179  
  8180  	// ServerResponse contains the HTTP response code and headers from the server.
  8181  	googleapi.ServerResponse `json:"-"`
  8182  	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
  8183  	// unconditionally include in API requests. By default, fields with empty or
  8184  	// default values are omitted from API requests. See
  8185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8186  	// details.
  8187  	ForceSendFields []string `json:"-"`
  8188  	// NullFields is a list of field names (e.g. "Apiproduct") to include in API
  8189  	// requests with the JSON null value. By default, fields with empty values are
  8190  	// omitted from API requests. See
  8191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8192  	NullFields []string `json:"-"`
  8193  }
  8194  
  8195  func (s *GoogleCloudApigeeV1RatePlan) MarshalJSON() ([]byte, error) {
  8196  	type NoMethod GoogleCloudApigeeV1RatePlan
  8197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8198  }
  8199  
  8200  // GoogleCloudApigeeV1RateRange: API call volume range and the fees charged
  8201  // when the total number of API calls is within the range.
  8202  type GoogleCloudApigeeV1RateRange struct {
  8203  	// End: Ending value of the range. Set to 0 or `null` for the last range of
  8204  	// values.
  8205  	End int64 `json:"end,omitempty,string"`
  8206  	// Fee: Fee to charge when total number of API calls falls within this range.
  8207  	Fee *GoogleTypeMoney `json:"fee,omitempty"`
  8208  	// Start: Starting value of the range. Set to 0 or `null` for the initial range
  8209  	// of values.
  8210  	Start int64 `json:"start,omitempty,string"`
  8211  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  8212  	// include in API requests. By default, fields with empty or default values are
  8213  	// omitted from API requests. See
  8214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8215  	// details.
  8216  	ForceSendFields []string `json:"-"`
  8217  	// NullFields is a list of field names (e.g. "End") to include in API requests
  8218  	// with the JSON null value. By default, fields with empty values are omitted
  8219  	// from API requests. See
  8220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8221  	NullFields []string `json:"-"`
  8222  }
  8223  
  8224  func (s *GoogleCloudApigeeV1RateRange) MarshalJSON() ([]byte, error) {
  8225  	type NoMethod GoogleCloudApigeeV1RateRange
  8226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8227  }
  8228  
  8229  // GoogleCloudApigeeV1Reference: A Reference configuration. References must
  8230  // refer to a keystore that also exists in the parent environment.
  8231  type GoogleCloudApigeeV1Reference struct {
  8232  	// Description: Optional. A human-readable description of this reference.
  8233  	Description string `json:"description,omitempty"`
  8234  	// Name: Required. The resource id of this reference. Values must match the
  8235  	// regular expression [\w\s\-.]+.
  8236  	Name string `json:"name,omitempty"`
  8237  	// Refers: Required. The id of the resource to which this reference refers.
  8238  	// Must be the id of a resource that exists in the parent environment and is of
  8239  	// the given resource_type.
  8240  	Refers string `json:"refers,omitempty"`
  8241  	// ResourceType: The type of resource referred to by this reference. Valid
  8242  	// values are 'KeyStore' or 'TrustStore'.
  8243  	ResourceType string `json:"resourceType,omitempty"`
  8244  
  8245  	// ServerResponse contains the HTTP response code and headers from the server.
  8246  	googleapi.ServerResponse `json:"-"`
  8247  	// ForceSendFields is a list of field names (e.g. "Description") to
  8248  	// unconditionally include in API requests. By default, fields with empty or
  8249  	// default values are omitted from API requests. See
  8250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8251  	// details.
  8252  	ForceSendFields []string `json:"-"`
  8253  	// NullFields is a list of field names (e.g. "Description") to include in API
  8254  	// requests with the JSON null value. By default, fields with empty values are
  8255  	// omitted from API requests. See
  8256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8257  	NullFields []string `json:"-"`
  8258  }
  8259  
  8260  func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
  8261  	type NoMethod GoogleCloudApigeeV1Reference
  8262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8263  }
  8264  
  8265  type GoogleCloudApigeeV1ReferenceConfig struct {
  8266  	// Name: Name of the reference in the following format:
  8267  	// `organizations/{org}/environments/{env}/references/{reference}`
  8268  	Name string `json:"name,omitempty"`
  8269  	// ResourceName: Name of the referenced resource in the following format:
  8270  	// `organizations/{org}/environments/{env}/keystores/{keystore}` Only
  8271  	// references to keystore resources are supported.
  8272  	ResourceName string `json:"resourceName,omitempty"`
  8273  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  8274  	// include in API requests. By default, fields with empty or default values are
  8275  	// omitted from API requests. See
  8276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8277  	// details.
  8278  	ForceSendFields []string `json:"-"`
  8279  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  8280  	// with the JSON null value. By default, fields with empty values are omitted
  8281  	// from API requests. See
  8282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8283  	NullFields []string `json:"-"`
  8284  }
  8285  
  8286  func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
  8287  	type NoMethod GoogleCloudApigeeV1ReferenceConfig
  8288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8289  }
  8290  
  8291  // GoogleCloudApigeeV1ReportInstanceStatusRequest: Request for
  8292  // ReportInstanceStatus.
  8293  type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
  8294  	// InstanceUid: A unique ID for the instance which is guaranteed to be unique
  8295  	// in case the user installs multiple hybrid runtimes with the same instance
  8296  	// ID.
  8297  	InstanceUid string `json:"instanceUid,omitempty"`
  8298  	// ReportTime: The time the report was generated in the runtime. Used to
  8299  	// prevent an old status from overwriting a newer one. An instance should space
  8300  	// out it's status reports so that clock skew does not play a factor.
  8301  	ReportTime string `json:"reportTime,omitempty"`
  8302  	// Resources: Status for config resources
  8303  	Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
  8304  	// ForceSendFields is a list of field names (e.g. "InstanceUid") to
  8305  	// unconditionally include in API requests. By default, fields with empty or
  8306  	// default values are omitted from API requests. See
  8307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8308  	// details.
  8309  	ForceSendFields []string `json:"-"`
  8310  	// NullFields is a list of field names (e.g. "InstanceUid") to include in API
  8311  	// requests with the JSON null value. By default, fields with empty values are
  8312  	// omitted from API requests. See
  8313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8314  	NullFields []string `json:"-"`
  8315  }
  8316  
  8317  func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
  8318  	type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
  8319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8320  }
  8321  
  8322  // GoogleCloudApigeeV1ReportInstanceStatusResponse: Placeholder for future
  8323  // enhancements to status reporting protocol
  8324  type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
  8325  	// ServerResponse contains the HTTP response code and headers from the server.
  8326  	googleapi.ServerResponse `json:"-"`
  8327  }
  8328  
  8329  type GoogleCloudApigeeV1ReportProperty struct {
  8330  	// Property: name of the property
  8331  	Property string `json:"property,omitempty"`
  8332  	// Value: property values
  8333  	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
  8334  	// ForceSendFields is a list of field names (e.g. "Property") to
  8335  	// unconditionally include in API requests. By default, fields with empty or
  8336  	// default values are omitted from API requests. See
  8337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8338  	// details.
  8339  	ForceSendFields []string `json:"-"`
  8340  	// NullFields is a list of field names (e.g. "Property") to include in API
  8341  	// requests with the JSON null value. By default, fields with empty values are
  8342  	// omitted from API requests. See
  8343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8344  	NullFields []string `json:"-"`
  8345  }
  8346  
  8347  func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
  8348  	type NoMethod GoogleCloudApigeeV1ReportProperty
  8349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8350  }
  8351  
  8352  type GoogleCloudApigeeV1ResourceConfig struct {
  8353  	// Location: Location of the resource as a URI.
  8354  	Location string `json:"location,omitempty"`
  8355  	// Name: Resource name in the following format:
  8356  	// `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/revisions
  8357  	// /{rev}` Only environment-scoped resource files are supported.
  8358  	Name string `json:"name,omitempty"`
  8359  	// ForceSendFields is a list of field names (e.g. "Location") to
  8360  	// unconditionally include in API requests. By default, fields with empty or
  8361  	// default values are omitted from API requests. See
  8362  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8363  	// details.
  8364  	ForceSendFields []string `json:"-"`
  8365  	// NullFields is a list of field names (e.g. "Location") to include in API
  8366  	// requests with the JSON null value. By default, fields with empty values are
  8367  	// omitted from API requests. See
  8368  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8369  	NullFields []string `json:"-"`
  8370  }
  8371  
  8372  func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
  8373  	type NoMethod GoogleCloudApigeeV1ResourceConfig
  8374  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8375  }
  8376  
  8377  // GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
  8378  type GoogleCloudApigeeV1ResourceFile struct {
  8379  	// Name: ID of the resource file.
  8380  	Name string `json:"name,omitempty"`
  8381  	// Type: Resource file type. {{ resource_file_type }}
  8382  	Type string `json:"type,omitempty"`
  8383  
  8384  	// ServerResponse contains the HTTP response code and headers from the server.
  8385  	googleapi.ServerResponse `json:"-"`
  8386  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  8387  	// include in API requests. By default, fields with empty or default values are
  8388  	// omitted from API requests. See
  8389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8390  	// details.
  8391  	ForceSendFields []string `json:"-"`
  8392  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  8393  	// with the JSON null value. By default, fields with empty values are omitted
  8394  	// from API requests. See
  8395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8396  	NullFields []string `json:"-"`
  8397  }
  8398  
  8399  func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
  8400  	type NoMethod GoogleCloudApigeeV1ResourceFile
  8401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8402  }
  8403  
  8404  // GoogleCloudApigeeV1ResourceFiles: List of resource files.
  8405  type GoogleCloudApigeeV1ResourceFiles struct {
  8406  	// ResourceFile: List of resource files.
  8407  	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
  8408  	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
  8409  	// unconditionally include in API requests. By default, fields with empty or
  8410  	// default values are omitted from API requests. See
  8411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8412  	// details.
  8413  	ForceSendFields []string `json:"-"`
  8414  	// NullFields is a list of field names (e.g. "ResourceFile") to include in API
  8415  	// requests with the JSON null value. By default, fields with empty values are
  8416  	// omitted from API requests. See
  8417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8418  	NullFields []string `json:"-"`
  8419  }
  8420  
  8421  func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
  8422  	type NoMethod GoogleCloudApigeeV1ResourceFiles
  8423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8424  }
  8425  
  8426  // GoogleCloudApigeeV1ResourceStatus: The status of a resource loaded in the
  8427  // runtime.
  8428  type GoogleCloudApigeeV1ResourceStatus struct {
  8429  	// Resource: The resource name. Currently only two resources are supported:
  8430  	// EnvironmentGroup - organizations/{org}/envgroups/{envgroup}
  8431  	// EnvironmentConfig -
  8432  	// organizations/{org}/environments/{environment}/deployedConfig
  8433  	Resource string `json:"resource,omitempty"`
  8434  	// Revisions: Revisions of the resource currently deployed in the instance.
  8435  	Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
  8436  	// TotalReplicas: The total number of replicas that should have this resource.
  8437  	TotalReplicas int64 `json:"totalReplicas,omitempty"`
  8438  	// Uid: The uid of the resource. In the unexpected case that the instance has
  8439  	// multiple uids for the same name, they should be reported under separate
  8440  	// ResourceStatuses.
  8441  	Uid string `json:"uid,omitempty"`
  8442  	// ForceSendFields is a list of field names (e.g. "Resource") to
  8443  	// unconditionally include in API requests. By default, fields with empty or
  8444  	// default values are omitted from API requests. See
  8445  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8446  	// details.
  8447  	ForceSendFields []string `json:"-"`
  8448  	// NullFields is a list of field names (e.g. "Resource") to include in API
  8449  	// requests with the JSON null value. By default, fields with empty values are
  8450  	// omitted from API requests. See
  8451  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8452  	NullFields []string `json:"-"`
  8453  }
  8454  
  8455  func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
  8456  	type NoMethod GoogleCloudApigeeV1ResourceStatus
  8457  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8458  }
  8459  
  8460  // GoogleCloudApigeeV1Result: Result is short for "action result", could be
  8461  // different types identified by "action_result" field. Supported types: 1.
  8462  // DebugInfo : generic debug info collected by runtime recorded as a list of
  8463  // properties. For example, the contents could be virtual host info, state
  8464  // change result, or execution metadata. Required fields : properties,
  8465  // timestamp 2. RequestMessage: information of a http request. Contains
  8466  // headers, request URI and http methods type.Required fields : headers, uri,
  8467  // verb 3. ResponseMessage: information of a http response. Contains headers,
  8468  // reason phrase and http status code. Required fields : headers, reasonPhrase,
  8469  // statusCode 4. ErrorMessage: information of a http error message. Contains
  8470  // detail error message, reason phrase and status code. Required fields :
  8471  // content, headers, reasonPhrase, statusCode 5. VariableAccess: a list of
  8472  // variable access actions, can be Get, Set and Remove. Required fields :
  8473  // accessList
  8474  type GoogleCloudApigeeV1Result struct {
  8475  	// ActionResult: Type of the action result. Can be one of the five: DebugInfo,
  8476  	// RequestMessage, ResponseMessage, ErrorMessage, VariableAccess
  8477  	ActionResult string `json:"ActionResult,omitempty"`
  8478  	// AccessList: A list of variable access actions agaist the api proxy.
  8479  	// Supported values: Get, Set, Remove.
  8480  	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
  8481  	// Content: Error message content. for example, "content" :
  8482  	// "{\"fault\":{\"faultstring\":\"API timed
  8483  	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
  8484  	Content string `json:"content,omitempty"`
  8485  	// Headers: A list of HTTP headers. for example, '"headers" : [ { "name" :
  8486  	// "Content-Length", "value" : "83" }, { "name" : "Content-Type", "value" :
  8487  	// "application/json" } ]'
  8488  	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
  8489  	// Properties: Name value pairs used for DebugInfo ActionResult.
  8490  	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
  8491  	// ReasonPhrase: HTTP response phrase
  8492  	ReasonPhrase string `json:"reasonPhrase,omitempty"`
  8493  	// StatusCode: HTTP response code
  8494  	StatusCode string `json:"statusCode,omitempty"`
  8495  	// Timestamp: Timestamp of when the result is recorded. Its format is dd-mm-yy
  8496  	// hh:mm:ss:xxx. For example, "timestamp" : "12-08-19 00:31:59:960"
  8497  	Timestamp string `json:"timestamp,omitempty"`
  8498  	// URI: The relative path of the api proxy. for example, "uRI" : "/iloveapis"
  8499  	URI string `json:"uRI,omitempty"`
  8500  	// Verb: HTTP method verb
  8501  	Verb string `json:"verb,omitempty"`
  8502  	// ForceSendFields is a list of field names (e.g. "ActionResult") to
  8503  	// unconditionally include in API requests. By default, fields with empty or
  8504  	// default values are omitted from API requests. See
  8505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8506  	// details.
  8507  	ForceSendFields []string `json:"-"`
  8508  	// NullFields is a list of field names (e.g. "ActionResult") to include in API
  8509  	// requests with the JSON null value. By default, fields with empty values are
  8510  	// omitted from API requests. See
  8511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8512  	NullFields []string `json:"-"`
  8513  }
  8514  
  8515  func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
  8516  	type NoMethod GoogleCloudApigeeV1Result
  8517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8518  }
  8519  
  8520  // GoogleCloudApigeeV1RevenueShareRange: API call volume range and the
  8521  // percentage of revenue to share with the developer when the total number of
  8522  // API calls is within the range.
  8523  type GoogleCloudApigeeV1RevenueShareRange struct {
  8524  	// End: Ending value of the range. Set to 0 or `null` for the last range of
  8525  	// values.
  8526  	End int64 `json:"end,omitempty,string"`
  8527  	// SharePercentage: Percentage of the revenue to be shared with the developer.
  8528  	// For example, to share 21 percent of the total revenue with the developer,
  8529  	// set this value to 21. Specify a decimal number with a maximum of two digits
  8530  	// following the decimal point.
  8531  	SharePercentage float64 `json:"sharePercentage,omitempty"`
  8532  	// Start: Starting value of the range. Set to 0 or `null` for the initial range
  8533  	// of values.
  8534  	Start int64 `json:"start,omitempty,string"`
  8535  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  8536  	// include in API requests. By default, fields with empty or default values are
  8537  	// omitted from API requests. See
  8538  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8539  	// details.
  8540  	ForceSendFields []string `json:"-"`
  8541  	// NullFields is a list of field names (e.g. "End") to include in API requests
  8542  	// with the JSON null value. By default, fields with empty values are omitted
  8543  	// from API requests. See
  8544  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8545  	NullFields []string `json:"-"`
  8546  }
  8547  
  8548  func (s *GoogleCloudApigeeV1RevenueShareRange) MarshalJSON() ([]byte, error) {
  8549  	type NoMethod GoogleCloudApigeeV1RevenueShareRange
  8550  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8551  }
  8552  
  8553  func (s *GoogleCloudApigeeV1RevenueShareRange) UnmarshalJSON(data []byte) error {
  8554  	type NoMethod GoogleCloudApigeeV1RevenueShareRange
  8555  	var s1 struct {
  8556  		SharePercentage gensupport.JSONFloat64 `json:"sharePercentage"`
  8557  		*NoMethod
  8558  	}
  8559  	s1.NoMethod = (*NoMethod)(s)
  8560  	if err := json.Unmarshal(data, &s1); err != nil {
  8561  		return err
  8562  	}
  8563  	s.SharePercentage = float64(s1.SharePercentage)
  8564  	return nil
  8565  }
  8566  
  8567  // GoogleCloudApigeeV1RevisionStatus: The status of a specific resource
  8568  // revision.
  8569  type GoogleCloudApigeeV1RevisionStatus struct {
  8570  	// Errors: Errors reported when attempting to load this revision.
  8571  	Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
  8572  	// JsonSpec: The json content of the resource revision. Large specs should be
  8573  	// sent individually via the spec field to avoid hitting request size limits.
  8574  	JsonSpec string `json:"jsonSpec,omitempty"`
  8575  	// Replicas: The number of replicas that have successfully loaded this
  8576  	// revision.
  8577  	Replicas int64 `json:"replicas,omitempty"`
  8578  	// RevisionId: The revision of the resource.
  8579  	RevisionId string `json:"revisionId,omitempty"`
  8580  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  8581  	// include in API requests. By default, fields with empty or default values are
  8582  	// omitted from API requests. See
  8583  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8584  	// details.
  8585  	ForceSendFields []string `json:"-"`
  8586  	// NullFields is a list of field names (e.g. "Errors") to include in API
  8587  	// requests with the JSON null value. By default, fields with empty values are
  8588  	// omitted from API requests. See
  8589  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8590  	NullFields []string `json:"-"`
  8591  }
  8592  
  8593  func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
  8594  	type NoMethod GoogleCloudApigeeV1RevisionStatus
  8595  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8596  }
  8597  
  8598  type GoogleCloudApigeeV1RoutingRule struct {
  8599  	// Basepath: URI path prefix used to route to the specified environment. May
  8600  	// contain one or more wildcards. For example, path segments consisting of a
  8601  	// single `*` character will match any string.
  8602  	Basepath string `json:"basepath,omitempty"`
  8603  	// DeploymentGroup: Name of a deployment group in an environment bound to the
  8604  	// environment group in the following format:
  8605  	// `organizations/{org}/environment/{env}/deploymentGroups/{group}` Only one of
  8606  	// environment or deployment_group will be set.
  8607  	DeploymentGroup string `json:"deploymentGroup,omitempty"`
  8608  	// EnvGroupRevision: The env group config revision_id when this rule was added
  8609  	// or last updated. This value is set when the rule is created and will only
  8610  	// update if the the environment_id changes. It is used to determine if the
  8611  	// runtime is up to date with respect to this rule. This field is omitted from
  8612  	// the IngressConfig unless the GetDeployedIngressConfig API is called with
  8613  	// view=FULL.
  8614  	EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
  8615  	// Environment: Name of an environment bound to the environment group in the
  8616  	// following format: `organizations/{org}/environments/{env}`. Only one of
  8617  	// environment or deployment_group will be set.
  8618  	Environment string `json:"environment,omitempty"`
  8619  	// OtherTargets: Conflicting targets, which will be resource names specifying
  8620  	// either deployment groups or environments.
  8621  	OtherTargets []string `json:"otherTargets,omitempty"`
  8622  	// Receiver: The resource name of the proxy revision that is receiving this
  8623  	// basepath in the following format:
  8624  	// `organizations/{org}/apis/{api}/revisions/{rev}`. This field is omitted from
  8625  	// the IngressConfig unless the GetDeployedIngressConfig API is called with
  8626  	// view=FULL.
  8627  	Receiver string `json:"receiver,omitempty"`
  8628  	// UpdateTime: The unix timestamp when this rule was updated. This is updated
  8629  	// whenever env_group_revision is updated. This field is omitted from the
  8630  	// IngressConfig unless the GetDeployedIngressConfig API is called with
  8631  	// view=FULL.
  8632  	UpdateTime string `json:"updateTime,omitempty"`
  8633  	// ForceSendFields is a list of field names (e.g. "Basepath") to
  8634  	// unconditionally include in API requests. By default, fields with empty or
  8635  	// default values are omitted from API requests. See
  8636  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8637  	// details.
  8638  	ForceSendFields []string `json:"-"`
  8639  	// NullFields is a list of field names (e.g. "Basepath") to include in API
  8640  	// requests with the JSON null value. By default, fields with empty values are
  8641  	// omitted from API requests. See
  8642  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8643  	NullFields []string `json:"-"`
  8644  }
  8645  
  8646  func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
  8647  	type NoMethod GoogleCloudApigeeV1RoutingRule
  8648  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8649  }
  8650  
  8651  // GoogleCloudApigeeV1RuntimeAddonsConfig: RuntimeAddonsConfig defines the
  8652  // runtime configurations for add-ons in an environment.
  8653  type GoogleCloudApigeeV1RuntimeAddonsConfig struct {
  8654  	// AnalyticsConfig: Runtime configuration for Analytics add-on.
  8655  	AnalyticsConfig *GoogleCloudApigeeV1RuntimeAnalyticsConfig `json:"analyticsConfig,omitempty"`
  8656  	// ApiSecurityConfig: Runtime configuration for API Security add-on.
  8657  	ApiSecurityConfig *GoogleCloudApigeeV1RuntimeApiSecurityConfig `json:"apiSecurityConfig,omitempty"`
  8658  	// Name: Name of the addons config in the format:
  8659  	// `organizations/{org}/environments/{env}/addonsConfig`
  8660  	Name string `json:"name,omitempty"`
  8661  	// RevisionId: Revision number used by the runtime to detect config changes.
  8662  	RevisionId string `json:"revisionId,omitempty"`
  8663  	// Uid: UID is to detect if config is recreated after deletion. The add-on
  8664  	// config will only be deleted when the environment itself gets deleted, thus
  8665  	// it will always be the same as the UID of EnvironmentConfig.
  8666  	Uid string `json:"uid,omitempty"`
  8667  	// ForceSendFields is a list of field names (e.g. "AnalyticsConfig") to
  8668  	// unconditionally include in API requests. By default, fields with empty or
  8669  	// default values are omitted from API requests. See
  8670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8671  	// details.
  8672  	ForceSendFields []string `json:"-"`
  8673  	// NullFields is a list of field names (e.g. "AnalyticsConfig") to include in
  8674  	// API requests with the JSON null value. By default, fields with empty values
  8675  	// are omitted from API requests. See
  8676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8677  	NullFields []string `json:"-"`
  8678  }
  8679  
  8680  func (s *GoogleCloudApigeeV1RuntimeAddonsConfig) MarshalJSON() ([]byte, error) {
  8681  	type NoMethod GoogleCloudApigeeV1RuntimeAddonsConfig
  8682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8683  }
  8684  
  8685  // GoogleCloudApigeeV1RuntimeAnalyticsConfig: Runtime configuration for the
  8686  // Analytics add-on.
  8687  type GoogleCloudApigeeV1RuntimeAnalyticsConfig struct {
  8688  	// BillingPipelineEnabled: If Runtime should send billing data to AX or not.
  8689  	BillingPipelineEnabled bool `json:"billingPipelineEnabled,omitempty"`
  8690  	// Enabled: If the Analytics is enabled or not.
  8691  	Enabled bool `json:"enabled,omitempty"`
  8692  	// ForceSendFields is a list of field names (e.g. "BillingPipelineEnabled") to
  8693  	// unconditionally include in API requests. By default, fields with empty or
  8694  	// default values are omitted from API requests. See
  8695  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8696  	// details.
  8697  	ForceSendFields []string `json:"-"`
  8698  	// NullFields is a list of field names (e.g. "BillingPipelineEnabled") to
  8699  	// include in API requests with the JSON null value. By default, fields with
  8700  	// empty values are omitted from API requests. See
  8701  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8702  	NullFields []string `json:"-"`
  8703  }
  8704  
  8705  func (s *GoogleCloudApigeeV1RuntimeAnalyticsConfig) MarshalJSON() ([]byte, error) {
  8706  	type NoMethod GoogleCloudApigeeV1RuntimeAnalyticsConfig
  8707  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8708  }
  8709  
  8710  // GoogleCloudApigeeV1RuntimeApiSecurityConfig: Runtime configuration for the
  8711  // API Security add-on.
  8712  type GoogleCloudApigeeV1RuntimeApiSecurityConfig struct {
  8713  	// Enabled: If the API Security is enabled or not.
  8714  	Enabled bool `json:"enabled,omitempty"`
  8715  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  8716  	// include in API requests. By default, fields with empty or default values are
  8717  	// omitted from API requests. See
  8718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8719  	// details.
  8720  	ForceSendFields []string `json:"-"`
  8721  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  8722  	// requests with the JSON null value. By default, fields with empty values are
  8723  	// omitted from API requests. See
  8724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8725  	NullFields []string `json:"-"`
  8726  }
  8727  
  8728  func (s *GoogleCloudApigeeV1RuntimeApiSecurityConfig) MarshalJSON() ([]byte, error) {
  8729  	type NoMethod GoogleCloudApigeeV1RuntimeApiSecurityConfig
  8730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8731  }
  8732  
  8733  // GoogleCloudApigeeV1RuntimeConfig: Runtime configuration for the
  8734  // organization. Response for GetRuntimeConfig.
  8735  type GoogleCloudApigeeV1RuntimeConfig struct {
  8736  	// AnalyticsBucket: Cloud Storage bucket used for uploading Analytics records.
  8737  	AnalyticsBucket string `json:"analyticsBucket,omitempty"`
  8738  	// Name: Name of the resource in the following format:
  8739  	// `organizations/{org}/runtimeConfig`.
  8740  	Name string `json:"name,omitempty"`
  8741  	// TenantProjectId: Output only. Tenant project ID associated with the Apigee
  8742  	// organization. The tenant project is used to host Google-managed resources
  8743  	// that are dedicated to this Apigee organization. Clients have limited access
  8744  	// to resources within the tenant project used to support Apigee runtime
  8745  	// instances. Access to the tenant project is managed using
  8746  	// SetSyncAuthorization. It can be empty if the tenant project hasn't been
  8747  	// created yet.
  8748  	TenantProjectId string `json:"tenantProjectId,omitempty"`
  8749  	// TraceBucket: Cloud Storage bucket used for uploading Trace records.
  8750  	TraceBucket string `json:"traceBucket,omitempty"`
  8751  
  8752  	// ServerResponse contains the HTTP response code and headers from the server.
  8753  	googleapi.ServerResponse `json:"-"`
  8754  	// ForceSendFields is a list of field names (e.g. "AnalyticsBucket") to
  8755  	// unconditionally include in API requests. By default, fields with empty or
  8756  	// default values are omitted from API requests. See
  8757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8758  	// details.
  8759  	ForceSendFields []string `json:"-"`
  8760  	// NullFields is a list of field names (e.g. "AnalyticsBucket") to include in
  8761  	// API requests with the JSON null value. By default, fields with empty values
  8762  	// are omitted from API requests. See
  8763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8764  	NullFields []string `json:"-"`
  8765  }
  8766  
  8767  func (s *GoogleCloudApigeeV1RuntimeConfig) MarshalJSON() ([]byte, error) {
  8768  	type NoMethod GoogleCloudApigeeV1RuntimeConfig
  8769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8770  }
  8771  
  8772  // GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 8 RuntimeTraceConfig defines
  8773  // the configurations for distributed trace in an environment.
  8774  type GoogleCloudApigeeV1RuntimeTraceConfig struct {
  8775  	// Endpoint: Endpoint of the exporter.
  8776  	Endpoint string `json:"endpoint,omitempty"`
  8777  	// Exporter: Exporter that is used to view the distributed trace captured using
  8778  	// OpenCensus. An exporter sends traces to any backend that is capable of
  8779  	// consuming them. Recorded spans can be exported by registered exporters.
  8780  	//
  8781  	// Possible values:
  8782  	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
  8783  	//   "JAEGER" - Jaeger exporter
  8784  	//   "CLOUD_TRACE" - Cloudtrace exporter
  8785  	Exporter string `json:"exporter,omitempty"`
  8786  	// Name: Name of the trace config in the following format:
  8787  	// `organizations/{org}/environment/{env}/traceConfig`
  8788  	Name string `json:"name,omitempty"`
  8789  	// Overrides: List of trace configuration overrides for spicific API proxies.
  8790  	Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
  8791  	// RevisionCreateTime: The timestamp that the revision was created or updated.
  8792  	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
  8793  	// RevisionId: Revision number which can be used by the runtime to detect if
  8794  	// the trace config has changed between two versions.
  8795  	RevisionId string `json:"revisionId,omitempty"`
  8796  	// SamplingConfig: Trace configuration for all API proxies in an environment.
  8797  	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
  8798  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
  8799  	// unconditionally include in API requests. By default, fields with empty or
  8800  	// default values are omitted from API requests. See
  8801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8802  	// details.
  8803  	ForceSendFields []string `json:"-"`
  8804  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
  8805  	// requests with the JSON null value. By default, fields with empty values are
  8806  	// omitted from API requests. See
  8807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8808  	NullFields []string `json:"-"`
  8809  }
  8810  
  8811  func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
  8812  	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
  8813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8814  }
  8815  
  8816  // GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 7 Trace
  8817  // configuration override for a specific API proxy in an environment.
  8818  type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
  8819  	// ApiProxy: Name of the API proxy that will have its trace configuration
  8820  	// overridden following format: `organizations/{org}/apis/{api}`
  8821  	ApiProxy string `json:"apiProxy,omitempty"`
  8822  	// Name: Name of the trace config override in the following format:
  8823  	// `organizations/{org}/environment/{env}/traceConfig/overrides/{override}`
  8824  	Name string `json:"name,omitempty"`
  8825  	// RevisionCreateTime: The timestamp that the revision was created or updated.
  8826  	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
  8827  	// RevisionId: Revision number which can be used by the runtime to detect if
  8828  	// the trace config override has changed between two versions.
  8829  	RevisionId string `json:"revisionId,omitempty"`
  8830  	// SamplingConfig: Trace configuration override for a specific API proxy in an
  8831  	// environment.
  8832  	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
  8833  	// Uid: Unique ID for the configuration override. The ID will only change if
  8834  	// the override is deleted and recreated. Corresponds to name's "override"
  8835  	// field.
  8836  	Uid string `json:"uid,omitempty"`
  8837  	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
  8838  	// unconditionally include in API requests. By default, fields with empty or
  8839  	// default values are omitted from API requests. See
  8840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8841  	// details.
  8842  	ForceSendFields []string `json:"-"`
  8843  	// NullFields is a list of field names (e.g. "ApiProxy") to include in API
  8844  	// requests with the JSON null value. By default, fields with empty values are
  8845  	// omitted from API requests. See
  8846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8847  	NullFields []string `json:"-"`
  8848  }
  8849  
  8850  func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
  8851  	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
  8852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8853  }
  8854  
  8855  // GoogleCloudApigeeV1RuntimeTraceSamplingConfig: NEXT ID: 3
  8856  // RuntimeTraceSamplingConfig represents the detail settings of distributed
  8857  // tracing. Only the fields that are defined in the distributed trace
  8858  // configuration can be overridden using the distribute trace configuration
  8859  // override APIs.
  8860  type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
  8861  	// Sampler: Sampler of distributed tracing. OFF is the default value.
  8862  	//
  8863  	// Possible values:
  8864  	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
  8865  	//   "OFF" - OFF means distributed trace is disabled, or the sampling
  8866  	// probability is 0.
  8867  	//   "PROBABILITY" - PROBABILITY means traces are captured on a probability
  8868  	// that defined by sampling_rate. The sampling rate is limited to 0 to 0.5 when
  8869  	// this is set.
  8870  	Sampler string `json:"sampler,omitempty"`
  8871  	// SamplingRate: Field sampling rate. This value is only applicable when using
  8872  	// the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
  8873  	SamplingRate float64 `json:"samplingRate,omitempty"`
  8874  	// ForceSendFields is a list of field names (e.g. "Sampler") to unconditionally
  8875  	// include in API requests. By default, fields with empty or default values are
  8876  	// omitted from API requests. See
  8877  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8878  	// details.
  8879  	ForceSendFields []string `json:"-"`
  8880  	// NullFields is a list of field names (e.g. "Sampler") to include in API
  8881  	// requests with the JSON null value. By default, fields with empty values are
  8882  	// omitted from API requests. See
  8883  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8884  	NullFields []string `json:"-"`
  8885  }
  8886  
  8887  func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
  8888  	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
  8889  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8890  }
  8891  
  8892  func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
  8893  	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
  8894  	var s1 struct {
  8895  		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
  8896  		*NoMethod
  8897  	}
  8898  	s1.NoMethod = (*NoMethod)(s)
  8899  	if err := json.Unmarshal(data, &s1); err != nil {
  8900  		return err
  8901  	}
  8902  	s.SamplingRate = float64(s1.SamplingRate)
  8903  	return nil
  8904  }
  8905  
  8906  // GoogleCloudApigeeV1Schema: Response for Schema call
  8907  type GoogleCloudApigeeV1Schema struct {
  8908  	// Dimensions: List of schema fields grouped as dimensions.
  8909  	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
  8910  	// Meta: Additional metadata associated with schema. This is a legacy field and
  8911  	// usually consists of an empty array of strings.
  8912  	Meta []string `json:"meta,omitempty"`
  8913  	// Metrics: List of schema fields grouped as dimensions that can be used with
  8914  	// an aggregate function such as `sum`, `avg`, `min`, and `max`.
  8915  	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
  8916  
  8917  	// ServerResponse contains the HTTP response code and headers from the server.
  8918  	googleapi.ServerResponse `json:"-"`
  8919  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
  8920  	// unconditionally include in API requests. By default, fields with empty or
  8921  	// default values are omitted from API requests. See
  8922  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8923  	// details.
  8924  	ForceSendFields []string `json:"-"`
  8925  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
  8926  	// requests with the JSON null value. By default, fields with empty values are
  8927  	// omitted from API requests. See
  8928  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8929  	NullFields []string `json:"-"`
  8930  }
  8931  
  8932  func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
  8933  	type NoMethod GoogleCloudApigeeV1Schema
  8934  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8935  }
  8936  
  8937  // GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema element
  8938  type GoogleCloudApigeeV1SchemaSchemaElement struct {
  8939  	// Name: Name of the field.
  8940  	Name string `json:"name,omitempty"`
  8941  	// Properties: Properties for the schema field. For example: { "createTime":
  8942  	// "2016-02-26T10:23:09.592Z", "custom": "false", "type": "string" }
  8943  	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
  8944  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  8945  	// include in API requests. By default, fields with empty or default values are
  8946  	// omitted from API requests. See
  8947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8948  	// details.
  8949  	ForceSendFields []string `json:"-"`
  8950  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  8951  	// with the JSON null value. By default, fields with empty values are omitted
  8952  	// from API requests. See
  8953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8954  	NullFields []string `json:"-"`
  8955  }
  8956  
  8957  func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
  8958  	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
  8959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8960  }
  8961  
  8962  // GoogleCloudApigeeV1SchemaSchemaProperty: Properties for the schema field.
  8963  type GoogleCloudApigeeV1SchemaSchemaProperty struct {
  8964  	// CreateTime: Time the field was created in RFC3339 string form. For example:
  8965  	// `2016-02-26T10:23:09.592Z`.
  8966  	CreateTime string `json:"createTime,omitempty"`
  8967  	// Custom: Flag that specifies whether the field is standard in the dataset or
  8968  	// a custom field created by the customer. `true` indicates that it is a custom
  8969  	// field.
  8970  	Custom string `json:"custom,omitempty"`
  8971  	// Type: Data type of the field.
  8972  	Type string `json:"type,omitempty"`
  8973  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8974  	// unconditionally include in API requests. By default, fields with empty or
  8975  	// default values are omitted from API requests. See
  8976  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8977  	// details.
  8978  	ForceSendFields []string `json:"-"`
  8979  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8980  	// requests with the JSON null value. By default, fields with empty values are
  8981  	// omitted from API requests. See
  8982  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8983  	NullFields []string `json:"-"`
  8984  }
  8985  
  8986  func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
  8987  	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
  8988  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8989  }
  8990  
  8991  // GoogleCloudApigeeV1Score: Represents Security Score.
  8992  type GoogleCloudApigeeV1Score struct {
  8993  	// Component: Component containing score, recommendations and actions.
  8994  	Component *GoogleCloudApigeeV1ScoreComponent `json:"component,omitempty"`
  8995  	// Subcomponents: List of all the drilldown score components.
  8996  	Subcomponents []*GoogleCloudApigeeV1ScoreComponent `json:"subcomponents,omitempty"`
  8997  	// TimeRange: Start and end time for the score.
  8998  	TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
  8999  	// ForceSendFields is a list of field names (e.g. "Component") to
  9000  	// unconditionally include in API requests. By default, fields with empty or
  9001  	// default values are omitted from API requests. See
  9002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9003  	// details.
  9004  	ForceSendFields []string `json:"-"`
  9005  	// NullFields is a list of field names (e.g. "Component") to include in API
  9006  	// requests with the JSON null value. By default, fields with empty values are
  9007  	// omitted from API requests. See
  9008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9009  	NullFields []string `json:"-"`
  9010  }
  9011  
  9012  func (s *GoogleCloudApigeeV1Score) MarshalJSON() ([]byte, error) {
  9013  	type NoMethod GoogleCloudApigeeV1Score
  9014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9015  }
  9016  
  9017  // GoogleCloudApigeeV1ScoreComponent: Component is an individual security
  9018  // element that is scored.
  9019  type GoogleCloudApigeeV1ScoreComponent struct {
  9020  	// CalculateTime: Time when score was calculated.
  9021  	CalculateTime string `json:"calculateTime,omitempty"`
  9022  	// DataCaptureTime: Time in the requested time period when data was last
  9023  	// captured to compute the score.
  9024  	DataCaptureTime string `json:"dataCaptureTime,omitempty"`
  9025  	// DrilldownPaths: List of paths for next components.
  9026  	DrilldownPaths []string `json:"drilldownPaths,omitempty"`
  9027  	// Recommendations: List of recommendations to improve API security.
  9028  	Recommendations []*GoogleCloudApigeeV1ScoreComponentRecommendation `json:"recommendations,omitempty"`
  9029  	// Score: Score for the component.
  9030  	Score int64 `json:"score,omitempty"`
  9031  	// ScorePath: Path of the component. Example:
  9032  	// /org@myorg/envgroup@myenvgroup/proxies/proxy@myproxy
  9033  	ScorePath string `json:"scorePath,omitempty"`
  9034  	// ForceSendFields is a list of field names (e.g. "CalculateTime") to
  9035  	// unconditionally include in API requests. By default, fields with empty or
  9036  	// default values are omitted from API requests. See
  9037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9038  	// details.
  9039  	ForceSendFields []string `json:"-"`
  9040  	// NullFields is a list of field names (e.g. "CalculateTime") to include in API
  9041  	// requests with the JSON null value. By default, fields with empty values are
  9042  	// omitted from API requests. See
  9043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9044  	NullFields []string `json:"-"`
  9045  }
  9046  
  9047  func (s *GoogleCloudApigeeV1ScoreComponent) MarshalJSON() ([]byte, error) {
  9048  	type NoMethod GoogleCloudApigeeV1ScoreComponent
  9049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9050  }
  9051  
  9052  // GoogleCloudApigeeV1ScoreComponentRecommendation: Recommendation based on
  9053  // security concerns and score.
  9054  type GoogleCloudApigeeV1ScoreComponentRecommendation struct {
  9055  	// Actions: Actions for the recommendation to improve the security score.
  9056  	Actions []*GoogleCloudApigeeV1ScoreComponentRecommendationAction `json:"actions,omitempty"`
  9057  	// Description: Description of the recommendation.
  9058  	Description string `json:"description,omitempty"`
  9059  	// Impact: Potential impact of this recommendation on the overall score. This
  9060  	// denotes how important this recommendation is to improve the score.
  9061  	Impact int64 `json:"impact,omitempty"`
  9062  	// Title: Title represents recommendation title.
  9063  	Title string `json:"title,omitempty"`
  9064  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  9065  	// include in API requests. By default, fields with empty or default values are
  9066  	// omitted from API requests. See
  9067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9068  	// details.
  9069  	ForceSendFields []string `json:"-"`
  9070  	// NullFields is a list of field names (e.g. "Actions") to include in API
  9071  	// requests with the JSON null value. By default, fields with empty values are
  9072  	// omitted from API requests. See
  9073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9074  	NullFields []string `json:"-"`
  9075  }
  9076  
  9077  func (s *GoogleCloudApigeeV1ScoreComponentRecommendation) MarshalJSON() ([]byte, error) {
  9078  	type NoMethod GoogleCloudApigeeV1ScoreComponentRecommendation
  9079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9080  }
  9081  
  9082  // GoogleCloudApigeeV1ScoreComponentRecommendationAction: Action to improve
  9083  // security score.
  9084  type GoogleCloudApigeeV1ScoreComponentRecommendationAction struct {
  9085  	// ActionContext: Action context for the action.
  9086  	ActionContext *GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext `json:"actionContext,omitempty"`
  9087  	// Description: Description of the action.
  9088  	Description string `json:"description,omitempty"`
  9089  	// ForceSendFields is a list of field names (e.g. "ActionContext") to
  9090  	// unconditionally include in API requests. By default, fields with empty or
  9091  	// default values are omitted from API requests. See
  9092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9093  	// details.
  9094  	ForceSendFields []string `json:"-"`
  9095  	// NullFields is a list of field names (e.g. "ActionContext") to include in API
  9096  	// requests with the JSON null value. By default, fields with empty values are
  9097  	// omitted from API requests. See
  9098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9099  	NullFields []string `json:"-"`
  9100  }
  9101  
  9102  func (s *GoogleCloudApigeeV1ScoreComponentRecommendationAction) MarshalJSON() ([]byte, error) {
  9103  	type NoMethod GoogleCloudApigeeV1ScoreComponentRecommendationAction
  9104  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9105  }
  9106  
  9107  // GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext: Action
  9108  // context are all the relevant details for the action.
  9109  type GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext struct {
  9110  	// DocumentationLink: Documentation link for the action.
  9111  	DocumentationLink string `json:"documentationLink,omitempty"`
  9112  	// ForceSendFields is a list of field names (e.g. "DocumentationLink") to
  9113  	// unconditionally include in API requests. By default, fields with empty or
  9114  	// default values are omitted from API requests. See
  9115  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9116  	// details.
  9117  	ForceSendFields []string `json:"-"`
  9118  	// NullFields is a list of field names (e.g. "DocumentationLink") to include in
  9119  	// API requests with the JSON null value. By default, fields with empty values
  9120  	// are omitted from API requests. See
  9121  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9122  	NullFields []string `json:"-"`
  9123  }
  9124  
  9125  func (s *GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext) MarshalJSON() ([]byte, error) {
  9126  	type NoMethod GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext
  9127  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9128  }
  9129  
  9130  // GoogleCloudApigeeV1SecurityAction: A SecurityAction is rule that can be
  9131  // enforced at an environment level. The result is one of: - A denied API call
  9132  // - An explicitly allowed API call - A flagged API call (HTTP headers added
  9133  // before the target receives it) At least one condition is required to create
  9134  // a SecurityAction.
  9135  type GoogleCloudApigeeV1SecurityAction struct {
  9136  	// Allow: Allow a request through if it matches this SecurityAction.
  9137  	Allow *GoogleCloudApigeeV1SecurityActionAllow `json:"allow,omitempty"`
  9138  	// ConditionConfig: Required. A valid SecurityAction must contain at least one
  9139  	// condition.
  9140  	ConditionConfig *GoogleCloudApigeeV1SecurityActionConditionConfig `json:"conditionConfig,omitempty"`
  9141  	// CreateTime: Output only. The create time for this SecurityAction.
  9142  	CreateTime string `json:"createTime,omitempty"`
  9143  	// Deny: Deny a request through if it matches this SecurityAction.
  9144  	Deny *GoogleCloudApigeeV1SecurityActionDeny `json:"deny,omitempty"`
  9145  	// Description: Optional. An optional user provided description of the
  9146  	// SecurityAction.
  9147  	Description string `json:"description,omitempty"`
  9148  	// ExpireTime: The expiration for this SecurityAction.
  9149  	ExpireTime string `json:"expireTime,omitempty"`
  9150  	// Flag: Flag a request through if it matches this SecurityAction.
  9151  	Flag *GoogleCloudApigeeV1SecurityActionFlag `json:"flag,omitempty"`
  9152  	// Name: Immutable. This field is ignored during creation as per AIP-133.
  9153  	// Please set the `security_action_id` field in the CreateSecurityActionRequest
  9154  	// when creating a new SecurityAction. Format:
  9155  	// organizations/{org}/environments/{env}/securityActions/{security_action}
  9156  	Name string `json:"name,omitempty"`
  9157  	// State: Required. Only an ENABLED SecurityAction is enforced. An ENABLED
  9158  	// SecurityAction past its expiration time will not be enforced.
  9159  	//
  9160  	// Possible values:
  9161  	//   "STATE_UNSPECIFIED" - The default value. This only exists for forward
  9162  	// compatibility. A create request with this value will be rejected.
  9163  	//   "ENABLED" - An ENABLED SecurityAction is actively enforced if the
  9164  	// `expiration_time` is in the future.
  9165  	//   "DISABLED" - A disabled SecurityAction is never enforced.
  9166  	State string `json:"state,omitempty"`
  9167  	// Ttl: Input only. The TTL for this SecurityAction.
  9168  	Ttl string `json:"ttl,omitempty"`
  9169  	// UpdateTime: Output only. The update time for this SecurityAction. This
  9170  	// reflects when this SecurityAction changed states.
  9171  	UpdateTime string `json:"updateTime,omitempty"`
  9172  
  9173  	// ServerResponse contains the HTTP response code and headers from the server.
  9174  	googleapi.ServerResponse `json:"-"`
  9175  	// ForceSendFields is a list of field names (e.g. "Allow") to unconditionally
  9176  	// include in API requests. By default, fields with empty or default values are
  9177  	// omitted from API requests. See
  9178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9179  	// details.
  9180  	ForceSendFields []string `json:"-"`
  9181  	// NullFields is a list of field names (e.g. "Allow") to include in API
  9182  	// requests with the JSON null value. By default, fields with empty values are
  9183  	// omitted from API requests. See
  9184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9185  	NullFields []string `json:"-"`
  9186  }
  9187  
  9188  func (s *GoogleCloudApigeeV1SecurityAction) MarshalJSON() ([]byte, error) {
  9189  	type NoMethod GoogleCloudApigeeV1SecurityAction
  9190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9191  }
  9192  
  9193  // GoogleCloudApigeeV1SecurityActionAllow: Message that should be set in case
  9194  // of an Allow Action. This does not have any fields.
  9195  type GoogleCloudApigeeV1SecurityActionAllow struct {
  9196  }
  9197  
  9198  // GoogleCloudApigeeV1SecurityActionConditionConfig: The following are a list
  9199  // of conditions. A valid SecurityAction must contain at least one condition.
  9200  // Within a condition, each element is ORed. Across conditions elements are
  9201  // ANDed. For example if a SecurityAction has the following: ip_address_ranges:
  9202  // ["ip1", "ip2"] and bot_reasons: ["Flooder", "Robot Abuser"] then this is
  9203  // interpreted as: enforce the action if the incoming request has
  9204  // ((ip_address_ranges = "ip1" OR ip_address_ranges = "ip2") AND
  9205  // (bot_reasons="Flooder" OR bot_reasons="Robot Abuser")). Conditions other
  9206  // than ip_address_ranges and bot_reasons cannot be ANDed.
  9207  type GoogleCloudApigeeV1SecurityActionConditionConfig struct {
  9208  	// AccessTokens: Optional. A list of access_tokens. Limit 1000 per action.
  9209  	AccessTokens []string `json:"accessTokens,omitempty"`
  9210  	// ApiKeys: Optional. A list of API keys. Limit 1000 per action.
  9211  	ApiKeys []string `json:"apiKeys,omitempty"`
  9212  	// ApiProducts: Optional. A list of API Products. Limit 1000 per action.
  9213  	ApiProducts []string `json:"apiProducts,omitempty"`
  9214  	// Asns: Optional. A list of ASN numbers to act on, e.g. 23.
  9215  	// https://en.wikipedia.org/wiki/Autonomous_system_(Internet) This uses int64
  9216  	// instead of uint32 because of https://linter.aip.dev/141/forbidden-types.
  9217  	Asns googleapi.Int64s `json:"asns,omitempty"`
  9218  	// BotReasons: Optional. A list of Bot Reasons. Current options: Flooder, Brute
  9219  	// Guessor, Static Content Scraper, OAuth Abuser, Robot Abuser, TorListRule,
  9220  	// Advanced Anomaly Detection, Advanced API Scraper, Search Engine Crawlers,
  9221  	// Public Clouds, Public Cloud AWS, Public Cloud Azure, and Public Cloud
  9222  	// Google.
  9223  	BotReasons []string `json:"botReasons,omitempty"`
  9224  	// DeveloperApps: Optional. A list of developer apps. Limit 1000 per action.
  9225  	DeveloperApps []string `json:"developerApps,omitempty"`
  9226  	// Developers: Optional. A list of developers. Limit 1000 per action.
  9227  	Developers []string `json:"developers,omitempty"`
  9228  	// HttpMethods: Optional. Act only on particular HTTP methods. E.g. A read-only
  9229  	// API can block POST/PUT/DELETE methods. Accepted values are: GET, HEAD, POST,
  9230  	// PUT, DELETE, CONNECT, OPTIONS, TRACE and PATCH.
  9231  	HttpMethods []string `json:"httpMethods,omitempty"`
  9232  	// IpAddressRanges: Optional. A list of IP addresses. This could be either IPv4
  9233  	// or IPv6. Limited to 100 per action.
  9234  	IpAddressRanges []string `json:"ipAddressRanges,omitempty"`
  9235  	// RegionCodes: Optional. A list of countries/region codes to act on, e.g. US.
  9236  	// This follows https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
  9237  	RegionCodes []string `json:"regionCodes,omitempty"`
  9238  	// UserAgents: Optional. A list of user agents to deny. We look for exact
  9239  	// matches. Limit 50 per action.
  9240  	UserAgents []string `json:"userAgents,omitempty"`
  9241  	// ForceSendFields is a list of field names (e.g. "AccessTokens") to
  9242  	// unconditionally include in API requests. By default, fields with empty or
  9243  	// default values are omitted from API requests. See
  9244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9245  	// details.
  9246  	ForceSendFields []string `json:"-"`
  9247  	// NullFields is a list of field names (e.g. "AccessTokens") to include in API
  9248  	// requests with the JSON null value. By default, fields with empty values are
  9249  	// omitted from API requests. See
  9250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9251  	NullFields []string `json:"-"`
  9252  }
  9253  
  9254  func (s *GoogleCloudApigeeV1SecurityActionConditionConfig) MarshalJSON() ([]byte, error) {
  9255  	type NoMethod GoogleCloudApigeeV1SecurityActionConditionConfig
  9256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9257  }
  9258  
  9259  // GoogleCloudApigeeV1SecurityActionDeny: Message that should be set in case of
  9260  // a Deny Action.
  9261  type GoogleCloudApigeeV1SecurityActionDeny struct {
  9262  	// ResponseCode: Optional. The HTTP response code if the Action = DENY.
  9263  	ResponseCode int64 `json:"responseCode,omitempty"`
  9264  	// ForceSendFields is a list of field names (e.g. "ResponseCode") to
  9265  	// unconditionally include in API requests. By default, fields with empty or
  9266  	// default values are omitted from API requests. See
  9267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9268  	// details.
  9269  	ForceSendFields []string `json:"-"`
  9270  	// NullFields is a list of field names (e.g. "ResponseCode") to include in API
  9271  	// requests with the JSON null value. By default, fields with empty values are
  9272  	// omitted from API requests. See
  9273  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9274  	NullFields []string `json:"-"`
  9275  }
  9276  
  9277  func (s *GoogleCloudApigeeV1SecurityActionDeny) MarshalJSON() ([]byte, error) {
  9278  	type NoMethod GoogleCloudApigeeV1SecurityActionDeny
  9279  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9280  }
  9281  
  9282  // GoogleCloudApigeeV1SecurityActionFlag: The message that should be set in the
  9283  // case of a Flag action.
  9284  type GoogleCloudApigeeV1SecurityActionFlag struct {
  9285  	// Headers: Optional. A list of HTTP headers to be sent to the target in case
  9286  	// of a FLAG SecurityAction. Limit 5 headers per SecurityAction. At least one
  9287  	// is mandatory.
  9288  	Headers []*GoogleCloudApigeeV1SecurityActionHttpHeader `json:"headers,omitempty"`
  9289  	// ForceSendFields is a list of field names (e.g. "Headers") to unconditionally
  9290  	// include in API requests. By default, fields with empty or default values are
  9291  	// omitted from API requests. See
  9292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9293  	// details.
  9294  	ForceSendFields []string `json:"-"`
  9295  	// NullFields is a list of field names (e.g. "Headers") to include in API
  9296  	// requests with the JSON null value. By default, fields with empty values are
  9297  	// omitted from API requests. See
  9298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9299  	NullFields []string `json:"-"`
  9300  }
  9301  
  9302  func (s *GoogleCloudApigeeV1SecurityActionFlag) MarshalJSON() ([]byte, error) {
  9303  	type NoMethod GoogleCloudApigeeV1SecurityActionFlag
  9304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9305  }
  9306  
  9307  // GoogleCloudApigeeV1SecurityActionHttpHeader: An HTTP header.
  9308  type GoogleCloudApigeeV1SecurityActionHttpHeader struct {
  9309  	// Name: The header name to be sent to the target.
  9310  	Name string `json:"name,omitempty"`
  9311  	// Value: The header value to be sent to the target.
  9312  	Value string `json:"value,omitempty"`
  9313  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  9314  	// include in API requests. By default, fields with empty or default values are
  9315  	// omitted from API requests. See
  9316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9317  	// details.
  9318  	ForceSendFields []string `json:"-"`
  9319  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  9320  	// with the JSON null value. By default, fields with empty values are omitted
  9321  	// from API requests. See
  9322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9323  	NullFields []string `json:"-"`
  9324  }
  9325  
  9326  func (s *GoogleCloudApigeeV1SecurityActionHttpHeader) MarshalJSON() ([]byte, error) {
  9327  	type NoMethod GoogleCloudApigeeV1SecurityActionHttpHeader
  9328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9329  }
  9330  
  9331  // GoogleCloudApigeeV1SecurityActionsConfig: SecurityActionsConfig reflects the
  9332  // current state of the SecurityActions feature. This is a singleton resource:
  9333  // https://google.aip.dev/156
  9334  type GoogleCloudApigeeV1SecurityActionsConfig struct {
  9335  	// Enabled: The flag that controls whether this feature is enabled. This is
  9336  	// `unset` by default. When this flag is `false`, even if individual rules are
  9337  	// enabled, no SecurityActions will be enforced.
  9338  	Enabled bool `json:"enabled,omitempty"`
  9339  	// Name: This is a singleton resource, the name will always be set by
  9340  	// SecurityActions and any user input will be ignored. The name is always:
  9341  	// `organizations/{org}/environments/{env}/security_actions_config`
  9342  	Name string `json:"name,omitempty"`
  9343  	// UpdateTime: Output only. The update time for configuration.
  9344  	UpdateTime string `json:"updateTime,omitempty"`
  9345  
  9346  	// ServerResponse contains the HTTP response code and headers from the server.
  9347  	googleapi.ServerResponse `json:"-"`
  9348  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  9349  	// include in API requests. By default, fields with empty or default values are
  9350  	// omitted from API requests. See
  9351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9352  	// details.
  9353  	ForceSendFields []string `json:"-"`
  9354  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  9355  	// requests with the JSON null value. By default, fields with empty values are
  9356  	// omitted from API requests. See
  9357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9358  	NullFields []string `json:"-"`
  9359  }
  9360  
  9361  func (s *GoogleCloudApigeeV1SecurityActionsConfig) MarshalJSON() ([]byte, error) {
  9362  	type NoMethod GoogleCloudApigeeV1SecurityActionsConfig
  9363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9364  }
  9365  
  9366  // GoogleCloudApigeeV1SecurityAssessmentResult: The security assessment result
  9367  // for one resource.
  9368  type GoogleCloudApigeeV1SecurityAssessmentResult struct {
  9369  	// CreateTime: The time of the assessment of this resource. This could lag
  9370  	// behind `assessment_time` due to caching within the backend.
  9371  	CreateTime string `json:"createTime,omitempty"`
  9372  	// Error: The error status if scoring fails.
  9373  	Error *GoogleRpcStatus `json:"error,omitempty"`
  9374  	// Resource: The assessed resource.
  9375  	Resource *GoogleCloudApigeeV1SecurityAssessmentResultResource `json:"resource,omitempty"`
  9376  	// ScoringResult: The result of the assessment.
  9377  	ScoringResult *GoogleCloudApigeeV1SecurityAssessmentResultScoringResult `json:"scoringResult,omitempty"`
  9378  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9379  	// unconditionally include in API requests. By default, fields with empty or
  9380  	// default values are omitted from API requests. See
  9381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9382  	// details.
  9383  	ForceSendFields []string `json:"-"`
  9384  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9385  	// requests with the JSON null value. By default, fields with empty values are
  9386  	// omitted from API requests. See
  9387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9388  	NullFields []string `json:"-"`
  9389  }
  9390  
  9391  func (s *GoogleCloudApigeeV1SecurityAssessmentResult) MarshalJSON() ([]byte, error) {
  9392  	type NoMethod GoogleCloudApigeeV1SecurityAssessmentResult
  9393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9394  }
  9395  
  9396  // GoogleCloudApigeeV1SecurityAssessmentResultResource: Resource for which we
  9397  // are computing security assessment.
  9398  type GoogleCloudApigeeV1SecurityAssessmentResultResource struct {
  9399  	// Name: Required. Name of this resource.
  9400  	Name string `json:"name,omitempty"`
  9401  	// ResourceRevisionId: The revision id for the resource. In case of Apigee,
  9402  	// this is proxy revision id.
  9403  	ResourceRevisionId string `json:"resourceRevisionId,omitempty"`
  9404  	// Type: Required. Type of this resource.
  9405  	//
  9406  	// Possible values:
  9407  	//   "RESOURCE_TYPE_UNSPECIFIED" - ResourceType not specified.
  9408  	//   "API_PROXY" - Resource is an Apigee Proxy.
  9409  	Type string `json:"type,omitempty"`
  9410  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  9411  	// include in API requests. By default, fields with empty or default values are
  9412  	// omitted from API requests. See
  9413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9414  	// details.
  9415  	ForceSendFields []string `json:"-"`
  9416  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  9417  	// with the JSON null value. By default, fields with empty values are omitted
  9418  	// from API requests. See
  9419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9420  	NullFields []string `json:"-"`
  9421  }
  9422  
  9423  func (s *GoogleCloudApigeeV1SecurityAssessmentResultResource) MarshalJSON() ([]byte, error) {
  9424  	type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultResource
  9425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9426  }
  9427  
  9428  // GoogleCloudApigeeV1SecurityAssessmentResultScoringResult: The result of the
  9429  // assessment.
  9430  type GoogleCloudApigeeV1SecurityAssessmentResultScoringResult struct {
  9431  	// AssessmentRecommendations: The recommendations of the assessment. The key is
  9432  	// the "name" of the assessment (not display_name), and the value are the
  9433  	// recommendations.
  9434  	AssessmentRecommendations map[string]GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation `json:"assessmentRecommendations,omitempty"`
  9435  	// DataUpdateTime: The time when resource data was last fetched for this
  9436  	// resource. This time may be different than when the resource was actually
  9437  	// updated due to lag in data collection.
  9438  	DataUpdateTime string `json:"dataUpdateTime,omitempty"`
  9439  	// FailedAssessmentPerWeight: The number of failed assessments grouped by its
  9440  	// weight. Keys are one of the following: "MAJOR", "MODERATE", "MINOR".
  9441  	FailedAssessmentPerWeight map[string]int64 `json:"failedAssessmentPerWeight,omitempty"`
  9442  	// Score: The security score of the assessment.
  9443  	Score int64 `json:"score,omitempty"`
  9444  	// Severity: The severity of the assessment.
  9445  	//
  9446  	// Possible values:
  9447  	//   "SEVERITY_UNSPECIFIED" - Severity is not defined.
  9448  	//   "LOW" - Severity is low.
  9449  	//   "MEDIUM" - Severity is medium.
  9450  	//   "HIGH" - Severity is high.
  9451  	//   "MINIMAL" - Severity is minimal
  9452  	Severity string `json:"severity,omitempty"`
  9453  	// ForceSendFields is a list of field names (e.g. "AssessmentRecommendations")
  9454  	// to unconditionally include in API requests. By default, fields with empty or
  9455  	// default values are omitted from API requests. See
  9456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9457  	// details.
  9458  	ForceSendFields []string `json:"-"`
  9459  	// NullFields is a list of field names (e.g. "AssessmentRecommendations") to
  9460  	// include in API requests with the JSON null value. By default, fields with
  9461  	// empty values are omitted from API requests. See
  9462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9463  	NullFields []string `json:"-"`
  9464  }
  9465  
  9466  func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResult) MarshalJSON() ([]byte, error) {
  9467  	type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResult
  9468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9469  }
  9470  
  9471  // GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendat
  9472  // ion: The message format of a recommendation from the assessment.
  9473  type GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation struct {
  9474  	// DisplayName: The display name of the assessment.
  9475  	DisplayName string `json:"displayName,omitempty"`
  9476  	// Recommendations: The recommended steps of the assessment.
  9477  	Recommendations []*GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation `json:"recommendations,omitempty"`
  9478  	// ScoreImpact: Score impact indicates the impact on the overall score if the
  9479  	// assessment were to pass.
  9480  	ScoreImpact int64 `json:"scoreImpact,omitempty"`
  9481  	// Verdict: Verdict indicates the assessment result.
  9482  	//
  9483  	// Possible values:
  9484  	//   "VERDICT_UNSPECIFIED" - The verdict is unspecified.
  9485  	//   "PASS" - The assessment has passed.
  9486  	//   "FAIL" - The assessment has failed.
  9487  	Verdict string `json:"verdict,omitempty"`
  9488  	// Weight: The weight of the assessment which was set in the profile.
  9489  	//
  9490  	// Possible values:
  9491  	//   "WEIGHT_UNSPECIFIED" - The weight is unspecified.
  9492  	//   "MINOR" - The weight is minor.
  9493  	//   "MODERATE" - The weight is moderate.
  9494  	//   "MAJOR" - The weight is major.
  9495  	Weight string `json:"weight,omitempty"`
  9496  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  9497  	// unconditionally include in API requests. By default, fields with empty or
  9498  	// default values are omitted from API requests. See
  9499  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9500  	// details.
  9501  	ForceSendFields []string `json:"-"`
  9502  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  9503  	// requests with the JSON null value. By default, fields with empty values are
  9504  	// omitted from API requests. See
  9505  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9506  	NullFields []string `json:"-"`
  9507  }
  9508  
  9509  func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation) MarshalJSON() ([]byte, error) {
  9510  	type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation
  9511  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9512  }
  9513  
  9514  // GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendat
  9515  // ionRecommendation: The format of the assessment recommendation.
  9516  type GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation struct {
  9517  	// Description: The description of the recommendation.
  9518  	Description string `json:"description,omitempty"`
  9519  	// Link: The link for the recommendation.
  9520  	Link *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink `json:"link,omitempty"`
  9521  	// ForceSendFields is a list of field names (e.g. "Description") to
  9522  	// unconditionally include in API requests. By default, fields with empty or
  9523  	// default values are omitted from API requests. See
  9524  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9525  	// details.
  9526  	ForceSendFields []string `json:"-"`
  9527  	// NullFields is a list of field names (e.g. "Description") to include in API
  9528  	// requests with the JSON null value. By default, fields with empty values are
  9529  	// omitted from API requests. See
  9530  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9531  	NullFields []string `json:"-"`
  9532  }
  9533  
  9534  func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation) MarshalJSON() ([]byte, error) {
  9535  	type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation
  9536  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9537  }
  9538  
  9539  // GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendat
  9540  // ionRecommendationLink: The format for a link in the recommendation.
  9541  type GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink struct {
  9542  	// Text: The text of the url. (ie: "Learn more")
  9543  	Text string `json:"text,omitempty"`
  9544  	// Uri: The link itself.
  9545  	Uri string `json:"uri,omitempty"`
  9546  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  9547  	// include in API requests. By default, fields with empty or default values are
  9548  	// omitted from API requests. See
  9549  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9550  	// details.
  9551  	ForceSendFields []string `json:"-"`
  9552  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  9553  	// with the JSON null value. By default, fields with empty values are omitted
  9554  	// from API requests. See
  9555  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9556  	NullFields []string `json:"-"`
  9557  }
  9558  
  9559  func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink) MarshalJSON() ([]byte, error) {
  9560  	type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink
  9561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9562  }
  9563  
  9564  // GoogleCloudApigeeV1SecurityIncident: Represents an SecurityIncident
  9565  // resource.
  9566  type GoogleCloudApigeeV1SecurityIncident struct {
  9567  	// DetectionTypes: Output only. Detection types which are part of the incident.
  9568  	// Examples: Flooder, OAuth Abuser, Static Content Scraper, Anomaly Detection.
  9569  	DetectionTypes []string `json:"detectionTypes,omitempty"`
  9570  	// DisplayName: Optional. Display name of the security incident.
  9571  	DisplayName string `json:"displayName,omitempty"`
  9572  	// FirstDetectedTime: Output only. The time when events associated with the
  9573  	// incident were first detected.
  9574  	FirstDetectedTime string `json:"firstDetectedTime,omitempty"`
  9575  	// LastDetectedTime: Output only. The time when events associated with the
  9576  	// incident were last detected.
  9577  	LastDetectedTime string `json:"lastDetectedTime,omitempty"`
  9578  	// LastObservabilityChangeTime: Output only. The time when the incident
  9579  	// observability was last changed.
  9580  	LastObservabilityChangeTime string `json:"lastObservabilityChangeTime,omitempty"`
  9581  	// Name: Immutable. Name of the security incident resource. Format:
  9582  	// organizations/{org}/environments/{environment}/securityIncidents/{incident}
  9583  	// Example:
  9584  	// organizations/apigee-org/environments/dev/securityIncidents/1234-5678-9101-11
  9585  	// 11
  9586  	Name string `json:"name,omitempty"`
  9587  	// Observability: Optional. Indicates if the user archived this incident.
  9588  	//
  9589  	// Possible values:
  9590  	//   "OBSERVABILITY_UNSPECIFIED" - The incident observability is unspecified.
  9591  	//   "ACTIVE" - The incident is currently active. Can change to this status
  9592  	// from archived.
  9593  	//   "ARCHIVED" - The incident is currently archived and was archived by the
  9594  	// customer.
  9595  	Observability string `json:"observability,omitempty"`
  9596  	// RiskLevel: Output only. Risk level of the incident.
  9597  	//
  9598  	// Possible values:
  9599  	//   "RISK_LEVEL_UNSPECIFIED" - Risk Level Unspecified.
  9600  	//   "LOW" - Risk level of the incident is low.
  9601  	//   "MODERATE" - Risk level of the incident is moderate.
  9602  	//   "SEVERE" - Risk level of the incident is severe.
  9603  	RiskLevel string `json:"riskLevel,omitempty"`
  9604  	// TrafficCount: Total traffic detected as part of the incident.
  9605  	TrafficCount int64 `json:"trafficCount,omitempty,string"`
  9606  
  9607  	// ServerResponse contains the HTTP response code and headers from the server.
  9608  	googleapi.ServerResponse `json:"-"`
  9609  	// ForceSendFields is a list of field names (e.g. "DetectionTypes") to
  9610  	// unconditionally include in API requests. By default, fields with empty or
  9611  	// default values are omitted from API requests. See
  9612  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9613  	// details.
  9614  	ForceSendFields []string `json:"-"`
  9615  	// NullFields is a list of field names (e.g. "DetectionTypes") to include in
  9616  	// API requests with the JSON null value. By default, fields with empty values
  9617  	// are omitted from API requests. See
  9618  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9619  	NullFields []string `json:"-"`
  9620  }
  9621  
  9622  func (s *GoogleCloudApigeeV1SecurityIncident) MarshalJSON() ([]byte, error) {
  9623  	type NoMethod GoogleCloudApigeeV1SecurityIncident
  9624  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9625  }
  9626  
  9627  // GoogleCloudApigeeV1SecurityProfile: Represents a SecurityProfile resource.
  9628  type GoogleCloudApigeeV1SecurityProfile struct {
  9629  	// Description: Description of the security profile.
  9630  	Description string `json:"description,omitempty"`
  9631  	// DisplayName: DEPRECATED: DO NOT USE Display name of the security profile.
  9632  	DisplayName string `json:"displayName,omitempty"`
  9633  	// Environments: List of environments attached to security profile.
  9634  	Environments []*GoogleCloudApigeeV1SecurityProfileEnvironment `json:"environments,omitempty"`
  9635  	// MaxScore: Output only. Maximum security score that can be generated by this
  9636  	// profile.
  9637  	MaxScore int64 `json:"maxScore,omitempty"`
  9638  	// MinScore: Output only. Minimum security score that can be generated by this
  9639  	// profile.
  9640  	MinScore int64 `json:"minScore,omitempty"`
  9641  	// Name: Immutable. Name of the security profile resource. Format:
  9642  	// organizations/{org}/securityProfiles/{profile}
  9643  	Name string `json:"name,omitempty"`
  9644  	// ProfileConfig: Required. Customized profile configuration that computes the
  9645  	// security score.
  9646  	ProfileConfig *GoogleCloudApigeeV1ProfileConfig `json:"profileConfig,omitempty"`
  9647  	// RevisionCreateTime: Output only. The time when revision was created.
  9648  	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
  9649  	// RevisionId: Output only. Revision ID of the security profile.
  9650  	RevisionId int64 `json:"revisionId,omitempty,string"`
  9651  	// RevisionPublishTime: Output only. DEPRECATED: DO NOT USE The time when
  9652  	// revision was published. Once published, the security profile revision cannot
  9653  	// be updated further and can be attached to environments.
  9654  	RevisionPublishTime string `json:"revisionPublishTime,omitempty"`
  9655  	// RevisionUpdateTime: Output only. The time when revision was updated.
  9656  	RevisionUpdateTime string `json:"revisionUpdateTime,omitempty"`
  9657  	// ScoringConfigs: List of profile scoring configs in this revision.
  9658  	ScoringConfigs []*GoogleCloudApigeeV1SecurityProfileScoringConfig `json:"scoringConfigs,omitempty"`
  9659  
  9660  	// ServerResponse contains the HTTP response code and headers from the server.
  9661  	googleapi.ServerResponse `json:"-"`
  9662  	// ForceSendFields is a list of field names (e.g. "Description") to
  9663  	// unconditionally include in API requests. By default, fields with empty or
  9664  	// default values are omitted from API requests. See
  9665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9666  	// details.
  9667  	ForceSendFields []string `json:"-"`
  9668  	// NullFields is a list of field names (e.g. "Description") to include in API
  9669  	// requests with the JSON null value. By default, fields with empty values are
  9670  	// omitted from API requests. See
  9671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9672  	NullFields []string `json:"-"`
  9673  }
  9674  
  9675  func (s *GoogleCloudApigeeV1SecurityProfile) MarshalJSON() ([]byte, error) {
  9676  	type NoMethod GoogleCloudApigeeV1SecurityProfile
  9677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9678  }
  9679  
  9680  // GoogleCloudApigeeV1SecurityProfileEnvironment: Environment information of
  9681  // attached environments. Scoring an environment is enabled only if it is
  9682  // attached to a security profile.
  9683  type GoogleCloudApigeeV1SecurityProfileEnvironment struct {
  9684  	// AttachTime: Output only. Time at which environment was attached to the
  9685  	// security profile.
  9686  	AttachTime string `json:"attachTime,omitempty"`
  9687  	// Environment: Output only. Name of the environment.
  9688  	Environment string `json:"environment,omitempty"`
  9689  	// ForceSendFields is a list of field names (e.g. "AttachTime") to
  9690  	// unconditionally include in API requests. By default, fields with empty or
  9691  	// default values are omitted from API requests. See
  9692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9693  	// details.
  9694  	ForceSendFields []string `json:"-"`
  9695  	// NullFields is a list of field names (e.g. "AttachTime") to include in API
  9696  	// requests with the JSON null value. By default, fields with empty values are
  9697  	// omitted from API requests. See
  9698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9699  	NullFields []string `json:"-"`
  9700  }
  9701  
  9702  func (s *GoogleCloudApigeeV1SecurityProfileEnvironment) MarshalJSON() ([]byte, error) {
  9703  	type NoMethod GoogleCloudApigeeV1SecurityProfileEnvironment
  9704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9705  }
  9706  
  9707  // GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation: Represents a
  9708  // SecurityProfileEnvironmentAssociation resource.
  9709  type GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation struct {
  9710  	// AttachTime: Output only. The time when environment was attached to the
  9711  	// security profile.
  9712  	AttachTime string `json:"attachTime,omitempty"`
  9713  	// Name: Immutable. Name of the environment that the profile is attached to.
  9714  	Name string `json:"name,omitempty"`
  9715  	// SecurityProfileRevisionId: DEPRECATED: DO NOT USE Revision ID of the
  9716  	// security profile.
  9717  	SecurityProfileRevisionId int64 `json:"securityProfileRevisionId,omitempty,string"`
  9718  
  9719  	// ServerResponse contains the HTTP response code and headers from the server.
  9720  	googleapi.ServerResponse `json:"-"`
  9721  	// ForceSendFields is a list of field names (e.g. "AttachTime") to
  9722  	// unconditionally include in API requests. By default, fields with empty or
  9723  	// default values are omitted from API requests. See
  9724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9725  	// details.
  9726  	ForceSendFields []string `json:"-"`
  9727  	// NullFields is a list of field names (e.g. "AttachTime") to include in API
  9728  	// requests with the JSON null value. By default, fields with empty values are
  9729  	// omitted from API requests. See
  9730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9731  	NullFields []string `json:"-"`
  9732  }
  9733  
  9734  func (s *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation) MarshalJSON() ([]byte, error) {
  9735  	type NoMethod GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation
  9736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9737  }
  9738  
  9739  // GoogleCloudApigeeV1SecurityProfileScoringConfig: Security configurations to
  9740  // manage scoring.
  9741  type GoogleCloudApigeeV1SecurityProfileScoringConfig struct {
  9742  	// Description: Description of the config.
  9743  	Description string `json:"description,omitempty"`
  9744  	// ScorePath: Path of the component config used for scoring.
  9745  	ScorePath string `json:"scorePath,omitempty"`
  9746  	// Title: Title of the config.
  9747  	Title string `json:"title,omitempty"`
  9748  	// ForceSendFields is a list of field names (e.g. "Description") to
  9749  	// unconditionally include in API requests. By default, fields with empty or
  9750  	// default values are omitted from API requests. See
  9751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9752  	// details.
  9753  	ForceSendFields []string `json:"-"`
  9754  	// NullFields is a list of field names (e.g. "Description") to include in API
  9755  	// requests with the JSON null value. By default, fields with empty values are
  9756  	// omitted from API requests. See
  9757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9758  	NullFields []string `json:"-"`
  9759  }
  9760  
  9761  func (s *GoogleCloudApigeeV1SecurityProfileScoringConfig) MarshalJSON() ([]byte, error) {
  9762  	type NoMethod GoogleCloudApigeeV1SecurityProfileScoringConfig
  9763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9764  }
  9765  
  9766  // GoogleCloudApigeeV1SecurityReport: SecurityReport saves all the information
  9767  // about the created security report.
  9768  type GoogleCloudApigeeV1SecurityReport struct {
  9769  	// Created: Creation time of the query.
  9770  	Created string `json:"created,omitempty"`
  9771  	// DisplayName: Display Name specified by the user.
  9772  	DisplayName string `json:"displayName,omitempty"`
  9773  	// EnvgroupHostname: Hostname is available only when query is executed at host
  9774  	// level.
  9775  	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
  9776  	// Error: Error is set when query fails.
  9777  	Error string `json:"error,omitempty"`
  9778  	// ExecutionTime: ExecutionTime is available only after the query is completed.
  9779  	ExecutionTime string `json:"executionTime,omitempty"`
  9780  	// QueryParams: Contains information like metrics, dimenstions etc of the
  9781  	// Security Report.
  9782  	QueryParams *GoogleCloudApigeeV1SecurityReportMetadata `json:"queryParams,omitempty"`
  9783  	// ReportDefinitionId: Report Definition ID.
  9784  	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
  9785  	// Result: Result is available only after the query is completed.
  9786  	Result *GoogleCloudApigeeV1SecurityReportResultMetadata `json:"result,omitempty"`
  9787  	// ResultFileSize: ResultFileSize is available only after the query is
  9788  	// completed.
  9789  	ResultFileSize string `json:"resultFileSize,omitempty"`
  9790  	// ResultRows: ResultRows is available only after the query is completed.
  9791  	ResultRows int64 `json:"resultRows,omitempty,string"`
  9792  	// Self: Self link of the query. Example:
  9793  	// `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-a
  9794  	// e6f-318d0cb961bd` or following format if query is running at host level:
  9795  	// `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961b
  9796  	// d`
  9797  	Self string `json:"self,omitempty"`
  9798  	// State: Query state could be "enqueued", "running", "completed", "expired"
  9799  	// and "failed".
  9800  	State string `json:"state,omitempty"`
  9801  	// Updated: Output only. Last updated timestamp for the query.
  9802  	Updated string `json:"updated,omitempty"`
  9803  
  9804  	// ServerResponse contains the HTTP response code and headers from the server.
  9805  	googleapi.ServerResponse `json:"-"`
  9806  	// ForceSendFields is a list of field names (e.g. "Created") to unconditionally
  9807  	// include in API requests. By default, fields with empty or default values are
  9808  	// omitted from API requests. See
  9809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9810  	// details.
  9811  	ForceSendFields []string `json:"-"`
  9812  	// NullFields is a list of field names (e.g. "Created") to include in API
  9813  	// requests with the JSON null value. By default, fields with empty values are
  9814  	// omitted from API requests. See
  9815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9816  	NullFields []string `json:"-"`
  9817  }
  9818  
  9819  func (s *GoogleCloudApigeeV1SecurityReport) MarshalJSON() ([]byte, error) {
  9820  	type NoMethod GoogleCloudApigeeV1SecurityReport
  9821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9822  }
  9823  
  9824  // GoogleCloudApigeeV1SecurityReportMetadata: Metadata for the security report.
  9825  type GoogleCloudApigeeV1SecurityReportMetadata struct {
  9826  	// Dimensions: Dimensions of the SecurityReport.
  9827  	Dimensions []string `json:"dimensions,omitempty"`
  9828  	// EndTimestamp: End timestamp of the query range.
  9829  	EndTimestamp string `json:"endTimestamp,omitempty"`
  9830  	// Metrics: Metrics of the SecurityReport. Example:
  9831  	// ["name:bot_count,func:sum,alias:sum_bot_count"]
  9832  	Metrics []string `json:"metrics,omitempty"`
  9833  	// MimeType: MIME type / Output format.
  9834  	MimeType string `json:"mimeType,omitempty"`
  9835  	// StartTimestamp: Start timestamp of the query range.
  9836  	StartTimestamp string `json:"startTimestamp,omitempty"`
  9837  	// TimeUnit: Query GroupBy time unit. Example: "seconds", "minute", "hour"
  9838  	TimeUnit string `json:"timeUnit,omitempty"`
  9839  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
  9840  	// unconditionally include in API requests. By default, fields with empty or
  9841  	// default values are omitted from API requests. See
  9842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9843  	// details.
  9844  	ForceSendFields []string `json:"-"`
  9845  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
  9846  	// requests with the JSON null value. By default, fields with empty values are
  9847  	// omitted from API requests. See
  9848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9849  	NullFields []string `json:"-"`
  9850  }
  9851  
  9852  func (s *GoogleCloudApigeeV1SecurityReportMetadata) MarshalJSON() ([]byte, error) {
  9853  	type NoMethod GoogleCloudApigeeV1SecurityReportMetadata
  9854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9855  }
  9856  
  9857  // GoogleCloudApigeeV1SecurityReportQuery: Body structure when user makes a
  9858  // request to create a security report.
  9859  type GoogleCloudApigeeV1SecurityReportQuery struct {
  9860  	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is set to
  9861  	// `csv`. Defaults to the `,` (comma) character. Supported delimiter characters
  9862  	// include comma (`,`), pipe (`|`), and tab (`\t`).
  9863  	CsvDelimiter string `json:"csvDelimiter,omitempty"`
  9864  	// Dimensions: A list of dimensions.
  9865  	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
  9866  	Dimensions []string `json:"dimensions,omitempty"`
  9867  	// DisplayName: Security Report display name which users can specify.
  9868  	DisplayName string `json:"displayName,omitempty"`
  9869  	// EnvgroupHostname: Hostname needs to be specified if query intends to run at
  9870  	// host level. This field is only allowed when query is submitted by
  9871  	// CreateHostSecurityReport where analytics data will be grouped by
  9872  	// organization and hostname.
  9873  	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
  9874  	// Filter: Boolean expression that can be used to filter data. Filter
  9875  	// expressions can be combined using AND/OR terms and should be fully
  9876  	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions, and
  9877  	// filters reference
  9878  	// https://docs.apigee.com/api-platform/analytics/analytics-reference for more
  9879  	// information on the fields available to filter on. For more information on
  9880  	// the tokens that you use to build filter expressions, see Filter expression
  9881  	// syntax.
  9882  	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
  9883  	Filter string `json:"filter,omitempty"`
  9884  	// GroupByTimeUnit: Time unit used to group the result set. Valid values
  9885  	// include: second, minute, hour, day, week, or month. If a query includes
  9886  	// groupByTimeUnit, then the result is an aggregation based on the specified
  9887  	// time unit and the resultant timestamp does not include milliseconds
  9888  	// precision. If a query omits groupByTimeUnit, then the resultant timestamp
  9889  	// includes milliseconds precision.
  9890  	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
  9891  	// Limit: Maximum number of rows that can be returned in the result.
  9892  	Limit int64 `json:"limit,omitempty"`
  9893  	// Metrics: A list of Metrics.
  9894  	Metrics []*GoogleCloudApigeeV1SecurityReportQueryMetric `json:"metrics,omitempty"`
  9895  	// MimeType: Valid values include: `csv` or `json`. Defaults to `json`. Note:
  9896  	// Configure the delimiter for CSV output using the csvDelimiter property.
  9897  	MimeType string `json:"mimeType,omitempty"`
  9898  	// ReportDefinitionId: Report Definition ID.
  9899  	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
  9900  	// TimeRange: Required. Time range for the query. Can use the following
  9901  	// predefined strings to specify the time range: `last60minutes` `last24hours`
  9902  	// `last7days` Or, specify the timeRange as a structure describing start and
  9903  	// end timestamps in the ISO format: yyyy-mm-ddThh:mm:ssZ. Example:
  9904  	// "timeRange": { "start": "2018-07-29T00:13:00Z", "end":
  9905  	// "2018-08-01T00:18:00Z" }
  9906  	TimeRange interface{} `json:"timeRange,omitempty"`
  9907  	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
  9908  	// unconditionally include in API requests. By default, fields with empty or
  9909  	// default values are omitted from API requests. See
  9910  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9911  	// details.
  9912  	ForceSendFields []string `json:"-"`
  9913  	// NullFields is a list of field names (e.g. "CsvDelimiter") to include in API
  9914  	// requests with the JSON null value. By default, fields with empty values are
  9915  	// omitted from API requests. See
  9916  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9917  	NullFields []string `json:"-"`
  9918  }
  9919  
  9920  func (s *GoogleCloudApigeeV1SecurityReportQuery) MarshalJSON() ([]byte, error) {
  9921  	type NoMethod GoogleCloudApigeeV1SecurityReportQuery
  9922  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9923  }
  9924  
  9925  // GoogleCloudApigeeV1SecurityReportQueryMetric: Metric of the Query
  9926  type GoogleCloudApigeeV1SecurityReportQueryMetric struct {
  9927  	// AggregationFunction: Aggregation function: avg, min, max, or sum.
  9928  	AggregationFunction string `json:"aggregationFunction,omitempty"`
  9929  	// Alias: Alias for the metric. Alias will be used to replace metric name in
  9930  	// query results.
  9931  	Alias string `json:"alias,omitempty"`
  9932  	// Name: Required. Metric name.
  9933  	Name string `json:"name,omitempty"`
  9934  	// Operator: One of `+`, `-`, `/`, `%`, `*`.
  9935  	Operator string `json:"operator,omitempty"`
  9936  	// Value: Operand value should be provided when operator is set.
  9937  	Value string `json:"value,omitempty"`
  9938  	// ForceSendFields is a list of field names (e.g. "AggregationFunction") to
  9939  	// unconditionally include in API requests. By default, fields with empty or
  9940  	// default values are omitted from API requests. See
  9941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9942  	// details.
  9943  	ForceSendFields []string `json:"-"`
  9944  	// NullFields is a list of field names (e.g. "AggregationFunction") to include
  9945  	// in API requests with the JSON null value. By default, fields with empty
  9946  	// values are omitted from API requests. See
  9947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9948  	NullFields []string `json:"-"`
  9949  }
  9950  
  9951  func (s *GoogleCloudApigeeV1SecurityReportQueryMetric) MarshalJSON() ([]byte, error) {
  9952  	type NoMethod GoogleCloudApigeeV1SecurityReportQueryMetric
  9953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9954  }
  9955  
  9956  // GoogleCloudApigeeV1SecurityReportResultMetadata: Contains informations about
  9957  // the security report results.
  9958  type GoogleCloudApigeeV1SecurityReportResultMetadata struct {
  9959  	// Expires: Output only. Expire_time is set to 7 days after report creation.
  9960  	// Query result will be unaccessable after this time. Example:
  9961  	// "2021-05-04T13:38:52-07:00"
  9962  	Expires string `json:"expires,omitempty"`
  9963  	// Self: Self link of the query results. Example:
  9964  	// `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-a
  9965  	// e6f-318d0cb961bd/result` or following format if query is running at host
  9966  	// level:
  9967  	// `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961b
  9968  	// d/result`
  9969  	Self string `json:"self,omitempty"`
  9970  	// ForceSendFields is a list of field names (e.g. "Expires") to unconditionally
  9971  	// include in API requests. By default, fields with empty or default values are
  9972  	// omitted from API requests. See
  9973  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9974  	// details.
  9975  	ForceSendFields []string `json:"-"`
  9976  	// NullFields is a list of field names (e.g. "Expires") to include in API
  9977  	// requests with the JSON null value. By default, fields with empty values are
  9978  	// omitted from API requests. See
  9979  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9980  	NullFields []string `json:"-"`
  9981  }
  9982  
  9983  func (s *GoogleCloudApigeeV1SecurityReportResultMetadata) MarshalJSON() ([]byte, error) {
  9984  	type NoMethod GoogleCloudApigeeV1SecurityReportResultMetadata
  9985  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9986  }
  9987  
  9988  // GoogleCloudApigeeV1SecurityReportResultView: The response for security
  9989  // report result view APIs.
  9990  type GoogleCloudApigeeV1SecurityReportResultView struct {
  9991  	// Code: Error code when there is a failure.
  9992  	Code int64 `json:"code,omitempty"`
  9993  	// Error: Error message when there is a failure.
  9994  	Error string `json:"error,omitempty"`
  9995  	// Metadata: Metadata contains information like metrics, dimenstions etc of the
  9996  	// security report.
  9997  	Metadata *GoogleCloudApigeeV1SecurityReportMetadata `json:"metadata,omitempty"`
  9998  	// Rows: Rows of security report result. Each row is a JSON object. Example:
  9999  	// {sum(message_count): 1, developer_app: "(not set)",…}
 10000  	Rows []interface{} `json:"rows,omitempty"`
 10001  	// State: State of retrieving ResultView.
 10002  	State string `json:"state,omitempty"`
 10003  
 10004  	// ServerResponse contains the HTTP response code and headers from the server.
 10005  	googleapi.ServerResponse `json:"-"`
 10006  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 10007  	// include in API requests. By default, fields with empty or default values are
 10008  	// omitted from API requests. See
 10009  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10010  	// details.
 10011  	ForceSendFields []string `json:"-"`
 10012  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 10013  	// with the JSON null value. By default, fields with empty values are omitted
 10014  	// from API requests. See
 10015  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10016  	NullFields []string `json:"-"`
 10017  }
 10018  
 10019  func (s *GoogleCloudApigeeV1SecurityReportResultView) MarshalJSON() ([]byte, error) {
 10020  	type NoMethod GoogleCloudApigeeV1SecurityReportResultView
 10021  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10022  }
 10023  
 10024  // GoogleCloudApigeeV1SecuritySettings: SecuritySettings reflects the current
 10025  // state of the SecuritySettings feature.
 10026  type GoogleCloudApigeeV1SecuritySettings struct {
 10027  	// MlRetrainingFeedbackEnabled: Optional. If true the user consents to the use
 10028  	// of ML models for Abuse detection.
 10029  	MlRetrainingFeedbackEnabled bool `json:"mlRetrainingFeedbackEnabled,omitempty"`
 10030  	// Name: Identifier. Full resource name is always
 10031  	// `organizations/{org}/securitySettings`.
 10032  	Name string `json:"name,omitempty"`
 10033  
 10034  	// ServerResponse contains the HTTP response code and headers from the server.
 10035  	googleapi.ServerResponse `json:"-"`
 10036  	// ForceSendFields is a list of field names (e.g.
 10037  	// "MlRetrainingFeedbackEnabled") to unconditionally include in API requests.
 10038  	// By default, fields with empty or default values are omitted from API
 10039  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 10040  	// for more details.
 10041  	ForceSendFields []string `json:"-"`
 10042  	// NullFields is a list of field names (e.g. "MlRetrainingFeedbackEnabled") to
 10043  	// include in API requests with the JSON null value. By default, fields with
 10044  	// empty values are omitted from API requests. See
 10045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10046  	NullFields []string `json:"-"`
 10047  }
 10048  
 10049  func (s *GoogleCloudApigeeV1SecuritySettings) MarshalJSON() ([]byte, error) {
 10050  	type NoMethod GoogleCloudApigeeV1SecuritySettings
 10051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10052  }
 10053  
 10054  type GoogleCloudApigeeV1ServiceIssuersMapping struct {
 10055  	// EmailIds: List of trusted issuer email ids.
 10056  	EmailIds []string `json:"emailIds,omitempty"`
 10057  	// Service: String indicating the Apigee service name.
 10058  	Service string `json:"service,omitempty"`
 10059  	// ForceSendFields is a list of field names (e.g. "EmailIds") to
 10060  	// unconditionally include in API requests. By default, fields with empty or
 10061  	// default values are omitted from API requests. See
 10062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10063  	// details.
 10064  	ForceSendFields []string `json:"-"`
 10065  	// NullFields is a list of field names (e.g. "EmailIds") to include in API
 10066  	// requests with the JSON null value. By default, fields with empty values are
 10067  	// omitted from API requests. See
 10068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10069  	NullFields []string `json:"-"`
 10070  }
 10071  
 10072  func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
 10073  	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
 10074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10075  }
 10076  
 10077  // GoogleCloudApigeeV1Session: Session carries the debug session id and its
 10078  // creation time.
 10079  type GoogleCloudApigeeV1Session struct {
 10080  	// Id: The debug session ID.
 10081  	Id string `json:"id,omitempty"`
 10082  	// TimestampMs: The first transaction creation timestamp in millisecond,
 10083  	// recorded by UAP.
 10084  	TimestampMs int64 `json:"timestampMs,omitempty,string"`
 10085  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
 10086  	// include in API requests. By default, fields with empty or default values are
 10087  	// omitted from API requests. See
 10088  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10089  	// details.
 10090  	ForceSendFields []string `json:"-"`
 10091  	// NullFields is a list of field names (e.g. "Id") to include in API requests
 10092  	// with the JSON null value. By default, fields with empty values are omitted
 10093  	// from API requests. See
 10094  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10095  	NullFields []string `json:"-"`
 10096  }
 10097  
 10098  func (s *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
 10099  	type NoMethod GoogleCloudApigeeV1Session
 10100  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10101  }
 10102  
 10103  // GoogleCloudApigeeV1SetAddonEnablementRequest: Request for
 10104  // SetAddonEnablement.
 10105  type GoogleCloudApigeeV1SetAddonEnablementRequest struct {
 10106  	// AnalyticsEnabled: If the Analytics should be enabled in the environment.
 10107  	AnalyticsEnabled bool `json:"analyticsEnabled,omitempty"`
 10108  	// ApiSecurityEnabled: If the API Security should be enabled in the
 10109  	// environment.
 10110  	ApiSecurityEnabled bool `json:"apiSecurityEnabled,omitempty"`
 10111  	// ForceSendFields is a list of field names (e.g. "AnalyticsEnabled") to
 10112  	// unconditionally include in API requests. By default, fields with empty or
 10113  	// default values are omitted from API requests. See
 10114  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10115  	// details.
 10116  	ForceSendFields []string `json:"-"`
 10117  	// NullFields is a list of field names (e.g. "AnalyticsEnabled") to include in
 10118  	// API requests with the JSON null value. By default, fields with empty values
 10119  	// are omitted from API requests. See
 10120  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10121  	NullFields []string `json:"-"`
 10122  }
 10123  
 10124  func (s *GoogleCloudApigeeV1SetAddonEnablementRequest) MarshalJSON() ([]byte, error) {
 10125  	type NoMethod GoogleCloudApigeeV1SetAddonEnablementRequest
 10126  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10127  }
 10128  
 10129  // GoogleCloudApigeeV1SetAddonsRequest: Request for SetAddons.
 10130  type GoogleCloudApigeeV1SetAddonsRequest struct {
 10131  	// AddonsConfig: Required. Add-on configurations.
 10132  	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
 10133  	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
 10134  	// unconditionally include in API requests. By default, fields with empty or
 10135  	// default values are omitted from API requests. See
 10136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10137  	// details.
 10138  	ForceSendFields []string `json:"-"`
 10139  	// NullFields is a list of field names (e.g. "AddonsConfig") to include in API
 10140  	// requests with the JSON null value. By default, fields with empty values are
 10141  	// omitted from API requests. See
 10142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10143  	NullFields []string `json:"-"`
 10144  }
 10145  
 10146  func (s *GoogleCloudApigeeV1SetAddonsRequest) MarshalJSON() ([]byte, error) {
 10147  	type NoMethod GoogleCloudApigeeV1SetAddonsRequest
 10148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10149  }
 10150  
 10151  // GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
 10152  type GoogleCloudApigeeV1SharedFlow struct {
 10153  	// LatestRevisionId: The id of the most recently created revision for this
 10154  	// shared flow.
 10155  	LatestRevisionId string `json:"latestRevisionId,omitempty"`
 10156  	// MetaData: Metadata describing the shared flow.
 10157  	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
 10158  	// Name: The ID of the shared flow.
 10159  	Name string `json:"name,omitempty"`
 10160  	// Revision: A list of revisions of this shared flow.
 10161  	Revision []string `json:"revision,omitempty"`
 10162  
 10163  	// ServerResponse contains the HTTP response code and headers from the server.
 10164  	googleapi.ServerResponse `json:"-"`
 10165  	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
 10166  	// unconditionally include in API requests. By default, fields with empty or
 10167  	// default values are omitted from API requests. See
 10168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10169  	// details.
 10170  	ForceSendFields []string `json:"-"`
 10171  	// NullFields is a list of field names (e.g. "LatestRevisionId") to include in
 10172  	// API requests with the JSON null value. By default, fields with empty values
 10173  	// are omitted from API requests. See
 10174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10175  	NullFields []string `json:"-"`
 10176  }
 10177  
 10178  func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
 10179  	type NoMethod GoogleCloudApigeeV1SharedFlow
 10180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10181  }
 10182  
 10183  // GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a shared flow
 10184  // revision.
 10185  type GoogleCloudApigeeV1SharedFlowRevision struct {
 10186  	// ConfigurationVersion: The version of the configuration schema to which this
 10187  	// shared flow conforms. The only supported value currently is majorVersion 4
 10188  	// and minorVersion 0. This setting may be used in the future to enable
 10189  	// evolution of the shared flow format.
 10190  	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
 10191  	// ContextInfo: A textual description of the shared flow revision.
 10192  	ContextInfo string `json:"contextInfo,omitempty"`
 10193  	// CreatedAt: Time at which this shared flow revision was created, in
 10194  	// milliseconds since epoch.
 10195  	CreatedAt int64 `json:"createdAt,omitempty,string"`
 10196  	// Description: Description of the shared flow revision.
 10197  	Description string `json:"description,omitempty"`
 10198  	// DisplayName: The human readable name of this shared flow.
 10199  	DisplayName string `json:"displayName,omitempty"`
 10200  	// EntityMetaDataAsProperties: A Key-Value map of metadata about this shared
 10201  	// flow revision.
 10202  	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
 10203  	// LastModifiedAt: Time at which this shared flow revision was most recently
 10204  	// modified, in milliseconds since epoch.
 10205  	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
 10206  	// Name: The resource ID of the parent shared flow.
 10207  	Name string `json:"name,omitempty"`
 10208  	// Policies: A list of policy names included in this shared flow revision.
 10209  	Policies []string `json:"policies,omitempty"`
 10210  	// ResourceFiles: The resource files included in this shared flow revision.
 10211  	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
 10212  	// Resources: A list of the resources included in this shared flow revision
 10213  	// formatted as "{type}://{name}".
 10214  	Resources []string `json:"resources,omitempty"`
 10215  	// Revision: The resource ID of this revision.
 10216  	Revision string `json:"revision,omitempty"`
 10217  	// SharedFlows: A list of the shared flow names included in this shared flow
 10218  	// revision.
 10219  	SharedFlows []string `json:"sharedFlows,omitempty"`
 10220  	// Type: The string "Application"
 10221  	Type string `json:"type,omitempty"`
 10222  
 10223  	// ServerResponse contains the HTTP response code and headers from the server.
 10224  	googleapi.ServerResponse `json:"-"`
 10225  	// ForceSendFields is a list of field names (e.g. "ConfigurationVersion") to
 10226  	// unconditionally include in API requests. By default, fields with empty or
 10227  	// default values are omitted from API requests. See
 10228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10229  	// details.
 10230  	ForceSendFields []string `json:"-"`
 10231  	// NullFields is a list of field names (e.g. "ConfigurationVersion") to include
 10232  	// in API requests with the JSON null value. By default, fields with empty
 10233  	// values are omitted from API requests. See
 10234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10235  	NullFields []string `json:"-"`
 10236  }
 10237  
 10238  func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
 10239  	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
 10240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10241  }
 10242  
 10243  // GoogleCloudApigeeV1Stats: Encapsulates a `stats` response.
 10244  type GoogleCloudApigeeV1Stats struct {
 10245  	// Environments: List of query results on the environment level.
 10246  	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
 10247  	// Hosts: List of query results grouped by host.
 10248  	Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
 10249  	// MetaData: Metadata information.
 10250  	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
 10251  
 10252  	// ServerResponse contains the HTTP response code and headers from the server.
 10253  	googleapi.ServerResponse `json:"-"`
 10254  	// ForceSendFields is a list of field names (e.g. "Environments") to
 10255  	// unconditionally include in API requests. By default, fields with empty or
 10256  	// default values are omitted from API requests. See
 10257  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10258  	// details.
 10259  	ForceSendFields []string `json:"-"`
 10260  	// NullFields is a list of field names (e.g. "Environments") to include in API
 10261  	// requests with the JSON null value. By default, fields with empty values are
 10262  	// omitted from API requests. See
 10263  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10264  	NullFields []string `json:"-"`
 10265  }
 10266  
 10267  func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
 10268  	type NoMethod GoogleCloudApigeeV1Stats
 10269  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10270  }
 10271  
 10272  // GoogleCloudApigeeV1StatsEnvironmentStats: Encapsulates the environment
 10273  // wrapper: ``` "environments": [ { "metrics": [ { "name":
 10274  // "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name": "prod" }
 10275  // ]```
 10276  type GoogleCloudApigeeV1StatsEnvironmentStats struct {
 10277  	// Dimensions: List of metrics grouped under dimensions.
 10278  	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
 10279  	// Metrics: In the final response, only one of the following fields will be
 10280  	// present based on the dimensions provided. If no dimensions are provided,
 10281  	// then only top-level metrics is provided. If dimensions are included, then
 10282  	// there will be a top-level dimensions field under environments which will
 10283  	// contain metrics values and the dimension name. Example: ``` "environments":
 10284  	// [ { "dimensions": [ { "metrics": [ { "name": "sum(message_count)", "values":
 10285  	// [ "2.14049521E8" ] } ], "name": "nit_proxy" } ], "name": "prod" } ]``` or
 10286  	// ``"environments": [ { "metrics": [ { "name": "sum(message_count)",
 10287  	// "values": [ "2.19026331E8" ] } ], "name": "prod" } ]``` List of metric
 10288  	// values.
 10289  	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
 10290  	// Name: Name of the environment.
 10291  	Name string `json:"name,omitempty"`
 10292  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
 10293  	// unconditionally include in API requests. By default, fields with empty or
 10294  	// default values are omitted from API requests. See
 10295  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10296  	// details.
 10297  	ForceSendFields []string `json:"-"`
 10298  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
 10299  	// requests with the JSON null value. By default, fields with empty values are
 10300  	// omitted from API requests. See
 10301  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10302  	NullFields []string `json:"-"`
 10303  }
 10304  
 10305  func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
 10306  	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
 10307  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10308  }
 10309  
 10310  // GoogleCloudApigeeV1StatsHostStats: Encapsulates the hostname wrapper: ```
 10311  // "hosts": [ { "metrics": [ { "name": "sum(message_count)", "values": [
 10312  // "2.52056245E8" ] } ], "name": "example.com" } ]```
 10313  type GoogleCloudApigeeV1StatsHostStats struct {
 10314  	// Dimensions: List of metrics grouped under dimensions.
 10315  	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
 10316  	// Metrics: In the final response, only one of the following fields will be
 10317  	// present based on the dimensions provided. If no dimensions are provided,
 10318  	// then only the top-level metrics are provided. If dimensions are included,
 10319  	// then there will be a top-level dimensions field under hostnames which will
 10320  	// contain metrics values and the dimension name. Example: ``` "hosts": [ {
 10321  	// "dimensions": [ { "metrics": [ { "name": "sum(message_count)", "values": [
 10322  	// "2.14049521E8" ] } ], "name": "nit_proxy" } ], "name": "example.com" } ]```
 10323  	// OR ``"hosts": [ { "metrics": [ { "name": "sum(message_count)", "values": [
 10324  	// "2.19026331E8" ] } ], "name": "example.com" } ]``` List of metric values.
 10325  	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
 10326  	// Name: Hostname used in query.
 10327  	Name string `json:"name,omitempty"`
 10328  	// ForceSendFields is a list of field names (e.g. "Dimensions") to
 10329  	// unconditionally include in API requests. By default, fields with empty or
 10330  	// default values are omitted from API requests. See
 10331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10332  	// details.
 10333  	ForceSendFields []string `json:"-"`
 10334  	// NullFields is a list of field names (e.g. "Dimensions") to include in API
 10335  	// requests with the JSON null value. By default, fields with empty values are
 10336  	// omitted from API requests. See
 10337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10338  	NullFields []string `json:"-"`
 10339  }
 10340  
 10341  func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
 10342  	type NoMethod GoogleCloudApigeeV1StatsHostStats
 10343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10344  }
 10345  
 10346  // GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an environment.
 10347  type GoogleCloudApigeeV1Subscription struct {
 10348  	// Name: Full name of the Pub/Sub subcription. Use the following structure in
 10349  	// your request: `subscription "projects/foo/subscription/bar"
 10350  	Name string `json:"name,omitempty"`
 10351  
 10352  	// ServerResponse contains the HTTP response code and headers from the server.
 10353  	googleapi.ServerResponse `json:"-"`
 10354  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 10355  	// include in API requests. By default, fields with empty or default values are
 10356  	// omitted from API requests. See
 10357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10358  	// details.
 10359  	ForceSendFields []string `json:"-"`
 10360  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 10361  	// with the JSON null value. By default, fields with empty values are omitted
 10362  	// from API requests. See
 10363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10364  	NullFields []string `json:"-"`
 10365  }
 10366  
 10367  func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
 10368  	type NoMethod GoogleCloudApigeeV1Subscription
 10369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10370  }
 10371  
 10372  type GoogleCloudApigeeV1SyncAuthorization struct {
 10373  	// Etag: Entity tag (ETag) used for optimistic concurrency control as a way to
 10374  	// help prevent simultaneous updates from overwriting each other. For example,
 10375  	// when you call getSyncAuthorization (organizations/getSyncAuthorization) an
 10376  	// ETag is returned in the response. Pass that ETag when calling the
 10377  	// setSyncAuthorization (organizations/setSyncAuthorization) to ensure that you
 10378  	// are updating the correct version. If you don't pass the ETag in the call to
 10379  	// `setSyncAuthorization`, then the existing authorization is overwritten
 10380  	// indiscriminately. **Note**: We strongly recommend that you use the ETag in
 10381  	// the read-modify-write cycle to avoid race conditions.
 10382  	Etag string `json:"etag,omitempty"`
 10383  	// Identities: Required. Array of service accounts to grant access to control
 10384  	// plane resources, each specified using the following format:
 10385  	// `serviceAccount:` service-account-name. The service-account-name is
 10386  	// formatted like an email address. For example:
 10387  	// `my-synchronizer-manager-service_account@my_project_id.iam.gserviceaccount.co
 10388  	// m` You might specify multiple service accounts, for example, if you have
 10389  	// multiple environments and wish to assign a unique service account to each
 10390  	// one. The service accounts must have **Apigee Synchronizer Manager** role.
 10391  	// See also Create service accounts
 10392  	// (https://cloud.google.com/apigee/docs/hybrid/latest/sa-about#create-the-service-accounts).
 10393  	Identities []string `json:"identities,omitempty"`
 10394  
 10395  	// ServerResponse contains the HTTP response code and headers from the server.
 10396  	googleapi.ServerResponse `json:"-"`
 10397  	// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally
 10398  	// include in API requests. By default, fields with empty or default values are
 10399  	// omitted from API requests. See
 10400  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10401  	// details.
 10402  	ForceSendFields []string `json:"-"`
 10403  	// NullFields is a list of field names (e.g. "Etag") to include in API requests
 10404  	// with the JSON null value. By default, fields with empty values are omitted
 10405  	// from API requests. See
 10406  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10407  	NullFields []string `json:"-"`
 10408  }
 10409  
 10410  func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
 10411  	type NoMethod GoogleCloudApigeeV1SyncAuthorization
 10412  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10413  }
 10414  
 10415  // GoogleCloudApigeeV1TargetServer: TargetServer configuration. TargetServers
 10416  // are used to decouple a proxy TargetEndpoint HTTPTargetConnections from
 10417  // concrete URLs for backend services.
 10418  type GoogleCloudApigeeV1TargetServer struct {
 10419  	// Description: Optional. A human-readable description of this TargetServer.
 10420  	Description string `json:"description,omitempty"`
 10421  	// Host: Required. The host name this target connects to. Value must be a valid
 10422  	// hostname as described by RFC-1123.
 10423  	Host string `json:"host,omitempty"`
 10424  	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
 10425  	// TargetServers are used in load balancing configurations, and one or more
 10426  	// TargetServers need to taken out of rotation periodically. Defaults to true.
 10427  	IsEnabled bool `json:"isEnabled,omitempty"`
 10428  	// Name: Required. The resource id of this target server. Values must match the
 10429  	// regular expression
 10430  	Name string `json:"name,omitempty"`
 10431  	// Port: Required. The port number this target connects to on the given host.
 10432  	// Value must be between 1 and 65535, inclusive.
 10433  	Port int64 `json:"port,omitempty"`
 10434  	// Protocol: Immutable. The protocol used by this TargetServer.
 10435  	//
 10436  	// Possible values:
 10437  	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
 10438  	// compatibility.
 10439  	//   "HTTP" - The TargetServer uses HTTP.
 10440  	//   "HTTP2" - The TargetSever uses HTTP2.
 10441  	//   "GRPC_TARGET" - The TargetServer uses GRPC.
 10442  	//   "GRPC" - GRPC TargetServer to be used in ExternalCallout Policy. Prefer to
 10443  	// use EXTERNAL_CALLOUT instead. TODO(b/266125112) deprecate once EXTERNAL
 10444  	// _CALLOUT generally available.
 10445  	//   "EXTERNAL_CALLOUT" - The TargetServer is to be used in the ExternalCallout
 10446  	// Policy
 10447  	Protocol string `json:"protocol,omitempty"`
 10448  	// SSLInfo: Optional. Specifies TLS configuration info for this TargetServer.
 10449  	// The JSON name is `sSLInfo` for legacy/backwards compatibility reasons --
 10450  	// Edge originally supported SSL, and the name is still used for TLS
 10451  	// configuration.
 10452  	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
 10453  
 10454  	// ServerResponse contains the HTTP response code and headers from the server.
 10455  	googleapi.ServerResponse `json:"-"`
 10456  	// ForceSendFields is a list of field names (e.g. "Description") to
 10457  	// unconditionally include in API requests. By default, fields with empty or
 10458  	// default values are omitted from API requests. See
 10459  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10460  	// details.
 10461  	ForceSendFields []string `json:"-"`
 10462  	// NullFields is a list of field names (e.g. "Description") to include in API
 10463  	// requests with the JSON null value. By default, fields with empty values are
 10464  	// omitted from API requests. See
 10465  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10466  	NullFields []string `json:"-"`
 10467  }
 10468  
 10469  func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
 10470  	type NoMethod GoogleCloudApigeeV1TargetServer
 10471  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10472  }
 10473  
 10474  type GoogleCloudApigeeV1TargetServerConfig struct {
 10475  	// Enabled: Whether the target server is enabled. An empty/omitted value for
 10476  	// this field should be interpreted as true.
 10477  	Enabled bool `json:"enabled,omitempty"`
 10478  	// Host: Host name of the target server.
 10479  	Host string `json:"host,omitempty"`
 10480  	// Name: Target server revision name in the following format:
 10481  	// `organizations/{org}/environments/{env}/targetservers/{targetserver}/revision
 10482  	// s/{rev}`
 10483  	Name string `json:"name,omitempty"`
 10484  	// Port: Port number for the target server.
 10485  	Port int64 `json:"port,omitempty"`
 10486  	// Protocol: The protocol used by this target server.
 10487  	//
 10488  	// Possible values:
 10489  	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
 10490  	// compatibility.
 10491  	//   "HTTP" - The TargetServer uses HTTP.
 10492  	//   "HTTP2" - The TargetSever uses HTTP2.
 10493  	//   "GRPC_TARGET" - The TargetServer uses GRPC.
 10494  	//   "GRPC" - GRPC TargetServer to be used in ExternalCallout Policy. Prefer to
 10495  	// use EXTERNAL_CALLOUT instead. TODO(b/266125112) deprecate once EXTERNAL
 10496  	// _CALLOUT generally available.
 10497  	//   "EXTERNAL_CALLOUT" - The TargetServer is to be used in the ExternalCallout
 10498  	// Policy
 10499  	Protocol string `json:"protocol,omitempty"`
 10500  	// TlsInfo: TLS settings for the target server.
 10501  	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
 10502  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
 10503  	// include in API requests. By default, fields with empty or default values are
 10504  	// omitted from API requests. See
 10505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10506  	// details.
 10507  	ForceSendFields []string `json:"-"`
 10508  	// NullFields is a list of field names (e.g. "Enabled") to include in API
 10509  	// requests with the JSON null value. By default, fields with empty values are
 10510  	// omitted from API requests. See
 10511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10512  	NullFields []string `json:"-"`
 10513  }
 10514  
 10515  func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
 10516  	type NoMethod GoogleCloudApigeeV1TargetServerConfig
 10517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10518  }
 10519  
 10520  // GoogleCloudApigeeV1TestDatastoreResponse: The response for TestDatastore
 10521  type GoogleCloudApigeeV1TestDatastoreResponse struct {
 10522  	// Error: Output only. Error message of test connection failure
 10523  	Error string `json:"error,omitempty"`
 10524  	// State: Output only. It could be `completed` or `failed`
 10525  	State string `json:"state,omitempty"`
 10526  
 10527  	// ServerResponse contains the HTTP response code and headers from the server.
 10528  	googleapi.ServerResponse `json:"-"`
 10529  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 10530  	// include in API requests. By default, fields with empty or default values are
 10531  	// omitted from API requests. See
 10532  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10533  	// details.
 10534  	ForceSendFields []string `json:"-"`
 10535  	// NullFields is a list of field names (e.g. "Error") to include in API
 10536  	// requests with the JSON null value. By default, fields with empty values are
 10537  	// omitted from API requests. See
 10538  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10539  	NullFields []string `json:"-"`
 10540  }
 10541  
 10542  func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
 10543  	type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
 10544  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10545  }
 10546  
 10547  // GoogleCloudApigeeV1TlsInfo: TLS configuration information for virtual hosts
 10548  // and TargetServers.
 10549  type GoogleCloudApigeeV1TlsInfo struct {
 10550  	// Ciphers: The SSL/TLS cipher suites to be used. For programmable proxies, it
 10551  	// must be one of the cipher suite names listed in:
 10552  	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites.
 10553  	// For configurable proxies, it must follow the configuration specified in:
 10554  	// https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#Cipher-suite-configuration.
 10555  	// This setting has no effect for configurable proxies when negotiating TLS
 10556  	// 1.3.
 10557  	Ciphers []string `json:"ciphers,omitempty"`
 10558  	// ClientAuthEnabled: Optional. Enables two-way TLS.
 10559  	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
 10560  	// CommonName: The TLS Common Name of the certificate.
 10561  	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
 10562  	// Enabled: Required. Enables TLS. If false, neither one-way nor two-way TLS
 10563  	// will be enabled.
 10564  	Enabled bool `json:"enabled,omitempty"`
 10565  	// Enforce: TLS is strictly enforced.
 10566  	Enforce bool `json:"enforce,omitempty"`
 10567  	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors. Valid
 10568  	// when configuring TLS for target servers and target endpoints, and when
 10569  	// configuring virtual hosts that use 2-way TLS. When used with a target
 10570  	// endpoint/target server, if the backend system uses SNI and returns a cert
 10571  	// with a subject Distinguished Name (DN) that does not match the hostname,
 10572  	// there is no way to ignore the error and the connection fails.
 10573  	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
 10574  	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID for the
 10575  	// alias containing the private key and cert.
 10576  	KeyAlias string `json:"keyAlias,omitempty"`
 10577  	// KeyStore: Required if `client_auth_enabled` is true. The resource ID of the
 10578  	// keystore.
 10579  	KeyStore string `json:"keyStore,omitempty"`
 10580  	// Protocols: The TLS versioins to be used.
 10581  	Protocols []string `json:"protocols,omitempty"`
 10582  	// TrustStore: The resource ID of the truststore.
 10583  	TrustStore string `json:"trustStore,omitempty"`
 10584  	// ForceSendFields is a list of field names (e.g. "Ciphers") to unconditionally
 10585  	// include in API requests. By default, fields with empty or default values are
 10586  	// omitted from API requests. See
 10587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10588  	// details.
 10589  	ForceSendFields []string `json:"-"`
 10590  	// NullFields is a list of field names (e.g. "Ciphers") to include in API
 10591  	// requests with the JSON null value. By default, fields with empty values are
 10592  	// omitted from API requests. See
 10593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10594  	NullFields []string `json:"-"`
 10595  }
 10596  
 10597  func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
 10598  	type NoMethod GoogleCloudApigeeV1TlsInfo
 10599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10600  }
 10601  
 10602  type GoogleCloudApigeeV1TlsInfoCommonName struct {
 10603  	// Value: The TLS Common Name string of the certificate.
 10604  	Value string `json:"value,omitempty"`
 10605  	// WildcardMatch: Indicates whether the cert should be matched against as a
 10606  	// wildcard cert.
 10607  	WildcardMatch bool `json:"wildcardMatch,omitempty"`
 10608  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
 10609  	// include in API requests. By default, fields with empty or default values are
 10610  	// omitted from API requests. See
 10611  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10612  	// details.
 10613  	ForceSendFields []string `json:"-"`
 10614  	// NullFields is a list of field names (e.g. "Value") to include in API
 10615  	// requests with the JSON null value. By default, fields with empty values are
 10616  	// omitted from API requests. See
 10617  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10618  	NullFields []string `json:"-"`
 10619  }
 10620  
 10621  func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
 10622  	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
 10623  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10624  }
 10625  
 10626  type GoogleCloudApigeeV1TlsInfoConfig struct {
 10627  	// Ciphers: List of ciphers that are granted access.
 10628  	Ciphers []string `json:"ciphers,omitempty"`
 10629  	// ClientAuthEnabled: Flag that specifies whether client-side authentication is
 10630  	// enabled for the target server. Enables two-way TLS.
 10631  	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
 10632  	// CommonName: Common name to validate the target server against.
 10633  	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
 10634  	// Enabled: Flag that specifies whether one-way TLS is enabled. Set to `true`
 10635  	// to enable one-way TLS.
 10636  	Enabled bool `json:"enabled,omitempty"`
 10637  	// Enforce: Flag that enforces TLS settings
 10638  	Enforce bool `json:"enforce,omitempty"`
 10639  	// IgnoreValidationErrors: Flag that specifies whether to ignore TLS
 10640  	// certificate validation errors. Set to `true` to ignore errors.
 10641  	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
 10642  	// KeyAlias: Name of the alias used for client-side authentication in the
 10643  	// following format:
 10644  	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`
 10645  	KeyAlias string `json:"keyAlias,omitempty"`
 10646  	// KeyAliasReference: Reference name and alias pair to use for client-side
 10647  	// authentication.
 10648  	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
 10649  	// Protocols: List of TLS protocols that are granted access.
 10650  	Protocols []string `json:"protocols,omitempty"`
 10651  	// TrustStore: Name of the keystore or keystore reference containing trusted
 10652  	// certificates for the server in the following format:
 10653  	// `organizations/{org}/environments/{env}/keystores/{keystore}` or
 10654  	// `organizations/{org}/environments/{env}/references/{reference}`
 10655  	TrustStore string `json:"trustStore,omitempty"`
 10656  	// ForceSendFields is a list of field names (e.g. "Ciphers") to unconditionally
 10657  	// include in API requests. By default, fields with empty or default values are
 10658  	// omitted from API requests. See
 10659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10660  	// details.
 10661  	ForceSendFields []string `json:"-"`
 10662  	// NullFields is a list of field names (e.g. "Ciphers") to include in API
 10663  	// requests with the JSON null value. By default, fields with empty values are
 10664  	// omitted from API requests. See
 10665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10666  	NullFields []string `json:"-"`
 10667  }
 10668  
 10669  func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
 10670  	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
 10671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10672  }
 10673  
 10674  // GoogleCloudApigeeV1TraceConfig: TraceConfig defines the configurations in an
 10675  // environment of distributed trace.
 10676  type GoogleCloudApigeeV1TraceConfig struct {
 10677  	// Endpoint: Required. Endpoint of the exporter.
 10678  	Endpoint string `json:"endpoint,omitempty"`
 10679  	// Exporter: Required. Exporter that is used to view the distributed trace
 10680  	// captured using OpenCensus. An exporter sends traces to any backend that is
 10681  	// capable of consuming them. Recorded spans can be exported by registered
 10682  	// exporters.
 10683  	//
 10684  	// Possible values:
 10685  	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
 10686  	//   "JAEGER" - Jaeger exporter
 10687  	//   "CLOUD_TRACE" - Cloudtrace exporter
 10688  	Exporter string `json:"exporter,omitempty"`
 10689  	// SamplingConfig: Distributed trace configuration for all API proxies in an
 10690  	// environment. You can also override the configuration for a specific API
 10691  	// proxy using the distributed trace configuration overrides API.
 10692  	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
 10693  
 10694  	// ServerResponse contains the HTTP response code and headers from the server.
 10695  	googleapi.ServerResponse `json:"-"`
 10696  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
 10697  	// unconditionally include in API requests. By default, fields with empty or
 10698  	// default values are omitted from API requests. See
 10699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10700  	// details.
 10701  	ForceSendFields []string `json:"-"`
 10702  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
 10703  	// requests with the JSON null value. By default, fields with empty values are
 10704  	// omitted from API requests. See
 10705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10706  	NullFields []string `json:"-"`
 10707  }
 10708  
 10709  func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
 10710  	type NoMethod GoogleCloudApigeeV1TraceConfig
 10711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10712  }
 10713  
 10714  // GoogleCloudApigeeV1TraceConfigOverride: A representation of a configuration
 10715  // override.
 10716  type GoogleCloudApigeeV1TraceConfigOverride struct {
 10717  	// ApiProxy: ID of the API proxy that will have its trace configuration
 10718  	// overridden.
 10719  	ApiProxy string `json:"apiProxy,omitempty"`
 10720  	// Name: ID of the trace configuration override specified as a system-generated
 10721  	// UUID.
 10722  	Name string `json:"name,omitempty"`
 10723  	// SamplingConfig: Trace configuration to override.
 10724  	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
 10725  
 10726  	// ServerResponse contains the HTTP response code and headers from the server.
 10727  	googleapi.ServerResponse `json:"-"`
 10728  	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
 10729  	// unconditionally include in API requests. By default, fields with empty or
 10730  	// default values are omitted from API requests. See
 10731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10732  	// details.
 10733  	ForceSendFields []string `json:"-"`
 10734  	// NullFields is a list of field names (e.g. "ApiProxy") to include in API
 10735  	// requests with the JSON null value. By default, fields with empty values are
 10736  	// omitted from API requests. See
 10737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10738  	NullFields []string `json:"-"`
 10739  }
 10740  
 10741  func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
 10742  	type NoMethod GoogleCloudApigeeV1TraceConfigOverride
 10743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10744  }
 10745  
 10746  // GoogleCloudApigeeV1TraceSamplingConfig: TraceSamplingConfig represents the
 10747  // detail settings of distributed tracing. Only the fields that are defined in
 10748  // the distributed trace configuration can be overridden using the distribute
 10749  // trace configuration override APIs.
 10750  type GoogleCloudApigeeV1TraceSamplingConfig struct {
 10751  	// Sampler: Sampler of distributed tracing. OFF is the default value.
 10752  	//
 10753  	// Possible values:
 10754  	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
 10755  	//   "OFF" - OFF means distributed trace is disabled, or the sampling
 10756  	// probability is 0.
 10757  	//   "PROBABILITY" - PROBABILITY means traces are captured on a probability
 10758  	// that defined by sampling_rate. The sampling rate is limited to 0 to 0.5 when
 10759  	// this is set.
 10760  	Sampler string `json:"sampler,omitempty"`
 10761  	// SamplingRate: Field sampling rate. This value is only applicable when using
 10762  	// the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
 10763  	SamplingRate float64 `json:"samplingRate,omitempty"`
 10764  	// ForceSendFields is a list of field names (e.g. "Sampler") to unconditionally
 10765  	// include in API requests. By default, fields with empty or default values are
 10766  	// omitted from API requests. See
 10767  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10768  	// details.
 10769  	ForceSendFields []string `json:"-"`
 10770  	// NullFields is a list of field names (e.g. "Sampler") to include in API
 10771  	// requests with the JSON null value. By default, fields with empty values are
 10772  	// omitted from API requests. See
 10773  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10774  	NullFields []string `json:"-"`
 10775  }
 10776  
 10777  func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
 10778  	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
 10779  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10780  }
 10781  
 10782  func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
 10783  	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
 10784  	var s1 struct {
 10785  		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
 10786  		*NoMethod
 10787  	}
 10788  	s1.NoMethod = (*NoMethod)(s)
 10789  	if err := json.Unmarshal(data, &s1); err != nil {
 10790  		return err
 10791  	}
 10792  	s.SamplingRate = float64(s1.SamplingRate)
 10793  	return nil
 10794  }
 10795  
 10796  // GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest: Request for
 10797  // UpdateAppGroupAppKey
 10798  type GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest struct {
 10799  	// Action: Approve or revoke the consumer key by setting this value to
 10800  	// `approve` or `revoke` respectively. The `Content-Type` header, if set, must
 10801  	// be set to `application/octet-stream`, with empty body.
 10802  	Action string `json:"action,omitempty"`
 10803  	// ApiProducts: The list of API products that will be associated with the
 10804  	// credential. This list will be appended to the existing list of associated
 10805  	// API Products for this App Key. Duplicates will be ignored.
 10806  	ApiProducts []string `json:"apiProducts,omitempty"`
 10807  	// AppGroupAppKey: The new AppGroupKey to be amended. Note that the status can
 10808  	// be updated only via action.
 10809  	AppGroupAppKey *GoogleCloudApigeeV1AppGroupAppKey `json:"appGroupAppKey,omitempty"`
 10810  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 10811  	// include in API requests. By default, fields with empty or default values are
 10812  	// omitted from API requests. See
 10813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10814  	// details.
 10815  	ForceSendFields []string `json:"-"`
 10816  	// NullFields is a list of field names (e.g. "Action") to include in API
 10817  	// requests with the JSON null value. By default, fields with empty values are
 10818  	// omitted from API requests. See
 10819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10820  	NullFields []string `json:"-"`
 10821  }
 10822  
 10823  func (s *GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest) MarshalJSON() ([]byte, error) {
 10824  	type NoMethod GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest
 10825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10826  }
 10827  
 10828  // GoogleCloudApigeeV1UpdateError: Details on why a resource update failed in
 10829  // the runtime.
 10830  type GoogleCloudApigeeV1UpdateError struct {
 10831  	// Code: Status code.
 10832  	//
 10833  	// Possible values:
 10834  	//   "OK" - Not an error; returned on success. HTTP Mapping: 200 OK
 10835  	//   "CANCELLED" - The operation was cancelled, typically by the caller. HTTP
 10836  	// Mapping: 499 Client Closed Request
 10837  	//   "UNKNOWN" - Unknown error. For example, this error may be returned when a
 10838  	// `Status` value received from another address space belongs to an error space
 10839  	// that is not known in this address space. Also errors raised by APIs that do
 10840  	// not return enough error information may be converted to this error. HTTP
 10841  	// Mapping: 500 Internal Server Error
 10842  	//   "INVALID_ARGUMENT" - The client specified an invalid argument. Note that
 10843  	// this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates
 10844  	// arguments that are problematic regardless of the state of the system (e.g.,
 10845  	// a malformed file name). HTTP Mapping: 400 Bad Request
 10846  	//   "DEADLINE_EXCEEDED" - The deadline expired before the operation could
 10847  	// complete. For operations that change the state of the system, this error may
 10848  	// be returned even if the operation has completed successfully. For example, a
 10849  	// successful response from a server could have been delayed long enough for
 10850  	// the deadline to expire. HTTP Mapping: 504 Gateway Timeout
 10851  	//   "NOT_FOUND" - Some requested entity (e.g., file or directory) was not
 10852  	// found. Note to server developers: if a request is denied for an entire class
 10853  	// of users, such as gradual feature rollout or undocumented allowlist,
 10854  	// `NOT_FOUND` may be used. If a request is denied for some users within a
 10855  	// class of users, such as user-based access control, `PERMISSION_DENIED` must
 10856  	// be used. HTTP Mapping: 404 Not Found
 10857  	//   "ALREADY_EXISTS" - The entity that a client attempted to create (e.g.,
 10858  	// file or directory) already exists. HTTP Mapping: 409 Conflict
 10859  	//   "PERMISSION_DENIED" - The caller does not have permission to execute the
 10860  	// specified operation. `PERMISSION_DENIED` must not be used for rejections
 10861  	// caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for
 10862  	// those errors). `PERMISSION_DENIED` must not be used if the caller can not be
 10863  	// identified (use `UNAUTHENTICATED` instead for those errors). This error code
 10864  	// does not imply the request is valid or the requested entity exists or
 10865  	// satisfies other pre-conditions. HTTP Mapping: 403 Forbidden
 10866  	//   "UNAUTHENTICATED" - The request does not have valid authentication
 10867  	// credentials for the operation. HTTP Mapping: 401 Unauthorized
 10868  	//   "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a
 10869  	// per-user quota, or perhaps the entire file system is out of space. HTTP
 10870  	// Mapping: 429 Too Many Requests
 10871  	//   "FAILED_PRECONDITION" - The operation was rejected because the system is
 10872  	// not in a state required for the operation's execution. For example, the
 10873  	// directory to be deleted is non-empty, an rmdir operation is applied to a
 10874  	// non-directory, etc. Service implementors can use the following guidelines to
 10875  	// decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use
 10876  	// `UNAVAILABLE` if the client can retry just the failing call. (b) Use
 10877  	// `ABORTED` if the client should retry at a higher level. For example, when a
 10878  	// client-specified test-and-set fails, indicating the client should restart a
 10879  	// read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client
 10880  	// should not retry until the system state has been explicitly fixed. For
 10881  	// example, if an "rmdir" fails because the directory is non-empty,
 10882  	// `FAILED_PRECONDITION` should be returned since the client should not retry
 10883  	// unless the files are deleted from the directory. HTTP Mapping: 400 Bad
 10884  	// Request
 10885  	//   "ABORTED" - The operation was aborted, typically due to a concurrency
 10886  	// issue such as a sequencer check failure or transaction abort. See the
 10887  	// guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and
 10888  	// `UNAVAILABLE`. HTTP Mapping: 409 Conflict
 10889  	//   "OUT_OF_RANGE" - The operation was attempted past the valid range. E.g.,
 10890  	// seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error
 10891  	// indicates a problem that may be fixed if the system state changes. For
 10892  	// example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to
 10893  	// read at an offset that is not in the range [0,2^32-1], but it will generate
 10894  	// `OUT_OF_RANGE` if asked to read from an offset past the current file size.
 10895  	// There is a fair bit of overlap between `FAILED_PRECONDITION` and
 10896  	// `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error)
 10897  	// when it applies so that callers who are iterating through a space can easily
 10898  	// look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping:
 10899  	// 400 Bad Request
 10900  	//   "UNIMPLEMENTED" - The operation is not implemented or is not
 10901  	// supported/enabled in this service. HTTP Mapping: 501 Not Implemented
 10902  	//   "INTERNAL" - Internal errors. This means that some invariants expected by
 10903  	// the underlying system have been broken. This error code is reserved for
 10904  	// serious errors. HTTP Mapping: 500 Internal Server Error
 10905  	//   "UNAVAILABLE" - The service is currently unavailable. This is most likely
 10906  	// a transient condition, which can be corrected by retrying with a backoff.
 10907  	// Note that it is not always safe to retry non-idempotent operations. See the
 10908  	// guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and
 10909  	// `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable
 10910  	//   "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: 500
 10911  	// Internal Server Error
 10912  	Code string `json:"code,omitempty"`
 10913  	// Message: User-friendly error message.
 10914  	Message string `json:"message,omitempty"`
 10915  	// Resource: The sub resource specific to this error (e.g. a proxy deployed
 10916  	// within the EnvironmentConfig). If empty the error refers to the top level
 10917  	// resource.
 10918  	Resource string `json:"resource,omitempty"`
 10919  	// Type: A string that uniquely identifies the type of error. This provides a
 10920  	// more reliable means to deduplicate errors across revisions and instances.
 10921  	Type string `json:"type,omitempty"`
 10922  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 10923  	// include in API requests. By default, fields with empty or default values are
 10924  	// omitted from API requests. See
 10925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10926  	// details.
 10927  	ForceSendFields []string `json:"-"`
 10928  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 10929  	// with the JSON null value. By default, fields with empty values are omitted
 10930  	// from API requests. See
 10931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10932  	NullFields []string `json:"-"`
 10933  }
 10934  
 10935  func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
 10936  	type NoMethod GoogleCloudApigeeV1UpdateError
 10937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10938  }
 10939  
 10940  // GoogleCloudApigeeV1UpdateSecurityIncidentRequest: Request for
 10941  // UpdateSecurityIncident.
 10942  type GoogleCloudApigeeV1UpdateSecurityIncidentRequest struct {
 10943  	// SecurityIncident: Required. The security incident to update. Must contain
 10944  	// all existing populated fields of the current incident.
 10945  	SecurityIncident *GoogleCloudApigeeV1SecurityIncident `json:"securityIncident,omitempty"`
 10946  	// UpdateMask: Required. The list of fields to update. Allowed fields are:
 10947  	// LINT.IfChange(allowed_update_fields_comment) - observability
 10948  	// LINT.ThenChange()
 10949  	UpdateMask string `json:"updateMask,omitempty"`
 10950  	// ForceSendFields is a list of field names (e.g. "SecurityIncident") to
 10951  	// unconditionally include in API requests. By default, fields with empty or
 10952  	// default values are omitted from API requests. See
 10953  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10954  	// details.
 10955  	ForceSendFields []string `json:"-"`
 10956  	// NullFields is a list of field names (e.g. "SecurityIncident") to include in
 10957  	// API requests with the JSON null value. By default, fields with empty values
 10958  	// are omitted from API requests. See
 10959  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10960  	NullFields []string `json:"-"`
 10961  }
 10962  
 10963  func (s *GoogleCloudApigeeV1UpdateSecurityIncidentRequest) MarshalJSON() ([]byte, error) {
 10964  	type NoMethod GoogleCloudApigeeV1UpdateSecurityIncidentRequest
 10965  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10966  }
 10967  
 10968  // GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The
 10969  // configuration determines which permission types are logged, and what
 10970  // identities, if any, are exempted from logging. An AuditConfig must have one
 10971  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
 10972  // and a specific service, the union of the two AuditConfigs is used for that
 10973  // service: the log_types specified in each AuditConfig are enabled, and the
 10974  // exempted_members in each AuditLogConfig are exempted. Example Policy with
 10975  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
 10976  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
 10977  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
 10978  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
 10979  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
 10980  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
 10981  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
 10982  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
 10983  // `aliya@example.com` from DATA_WRITE logging.
 10984  type GoogleIamV1AuditConfig struct {
 10985  	// AuditLogConfigs: The configuration for logging of each type of permission.
 10986  	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
 10987  	// Service: Specifies a service that will be enabled for audit logging. For
 10988  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
 10989  	// is a special value that covers all services.
 10990  	Service string `json:"service,omitempty"`
 10991  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
 10992  	// unconditionally include in API requests. By default, fields with empty or
 10993  	// default values are omitted from API requests. See
 10994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10995  	// details.
 10996  	ForceSendFields []string `json:"-"`
 10997  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
 10998  	// API requests with the JSON null value. By default, fields with empty values
 10999  	// are omitted from API requests. See
 11000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11001  	NullFields []string `json:"-"`
 11002  }
 11003  
 11004  func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
 11005  	type NoMethod GoogleIamV1AuditConfig
 11006  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11007  }
 11008  
 11009  // GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of
 11010  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
 11011  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
 11012  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
 11013  // exempting jose@example.com from DATA_READ logging.
 11014  type GoogleIamV1AuditLogConfig struct {
 11015  	// ExemptedMembers: Specifies the identities that do not cause logging for this
 11016  	// type of permission. Follows the same format of Binding.members.
 11017  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
 11018  	// LogType: The log type that this config enables.
 11019  	//
 11020  	// Possible values:
 11021  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
 11022  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
 11023  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
 11024  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
 11025  	LogType string `json:"logType,omitempty"`
 11026  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
 11027  	// unconditionally include in API requests. By default, fields with empty or
 11028  	// default values are omitted from API requests. See
 11029  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11030  	// details.
 11031  	ForceSendFields []string `json:"-"`
 11032  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
 11033  	// API requests with the JSON null value. By default, fields with empty values
 11034  	// are omitted from API requests. See
 11035  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11036  	NullFields []string `json:"-"`
 11037  }
 11038  
 11039  func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
 11040  	type NoMethod GoogleIamV1AuditLogConfig
 11041  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11042  }
 11043  
 11044  // GoogleIamV1Binding: Associates `members`, or principals, with a `role`.
 11045  type GoogleIamV1Binding struct {
 11046  	// Condition: The condition that is associated with this binding. If the
 11047  	// condition evaluates to `true`, then this binding applies to the current
 11048  	// request. If the condition evaluates to `false`, then this binding does not
 11049  	// apply to the current request. However, a different role binding might grant
 11050  	// the same role to one or more of the principals in this binding. To learn
 11051  	// which resources support conditions in their IAM policies, see the IAM
 11052  	// documentation
 11053  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
 11054  	Condition *GoogleTypeExpr `json:"condition,omitempty"`
 11055  	// Members: Specifies the principals requesting access for a Google Cloud
 11056  	// resource. `members` can have the following values: * `allUsers`: A special
 11057  	// identifier that represents anyone who is on the internet; with or without a
 11058  	// Google account. * `allAuthenticatedUsers`: A special identifier that
 11059  	// represents anyone who is authenticated with a Google account or a service
 11060  	// account. Does not include identities that come from external identity
 11061  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
 11062  	// address that represents a specific Google account. For example,
 11063  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
 11064  	// represents a Google service account. For example,
 11065  	// `my-other-app@appspot.gserviceaccount.com`. *
 11066  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
 11067  	// identifier for a Kubernetes service account
 11068  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
 11069  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
 11070  	// `group:{emailid}`: An email address that represents a Google group. For
 11071  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
 11072  	// (primary) that represents all the users of that domain. For example,
 11073  	// `google.com` or `example.com`. *
 11074  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
 11075  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
 11076  	// pool. *
 11077  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
 11078  	// group/{group_id}`: All workforce identities in a group. *
 11079  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
 11080  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
 11081  	// a specific attribute value. *
 11082  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
 11083  	// *`: All identities in a workforce identity pool. *
 11084  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
 11085  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
 11086  	// identity in a workload identity pool. *
 11087  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
 11088  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
 11089  	// group. *
 11090  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
 11091  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
 11092  	// `: All identities in a workload identity pool with a certain attribute. *
 11093  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
 11094  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
 11095  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
 11096  	// unique identifier) representing a user that has been recently deleted. For
 11097  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
 11098  	// recovered, this value reverts to `user:{emailid}` and the recovered user
 11099  	// retains the role in the binding. *
 11100  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
 11101  	// unique identifier) representing a service account that has been recently
 11102  	// deleted. For example,
 11103  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
 11104  	// service account is undeleted, this value reverts to
 11105  	// `serviceAccount:{emailid}` and the undeleted service account retains the
 11106  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
 11107  	// address (plus unique identifier) representing a Google group that has been
 11108  	// recently deleted. For example,
 11109  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
 11110  	// this value reverts to `group:{emailid}` and the recovered group retains the
 11111  	// role in the binding. *
 11112  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
 11113  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
 11114  	// workforce identity pool. For example,
 11115  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
 11116  	// ol-id/subject/my-subject-attribute-value`.
 11117  	Members []string `json:"members,omitempty"`
 11118  	// Role: Role that is assigned to the list of `members`, or principals. For
 11119  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
 11120  	// of the IAM roles and permissions, see the IAM documentation
 11121  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
 11122  	// available pre-defined roles, see here
 11123  	// (https://cloud.google.com/iam/docs/understanding-roles).
 11124  	Role string `json:"role,omitempty"`
 11125  	// ForceSendFields is a list of field names (e.g. "Condition") to
 11126  	// unconditionally include in API requests. By default, fields with empty or
 11127  	// default values are omitted from API requests. See
 11128  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11129  	// details.
 11130  	ForceSendFields []string `json:"-"`
 11131  	// NullFields is a list of field names (e.g. "Condition") to include in API
 11132  	// requests with the JSON null value. By default, fields with empty values are
 11133  	// omitted from API requests. See
 11134  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11135  	NullFields []string `json:"-"`
 11136  }
 11137  
 11138  func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
 11139  	type NoMethod GoogleIamV1Binding
 11140  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11141  }
 11142  
 11143  // GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which
 11144  // specifies access controls for Google Cloud resources. A `Policy` is a
 11145  // collection of `bindings`. A `binding` binds one or more `members`, or
 11146  // principals, to a single `role`. Principals can be user accounts, service
 11147  // accounts, Google groups, and domains (such as G Suite). A `role` is a named
 11148  // list of permissions; each `role` can be an IAM predefined role or a
 11149  // user-created custom role. For some types of Google Cloud resources, a
 11150  // `binding` can also specify a `condition`, which is a logical expression that
 11151  // allows access to a resource only if the expression evaluates to `true`. A
 11152  // condition can add constraints based on attributes of the request, the
 11153  // resource, or both. To learn which resources support conditions in their IAM
 11154  // policies, see the IAM documentation
 11155  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
 11156  // example:** ``` { "bindings": [ { "role":
 11157  // "roles/resourcemanager.organizationAdmin", "members": [
 11158  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
 11159  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
 11160  // "roles/resourcemanager.organizationViewer", "members": [
 11161  // "user:eve@example.com" ], "condition": { "title": "expirable access",
 11162  // "description": "Does not grant access after Sep 2020", "expression":
 11163  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
 11164  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
 11165  // members: - user:mike@example.com - group:admins@example.com -
 11166  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
 11167  // role: roles/resourcemanager.organizationAdmin - members: -
 11168  // user:eve@example.com role: roles/resourcemanager.organizationViewer
 11169  // condition: title: expirable access description: Does not grant access after
 11170  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
 11171  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
 11172  // see the IAM documentation (https://cloud.google.com/iam/docs/).
 11173  type GoogleIamV1Policy struct {
 11174  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
 11175  	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
 11176  	// Bindings: Associates a list of `members`, or principals, with a `role`.
 11177  	// Optionally, may specify a `condition` that determines how and when the
 11178  	// `bindings` are applied. Each of the `bindings` must contain at least one
 11179  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
 11180  	// up to 250 of these principals can be Google groups. Each occurrence of a
 11181  	// principal counts towards these limits. For example, if the `bindings` grant
 11182  	// 50 different roles to `user:alice@example.com`, and not to any other
 11183  	// principal, then you can add another 1,450 principals to the `bindings` in
 11184  	// the `Policy`.
 11185  	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
 11186  	// Etag: `etag` is used for optimistic concurrency control as a way to help
 11187  	// prevent simultaneous updates of a policy from overwriting each other. It is
 11188  	// strongly suggested that systems make use of the `etag` in the
 11189  	// read-modify-write cycle to perform policy updates in order to avoid race
 11190  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
 11191  	// systems are expected to put that etag in the request to `setIamPolicy` to
 11192  	// ensure that their change will be applied to the same version of the policy.
 11193  	// **Important:** If you use IAM Conditions, you must include the `etag` field
 11194  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
 11195  	// you to overwrite a version `3` policy with a version `1` policy, and all of
 11196  	// the conditions in the version `3` policy are lost.
 11197  	Etag string `json:"etag,omitempty"`
 11198  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
 11199  	// `3`. Requests that specify an invalid value are rejected. Any operation that
 11200  	// affects conditional role bindings must specify version `3`. This requirement
 11201  	// applies to the following operations: * Getting a policy that includes a
 11202  	// conditional role binding * Adding a conditional role binding to a policy *
 11203  	// Changing a conditional role binding in a policy * Removing any role binding,
 11204  	// with or without a condition, from a policy that includes conditions
 11205  	// **Important:** If you use IAM Conditions, you must include the `etag` field
 11206  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
 11207  	// you to overwrite a version `3` policy with a version `1` policy, and all of
 11208  	// the conditions in the version `3` policy are lost. If a policy does not
 11209  	// include any conditions, operations on that policy may specify any valid
 11210  	// version or leave the field unset. To learn which resources support
 11211  	// conditions in their IAM policies, see the IAM documentation
 11212  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
 11213  	Version int64 `json:"version,omitempty"`
 11214  
 11215  	// ServerResponse contains the HTTP response code and headers from the server.
 11216  	googleapi.ServerResponse `json:"-"`
 11217  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
 11218  	// unconditionally include in API requests. By default, fields with empty or
 11219  	// default values are omitted from API requests. See
 11220  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11221  	// details.
 11222  	ForceSendFields []string `json:"-"`
 11223  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
 11224  	// requests with the JSON null value. By default, fields with empty values are
 11225  	// omitted from API requests. See
 11226  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11227  	NullFields []string `json:"-"`
 11228  }
 11229  
 11230  func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
 11231  	type NoMethod GoogleIamV1Policy
 11232  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11233  }
 11234  
 11235  // GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method.
 11236  type GoogleIamV1SetIamPolicyRequest struct {
 11237  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
 11238  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
 11239  	// policy but certain Google Cloud services (such as Projects) might reject
 11240  	// them.
 11241  	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
 11242  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
 11243  	// modify. Only the fields in the mask will be modified. If no mask is
 11244  	// provided, the following default mask is used: `paths: "bindings, etag"
 11245  	UpdateMask string `json:"updateMask,omitempty"`
 11246  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
 11247  	// include in API requests. By default, fields with empty or default values are
 11248  	// omitted from API requests. See
 11249  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11250  	// details.
 11251  	ForceSendFields []string `json:"-"`
 11252  	// NullFields is a list of field names (e.g. "Policy") to include in API
 11253  	// requests with the JSON null value. By default, fields with empty values are
 11254  	// omitted from API requests. See
 11255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11256  	NullFields []string `json:"-"`
 11257  }
 11258  
 11259  func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
 11260  	type NoMethod GoogleIamV1SetIamPolicyRequest
 11261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11262  }
 11263  
 11264  // GoogleIamV1TestIamPermissionsRequest: Request message for
 11265  // `TestIamPermissions` method.
 11266  type GoogleIamV1TestIamPermissionsRequest struct {
 11267  	// Permissions: The set of permissions to check for the `resource`. Permissions
 11268  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
 11269  	// information see IAM Overview
 11270  	// (https://cloud.google.com/iam/docs/overview#permissions).
 11271  	Permissions []string `json:"permissions,omitempty"`
 11272  	// ForceSendFields is a list of field names (e.g. "Permissions") to
 11273  	// unconditionally include in API requests. By default, fields with empty or
 11274  	// default values are omitted from API requests. See
 11275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11276  	// details.
 11277  	ForceSendFields []string `json:"-"`
 11278  	// NullFields is a list of field names (e.g. "Permissions") to include in API
 11279  	// requests with the JSON null value. By default, fields with empty values are
 11280  	// omitted from API requests. See
 11281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11282  	NullFields []string `json:"-"`
 11283  }
 11284  
 11285  func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
 11286  	type NoMethod GoogleIamV1TestIamPermissionsRequest
 11287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11288  }
 11289  
 11290  // GoogleIamV1TestIamPermissionsResponse: Response message for
 11291  // `TestIamPermissions` method.
 11292  type GoogleIamV1TestIamPermissionsResponse struct {
 11293  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
 11294  	// caller is allowed.
 11295  	Permissions []string `json:"permissions,omitempty"`
 11296  
 11297  	// ServerResponse contains the HTTP response code and headers from the server.
 11298  	googleapi.ServerResponse `json:"-"`
 11299  	// ForceSendFields is a list of field names (e.g. "Permissions") to
 11300  	// unconditionally include in API requests. By default, fields with empty or
 11301  	// default values are omitted from API requests. See
 11302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11303  	// details.
 11304  	ForceSendFields []string `json:"-"`
 11305  	// NullFields is a list of field names (e.g. "Permissions") to include in API
 11306  	// requests with the JSON null value. By default, fields with empty values are
 11307  	// omitted from API requests. See
 11308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11309  	NullFields []string `json:"-"`
 11310  }
 11311  
 11312  func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
 11313  	type NoMethod GoogleIamV1TestIamPermissionsResponse
 11314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11315  }
 11316  
 11317  // GoogleLongrunningListOperationsResponse: The response message for
 11318  // Operations.ListOperations.
 11319  type GoogleLongrunningListOperationsResponse struct {
 11320  	// NextPageToken: The standard List next-page token.
 11321  	NextPageToken string `json:"nextPageToken,omitempty"`
 11322  	// Operations: A list of operations that matches the specified filter in the
 11323  	// request.
 11324  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 11325  
 11326  	// ServerResponse contains the HTTP response code and headers from the server.
 11327  	googleapi.ServerResponse `json:"-"`
 11328  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 11329  	// unconditionally include in API requests. By default, fields with empty or
 11330  	// default values are omitted from API requests. See
 11331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11332  	// details.
 11333  	ForceSendFields []string `json:"-"`
 11334  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 11335  	// requests with the JSON null value. By default, fields with empty values are
 11336  	// omitted from API requests. See
 11337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11338  	NullFields []string `json:"-"`
 11339  }
 11340  
 11341  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 11342  	type NoMethod GoogleLongrunningListOperationsResponse
 11343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11344  }
 11345  
 11346  // GoogleLongrunningOperation: This resource represents a long-running
 11347  // operation that is the result of a network API call.
 11348  type GoogleLongrunningOperation struct {
 11349  	// Done: If the value is `false`, it means the operation is still in progress.
 11350  	// If `true`, the operation is completed, and either `error` or `response` is
 11351  	// available.
 11352  	Done bool `json:"done,omitempty"`
 11353  	// Error: The error result of the operation in case of failure or cancellation.
 11354  	Error *GoogleRpcStatus `json:"error,omitempty"`
 11355  	// Metadata: Service-specific metadata associated with the operation. It
 11356  	// typically contains progress information and common metadata such as create
 11357  	// time. Some services might not provide such metadata. Any method that returns
 11358  	// a long-running operation should document the metadata type, if any.
 11359  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 11360  	// Name: The server-assigned name, which is only unique within the same service
 11361  	// that originally returns it. If you use the default HTTP mapping, the `name`
 11362  	// should be a resource name ending with `operations/{unique_id}`.
 11363  	Name string `json:"name,omitempty"`
 11364  	// Response: The normal, successful response of the operation. If the original
 11365  	// method returns no data on success, such as `Delete`, the response is
 11366  	// `google.protobuf.Empty`. If the original method is standard
 11367  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 11368  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 11369  	// original method name. For example, if the original method name is
 11370  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 11371  	Response googleapi.RawMessage `json:"response,omitempty"`
 11372  
 11373  	// ServerResponse contains the HTTP response code and headers from the server.
 11374  	googleapi.ServerResponse `json:"-"`
 11375  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 11376  	// include in API requests. By default, fields with empty or default values are
 11377  	// omitted from API requests. See
 11378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11379  	// details.
 11380  	ForceSendFields []string `json:"-"`
 11381  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 11382  	// with the JSON null value. By default, fields with empty values are omitted
 11383  	// from API requests. See
 11384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11385  	NullFields []string `json:"-"`
 11386  }
 11387  
 11388  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 11389  	type NoMethod GoogleLongrunningOperation
 11390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11391  }
 11392  
 11393  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 11394  // defining duplicated empty messages in your APIs. A typical example is to use
 11395  // it as the request or the response type of an API method. For instance:
 11396  // service Foo { rpc Bar(google.protobuf.Empty) returns
 11397  // (google.protobuf.Empty); }
 11398  type GoogleProtobufEmpty struct {
 11399  	// ServerResponse contains the HTTP response code and headers from the server.
 11400  	googleapi.ServerResponse `json:"-"`
 11401  }
 11402  
 11403  // GoogleRpcPreconditionFailure: Describes what preconditions have failed. For
 11404  // example, if an RPC failed because it required the Terms of Service to be
 11405  // acknowledged, it could list the terms of service violation in the
 11406  // PreconditionFailure message.
 11407  type GoogleRpcPreconditionFailure struct {
 11408  	// Violations: Describes all precondition violations.
 11409  	Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
 11410  	// ForceSendFields is a list of field names (e.g. "Violations") to
 11411  	// unconditionally include in API requests. By default, fields with empty or
 11412  	// default values are omitted from API requests. See
 11413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11414  	// details.
 11415  	ForceSendFields []string `json:"-"`
 11416  	// NullFields is a list of field names (e.g. "Violations") to include in API
 11417  	// requests with the JSON null value. By default, fields with empty values are
 11418  	// omitted from API requests. See
 11419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11420  	NullFields []string `json:"-"`
 11421  }
 11422  
 11423  func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
 11424  	type NoMethod GoogleRpcPreconditionFailure
 11425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11426  }
 11427  
 11428  // GoogleRpcPreconditionFailureViolation: A message type used to describe a
 11429  // single precondition failure.
 11430  type GoogleRpcPreconditionFailureViolation struct {
 11431  	// Description: A description of how the precondition failed. Developers can
 11432  	// use this description to understand how to fix the failure. For example:
 11433  	// "Terms of service not accepted".
 11434  	Description string `json:"description,omitempty"`
 11435  	// Subject: The subject, relative to the type, that failed. For example,
 11436  	// "google.com/cloud" relative to the "TOS" type would indicate which terms of
 11437  	// service is being referenced.
 11438  	Subject string `json:"subject,omitempty"`
 11439  	// Type: The type of PreconditionFailure. We recommend using a service-specific
 11440  	// enum type to define the supported precondition violation subjects. For
 11441  	// example, "TOS" for "Terms of Service violation".
 11442  	Type string `json:"type,omitempty"`
 11443  	// ForceSendFields is a list of field names (e.g. "Description") to
 11444  	// unconditionally include in API requests. By default, fields with empty or
 11445  	// default values are omitted from API requests. See
 11446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11447  	// details.
 11448  	ForceSendFields []string `json:"-"`
 11449  	// NullFields is a list of field names (e.g. "Description") to include in API
 11450  	// requests with the JSON null value. By default, fields with empty values are
 11451  	// omitted from API requests. See
 11452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11453  	NullFields []string `json:"-"`
 11454  }
 11455  
 11456  func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
 11457  	type NoMethod GoogleRpcPreconditionFailureViolation
 11458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11459  }
 11460  
 11461  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 11462  // suitable for different programming environments, including REST APIs and RPC
 11463  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 11464  // contains three pieces of data: error code, error message, and error details.
 11465  // You can find out more about this error model and how to work with it in the
 11466  // API Design Guide (https://cloud.google.com/apis/design/errors).
 11467  type GoogleRpcStatus struct {
 11468  	// Code: The status code, which should be an enum value of google.rpc.Code.
 11469  	Code int64 `json:"code,omitempty"`
 11470  	// Details: A list of messages that carry the error details. There is a common
 11471  	// set of message types for APIs to use.
 11472  	Details []googleapi.RawMessage `json:"details,omitempty"`
 11473  	// Message: A developer-facing error message, which should be in English. Any
 11474  	// user-facing error message should be localized and sent in the
 11475  	// google.rpc.Status.details field, or localized by the client.
 11476  	Message string `json:"message,omitempty"`
 11477  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 11478  	// include in API requests. By default, fields with empty or default values are
 11479  	// omitted from API requests. See
 11480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11481  	// details.
 11482  	ForceSendFields []string `json:"-"`
 11483  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 11484  	// with the JSON null value. By default, fields with empty values are omitted
 11485  	// from API requests. See
 11486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11487  	NullFields []string `json:"-"`
 11488  }
 11489  
 11490  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 11491  	type NoMethod GoogleRpcStatus
 11492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11493  }
 11494  
 11495  // GoogleTypeExpr: Represents a textual expression in the Common Expression
 11496  // Language (CEL) syntax. CEL is a C-like expression language. The syntax and
 11497  // semantics of CEL are documented at https://github.com/google/cel-spec.
 11498  // Example (Comparison): title: "Summary size limit" description: "Determines
 11499  // if a summary is less than 100 chars" expression: "document.summary.size() <
 11500  // 100" Example (Equality): title: "Requestor is owner" description:
 11501  // "Determines if requestor is the document owner" expression: "document.owner
 11502  // == request.auth.claims.email" Example (Logic): title: "Public documents"
 11503  // description: "Determine whether the document should be publicly visible"
 11504  // expression: "document.type != 'private' && document.type != 'internal'"
 11505  // Example (Data Manipulation): title: "Notification string" description:
 11506  // "Create a notification string with a timestamp." expression: "'New message
 11507  // received at ' + string(document.create_time)" The exact variables and
 11508  // functions that may be referenced within an expression are determined by the
 11509  // service that evaluates it. See the service documentation for additional
 11510  // information.
 11511  type GoogleTypeExpr struct {
 11512  	// Description: Optional. Description of the expression. This is a longer text
 11513  	// which describes the expression, e.g. when hovered over it in a UI.
 11514  	Description string `json:"description,omitempty"`
 11515  	// Expression: Textual representation of an expression in Common Expression
 11516  	// Language syntax.
 11517  	Expression string `json:"expression,omitempty"`
 11518  	// Location: Optional. String indicating the location of the expression for
 11519  	// error reporting, e.g. a file name and a position in the file.
 11520  	Location string `json:"location,omitempty"`
 11521  	// Title: Optional. Title for the expression, i.e. a short string describing
 11522  	// its purpose. This can be used e.g. in UIs which allow to enter the
 11523  	// expression.
 11524  	Title string `json:"title,omitempty"`
 11525  	// ForceSendFields is a list of field names (e.g. "Description") to
 11526  	// unconditionally include in API requests. By default, fields with empty or
 11527  	// default values are omitted from API requests. See
 11528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11529  	// details.
 11530  	ForceSendFields []string `json:"-"`
 11531  	// NullFields is a list of field names (e.g. "Description") to include in API
 11532  	// requests with the JSON null value. By default, fields with empty values are
 11533  	// omitted from API requests. See
 11534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11535  	NullFields []string `json:"-"`
 11536  }
 11537  
 11538  func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
 11539  	type NoMethod GoogleTypeExpr
 11540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11541  }
 11542  
 11543  // GoogleTypeInterval: Represents a time interval, encoded as a Timestamp start
 11544  // (inclusive) and a Timestamp end (exclusive). The start must be less than or
 11545  // equal to the end. When the start equals the end, the interval is empty
 11546  // (matches no time). When both start and end are unspecified, the interval
 11547  // matches any time.
 11548  type GoogleTypeInterval struct {
 11549  	// EndTime: Optional. Exclusive end of the interval. If specified, a Timestamp
 11550  	// matching this interval will have to be before the end.
 11551  	EndTime string `json:"endTime,omitempty"`
 11552  	// StartTime: Optional. Inclusive start of the interval. If specified, a
 11553  	// Timestamp matching this interval will have to be the same or after the
 11554  	// start.
 11555  	StartTime string `json:"startTime,omitempty"`
 11556  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
 11557  	// include in API requests. By default, fields with empty or default values are
 11558  	// omitted from API requests. See
 11559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11560  	// details.
 11561  	ForceSendFields []string `json:"-"`
 11562  	// NullFields is a list of field names (e.g. "EndTime") to include in API
 11563  	// requests with the JSON null value. By default, fields with empty values are
 11564  	// omitted from API requests. See
 11565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11566  	NullFields []string `json:"-"`
 11567  }
 11568  
 11569  func (s *GoogleTypeInterval) MarshalJSON() ([]byte, error) {
 11570  	type NoMethod GoogleTypeInterval
 11571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11572  }
 11573  
 11574  // GoogleTypeMoney: Represents an amount of money with its currency type.
 11575  type GoogleTypeMoney struct {
 11576  	// CurrencyCode: The three-letter currency code defined in ISO 4217.
 11577  	CurrencyCode string `json:"currencyCode,omitempty"`
 11578  	// Nanos: Number of nano (10^-9) units of the amount. The value must be between
 11579  	// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
 11580  	// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,
 11581  	// or negative. If `units` is negative, `nanos` must be negative or zero. For
 11582  	// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
 11583  	Nanos int64 `json:"nanos,omitempty"`
 11584  	// Units: The whole units of the amount. For example if `currencyCode` is
 11585  	// "USD", then 1 unit is one US dollar.
 11586  	Units int64 `json:"units,omitempty,string"`
 11587  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
 11588  	// unconditionally include in API requests. By default, fields with empty or
 11589  	// default values are omitted from API requests. See
 11590  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11591  	// details.
 11592  	ForceSendFields []string `json:"-"`
 11593  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
 11594  	// requests with the JSON null value. By default, fields with empty values are
 11595  	// omitted from API requests. See
 11596  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11597  	NullFields []string `json:"-"`
 11598  }
 11599  
 11600  func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
 11601  	type NoMethod GoogleTypeMoney
 11602  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11603  }
 11604  
 11605  type HybridIssuersListCall struct {
 11606  	s            *Service
 11607  	name         string
 11608  	urlParams_   gensupport.URLParams
 11609  	ifNoneMatch_ string
 11610  	ctx_         context.Context
 11611  	header_      http.Header
 11612  }
 11613  
 11614  // List: Lists hybrid services and its trusted issuers service account ids.
 11615  // This api is authenticated and unauthorized(allow all the users) and used by
 11616  // runtime authn-authz service to query control plane's issuer service account
 11617  // ids.
 11618  //
 11619  // - name: Must be of the form `hybrid/issuers`.
 11620  func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
 11621  	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11622  	c.name = name
 11623  	return c
 11624  }
 11625  
 11626  // Fields allows partial responses to be retrieved. See
 11627  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11628  // details.
 11629  func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
 11630  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11631  	return c
 11632  }
 11633  
 11634  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11635  // object's ETag matches the given value. This is useful for getting updates
 11636  // only after the object has changed since the last request.
 11637  func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
 11638  	c.ifNoneMatch_ = entityTag
 11639  	return c
 11640  }
 11641  
 11642  // Context sets the context to be used in this call's Do method.
 11643  func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
 11644  	c.ctx_ = ctx
 11645  	return c
 11646  }
 11647  
 11648  // Header returns a http.Header that can be modified by the caller to add
 11649  // headers to the request.
 11650  func (c *HybridIssuersListCall) Header() http.Header {
 11651  	if c.header_ == nil {
 11652  		c.header_ = make(http.Header)
 11653  	}
 11654  	return c.header_
 11655  }
 11656  
 11657  func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
 11658  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11659  	if c.ifNoneMatch_ != "" {
 11660  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11661  	}
 11662  	var body io.Reader = nil
 11663  	c.urlParams_.Set("alt", alt)
 11664  	c.urlParams_.Set("prettyPrint", "false")
 11665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11666  	urls += "?" + c.urlParams_.Encode()
 11667  	req, err := http.NewRequest("GET", urls, body)
 11668  	if err != nil {
 11669  		return nil, err
 11670  	}
 11671  	req.Header = reqHeaders
 11672  	googleapi.Expand(req.URL, map[string]string{
 11673  		"name": c.name,
 11674  	})
 11675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11676  }
 11677  
 11678  // Do executes the "apigee.hybrid.issuers.list" call.
 11679  // Any non-2xx status code is an error. Response headers are in either
 11680  // *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header or (if a
 11681  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11682  // googleapi.IsNotModified to check whether the returned error was because
 11683  // http.StatusNotModified was returned.
 11684  func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
 11685  	gensupport.SetOptions(c.urlParams_, opts...)
 11686  	res, err := c.doRequest("json")
 11687  	if res != nil && res.StatusCode == http.StatusNotModified {
 11688  		if res.Body != nil {
 11689  			res.Body.Close()
 11690  		}
 11691  		return nil, gensupport.WrapError(&googleapi.Error{
 11692  			Code:   res.StatusCode,
 11693  			Header: res.Header,
 11694  		})
 11695  	}
 11696  	if err != nil {
 11697  		return nil, err
 11698  	}
 11699  	defer googleapi.CloseBody(res)
 11700  	if err := googleapi.CheckResponse(res); err != nil {
 11701  		return nil, gensupport.WrapError(err)
 11702  	}
 11703  	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
 11704  		ServerResponse: googleapi.ServerResponse{
 11705  			Header:         res.Header,
 11706  			HTTPStatusCode: res.StatusCode,
 11707  		},
 11708  	}
 11709  	target := &ret
 11710  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11711  		return nil, err
 11712  	}
 11713  	return ret, nil
 11714  }
 11715  
 11716  type OrganizationsCreateCall struct {
 11717  	s                               *Service
 11718  	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
 11719  	urlParams_                      gensupport.URLParams
 11720  	ctx_                            context.Context
 11721  	header_                         http.Header
 11722  }
 11723  
 11724  // Create: Creates an Apigee organization. See Create an Apigee organization
 11725  // (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
 11726  func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
 11727  	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11728  	c.googlecloudapigeev1organization = googlecloudapigeev1organization
 11729  	return c
 11730  }
 11731  
 11732  // Parent sets the optional parameter "parent": Required. Name of the Google
 11733  // Cloud project in which to associate the Apigee organization. Pass the
 11734  // information as a query parameter using the following structure in your
 11735  // request: `projects/`
 11736  func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
 11737  	c.urlParams_.Set("parent", parent)
 11738  	return c
 11739  }
 11740  
 11741  // Fields allows partial responses to be retrieved. See
 11742  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11743  // details.
 11744  func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
 11745  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11746  	return c
 11747  }
 11748  
 11749  // Context sets the context to be used in this call's Do method.
 11750  func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
 11751  	c.ctx_ = ctx
 11752  	return c
 11753  }
 11754  
 11755  // Header returns a http.Header that can be modified by the caller to add
 11756  // headers to the request.
 11757  func (c *OrganizationsCreateCall) Header() http.Header {
 11758  	if c.header_ == nil {
 11759  		c.header_ = make(http.Header)
 11760  	}
 11761  	return c.header_
 11762  }
 11763  
 11764  func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
 11765  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11766  	var body io.Reader = nil
 11767  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
 11768  	if err != nil {
 11769  		return nil, err
 11770  	}
 11771  	c.urlParams_.Set("alt", alt)
 11772  	c.urlParams_.Set("prettyPrint", "false")
 11773  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
 11774  	urls += "?" + c.urlParams_.Encode()
 11775  	req, err := http.NewRequest("POST", urls, body)
 11776  	if err != nil {
 11777  		return nil, err
 11778  	}
 11779  	req.Header = reqHeaders
 11780  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11781  }
 11782  
 11783  // Do executes the "apigee.organizations.create" call.
 11784  // Any non-2xx status code is an error. Response headers are in either
 11785  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11786  // returned at all) in error.(*googleapi.Error).Header. Use
 11787  // googleapi.IsNotModified to check whether the returned error was because
 11788  // http.StatusNotModified was returned.
 11789  func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11790  	gensupport.SetOptions(c.urlParams_, opts...)
 11791  	res, err := c.doRequest("json")
 11792  	if res != nil && res.StatusCode == http.StatusNotModified {
 11793  		if res.Body != nil {
 11794  			res.Body.Close()
 11795  		}
 11796  		return nil, gensupport.WrapError(&googleapi.Error{
 11797  			Code:   res.StatusCode,
 11798  			Header: res.Header,
 11799  		})
 11800  	}
 11801  	if err != nil {
 11802  		return nil, err
 11803  	}
 11804  	defer googleapi.CloseBody(res)
 11805  	if err := googleapi.CheckResponse(res); err != nil {
 11806  		return nil, gensupport.WrapError(err)
 11807  	}
 11808  	ret := &GoogleLongrunningOperation{
 11809  		ServerResponse: googleapi.ServerResponse{
 11810  			Header:         res.Header,
 11811  			HTTPStatusCode: res.StatusCode,
 11812  		},
 11813  	}
 11814  	target := &ret
 11815  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11816  		return nil, err
 11817  	}
 11818  	return ret, nil
 11819  }
 11820  
 11821  type OrganizationsDeleteCall struct {
 11822  	s          *Service
 11823  	name       string
 11824  	urlParams_ gensupport.URLParams
 11825  	ctx_       context.Context
 11826  	header_    http.Header
 11827  }
 11828  
 11829  // Delete: Delete an Apigee organization. For organizations with BillingType
 11830  // EVALUATION, an immediate deletion is performed. For paid organizations
 11831  // (Subscription or Pay-as-you-go), a soft-deletion is performed. The
 11832  // organization can be restored within the soft-deletion period, which is
 11833  // specified using the `retention` field in the request or by filing a support
 11834  // ticket with Apigee. During the data retention period specified in the
 11835  // request, the Apigee organization cannot be recreated in the same Google
 11836  // Cloud project. **IMPORTANT: The default data retention setting for this
 11837  // operation is 7 days. To permanently delete the organization in 24 hours, set
 11838  // the retention parameter to `MINIMUM`.**
 11839  //
 11840  //   - name: Name of the organization. Use the following structure in your
 11841  //     request: `organizations/{org}`.
 11842  func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
 11843  	c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11844  	c.name = name
 11845  	return c
 11846  }
 11847  
 11848  // Retention sets the optional parameter "retention": This setting is
 11849  // applicable only for organizations that are soft-deleted (i.e., BillingType
 11850  // is not EVALUATION). It controls how long Organization data will be retained
 11851  // after the initial delete operation completes. During this period, the
 11852  // Organization may be restored to its last known state. After this period, the
 11853  // Organization will no longer be able to be restored. **Note: During the data
 11854  // retention period specified using this field, the Apigee organization cannot
 11855  // be recreated in the same GCP project.**
 11856  //
 11857  // Possible values:
 11858  //
 11859  //	"DELETION_RETENTION_UNSPECIFIED" - Default data retention setting of seven
 11860  //
 11861  // days will be applied.
 11862  //
 11863  //	"MINIMUM" - Organization data will be retained for the minimum period of
 11864  //
 11865  // 24 hours.
 11866  func (c *OrganizationsDeleteCall) Retention(retention string) *OrganizationsDeleteCall {
 11867  	c.urlParams_.Set("retention", retention)
 11868  	return c
 11869  }
 11870  
 11871  // Fields allows partial responses to be retrieved. See
 11872  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11873  // details.
 11874  func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
 11875  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11876  	return c
 11877  }
 11878  
 11879  // Context sets the context to be used in this call's Do method.
 11880  func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
 11881  	c.ctx_ = ctx
 11882  	return c
 11883  }
 11884  
 11885  // Header returns a http.Header that can be modified by the caller to add
 11886  // headers to the request.
 11887  func (c *OrganizationsDeleteCall) Header() http.Header {
 11888  	if c.header_ == nil {
 11889  		c.header_ = make(http.Header)
 11890  	}
 11891  	return c.header_
 11892  }
 11893  
 11894  func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11895  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11896  	var body io.Reader = nil
 11897  	c.urlParams_.Set("alt", alt)
 11898  	c.urlParams_.Set("prettyPrint", "false")
 11899  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11900  	urls += "?" + c.urlParams_.Encode()
 11901  	req, err := http.NewRequest("DELETE", urls, body)
 11902  	if err != nil {
 11903  		return nil, err
 11904  	}
 11905  	req.Header = reqHeaders
 11906  	googleapi.Expand(req.URL, map[string]string{
 11907  		"name": c.name,
 11908  	})
 11909  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11910  }
 11911  
 11912  // Do executes the "apigee.organizations.delete" call.
 11913  // Any non-2xx status code is an error. Response headers are in either
 11914  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11915  // returned at all) in error.(*googleapi.Error).Header. Use
 11916  // googleapi.IsNotModified to check whether the returned error was because
 11917  // http.StatusNotModified was returned.
 11918  func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11919  	gensupport.SetOptions(c.urlParams_, opts...)
 11920  	res, err := c.doRequest("json")
 11921  	if res != nil && res.StatusCode == http.StatusNotModified {
 11922  		if res.Body != nil {
 11923  			res.Body.Close()
 11924  		}
 11925  		return nil, gensupport.WrapError(&googleapi.Error{
 11926  			Code:   res.StatusCode,
 11927  			Header: res.Header,
 11928  		})
 11929  	}
 11930  	if err != nil {
 11931  		return nil, err
 11932  	}
 11933  	defer googleapi.CloseBody(res)
 11934  	if err := googleapi.CheckResponse(res); err != nil {
 11935  		return nil, gensupport.WrapError(err)
 11936  	}
 11937  	ret := &GoogleLongrunningOperation{
 11938  		ServerResponse: googleapi.ServerResponse{
 11939  			Header:         res.Header,
 11940  			HTTPStatusCode: res.StatusCode,
 11941  		},
 11942  	}
 11943  	target := &ret
 11944  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11945  		return nil, err
 11946  	}
 11947  	return ret, nil
 11948  }
 11949  
 11950  type OrganizationsGetCall struct {
 11951  	s            *Service
 11952  	name         string
 11953  	urlParams_   gensupport.URLParams
 11954  	ifNoneMatch_ string
 11955  	ctx_         context.Context
 11956  	header_      http.Header
 11957  }
 11958  
 11959  // Get: Gets the profile for an Apigee organization. See Understanding
 11960  // organizations
 11961  // (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
 11962  //
 11963  //   - name: Apigee organization name in the following format:
 11964  //     `organizations/{org}`.
 11965  func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
 11966  	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11967  	c.name = name
 11968  	return c
 11969  }
 11970  
 11971  // Fields allows partial responses to be retrieved. See
 11972  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11973  // details.
 11974  func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
 11975  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11976  	return c
 11977  }
 11978  
 11979  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11980  // object's ETag matches the given value. This is useful for getting updates
 11981  // only after the object has changed since the last request.
 11982  func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
 11983  	c.ifNoneMatch_ = entityTag
 11984  	return c
 11985  }
 11986  
 11987  // Context sets the context to be used in this call's Do method.
 11988  func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
 11989  	c.ctx_ = ctx
 11990  	return c
 11991  }
 11992  
 11993  // Header returns a http.Header that can be modified by the caller to add
 11994  // headers to the request.
 11995  func (c *OrganizationsGetCall) Header() http.Header {
 11996  	if c.header_ == nil {
 11997  		c.header_ = make(http.Header)
 11998  	}
 11999  	return c.header_
 12000  }
 12001  
 12002  func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
 12003  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12004  	if c.ifNoneMatch_ != "" {
 12005  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12006  	}
 12007  	var body io.Reader = nil
 12008  	c.urlParams_.Set("alt", alt)
 12009  	c.urlParams_.Set("prettyPrint", "false")
 12010  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12011  	urls += "?" + c.urlParams_.Encode()
 12012  	req, err := http.NewRequest("GET", urls, body)
 12013  	if err != nil {
 12014  		return nil, err
 12015  	}
 12016  	req.Header = reqHeaders
 12017  	googleapi.Expand(req.URL, map[string]string{
 12018  		"name": c.name,
 12019  	})
 12020  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12021  }
 12022  
 12023  // Do executes the "apigee.organizations.get" call.
 12024  // Any non-2xx status code is an error. Response headers are in either
 12025  // *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if a response was
 12026  // returned at all) in error.(*googleapi.Error).Header. Use
 12027  // googleapi.IsNotModified to check whether the returned error was because
 12028  // http.StatusNotModified was returned.
 12029  func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
 12030  	gensupport.SetOptions(c.urlParams_, opts...)
 12031  	res, err := c.doRequest("json")
 12032  	if res != nil && res.StatusCode == http.StatusNotModified {
 12033  		if res.Body != nil {
 12034  			res.Body.Close()
 12035  		}
 12036  		return nil, gensupport.WrapError(&googleapi.Error{
 12037  			Code:   res.StatusCode,
 12038  			Header: res.Header,
 12039  		})
 12040  	}
 12041  	if err != nil {
 12042  		return nil, err
 12043  	}
 12044  	defer googleapi.CloseBody(res)
 12045  	if err := googleapi.CheckResponse(res); err != nil {
 12046  		return nil, gensupport.WrapError(err)
 12047  	}
 12048  	ret := &GoogleCloudApigeeV1Organization{
 12049  		ServerResponse: googleapi.ServerResponse{
 12050  			Header:         res.Header,
 12051  			HTTPStatusCode: res.StatusCode,
 12052  		},
 12053  	}
 12054  	target := &ret
 12055  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12056  		return nil, err
 12057  	}
 12058  	return ret, nil
 12059  }
 12060  
 12061  type OrganizationsGetDeployedIngressConfigCall struct {
 12062  	s            *Service
 12063  	name         string
 12064  	urlParams_   gensupport.URLParams
 12065  	ifNoneMatch_ string
 12066  	ctx_         context.Context
 12067  	header_      http.Header
 12068  }
 12069  
 12070  // GetDeployedIngressConfig: Gets the deployed ingress configuration for an
 12071  // organization.
 12072  //
 12073  //   - name: Name of the deployed configuration for the organization in the
 12074  //     following format: 'organizations/{org}/deployedIngressConfig'.
 12075  func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
 12076  	c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12077  	c.name = name
 12078  	return c
 12079  }
 12080  
 12081  // View sets the optional parameter "view": When set to FULL, additional
 12082  // details about the specific deployments receiving traffic will be included in
 12083  // the IngressConfig response's RoutingRules.
 12084  //
 12085  // Possible values:
 12086  //
 12087  //	"INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The API will
 12088  //
 12089  // default to the BASIC view.
 12090  //
 12091  //	"BASIC" - Include all ingress config data necessary for the runtime to
 12092  //
 12093  // configure ingress, but no more. Routing rules will include only basepath and
 12094  // destination environment. This the default value.
 12095  //
 12096  //	"FULL" - Include all ingress config data, including internal debug info
 12097  //
 12098  // for each routing rule such as the proxy claiming a particular basepath and
 12099  // when the routing rule first appeared in the env group.
 12100  func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
 12101  	c.urlParams_.Set("view", view)
 12102  	return c
 12103  }
 12104  
 12105  // Fields allows partial responses to be retrieved. See
 12106  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12107  // details.
 12108  func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
 12109  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12110  	return c
 12111  }
 12112  
 12113  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12114  // object's ETag matches the given value. This is useful for getting updates
 12115  // only after the object has changed since the last request.
 12116  func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
 12117  	c.ifNoneMatch_ = entityTag
 12118  	return c
 12119  }
 12120  
 12121  // Context sets the context to be used in this call's Do method.
 12122  func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
 12123  	c.ctx_ = ctx
 12124  	return c
 12125  }
 12126  
 12127  // Header returns a http.Header that can be modified by the caller to add
 12128  // headers to the request.
 12129  func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
 12130  	if c.header_ == nil {
 12131  		c.header_ = make(http.Header)
 12132  	}
 12133  	return c.header_
 12134  }
 12135  
 12136  func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
 12137  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12138  	if c.ifNoneMatch_ != "" {
 12139  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12140  	}
 12141  	var body io.Reader = nil
 12142  	c.urlParams_.Set("alt", alt)
 12143  	c.urlParams_.Set("prettyPrint", "false")
 12144  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12145  	urls += "?" + c.urlParams_.Encode()
 12146  	req, err := http.NewRequest("GET", urls, body)
 12147  	if err != nil {
 12148  		return nil, err
 12149  	}
 12150  	req.Header = reqHeaders
 12151  	googleapi.Expand(req.URL, map[string]string{
 12152  		"name": c.name,
 12153  	})
 12154  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12155  }
 12156  
 12157  // Do executes the "apigee.organizations.getDeployedIngressConfig" call.
 12158  // Any non-2xx status code is an error. Response headers are in either
 12159  // *GoogleCloudApigeeV1IngressConfig.ServerResponse.Header or (if a response
 12160  // was returned at all) in error.(*googleapi.Error).Header. Use
 12161  // googleapi.IsNotModified to check whether the returned error was because
 12162  // http.StatusNotModified was returned.
 12163  func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
 12164  	gensupport.SetOptions(c.urlParams_, opts...)
 12165  	res, err := c.doRequest("json")
 12166  	if res != nil && res.StatusCode == http.StatusNotModified {
 12167  		if res.Body != nil {
 12168  			res.Body.Close()
 12169  		}
 12170  		return nil, gensupport.WrapError(&googleapi.Error{
 12171  			Code:   res.StatusCode,
 12172  			Header: res.Header,
 12173  		})
 12174  	}
 12175  	if err != nil {
 12176  		return nil, err
 12177  	}
 12178  	defer googleapi.CloseBody(res)
 12179  	if err := googleapi.CheckResponse(res); err != nil {
 12180  		return nil, gensupport.WrapError(err)
 12181  	}
 12182  	ret := &GoogleCloudApigeeV1IngressConfig{
 12183  		ServerResponse: googleapi.ServerResponse{
 12184  			Header:         res.Header,
 12185  			HTTPStatusCode: res.StatusCode,
 12186  		},
 12187  	}
 12188  	target := &ret
 12189  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12190  		return nil, err
 12191  	}
 12192  	return ret, nil
 12193  }
 12194  
 12195  type OrganizationsGetProjectMappingCall struct {
 12196  	s            *Service
 12197  	name         string
 12198  	urlParams_   gensupport.URLParams
 12199  	ifNoneMatch_ string
 12200  	ctx_         context.Context
 12201  	header_      http.Header
 12202  }
 12203  
 12204  // GetProjectMapping: Gets the project ID and region for an Apigee
 12205  // organization.
 12206  //
 12207  //   - name: Apigee organization name in the following format:
 12208  //     `organizations/{org}`.
 12209  func (r *OrganizationsService) GetProjectMapping(name string) *OrganizationsGetProjectMappingCall {
 12210  	c := &OrganizationsGetProjectMappingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12211  	c.name = name
 12212  	return c
 12213  }
 12214  
 12215  // Fields allows partial responses to be retrieved. See
 12216  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12217  // details.
 12218  func (c *OrganizationsGetProjectMappingCall) Fields(s ...googleapi.Field) *OrganizationsGetProjectMappingCall {
 12219  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12220  	return c
 12221  }
 12222  
 12223  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12224  // object's ETag matches the given value. This is useful for getting updates
 12225  // only after the object has changed since the last request.
 12226  func (c *OrganizationsGetProjectMappingCall) IfNoneMatch(entityTag string) *OrganizationsGetProjectMappingCall {
 12227  	c.ifNoneMatch_ = entityTag
 12228  	return c
 12229  }
 12230  
 12231  // Context sets the context to be used in this call's Do method.
 12232  func (c *OrganizationsGetProjectMappingCall) Context(ctx context.Context) *OrganizationsGetProjectMappingCall {
 12233  	c.ctx_ = ctx
 12234  	return c
 12235  }
 12236  
 12237  // Header returns a http.Header that can be modified by the caller to add
 12238  // headers to the request.
 12239  func (c *OrganizationsGetProjectMappingCall) Header() http.Header {
 12240  	if c.header_ == nil {
 12241  		c.header_ = make(http.Header)
 12242  	}
 12243  	return c.header_
 12244  }
 12245  
 12246  func (c *OrganizationsGetProjectMappingCall) doRequest(alt string) (*http.Response, error) {
 12247  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12248  	if c.ifNoneMatch_ != "" {
 12249  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12250  	}
 12251  	var body io.Reader = nil
 12252  	c.urlParams_.Set("alt", alt)
 12253  	c.urlParams_.Set("prettyPrint", "false")
 12254  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getProjectMapping")
 12255  	urls += "?" + c.urlParams_.Encode()
 12256  	req, err := http.NewRequest("GET", urls, body)
 12257  	if err != nil {
 12258  		return nil, err
 12259  	}
 12260  	req.Header = reqHeaders
 12261  	googleapi.Expand(req.URL, map[string]string{
 12262  		"name": c.name,
 12263  	})
 12264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12265  }
 12266  
 12267  // Do executes the "apigee.organizations.getProjectMapping" call.
 12268  // Any non-2xx status code is an error. Response headers are in either
 12269  // *GoogleCloudApigeeV1OrganizationProjectMapping.ServerResponse.Header or (if
 12270  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 12271  // googleapi.IsNotModified to check whether the returned error was because
 12272  // http.StatusNotModified was returned.
 12273  func (c *OrganizationsGetProjectMappingCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OrganizationProjectMapping, error) {
 12274  	gensupport.SetOptions(c.urlParams_, opts...)
 12275  	res, err := c.doRequest("json")
 12276  	if res != nil && res.StatusCode == http.StatusNotModified {
 12277  		if res.Body != nil {
 12278  			res.Body.Close()
 12279  		}
 12280  		return nil, gensupport.WrapError(&googleapi.Error{
 12281  			Code:   res.StatusCode,
 12282  			Header: res.Header,
 12283  		})
 12284  	}
 12285  	if err != nil {
 12286  		return nil, err
 12287  	}
 12288  	defer googleapi.CloseBody(res)
 12289  	if err := googleapi.CheckResponse(res); err != nil {
 12290  		return nil, gensupport.WrapError(err)
 12291  	}
 12292  	ret := &GoogleCloudApigeeV1OrganizationProjectMapping{
 12293  		ServerResponse: googleapi.ServerResponse{
 12294  			Header:         res.Header,
 12295  			HTTPStatusCode: res.StatusCode,
 12296  		},
 12297  	}
 12298  	target := &ret
 12299  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12300  		return nil, err
 12301  	}
 12302  	return ret, nil
 12303  }
 12304  
 12305  type OrganizationsGetRuntimeConfigCall struct {
 12306  	s            *Service
 12307  	name         string
 12308  	urlParams_   gensupport.URLParams
 12309  	ifNoneMatch_ string
 12310  	ctx_         context.Context
 12311  	header_      http.Header
 12312  }
 12313  
 12314  // GetRuntimeConfig: Get runtime config for an organization.
 12315  //
 12316  //   - name: Name of the runtime config for the organization in the following
 12317  //     format: 'organizations/{org}/runtimeConfig'.
 12318  func (r *OrganizationsService) GetRuntimeConfig(name string) *OrganizationsGetRuntimeConfigCall {
 12319  	c := &OrganizationsGetRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12320  	c.name = name
 12321  	return c
 12322  }
 12323  
 12324  // Fields allows partial responses to be retrieved. See
 12325  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12326  // details.
 12327  func (c *OrganizationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetRuntimeConfigCall {
 12328  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12329  	return c
 12330  }
 12331  
 12332  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12333  // object's ETag matches the given value. This is useful for getting updates
 12334  // only after the object has changed since the last request.
 12335  func (c *OrganizationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetRuntimeConfigCall {
 12336  	c.ifNoneMatch_ = entityTag
 12337  	return c
 12338  }
 12339  
 12340  // Context sets the context to be used in this call's Do method.
 12341  func (c *OrganizationsGetRuntimeConfigCall) Context(ctx context.Context) *OrganizationsGetRuntimeConfigCall {
 12342  	c.ctx_ = ctx
 12343  	return c
 12344  }
 12345  
 12346  // Header returns a http.Header that can be modified by the caller to add
 12347  // headers to the request.
 12348  func (c *OrganizationsGetRuntimeConfigCall) Header() http.Header {
 12349  	if c.header_ == nil {
 12350  		c.header_ = make(http.Header)
 12351  	}
 12352  	return c.header_
 12353  }
 12354  
 12355  func (c *OrganizationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
 12356  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12357  	if c.ifNoneMatch_ != "" {
 12358  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12359  	}
 12360  	var body io.Reader = nil
 12361  	c.urlParams_.Set("alt", alt)
 12362  	c.urlParams_.Set("prettyPrint", "false")
 12363  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12364  	urls += "?" + c.urlParams_.Encode()
 12365  	req, err := http.NewRequest("GET", urls, body)
 12366  	if err != nil {
 12367  		return nil, err
 12368  	}
 12369  	req.Header = reqHeaders
 12370  	googleapi.Expand(req.URL, map[string]string{
 12371  		"name": c.name,
 12372  	})
 12373  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12374  }
 12375  
 12376  // Do executes the "apigee.organizations.getRuntimeConfig" call.
 12377  // Any non-2xx status code is an error. Response headers are in either
 12378  // *GoogleCloudApigeeV1RuntimeConfig.ServerResponse.Header or (if a response
 12379  // was returned at all) in error.(*googleapi.Error).Header. Use
 12380  // googleapi.IsNotModified to check whether the returned error was because
 12381  // http.StatusNotModified was returned.
 12382  func (c *OrganizationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RuntimeConfig, error) {
 12383  	gensupport.SetOptions(c.urlParams_, opts...)
 12384  	res, err := c.doRequest("json")
 12385  	if res != nil && res.StatusCode == http.StatusNotModified {
 12386  		if res.Body != nil {
 12387  			res.Body.Close()
 12388  		}
 12389  		return nil, gensupport.WrapError(&googleapi.Error{
 12390  			Code:   res.StatusCode,
 12391  			Header: res.Header,
 12392  		})
 12393  	}
 12394  	if err != nil {
 12395  		return nil, err
 12396  	}
 12397  	defer googleapi.CloseBody(res)
 12398  	if err := googleapi.CheckResponse(res); err != nil {
 12399  		return nil, gensupport.WrapError(err)
 12400  	}
 12401  	ret := &GoogleCloudApigeeV1RuntimeConfig{
 12402  		ServerResponse: googleapi.ServerResponse{
 12403  			Header:         res.Header,
 12404  			HTTPStatusCode: res.StatusCode,
 12405  		},
 12406  	}
 12407  	target := &ret
 12408  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12409  		return nil, err
 12410  	}
 12411  	return ret, nil
 12412  }
 12413  
 12414  type OrganizationsGetSecuritySettingsCall struct {
 12415  	s            *Service
 12416  	name         string
 12417  	urlParams_   gensupport.URLParams
 12418  	ifNoneMatch_ string
 12419  	ctx_         context.Context
 12420  	header_      http.Header
 12421  }
 12422  
 12423  // GetSecuritySettings: GetSecuritySettings gets the security settings for API
 12424  // Security.
 12425  //
 12426  //   - name: The name of the SecuritySettings to retrieve. This will always be:
 12427  //     'organizations/{org}/securitySettings'.
 12428  func (r *OrganizationsService) GetSecuritySettings(name string) *OrganizationsGetSecuritySettingsCall {
 12429  	c := &OrganizationsGetSecuritySettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12430  	c.name = name
 12431  	return c
 12432  }
 12433  
 12434  // Fields allows partial responses to be retrieved. See
 12435  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12436  // details.
 12437  func (c *OrganizationsGetSecuritySettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetSecuritySettingsCall {
 12438  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12439  	return c
 12440  }
 12441  
 12442  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12443  // object's ETag matches the given value. This is useful for getting updates
 12444  // only after the object has changed since the last request.
 12445  func (c *OrganizationsGetSecuritySettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetSecuritySettingsCall {
 12446  	c.ifNoneMatch_ = entityTag
 12447  	return c
 12448  }
 12449  
 12450  // Context sets the context to be used in this call's Do method.
 12451  func (c *OrganizationsGetSecuritySettingsCall) Context(ctx context.Context) *OrganizationsGetSecuritySettingsCall {
 12452  	c.ctx_ = ctx
 12453  	return c
 12454  }
 12455  
 12456  // Header returns a http.Header that can be modified by the caller to add
 12457  // headers to the request.
 12458  func (c *OrganizationsGetSecuritySettingsCall) Header() http.Header {
 12459  	if c.header_ == nil {
 12460  		c.header_ = make(http.Header)
 12461  	}
 12462  	return c.header_
 12463  }
 12464  
 12465  func (c *OrganizationsGetSecuritySettingsCall) doRequest(alt string) (*http.Response, error) {
 12466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12467  	if c.ifNoneMatch_ != "" {
 12468  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12469  	}
 12470  	var body io.Reader = nil
 12471  	c.urlParams_.Set("alt", alt)
 12472  	c.urlParams_.Set("prettyPrint", "false")
 12473  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12474  	urls += "?" + c.urlParams_.Encode()
 12475  	req, err := http.NewRequest("GET", urls, body)
 12476  	if err != nil {
 12477  		return nil, err
 12478  	}
 12479  	req.Header = reqHeaders
 12480  	googleapi.Expand(req.URL, map[string]string{
 12481  		"name": c.name,
 12482  	})
 12483  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12484  }
 12485  
 12486  // Do executes the "apigee.organizations.getSecuritySettings" call.
 12487  // Any non-2xx status code is an error. Response headers are in either
 12488  // *GoogleCloudApigeeV1SecuritySettings.ServerResponse.Header or (if a response
 12489  // was returned at all) in error.(*googleapi.Error).Header. Use
 12490  // googleapi.IsNotModified to check whether the returned error was because
 12491  // http.StatusNotModified was returned.
 12492  func (c *OrganizationsGetSecuritySettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecuritySettings, error) {
 12493  	gensupport.SetOptions(c.urlParams_, opts...)
 12494  	res, err := c.doRequest("json")
 12495  	if res != nil && res.StatusCode == http.StatusNotModified {
 12496  		if res.Body != nil {
 12497  			res.Body.Close()
 12498  		}
 12499  		return nil, gensupport.WrapError(&googleapi.Error{
 12500  			Code:   res.StatusCode,
 12501  			Header: res.Header,
 12502  		})
 12503  	}
 12504  	if err != nil {
 12505  		return nil, err
 12506  	}
 12507  	defer googleapi.CloseBody(res)
 12508  	if err := googleapi.CheckResponse(res); err != nil {
 12509  		return nil, gensupport.WrapError(err)
 12510  	}
 12511  	ret := &GoogleCloudApigeeV1SecuritySettings{
 12512  		ServerResponse: googleapi.ServerResponse{
 12513  			Header:         res.Header,
 12514  			HTTPStatusCode: res.StatusCode,
 12515  		},
 12516  	}
 12517  	target := &ret
 12518  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12519  		return nil, err
 12520  	}
 12521  	return ret, nil
 12522  }
 12523  
 12524  type OrganizationsGetSyncAuthorizationCall struct {
 12525  	s                                              *Service
 12526  	name                                           string
 12527  	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
 12528  	urlParams_                                     gensupport.URLParams
 12529  	ctx_                                           context.Context
 12530  	header_                                        http.Header
 12531  }
 12532  
 12533  // GetSyncAuthorization: Lists the service accounts with the permissions
 12534  // required to allow the Synchronizer to download environment data from the
 12535  // control plane. An ETag is returned in the response to
 12536  // `getSyncAuthorization`. Pass that ETag when calling setSyncAuthorization
 12537  // (setSyncAuthorization) to ensure that you are updating the correct version.
 12538  // If you don't pass the ETag in the call to `setSyncAuthorization`, then the
 12539  // existing authorization is overwritten indiscriminately. For more
 12540  // information, see Configure the Synchronizer
 12541  // (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
 12542  // **Note**: Available to Apigee hybrid only.
 12543  //
 12544  //   - name: Name of the Apigee organization. Use the following structure in your
 12545  //     request: `organizations/{org}`.
 12546  func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
 12547  	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12548  	c.name = name
 12549  	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
 12550  	return c
 12551  }
 12552  
 12553  // Fields allows partial responses to be retrieved. See
 12554  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12555  // details.
 12556  func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
 12557  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12558  	return c
 12559  }
 12560  
 12561  // Context sets the context to be used in this call's Do method.
 12562  func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
 12563  	c.ctx_ = ctx
 12564  	return c
 12565  }
 12566  
 12567  // Header returns a http.Header that can be modified by the caller to add
 12568  // headers to the request.
 12569  func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
 12570  	if c.header_ == nil {
 12571  		c.header_ = make(http.Header)
 12572  	}
 12573  	return c.header_
 12574  }
 12575  
 12576  func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
 12577  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12578  	var body io.Reader = nil
 12579  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
 12580  	if err != nil {
 12581  		return nil, err
 12582  	}
 12583  	c.urlParams_.Set("alt", alt)
 12584  	c.urlParams_.Set("prettyPrint", "false")
 12585  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
 12586  	urls += "?" + c.urlParams_.Encode()
 12587  	req, err := http.NewRequest("POST", urls, body)
 12588  	if err != nil {
 12589  		return nil, err
 12590  	}
 12591  	req.Header = reqHeaders
 12592  	googleapi.Expand(req.URL, map[string]string{
 12593  		"name": c.name,
 12594  	})
 12595  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12596  }
 12597  
 12598  // Do executes the "apigee.organizations.getSyncAuthorization" call.
 12599  // Any non-2xx status code is an error. Response headers are in either
 12600  // *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or (if a
 12601  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12602  // googleapi.IsNotModified to check whether the returned error was because
 12603  // http.StatusNotModified was returned.
 12604  func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
 12605  	gensupport.SetOptions(c.urlParams_, opts...)
 12606  	res, err := c.doRequest("json")
 12607  	if res != nil && res.StatusCode == http.StatusNotModified {
 12608  		if res.Body != nil {
 12609  			res.Body.Close()
 12610  		}
 12611  		return nil, gensupport.WrapError(&googleapi.Error{
 12612  			Code:   res.StatusCode,
 12613  			Header: res.Header,
 12614  		})
 12615  	}
 12616  	if err != nil {
 12617  		return nil, err
 12618  	}
 12619  	defer googleapi.CloseBody(res)
 12620  	if err := googleapi.CheckResponse(res); err != nil {
 12621  		return nil, gensupport.WrapError(err)
 12622  	}
 12623  	ret := &GoogleCloudApigeeV1SyncAuthorization{
 12624  		ServerResponse: googleapi.ServerResponse{
 12625  			Header:         res.Header,
 12626  			HTTPStatusCode: res.StatusCode,
 12627  		},
 12628  	}
 12629  	target := &ret
 12630  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12631  		return nil, err
 12632  	}
 12633  	return ret, nil
 12634  }
 12635  
 12636  type OrganizationsListCall struct {
 12637  	s            *Service
 12638  	parent       string
 12639  	urlParams_   gensupport.URLParams
 12640  	ifNoneMatch_ string
 12641  	ctx_         context.Context
 12642  	header_      http.Header
 12643  }
 12644  
 12645  // List: Lists the Apigee organizations and associated Google Cloud projects
 12646  // that you have permission to access. See Understanding organizations
 12647  // (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
 12648  //
 12649  // - parent: Use the following structure in your request: `organizations`.
 12650  func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
 12651  	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12652  	c.parent = parent
 12653  	return c
 12654  }
 12655  
 12656  // Fields allows partial responses to be retrieved. See
 12657  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12658  // details.
 12659  func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
 12660  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12661  	return c
 12662  }
 12663  
 12664  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12665  // object's ETag matches the given value. This is useful for getting updates
 12666  // only after the object has changed since the last request.
 12667  func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
 12668  	c.ifNoneMatch_ = entityTag
 12669  	return c
 12670  }
 12671  
 12672  // Context sets the context to be used in this call's Do method.
 12673  func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
 12674  	c.ctx_ = ctx
 12675  	return c
 12676  }
 12677  
 12678  // Header returns a http.Header that can be modified by the caller to add
 12679  // headers to the request.
 12680  func (c *OrganizationsListCall) Header() http.Header {
 12681  	if c.header_ == nil {
 12682  		c.header_ = make(http.Header)
 12683  	}
 12684  	return c.header_
 12685  }
 12686  
 12687  func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
 12688  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12689  	if c.ifNoneMatch_ != "" {
 12690  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12691  	}
 12692  	var body io.Reader = nil
 12693  	c.urlParams_.Set("alt", alt)
 12694  	c.urlParams_.Set("prettyPrint", "false")
 12695  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
 12696  	urls += "?" + c.urlParams_.Encode()
 12697  	req, err := http.NewRequest("GET", urls, body)
 12698  	if err != nil {
 12699  		return nil, err
 12700  	}
 12701  	req.Header = reqHeaders
 12702  	googleapi.Expand(req.URL, map[string]string{
 12703  		"parent": c.parent,
 12704  	})
 12705  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12706  }
 12707  
 12708  // Do executes the "apigee.organizations.list" call.
 12709  // Any non-2xx status code is an error. Response headers are in either
 12710  // *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header or (if a
 12711  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12712  // googleapi.IsNotModified to check whether the returned error was because
 12713  // http.StatusNotModified was returned.
 12714  func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
 12715  	gensupport.SetOptions(c.urlParams_, opts...)
 12716  	res, err := c.doRequest("json")
 12717  	if res != nil && res.StatusCode == http.StatusNotModified {
 12718  		if res.Body != nil {
 12719  			res.Body.Close()
 12720  		}
 12721  		return nil, gensupport.WrapError(&googleapi.Error{
 12722  			Code:   res.StatusCode,
 12723  			Header: res.Header,
 12724  		})
 12725  	}
 12726  	if err != nil {
 12727  		return nil, err
 12728  	}
 12729  	defer googleapi.CloseBody(res)
 12730  	if err := googleapi.CheckResponse(res); err != nil {
 12731  		return nil, gensupport.WrapError(err)
 12732  	}
 12733  	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
 12734  		ServerResponse: googleapi.ServerResponse{
 12735  			Header:         res.Header,
 12736  			HTTPStatusCode: res.StatusCode,
 12737  		},
 12738  	}
 12739  	target := &ret
 12740  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12741  		return nil, err
 12742  	}
 12743  	return ret, nil
 12744  }
 12745  
 12746  type OrganizationsSetAddonsCall struct {
 12747  	s                                   *Service
 12748  	org                                 string
 12749  	googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest
 12750  	urlParams_                          gensupport.URLParams
 12751  	ctx_                                context.Context
 12752  	header_                             http.Header
 12753  }
 12754  
 12755  // SetAddons: Configures the add-ons for the Apigee organization. The existing
 12756  // add-on configuration will be fully replaced.
 12757  //
 12758  //   - org: Name of the organization. Use the following structure in your
 12759  //     request: `organizations/{org}`.
 12760  func (r *OrganizationsService) SetAddons(org string, googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest) *OrganizationsSetAddonsCall {
 12761  	c := &OrganizationsSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12762  	c.org = org
 12763  	c.googlecloudapigeev1setaddonsrequest = googlecloudapigeev1setaddonsrequest
 12764  	return c
 12765  }
 12766  
 12767  // Fields allows partial responses to be retrieved. See
 12768  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12769  // details.
 12770  func (c *OrganizationsSetAddonsCall) Fields(s ...googleapi.Field) *OrganizationsSetAddonsCall {
 12771  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12772  	return c
 12773  }
 12774  
 12775  // Context sets the context to be used in this call's Do method.
 12776  func (c *OrganizationsSetAddonsCall) Context(ctx context.Context) *OrganizationsSetAddonsCall {
 12777  	c.ctx_ = ctx
 12778  	return c
 12779  }
 12780  
 12781  // Header returns a http.Header that can be modified by the caller to add
 12782  // headers to the request.
 12783  func (c *OrganizationsSetAddonsCall) Header() http.Header {
 12784  	if c.header_ == nil {
 12785  		c.header_ = make(http.Header)
 12786  	}
 12787  	return c.header_
 12788  }
 12789  
 12790  func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, error) {
 12791  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12792  	var body io.Reader = nil
 12793  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonsrequest)
 12794  	if err != nil {
 12795  		return nil, err
 12796  	}
 12797  	c.urlParams_.Set("alt", alt)
 12798  	c.urlParams_.Set("prettyPrint", "false")
 12799  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+org}:setAddons")
 12800  	urls += "?" + c.urlParams_.Encode()
 12801  	req, err := http.NewRequest("POST", urls, body)
 12802  	if err != nil {
 12803  		return nil, err
 12804  	}
 12805  	req.Header = reqHeaders
 12806  	googleapi.Expand(req.URL, map[string]string{
 12807  		"org": c.org,
 12808  	})
 12809  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12810  }
 12811  
 12812  // Do executes the "apigee.organizations.setAddons" call.
 12813  // Any non-2xx status code is an error. Response headers are in either
 12814  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12815  // returned at all) in error.(*googleapi.Error).Header. Use
 12816  // googleapi.IsNotModified to check whether the returned error was because
 12817  // http.StatusNotModified was returned.
 12818  func (c *OrganizationsSetAddonsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12819  	gensupport.SetOptions(c.urlParams_, opts...)
 12820  	res, err := c.doRequest("json")
 12821  	if res != nil && res.StatusCode == http.StatusNotModified {
 12822  		if res.Body != nil {
 12823  			res.Body.Close()
 12824  		}
 12825  		return nil, gensupport.WrapError(&googleapi.Error{
 12826  			Code:   res.StatusCode,
 12827  			Header: res.Header,
 12828  		})
 12829  	}
 12830  	if err != nil {
 12831  		return nil, err
 12832  	}
 12833  	defer googleapi.CloseBody(res)
 12834  	if err := googleapi.CheckResponse(res); err != nil {
 12835  		return nil, gensupport.WrapError(err)
 12836  	}
 12837  	ret := &GoogleLongrunningOperation{
 12838  		ServerResponse: googleapi.ServerResponse{
 12839  			Header:         res.Header,
 12840  			HTTPStatusCode: res.StatusCode,
 12841  		},
 12842  	}
 12843  	target := &ret
 12844  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12845  		return nil, err
 12846  	}
 12847  	return ret, nil
 12848  }
 12849  
 12850  type OrganizationsSetSyncAuthorizationCall struct {
 12851  	s                                    *Service
 12852  	name                                 string
 12853  	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
 12854  	urlParams_                           gensupport.URLParams
 12855  	ctx_                                 context.Context
 12856  	header_                              http.Header
 12857  }
 12858  
 12859  // SetSyncAuthorization: Sets the permissions required to allow the
 12860  // Synchronizer to download environment data from the control plane. You must
 12861  // call this API to enable proper functioning of hybrid. Pass the ETag when
 12862  // calling `setSyncAuthorization` to ensure that you are updating the correct
 12863  // version. To get an ETag, call getSyncAuthorization (getSyncAuthorization).
 12864  // If you don't pass the ETag in the call to `setSyncAuthorization`, then the
 12865  // existing authorization is overwritten indiscriminately. For more
 12866  // information, see Configure the Synchronizer
 12867  // (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
 12868  // **Note**: Available to Apigee hybrid only.
 12869  //
 12870  //   - name: Name of the Apigee organization. Use the following structure in your
 12871  //     request: `organizations/{org}`.
 12872  func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
 12873  	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12874  	c.name = name
 12875  	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
 12876  	return c
 12877  }
 12878  
 12879  // Fields allows partial responses to be retrieved. See
 12880  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12881  // details.
 12882  func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
 12883  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12884  	return c
 12885  }
 12886  
 12887  // Context sets the context to be used in this call's Do method.
 12888  func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
 12889  	c.ctx_ = ctx
 12890  	return c
 12891  }
 12892  
 12893  // Header returns a http.Header that can be modified by the caller to add
 12894  // headers to the request.
 12895  func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
 12896  	if c.header_ == nil {
 12897  		c.header_ = make(http.Header)
 12898  	}
 12899  	return c.header_
 12900  }
 12901  
 12902  func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
 12903  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12904  	var body io.Reader = nil
 12905  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
 12906  	if err != nil {
 12907  		return nil, err
 12908  	}
 12909  	c.urlParams_.Set("alt", alt)
 12910  	c.urlParams_.Set("prettyPrint", "false")
 12911  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
 12912  	urls += "?" + c.urlParams_.Encode()
 12913  	req, err := http.NewRequest("POST", urls, body)
 12914  	if err != nil {
 12915  		return nil, err
 12916  	}
 12917  	req.Header = reqHeaders
 12918  	googleapi.Expand(req.URL, map[string]string{
 12919  		"name": c.name,
 12920  	})
 12921  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12922  }
 12923  
 12924  // Do executes the "apigee.organizations.setSyncAuthorization" call.
 12925  // Any non-2xx status code is an error. Response headers are in either
 12926  // *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or (if a
 12927  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12928  // googleapi.IsNotModified to check whether the returned error was because
 12929  // http.StatusNotModified was returned.
 12930  func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
 12931  	gensupport.SetOptions(c.urlParams_, opts...)
 12932  	res, err := c.doRequest("json")
 12933  	if res != nil && res.StatusCode == http.StatusNotModified {
 12934  		if res.Body != nil {
 12935  			res.Body.Close()
 12936  		}
 12937  		return nil, gensupport.WrapError(&googleapi.Error{
 12938  			Code:   res.StatusCode,
 12939  			Header: res.Header,
 12940  		})
 12941  	}
 12942  	if err != nil {
 12943  		return nil, err
 12944  	}
 12945  	defer googleapi.CloseBody(res)
 12946  	if err := googleapi.CheckResponse(res); err != nil {
 12947  		return nil, gensupport.WrapError(err)
 12948  	}
 12949  	ret := &GoogleCloudApigeeV1SyncAuthorization{
 12950  		ServerResponse: googleapi.ServerResponse{
 12951  			Header:         res.Header,
 12952  			HTTPStatusCode: res.StatusCode,
 12953  		},
 12954  	}
 12955  	target := &ret
 12956  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12957  		return nil, err
 12958  	}
 12959  	return ret, nil
 12960  }
 12961  
 12962  type OrganizationsUpdateCall struct {
 12963  	s                               *Service
 12964  	name                            string
 12965  	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
 12966  	urlParams_                      gensupport.URLParams
 12967  	ctx_                            context.Context
 12968  	header_                         http.Header
 12969  }
 12970  
 12971  // Update: Updates the properties for an Apigee organization. No other fields
 12972  // in the organization profile will be updated.
 12973  //
 12974  //   - name: Apigee organization name in the following format:
 12975  //     `organizations/{org}`.
 12976  func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
 12977  	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12978  	c.name = name
 12979  	c.googlecloudapigeev1organization = googlecloudapigeev1organization
 12980  	return c
 12981  }
 12982  
 12983  // Fields allows partial responses to be retrieved. See
 12984  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12985  // details.
 12986  func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
 12987  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12988  	return c
 12989  }
 12990  
 12991  // Context sets the context to be used in this call's Do method.
 12992  func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
 12993  	c.ctx_ = ctx
 12994  	return c
 12995  }
 12996  
 12997  // Header returns a http.Header that can be modified by the caller to add
 12998  // headers to the request.
 12999  func (c *OrganizationsUpdateCall) Header() http.Header {
 13000  	if c.header_ == nil {
 13001  		c.header_ = make(http.Header)
 13002  	}
 13003  	return c.header_
 13004  }
 13005  
 13006  func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
 13007  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13008  	var body io.Reader = nil
 13009  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
 13010  	if err != nil {
 13011  		return nil, err
 13012  	}
 13013  	c.urlParams_.Set("alt", alt)
 13014  	c.urlParams_.Set("prettyPrint", "false")
 13015  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13016  	urls += "?" + c.urlParams_.Encode()
 13017  	req, err := http.NewRequest("PUT", urls, body)
 13018  	if err != nil {
 13019  		return nil, err
 13020  	}
 13021  	req.Header = reqHeaders
 13022  	googleapi.Expand(req.URL, map[string]string{
 13023  		"name": c.name,
 13024  	})
 13025  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13026  }
 13027  
 13028  // Do executes the "apigee.organizations.update" call.
 13029  // Any non-2xx status code is an error. Response headers are in either
 13030  // *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if a response was
 13031  // returned at all) in error.(*googleapi.Error).Header. Use
 13032  // googleapi.IsNotModified to check whether the returned error was because
 13033  // http.StatusNotModified was returned.
 13034  func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
 13035  	gensupport.SetOptions(c.urlParams_, opts...)
 13036  	res, err := c.doRequest("json")
 13037  	if res != nil && res.StatusCode == http.StatusNotModified {
 13038  		if res.Body != nil {
 13039  			res.Body.Close()
 13040  		}
 13041  		return nil, gensupport.WrapError(&googleapi.Error{
 13042  			Code:   res.StatusCode,
 13043  			Header: res.Header,
 13044  		})
 13045  	}
 13046  	if err != nil {
 13047  		return nil, err
 13048  	}
 13049  	defer googleapi.CloseBody(res)
 13050  	if err := googleapi.CheckResponse(res); err != nil {
 13051  		return nil, gensupport.WrapError(err)
 13052  	}
 13053  	ret := &GoogleCloudApigeeV1Organization{
 13054  		ServerResponse: googleapi.ServerResponse{
 13055  			Header:         res.Header,
 13056  			HTTPStatusCode: res.StatusCode,
 13057  		},
 13058  	}
 13059  	target := &ret
 13060  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13061  		return nil, err
 13062  	}
 13063  	return ret, nil
 13064  }
 13065  
 13066  type OrganizationsUpdateSecuritySettingsCall struct {
 13067  	s                                   *Service
 13068  	name                                string
 13069  	googlecloudapigeev1securitysettings *GoogleCloudApigeeV1SecuritySettings
 13070  	urlParams_                          gensupport.URLParams
 13071  	ctx_                                context.Context
 13072  	header_                             http.Header
 13073  }
 13074  
 13075  // UpdateSecuritySettings: UpdateSecuritySettings updates the current security
 13076  // settings for API Security.
 13077  //
 13078  //   - name: Identifier. Full resource name is always
 13079  //     `organizations/{org}/securitySettings`.
 13080  func (r *OrganizationsService) UpdateSecuritySettings(name string, googlecloudapigeev1securitysettings *GoogleCloudApigeeV1SecuritySettings) *OrganizationsUpdateSecuritySettingsCall {
 13081  	c := &OrganizationsUpdateSecuritySettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13082  	c.name = name
 13083  	c.googlecloudapigeev1securitysettings = googlecloudapigeev1securitysettings
 13084  	return c
 13085  }
 13086  
 13087  // UpdateMask sets the optional parameter "updateMask": The list of fields to
 13088  // update. Allowed fields are: - ml_retraining_feedback_enabled
 13089  func (c *OrganizationsUpdateSecuritySettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateSecuritySettingsCall {
 13090  	c.urlParams_.Set("updateMask", updateMask)
 13091  	return c
 13092  }
 13093  
 13094  // Fields allows partial responses to be retrieved. See
 13095  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13096  // details.
 13097  func (c *OrganizationsUpdateSecuritySettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateSecuritySettingsCall {
 13098  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13099  	return c
 13100  }
 13101  
 13102  // Context sets the context to be used in this call's Do method.
 13103  func (c *OrganizationsUpdateSecuritySettingsCall) Context(ctx context.Context) *OrganizationsUpdateSecuritySettingsCall {
 13104  	c.ctx_ = ctx
 13105  	return c
 13106  }
 13107  
 13108  // Header returns a http.Header that can be modified by the caller to add
 13109  // headers to the request.
 13110  func (c *OrganizationsUpdateSecuritySettingsCall) Header() http.Header {
 13111  	if c.header_ == nil {
 13112  		c.header_ = make(http.Header)
 13113  	}
 13114  	return c.header_
 13115  }
 13116  
 13117  func (c *OrganizationsUpdateSecuritySettingsCall) doRequest(alt string) (*http.Response, error) {
 13118  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13119  	var body io.Reader = nil
 13120  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securitysettings)
 13121  	if err != nil {
 13122  		return nil, err
 13123  	}
 13124  	c.urlParams_.Set("alt", alt)
 13125  	c.urlParams_.Set("prettyPrint", "false")
 13126  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13127  	urls += "?" + c.urlParams_.Encode()
 13128  	req, err := http.NewRequest("PATCH", urls, body)
 13129  	if err != nil {
 13130  		return nil, err
 13131  	}
 13132  	req.Header = reqHeaders
 13133  	googleapi.Expand(req.URL, map[string]string{
 13134  		"name": c.name,
 13135  	})
 13136  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13137  }
 13138  
 13139  // Do executes the "apigee.organizations.updateSecuritySettings" call.
 13140  // Any non-2xx status code is an error. Response headers are in either
 13141  // *GoogleCloudApigeeV1SecuritySettings.ServerResponse.Header or (if a response
 13142  // was returned at all) in error.(*googleapi.Error).Header. Use
 13143  // googleapi.IsNotModified to check whether the returned error was because
 13144  // http.StatusNotModified was returned.
 13145  func (c *OrganizationsUpdateSecuritySettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecuritySettings, error) {
 13146  	gensupport.SetOptions(c.urlParams_, opts...)
 13147  	res, err := c.doRequest("json")
 13148  	if res != nil && res.StatusCode == http.StatusNotModified {
 13149  		if res.Body != nil {
 13150  			res.Body.Close()
 13151  		}
 13152  		return nil, gensupport.WrapError(&googleapi.Error{
 13153  			Code:   res.StatusCode,
 13154  			Header: res.Header,
 13155  		})
 13156  	}
 13157  	if err != nil {
 13158  		return nil, err
 13159  	}
 13160  	defer googleapi.CloseBody(res)
 13161  	if err := googleapi.CheckResponse(res); err != nil {
 13162  		return nil, gensupport.WrapError(err)
 13163  	}
 13164  	ret := &GoogleCloudApigeeV1SecuritySettings{
 13165  		ServerResponse: googleapi.ServerResponse{
 13166  			Header:         res.Header,
 13167  			HTTPStatusCode: res.StatusCode,
 13168  		},
 13169  	}
 13170  	target := &ret
 13171  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13172  		return nil, err
 13173  	}
 13174  	return ret, nil
 13175  }
 13176  
 13177  type OrganizationsAnalyticsDatastoresCreateCall struct {
 13178  	s                            *Service
 13179  	parent                       string
 13180  	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
 13181  	urlParams_                   gensupport.URLParams
 13182  	ctx_                         context.Context
 13183  	header_                      http.Header
 13184  }
 13185  
 13186  // Create: Create a Datastore for an org
 13187  //
 13188  //   - parent: The parent organization name. Must be of the form
 13189  //     `organizations/{org}`.
 13190  func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
 13191  	c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13192  	c.parent = parent
 13193  	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
 13194  	return c
 13195  }
 13196  
 13197  // Fields allows partial responses to be retrieved. See
 13198  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13199  // details.
 13200  func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
 13201  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13202  	return c
 13203  }
 13204  
 13205  // Context sets the context to be used in this call's Do method.
 13206  func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
 13207  	c.ctx_ = ctx
 13208  	return c
 13209  }
 13210  
 13211  // Header returns a http.Header that can be modified by the caller to add
 13212  // headers to the request.
 13213  func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
 13214  	if c.header_ == nil {
 13215  		c.header_ = make(http.Header)
 13216  	}
 13217  	return c.header_
 13218  }
 13219  
 13220  func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
 13221  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13222  	var body io.Reader = nil
 13223  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
 13224  	if err != nil {
 13225  		return nil, err
 13226  	}
 13227  	c.urlParams_.Set("alt", alt)
 13228  	c.urlParams_.Set("prettyPrint", "false")
 13229  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
 13230  	urls += "?" + c.urlParams_.Encode()
 13231  	req, err := http.NewRequest("POST", urls, body)
 13232  	if err != nil {
 13233  		return nil, err
 13234  	}
 13235  	req.Header = reqHeaders
 13236  	googleapi.Expand(req.URL, map[string]string{
 13237  		"parent": c.parent,
 13238  	})
 13239  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13240  }
 13241  
 13242  // Do executes the "apigee.organizations.analytics.datastores.create" call.
 13243  // Any non-2xx status code is an error. Response headers are in either
 13244  // *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a response was
 13245  // returned at all) in error.(*googleapi.Error).Header. Use
 13246  // googleapi.IsNotModified to check whether the returned error was because
 13247  // http.StatusNotModified was returned.
 13248  func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
 13249  	gensupport.SetOptions(c.urlParams_, opts...)
 13250  	res, err := c.doRequest("json")
 13251  	if res != nil && res.StatusCode == http.StatusNotModified {
 13252  		if res.Body != nil {
 13253  			res.Body.Close()
 13254  		}
 13255  		return nil, gensupport.WrapError(&googleapi.Error{
 13256  			Code:   res.StatusCode,
 13257  			Header: res.Header,
 13258  		})
 13259  	}
 13260  	if err != nil {
 13261  		return nil, err
 13262  	}
 13263  	defer googleapi.CloseBody(res)
 13264  	if err := googleapi.CheckResponse(res); err != nil {
 13265  		return nil, gensupport.WrapError(err)
 13266  	}
 13267  	ret := &GoogleCloudApigeeV1Datastore{
 13268  		ServerResponse: googleapi.ServerResponse{
 13269  			Header:         res.Header,
 13270  			HTTPStatusCode: res.StatusCode,
 13271  		},
 13272  	}
 13273  	target := &ret
 13274  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13275  		return nil, err
 13276  	}
 13277  	return ret, nil
 13278  }
 13279  
 13280  type OrganizationsAnalyticsDatastoresDeleteCall struct {
 13281  	s          *Service
 13282  	name       string
 13283  	urlParams_ gensupport.URLParams
 13284  	ctx_       context.Context
 13285  	header_    http.Header
 13286  }
 13287  
 13288  // Delete: Delete a Datastore from an org.
 13289  //
 13290  //   - name: Resource name of the Datastore to be deleted. Must be of the form
 13291  //     `organizations/{org}/analytics/datastores/{datastoreId}`.
 13292  func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
 13293  	c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13294  	c.name = name
 13295  	return c
 13296  }
 13297  
 13298  // Fields allows partial responses to be retrieved. See
 13299  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13300  // details.
 13301  func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
 13302  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13303  	return c
 13304  }
 13305  
 13306  // Context sets the context to be used in this call's Do method.
 13307  func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
 13308  	c.ctx_ = ctx
 13309  	return c
 13310  }
 13311  
 13312  // Header returns a http.Header that can be modified by the caller to add
 13313  // headers to the request.
 13314  func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
 13315  	if c.header_ == nil {
 13316  		c.header_ = make(http.Header)
 13317  	}
 13318  	return c.header_
 13319  }
 13320  
 13321  func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 13322  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13323  	var body io.Reader = nil
 13324  	c.urlParams_.Set("alt", alt)
 13325  	c.urlParams_.Set("prettyPrint", "false")
 13326  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13327  	urls += "?" + c.urlParams_.Encode()
 13328  	req, err := http.NewRequest("DELETE", urls, body)
 13329  	if err != nil {
 13330  		return nil, err
 13331  	}
 13332  	req.Header = reqHeaders
 13333  	googleapi.Expand(req.URL, map[string]string{
 13334  		"name": c.name,
 13335  	})
 13336  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13337  }
 13338  
 13339  // Do executes the "apigee.organizations.analytics.datastores.delete" call.
 13340  // Any non-2xx status code is an error. Response headers are in either
 13341  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 13342  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13343  // check whether the returned error was because http.StatusNotModified was
 13344  // returned.
 13345  func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 13346  	gensupport.SetOptions(c.urlParams_, opts...)
 13347  	res, err := c.doRequest("json")
 13348  	if res != nil && res.StatusCode == http.StatusNotModified {
 13349  		if res.Body != nil {
 13350  			res.Body.Close()
 13351  		}
 13352  		return nil, gensupport.WrapError(&googleapi.Error{
 13353  			Code:   res.StatusCode,
 13354  			Header: res.Header,
 13355  		})
 13356  	}
 13357  	if err != nil {
 13358  		return nil, err
 13359  	}
 13360  	defer googleapi.CloseBody(res)
 13361  	if err := googleapi.CheckResponse(res); err != nil {
 13362  		return nil, gensupport.WrapError(err)
 13363  	}
 13364  	ret := &GoogleProtobufEmpty{
 13365  		ServerResponse: googleapi.ServerResponse{
 13366  			Header:         res.Header,
 13367  			HTTPStatusCode: res.StatusCode,
 13368  		},
 13369  	}
 13370  	target := &ret
 13371  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13372  		return nil, err
 13373  	}
 13374  	return ret, nil
 13375  }
 13376  
 13377  type OrganizationsAnalyticsDatastoresGetCall struct {
 13378  	s            *Service
 13379  	name         string
 13380  	urlParams_   gensupport.URLParams
 13381  	ifNoneMatch_ string
 13382  	ctx_         context.Context
 13383  	header_      http.Header
 13384  }
 13385  
 13386  // Get: Get a Datastore
 13387  //
 13388  //   - name: Resource name of the Datastore to be get. Must be of the form
 13389  //     `organizations/{org}/analytics/datastores/{datastoreId}`.
 13390  func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
 13391  	c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13392  	c.name = name
 13393  	return c
 13394  }
 13395  
 13396  // Fields allows partial responses to be retrieved. See
 13397  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13398  // details.
 13399  func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
 13400  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13401  	return c
 13402  }
 13403  
 13404  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13405  // object's ETag matches the given value. This is useful for getting updates
 13406  // only after the object has changed since the last request.
 13407  func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
 13408  	c.ifNoneMatch_ = entityTag
 13409  	return c
 13410  }
 13411  
 13412  // Context sets the context to be used in this call's Do method.
 13413  func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
 13414  	c.ctx_ = ctx
 13415  	return c
 13416  }
 13417  
 13418  // Header returns a http.Header that can be modified by the caller to add
 13419  // headers to the request.
 13420  func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
 13421  	if c.header_ == nil {
 13422  		c.header_ = make(http.Header)
 13423  	}
 13424  	return c.header_
 13425  }
 13426  
 13427  func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
 13428  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13429  	if c.ifNoneMatch_ != "" {
 13430  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13431  	}
 13432  	var body io.Reader = nil
 13433  	c.urlParams_.Set("alt", alt)
 13434  	c.urlParams_.Set("prettyPrint", "false")
 13435  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13436  	urls += "?" + c.urlParams_.Encode()
 13437  	req, err := http.NewRequest("GET", urls, body)
 13438  	if err != nil {
 13439  		return nil, err
 13440  	}
 13441  	req.Header = reqHeaders
 13442  	googleapi.Expand(req.URL, map[string]string{
 13443  		"name": c.name,
 13444  	})
 13445  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13446  }
 13447  
 13448  // Do executes the "apigee.organizations.analytics.datastores.get" call.
 13449  // Any non-2xx status code is an error. Response headers are in either
 13450  // *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a response was
 13451  // returned at all) in error.(*googleapi.Error).Header. Use
 13452  // googleapi.IsNotModified to check whether the returned error was because
 13453  // http.StatusNotModified was returned.
 13454  func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
 13455  	gensupport.SetOptions(c.urlParams_, opts...)
 13456  	res, err := c.doRequest("json")
 13457  	if res != nil && res.StatusCode == http.StatusNotModified {
 13458  		if res.Body != nil {
 13459  			res.Body.Close()
 13460  		}
 13461  		return nil, gensupport.WrapError(&googleapi.Error{
 13462  			Code:   res.StatusCode,
 13463  			Header: res.Header,
 13464  		})
 13465  	}
 13466  	if err != nil {
 13467  		return nil, err
 13468  	}
 13469  	defer googleapi.CloseBody(res)
 13470  	if err := googleapi.CheckResponse(res); err != nil {
 13471  		return nil, gensupport.WrapError(err)
 13472  	}
 13473  	ret := &GoogleCloudApigeeV1Datastore{
 13474  		ServerResponse: googleapi.ServerResponse{
 13475  			Header:         res.Header,
 13476  			HTTPStatusCode: res.StatusCode,
 13477  		},
 13478  	}
 13479  	target := &ret
 13480  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13481  		return nil, err
 13482  	}
 13483  	return ret, nil
 13484  }
 13485  
 13486  type OrganizationsAnalyticsDatastoresListCall struct {
 13487  	s            *Service
 13488  	parent       string
 13489  	urlParams_   gensupport.URLParams
 13490  	ifNoneMatch_ string
 13491  	ctx_         context.Context
 13492  	header_      http.Header
 13493  }
 13494  
 13495  // List: List Datastores
 13496  //
 13497  //   - parent: The parent organization name. Must be of the form
 13498  //     `organizations/{org}`.
 13499  func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
 13500  	c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13501  	c.parent = parent
 13502  	return c
 13503  }
 13504  
 13505  // TargetType sets the optional parameter "targetType": TargetType is used to
 13506  // fetch all Datastores that match the type
 13507  func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
 13508  	c.urlParams_.Set("targetType", targetType)
 13509  	return c
 13510  }
 13511  
 13512  // Fields allows partial responses to be retrieved. See
 13513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13514  // details.
 13515  func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
 13516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13517  	return c
 13518  }
 13519  
 13520  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13521  // object's ETag matches the given value. This is useful for getting updates
 13522  // only after the object has changed since the last request.
 13523  func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
 13524  	c.ifNoneMatch_ = entityTag
 13525  	return c
 13526  }
 13527  
 13528  // Context sets the context to be used in this call's Do method.
 13529  func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
 13530  	c.ctx_ = ctx
 13531  	return c
 13532  }
 13533  
 13534  // Header returns a http.Header that can be modified by the caller to add
 13535  // headers to the request.
 13536  func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
 13537  	if c.header_ == nil {
 13538  		c.header_ = make(http.Header)
 13539  	}
 13540  	return c.header_
 13541  }
 13542  
 13543  func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
 13544  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13545  	if c.ifNoneMatch_ != "" {
 13546  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13547  	}
 13548  	var body io.Reader = nil
 13549  	c.urlParams_.Set("alt", alt)
 13550  	c.urlParams_.Set("prettyPrint", "false")
 13551  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
 13552  	urls += "?" + c.urlParams_.Encode()
 13553  	req, err := http.NewRequest("GET", urls, body)
 13554  	if err != nil {
 13555  		return nil, err
 13556  	}
 13557  	req.Header = reqHeaders
 13558  	googleapi.Expand(req.URL, map[string]string{
 13559  		"parent": c.parent,
 13560  	})
 13561  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13562  }
 13563  
 13564  // Do executes the "apigee.organizations.analytics.datastores.list" call.
 13565  // Any non-2xx status code is an error. Response headers are in either
 13566  // *GoogleCloudApigeeV1ListDatastoresResponse.ServerResponse.Header or (if a
 13567  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13568  // googleapi.IsNotModified to check whether the returned error was because
 13569  // http.StatusNotModified was returned.
 13570  func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
 13571  	gensupport.SetOptions(c.urlParams_, opts...)
 13572  	res, err := c.doRequest("json")
 13573  	if res != nil && res.StatusCode == http.StatusNotModified {
 13574  		if res.Body != nil {
 13575  			res.Body.Close()
 13576  		}
 13577  		return nil, gensupport.WrapError(&googleapi.Error{
 13578  			Code:   res.StatusCode,
 13579  			Header: res.Header,
 13580  		})
 13581  	}
 13582  	if err != nil {
 13583  		return nil, err
 13584  	}
 13585  	defer googleapi.CloseBody(res)
 13586  	if err := googleapi.CheckResponse(res); err != nil {
 13587  		return nil, gensupport.WrapError(err)
 13588  	}
 13589  	ret := &GoogleCloudApigeeV1ListDatastoresResponse{
 13590  		ServerResponse: googleapi.ServerResponse{
 13591  			Header:         res.Header,
 13592  			HTTPStatusCode: res.StatusCode,
 13593  		},
 13594  	}
 13595  	target := &ret
 13596  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13597  		return nil, err
 13598  	}
 13599  	return ret, nil
 13600  }
 13601  
 13602  type OrganizationsAnalyticsDatastoresTestCall struct {
 13603  	s                            *Service
 13604  	parent                       string
 13605  	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
 13606  	urlParams_                   gensupport.URLParams
 13607  	ctx_                         context.Context
 13608  	header_                      http.Header
 13609  }
 13610  
 13611  // Test: Test if Datastore configuration is correct. This includes checking if
 13612  // credentials provided by customer have required permissions in target
 13613  // destination storage
 13614  //
 13615  //   - parent: The parent organization name Must be of the form
 13616  //     `organizations/{org}`.
 13617  func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
 13618  	c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13619  	c.parent = parent
 13620  	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
 13621  	return c
 13622  }
 13623  
 13624  // Fields allows partial responses to be retrieved. See
 13625  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13626  // details.
 13627  func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
 13628  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13629  	return c
 13630  }
 13631  
 13632  // Context sets the context to be used in this call's Do method.
 13633  func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
 13634  	c.ctx_ = ctx
 13635  	return c
 13636  }
 13637  
 13638  // Header returns a http.Header that can be modified by the caller to add
 13639  // headers to the request.
 13640  func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
 13641  	if c.header_ == nil {
 13642  		c.header_ = make(http.Header)
 13643  	}
 13644  	return c.header_
 13645  }
 13646  
 13647  func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
 13648  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13649  	var body io.Reader = nil
 13650  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
 13651  	if err != nil {
 13652  		return nil, err
 13653  	}
 13654  	c.urlParams_.Set("alt", alt)
 13655  	c.urlParams_.Set("prettyPrint", "false")
 13656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
 13657  	urls += "?" + c.urlParams_.Encode()
 13658  	req, err := http.NewRequest("POST", urls, body)
 13659  	if err != nil {
 13660  		return nil, err
 13661  	}
 13662  	req.Header = reqHeaders
 13663  	googleapi.Expand(req.URL, map[string]string{
 13664  		"parent": c.parent,
 13665  	})
 13666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13667  }
 13668  
 13669  // Do executes the "apigee.organizations.analytics.datastores.test" call.
 13670  // Any non-2xx status code is an error. Response headers are in either
 13671  // *GoogleCloudApigeeV1TestDatastoreResponse.ServerResponse.Header or (if a
 13672  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13673  // googleapi.IsNotModified to check whether the returned error was because
 13674  // http.StatusNotModified was returned.
 13675  func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
 13676  	gensupport.SetOptions(c.urlParams_, opts...)
 13677  	res, err := c.doRequest("json")
 13678  	if res != nil && res.StatusCode == http.StatusNotModified {
 13679  		if res.Body != nil {
 13680  			res.Body.Close()
 13681  		}
 13682  		return nil, gensupport.WrapError(&googleapi.Error{
 13683  			Code:   res.StatusCode,
 13684  			Header: res.Header,
 13685  		})
 13686  	}
 13687  	if err != nil {
 13688  		return nil, err
 13689  	}
 13690  	defer googleapi.CloseBody(res)
 13691  	if err := googleapi.CheckResponse(res); err != nil {
 13692  		return nil, gensupport.WrapError(err)
 13693  	}
 13694  	ret := &GoogleCloudApigeeV1TestDatastoreResponse{
 13695  		ServerResponse: googleapi.ServerResponse{
 13696  			Header:         res.Header,
 13697  			HTTPStatusCode: res.StatusCode,
 13698  		},
 13699  	}
 13700  	target := &ret
 13701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13702  		return nil, err
 13703  	}
 13704  	return ret, nil
 13705  }
 13706  
 13707  type OrganizationsAnalyticsDatastoresUpdateCall struct {
 13708  	s                            *Service
 13709  	name                         string
 13710  	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
 13711  	urlParams_                   gensupport.URLParams
 13712  	ctx_                         context.Context
 13713  	header_                      http.Header
 13714  }
 13715  
 13716  // Update: Update a Datastore
 13717  //
 13718  //   - name: The resource name of datastore to be updated. Must be of the form
 13719  //     `organizations/{org}/analytics/datastores/{datastoreId}`.
 13720  func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
 13721  	c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13722  	c.name = name
 13723  	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
 13724  	return c
 13725  }
 13726  
 13727  // Fields allows partial responses to be retrieved. See
 13728  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13729  // details.
 13730  func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
 13731  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13732  	return c
 13733  }
 13734  
 13735  // Context sets the context to be used in this call's Do method.
 13736  func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
 13737  	c.ctx_ = ctx
 13738  	return c
 13739  }
 13740  
 13741  // Header returns a http.Header that can be modified by the caller to add
 13742  // headers to the request.
 13743  func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
 13744  	if c.header_ == nil {
 13745  		c.header_ = make(http.Header)
 13746  	}
 13747  	return c.header_
 13748  }
 13749  
 13750  func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
 13751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13752  	var body io.Reader = nil
 13753  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
 13754  	if err != nil {
 13755  		return nil, err
 13756  	}
 13757  	c.urlParams_.Set("alt", alt)
 13758  	c.urlParams_.Set("prettyPrint", "false")
 13759  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13760  	urls += "?" + c.urlParams_.Encode()
 13761  	req, err := http.NewRequest("PUT", urls, body)
 13762  	if err != nil {
 13763  		return nil, err
 13764  	}
 13765  	req.Header = reqHeaders
 13766  	googleapi.Expand(req.URL, map[string]string{
 13767  		"name": c.name,
 13768  	})
 13769  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13770  }
 13771  
 13772  // Do executes the "apigee.organizations.analytics.datastores.update" call.
 13773  // Any non-2xx status code is an error. Response headers are in either
 13774  // *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a response was
 13775  // returned at all) in error.(*googleapi.Error).Header. Use
 13776  // googleapi.IsNotModified to check whether the returned error was because
 13777  // http.StatusNotModified was returned.
 13778  func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
 13779  	gensupport.SetOptions(c.urlParams_, opts...)
 13780  	res, err := c.doRequest("json")
 13781  	if res != nil && res.StatusCode == http.StatusNotModified {
 13782  		if res.Body != nil {
 13783  			res.Body.Close()
 13784  		}
 13785  		return nil, gensupport.WrapError(&googleapi.Error{
 13786  			Code:   res.StatusCode,
 13787  			Header: res.Header,
 13788  		})
 13789  	}
 13790  	if err != nil {
 13791  		return nil, err
 13792  	}
 13793  	defer googleapi.CloseBody(res)
 13794  	if err := googleapi.CheckResponse(res); err != nil {
 13795  		return nil, gensupport.WrapError(err)
 13796  	}
 13797  	ret := &GoogleCloudApigeeV1Datastore{
 13798  		ServerResponse: googleapi.ServerResponse{
 13799  			Header:         res.Header,
 13800  			HTTPStatusCode: res.StatusCode,
 13801  		},
 13802  	}
 13803  	target := &ret
 13804  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13805  		return nil, err
 13806  	}
 13807  	return ret, nil
 13808  }
 13809  
 13810  type OrganizationsApiproductsAttributesCall struct {
 13811  	s                             *Service
 13812  	name                          string
 13813  	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
 13814  	urlParams_                    gensupport.URLParams
 13815  	ctx_                          context.Context
 13816  	header_                       http.Header
 13817  }
 13818  
 13819  // Attributes: Updates or creates API product attributes. This API **replaces**
 13820  // the current list of attributes with the attributes specified in the request
 13821  // body. In this way, you can update existing attributes, add new attributes,
 13822  // or delete existing attributes by omitting them from the request body.
 13823  // **Note**: OAuth access tokens and Key Management Service (KMS) entities
 13824  // (apps, developers, and API products) are cached for 180 seconds (current
 13825  // default). Any custom attributes associated with entities also get cached for
 13826  // at least 180 seconds after entity is accessed during runtime. In this case,
 13827  // the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
 13828  // access token in less than 180 seconds.
 13829  //
 13830  //   - name: Name of the API product. Use the following structure in your
 13831  //     request: `organizations/{org}/apiproducts/{apiproduct}`.
 13832  func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
 13833  	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13834  	c.name = name
 13835  	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
 13836  	return c
 13837  }
 13838  
 13839  // Fields allows partial responses to be retrieved. See
 13840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13841  // details.
 13842  func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
 13843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13844  	return c
 13845  }
 13846  
 13847  // Context sets the context to be used in this call's Do method.
 13848  func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
 13849  	c.ctx_ = ctx
 13850  	return c
 13851  }
 13852  
 13853  // Header returns a http.Header that can be modified by the caller to add
 13854  // headers to the request.
 13855  func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
 13856  	if c.header_ == nil {
 13857  		c.header_ = make(http.Header)
 13858  	}
 13859  	return c.header_
 13860  }
 13861  
 13862  func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
 13863  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13864  	var body io.Reader = nil
 13865  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
 13866  	if err != nil {
 13867  		return nil, err
 13868  	}
 13869  	c.urlParams_.Set("alt", alt)
 13870  	c.urlParams_.Set("prettyPrint", "false")
 13871  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
 13872  	urls += "?" + c.urlParams_.Encode()
 13873  	req, err := http.NewRequest("POST", urls, body)
 13874  	if err != nil {
 13875  		return nil, err
 13876  	}
 13877  	req.Header = reqHeaders
 13878  	googleapi.Expand(req.URL, map[string]string{
 13879  		"name": c.name,
 13880  	})
 13881  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13882  }
 13883  
 13884  // Do executes the "apigee.organizations.apiproducts.attributes" call.
 13885  // Any non-2xx status code is an error. Response headers are in either
 13886  // *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a response was
 13887  // returned at all) in error.(*googleapi.Error).Header. Use
 13888  // googleapi.IsNotModified to check whether the returned error was because
 13889  // http.StatusNotModified was returned.
 13890  func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
 13891  	gensupport.SetOptions(c.urlParams_, opts...)
 13892  	res, err := c.doRequest("json")
 13893  	if res != nil && res.StatusCode == http.StatusNotModified {
 13894  		if res.Body != nil {
 13895  			res.Body.Close()
 13896  		}
 13897  		return nil, gensupport.WrapError(&googleapi.Error{
 13898  			Code:   res.StatusCode,
 13899  			Header: res.Header,
 13900  		})
 13901  	}
 13902  	if err != nil {
 13903  		return nil, err
 13904  	}
 13905  	defer googleapi.CloseBody(res)
 13906  	if err := googleapi.CheckResponse(res); err != nil {
 13907  		return nil, gensupport.WrapError(err)
 13908  	}
 13909  	ret := &GoogleCloudApigeeV1Attributes{
 13910  		ServerResponse: googleapi.ServerResponse{
 13911  			Header:         res.Header,
 13912  			HTTPStatusCode: res.StatusCode,
 13913  		},
 13914  	}
 13915  	target := &ret
 13916  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13917  		return nil, err
 13918  	}
 13919  	return ret, nil
 13920  }
 13921  
 13922  type OrganizationsApiproductsCreateCall struct {
 13923  	s                             *Service
 13924  	parent                        string
 13925  	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
 13926  	urlParams_                    gensupport.URLParams
 13927  	ctx_                          context.Context
 13928  	header_                       http.Header
 13929  }
 13930  
 13931  // Create: Creates an API product in an organization. You create API products
 13932  // after you have proxied backend services using API proxies. An API product is
 13933  // a collection of API resources combined with quota settings and metadata that
 13934  // you can use to deliver customized and productized API bundles to your
 13935  // developer community. This metadata can include: - Scope - Environments - API
 13936  // proxies - Extensible profile API products enable you repackage APIs on the
 13937  // fly, without having to do any additional coding or configuration. Apigee
 13938  // recommends that you start with a simple API product including only required
 13939  // elements. You then provision credentials to apps to enable them to start
 13940  // testing your APIs. After you have authentication and authorization working
 13941  // against a simple API product, you can iterate to create finer-grained API
 13942  // products, defining different sets of API resources for each API product.
 13943  // **WARNING:** - If you don't specify an API proxy in the request body, *any*
 13944  // app associated with the product can make calls to *any* API in your entire
 13945  // organization. - If you don't specify an environment in the request body, the
 13946  // product allows access to all environments. For more information, see What is
 13947  // an API product?
 13948  //
 13949  //   - parent: Name of the organization in which the API product will be created.
 13950  //     Use the following structure in your request: `organizations/{org}`.
 13951  func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
 13952  	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13953  	c.parent = parent
 13954  	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
 13955  	return c
 13956  }
 13957  
 13958  // Fields allows partial responses to be retrieved. See
 13959  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13960  // details.
 13961  func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
 13962  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13963  	return c
 13964  }
 13965  
 13966  // Context sets the context to be used in this call's Do method.
 13967  func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
 13968  	c.ctx_ = ctx
 13969  	return c
 13970  }
 13971  
 13972  // Header returns a http.Header that can be modified by the caller to add
 13973  // headers to the request.
 13974  func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
 13975  	if c.header_ == nil {
 13976  		c.header_ = make(http.Header)
 13977  	}
 13978  	return c.header_
 13979  }
 13980  
 13981  func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
 13982  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13983  	var body io.Reader = nil
 13984  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
 13985  	if err != nil {
 13986  		return nil, err
 13987  	}
 13988  	c.urlParams_.Set("alt", alt)
 13989  	c.urlParams_.Set("prettyPrint", "false")
 13990  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
 13991  	urls += "?" + c.urlParams_.Encode()
 13992  	req, err := http.NewRequest("POST", urls, body)
 13993  	if err != nil {
 13994  		return nil, err
 13995  	}
 13996  	req.Header = reqHeaders
 13997  	googleapi.Expand(req.URL, map[string]string{
 13998  		"parent": c.parent,
 13999  	})
 14000  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14001  }
 14002  
 14003  // Do executes the "apigee.organizations.apiproducts.create" call.
 14004  // Any non-2xx status code is an error. Response headers are in either
 14005  // *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a response was
 14006  // returned at all) in error.(*googleapi.Error).Header. Use
 14007  // googleapi.IsNotModified to check whether the returned error was because
 14008  // http.StatusNotModified was returned.
 14009  func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
 14010  	gensupport.SetOptions(c.urlParams_, opts...)
 14011  	res, err := c.doRequest("json")
 14012  	if res != nil && res.StatusCode == http.StatusNotModified {
 14013  		if res.Body != nil {
 14014  			res.Body.Close()
 14015  		}
 14016  		return nil, gensupport.WrapError(&googleapi.Error{
 14017  			Code:   res.StatusCode,
 14018  			Header: res.Header,
 14019  		})
 14020  	}
 14021  	if err != nil {
 14022  		return nil, err
 14023  	}
 14024  	defer googleapi.CloseBody(res)
 14025  	if err := googleapi.CheckResponse(res); err != nil {
 14026  		return nil, gensupport.WrapError(err)
 14027  	}
 14028  	ret := &GoogleCloudApigeeV1ApiProduct{
 14029  		ServerResponse: googleapi.ServerResponse{
 14030  			Header:         res.Header,
 14031  			HTTPStatusCode: res.StatusCode,
 14032  		},
 14033  	}
 14034  	target := &ret
 14035  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14036  		return nil, err
 14037  	}
 14038  	return ret, nil
 14039  }
 14040  
 14041  type OrganizationsApiproductsDeleteCall struct {
 14042  	s          *Service
 14043  	name       string
 14044  	urlParams_ gensupport.URLParams
 14045  	ctx_       context.Context
 14046  	header_    http.Header
 14047  }
 14048  
 14049  // Delete: Deletes an API product from an organization. Deleting an API product
 14050  // causes app requests to the resource URIs defined in the API product to fail.
 14051  // Ensure that you create a new API product to serve existing apps, unless your
 14052  // intention is to disable access to the resources defined in the API product.
 14053  // The API product name required in the request URL is the internal name of the
 14054  // product, not the display name. While they may be the same, it depends on
 14055  // whether the API product was created via the UI or the API. View the list of
 14056  // API products to verify the internal name.
 14057  //
 14058  //   - name: Name of the API product. Use the following structure in your
 14059  //     request: `organizations/{org}/apiproducts/{apiproduct}`.
 14060  func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
 14061  	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14062  	c.name = name
 14063  	return c
 14064  }
 14065  
 14066  // Fields allows partial responses to be retrieved. See
 14067  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14068  // details.
 14069  func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
 14070  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14071  	return c
 14072  }
 14073  
 14074  // Context sets the context to be used in this call's Do method.
 14075  func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
 14076  	c.ctx_ = ctx
 14077  	return c
 14078  }
 14079  
 14080  // Header returns a http.Header that can be modified by the caller to add
 14081  // headers to the request.
 14082  func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
 14083  	if c.header_ == nil {
 14084  		c.header_ = make(http.Header)
 14085  	}
 14086  	return c.header_
 14087  }
 14088  
 14089  func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
 14090  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14091  	var body io.Reader = nil
 14092  	c.urlParams_.Set("alt", alt)
 14093  	c.urlParams_.Set("prettyPrint", "false")
 14094  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14095  	urls += "?" + c.urlParams_.Encode()
 14096  	req, err := http.NewRequest("DELETE", urls, body)
 14097  	if err != nil {
 14098  		return nil, err
 14099  	}
 14100  	req.Header = reqHeaders
 14101  	googleapi.Expand(req.URL, map[string]string{
 14102  		"name": c.name,
 14103  	})
 14104  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14105  }
 14106  
 14107  // Do executes the "apigee.organizations.apiproducts.delete" call.
 14108  // Any non-2xx status code is an error. Response headers are in either
 14109  // *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a response was
 14110  // returned at all) in error.(*googleapi.Error).Header. Use
 14111  // googleapi.IsNotModified to check whether the returned error was because
 14112  // http.StatusNotModified was returned.
 14113  func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
 14114  	gensupport.SetOptions(c.urlParams_, opts...)
 14115  	res, err := c.doRequest("json")
 14116  	if res != nil && res.StatusCode == http.StatusNotModified {
 14117  		if res.Body != nil {
 14118  			res.Body.Close()
 14119  		}
 14120  		return nil, gensupport.WrapError(&googleapi.Error{
 14121  			Code:   res.StatusCode,
 14122  			Header: res.Header,
 14123  		})
 14124  	}
 14125  	if err != nil {
 14126  		return nil, err
 14127  	}
 14128  	defer googleapi.CloseBody(res)
 14129  	if err := googleapi.CheckResponse(res); err != nil {
 14130  		return nil, gensupport.WrapError(err)
 14131  	}
 14132  	ret := &GoogleCloudApigeeV1ApiProduct{
 14133  		ServerResponse: googleapi.ServerResponse{
 14134  			Header:         res.Header,
 14135  			HTTPStatusCode: res.StatusCode,
 14136  		},
 14137  	}
 14138  	target := &ret
 14139  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14140  		return nil, err
 14141  	}
 14142  	return ret, nil
 14143  }
 14144  
 14145  type OrganizationsApiproductsGetCall struct {
 14146  	s            *Service
 14147  	name         string
 14148  	urlParams_   gensupport.URLParams
 14149  	ifNoneMatch_ string
 14150  	ctx_         context.Context
 14151  	header_      http.Header
 14152  }
 14153  
 14154  // Get: Gets configuration details for an API product. The API product name
 14155  // required in the request URL is the internal name of the product, not the
 14156  // display name. While they may be the same, it depends on whether the API
 14157  // product was created via the UI or the API. View the list of API products to
 14158  // verify the internal name.
 14159  //
 14160  //   - name: Name of the API product. Use the following structure in your
 14161  //     request: `organizations/{org}/apiproducts/{apiproduct}`.
 14162  func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
 14163  	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14164  	c.name = name
 14165  	return c
 14166  }
 14167  
 14168  // Fields allows partial responses to be retrieved. See
 14169  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14170  // details.
 14171  func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
 14172  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14173  	return c
 14174  }
 14175  
 14176  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14177  // object's ETag matches the given value. This is useful for getting updates
 14178  // only after the object has changed since the last request.
 14179  func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
 14180  	c.ifNoneMatch_ = entityTag
 14181  	return c
 14182  }
 14183  
 14184  // Context sets the context to be used in this call's Do method.
 14185  func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
 14186  	c.ctx_ = ctx
 14187  	return c
 14188  }
 14189  
 14190  // Header returns a http.Header that can be modified by the caller to add
 14191  // headers to the request.
 14192  func (c *OrganizationsApiproductsGetCall) Header() http.Header {
 14193  	if c.header_ == nil {
 14194  		c.header_ = make(http.Header)
 14195  	}
 14196  	return c.header_
 14197  }
 14198  
 14199  func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
 14200  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14201  	if c.ifNoneMatch_ != "" {
 14202  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14203  	}
 14204  	var body io.Reader = nil
 14205  	c.urlParams_.Set("alt", alt)
 14206  	c.urlParams_.Set("prettyPrint", "false")
 14207  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14208  	urls += "?" + c.urlParams_.Encode()
 14209  	req, err := http.NewRequest("GET", urls, body)
 14210  	if err != nil {
 14211  		return nil, err
 14212  	}
 14213  	req.Header = reqHeaders
 14214  	googleapi.Expand(req.URL, map[string]string{
 14215  		"name": c.name,
 14216  	})
 14217  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14218  }
 14219  
 14220  // Do executes the "apigee.organizations.apiproducts.get" call.
 14221  // Any non-2xx status code is an error. Response headers are in either
 14222  // *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a response was
 14223  // returned at all) in error.(*googleapi.Error).Header. Use
 14224  // googleapi.IsNotModified to check whether the returned error was because
 14225  // http.StatusNotModified was returned.
 14226  func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
 14227  	gensupport.SetOptions(c.urlParams_, opts...)
 14228  	res, err := c.doRequest("json")
 14229  	if res != nil && res.StatusCode == http.StatusNotModified {
 14230  		if res.Body != nil {
 14231  			res.Body.Close()
 14232  		}
 14233  		return nil, gensupport.WrapError(&googleapi.Error{
 14234  			Code:   res.StatusCode,
 14235  			Header: res.Header,
 14236  		})
 14237  	}
 14238  	if err != nil {
 14239  		return nil, err
 14240  	}
 14241  	defer googleapi.CloseBody(res)
 14242  	if err := googleapi.CheckResponse(res); err != nil {
 14243  		return nil, gensupport.WrapError(err)
 14244  	}
 14245  	ret := &GoogleCloudApigeeV1ApiProduct{
 14246  		ServerResponse: googleapi.ServerResponse{
 14247  			Header:         res.Header,
 14248  			HTTPStatusCode: res.StatusCode,
 14249  		},
 14250  	}
 14251  	target := &ret
 14252  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14253  		return nil, err
 14254  	}
 14255  	return ret, nil
 14256  }
 14257  
 14258  type OrganizationsApiproductsListCall struct {
 14259  	s            *Service
 14260  	parent       string
 14261  	urlParams_   gensupport.URLParams
 14262  	ifNoneMatch_ string
 14263  	ctx_         context.Context
 14264  	header_      http.Header
 14265  }
 14266  
 14267  // List: Lists all API product names for an organization. Filter the list by
 14268  // passing an `attributename` and `attibutevalue`. The maximum number of API
 14269  // products returned is 1000. You can paginate the list of API products
 14270  // returned using the `startKey` and `count` query parameters.
 14271  //
 14272  //   - parent: Name of the organization. Use the following structure in your
 14273  //     request: `organizations/{org}`.
 14274  func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
 14275  	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14276  	c.parent = parent
 14277  	return c
 14278  }
 14279  
 14280  // Attributename sets the optional parameter "attributename": Name of the
 14281  // attribute used to filter the search.
 14282  func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
 14283  	c.urlParams_.Set("attributename", attributename)
 14284  	return c
 14285  }
 14286  
 14287  // Attributevalue sets the optional parameter "attributevalue": Value of the
 14288  // attribute used to filter the search.
 14289  func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
 14290  	c.urlParams_.Set("attributevalue", attributevalue)
 14291  	return c
 14292  }
 14293  
 14294  // Count sets the optional parameter "count": Enter the number of API products
 14295  // you want returned in the API call. The limit is 1000.
 14296  func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
 14297  	c.urlParams_.Set("count", fmt.Sprint(count))
 14298  	return c
 14299  }
 14300  
 14301  // Expand sets the optional parameter "expand": Flag that specifies whether to
 14302  // expand the results. Set to `true` to get expanded details about each API.
 14303  func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
 14304  	c.urlParams_.Set("expand", fmt.Sprint(expand))
 14305  	return c
 14306  }
 14307  
 14308  // StartKey sets the optional parameter "startKey": Gets a list of API products
 14309  // starting with a specific API product in the list. For example, if you're
 14310  // returning 50 API products at a time (using the `count` query parameter), you
 14311  // can view products 50-99 by entering the name of the 50th API product in the
 14312  // first API (without using `startKey`). Product name is case sensitive.
 14313  func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
 14314  	c.urlParams_.Set("startKey", startKey)
 14315  	return c
 14316  }
 14317  
 14318  // Fields allows partial responses to be retrieved. See
 14319  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14320  // details.
 14321  func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
 14322  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14323  	return c
 14324  }
 14325  
 14326  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14327  // object's ETag matches the given value. This is useful for getting updates
 14328  // only after the object has changed since the last request.
 14329  func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
 14330  	c.ifNoneMatch_ = entityTag
 14331  	return c
 14332  }
 14333  
 14334  // Context sets the context to be used in this call's Do method.
 14335  func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
 14336  	c.ctx_ = ctx
 14337  	return c
 14338  }
 14339  
 14340  // Header returns a http.Header that can be modified by the caller to add
 14341  // headers to the request.
 14342  func (c *OrganizationsApiproductsListCall) Header() http.Header {
 14343  	if c.header_ == nil {
 14344  		c.header_ = make(http.Header)
 14345  	}
 14346  	return c.header_
 14347  }
 14348  
 14349  func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
 14350  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14351  	if c.ifNoneMatch_ != "" {
 14352  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14353  	}
 14354  	var body io.Reader = nil
 14355  	c.urlParams_.Set("alt", alt)
 14356  	c.urlParams_.Set("prettyPrint", "false")
 14357  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
 14358  	urls += "?" + c.urlParams_.Encode()
 14359  	req, err := http.NewRequest("GET", urls, body)
 14360  	if err != nil {
 14361  		return nil, err
 14362  	}
 14363  	req.Header = reqHeaders
 14364  	googleapi.Expand(req.URL, map[string]string{
 14365  		"parent": c.parent,
 14366  	})
 14367  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14368  }
 14369  
 14370  // Do executes the "apigee.organizations.apiproducts.list" call.
 14371  // Any non-2xx status code is an error. Response headers are in either
 14372  // *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or (if a
 14373  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14374  // googleapi.IsNotModified to check whether the returned error was because
 14375  // http.StatusNotModified was returned.
 14376  func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
 14377  	gensupport.SetOptions(c.urlParams_, opts...)
 14378  	res, err := c.doRequest("json")
 14379  	if res != nil && res.StatusCode == http.StatusNotModified {
 14380  		if res.Body != nil {
 14381  			res.Body.Close()
 14382  		}
 14383  		return nil, gensupport.WrapError(&googleapi.Error{
 14384  			Code:   res.StatusCode,
 14385  			Header: res.Header,
 14386  		})
 14387  	}
 14388  	if err != nil {
 14389  		return nil, err
 14390  	}
 14391  	defer googleapi.CloseBody(res)
 14392  	if err := googleapi.CheckResponse(res); err != nil {
 14393  		return nil, gensupport.WrapError(err)
 14394  	}
 14395  	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
 14396  		ServerResponse: googleapi.ServerResponse{
 14397  			Header:         res.Header,
 14398  			HTTPStatusCode: res.StatusCode,
 14399  		},
 14400  	}
 14401  	target := &ret
 14402  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14403  		return nil, err
 14404  	}
 14405  	return ret, nil
 14406  }
 14407  
 14408  type OrganizationsApiproductsUpdateCall struct {
 14409  	s                             *Service
 14410  	name                          string
 14411  	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
 14412  	urlParams_                    gensupport.URLParams
 14413  	ctx_                          context.Context
 14414  	header_                       http.Header
 14415  }
 14416  
 14417  // Update: Updates an existing API product. You must include all required
 14418  // values, whether or not you are updating them, as well as any optional values
 14419  // that you are updating. The API product name required in the request URL is
 14420  // the internal name of the product, not the display name. While they may be
 14421  // the same, it depends on whether the API product was created via UI or API.
 14422  // View the list of API products to identify their internal names.
 14423  //
 14424  //   - name: Name of the API product. Use the following structure in your
 14425  //     request: `organizations/{org}/apiproducts/{apiproduct}`.
 14426  func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
 14427  	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14428  	c.name = name
 14429  	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
 14430  	return c
 14431  }
 14432  
 14433  // Fields allows partial responses to be retrieved. See
 14434  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14435  // details.
 14436  func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
 14437  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14438  	return c
 14439  }
 14440  
 14441  // Context sets the context to be used in this call's Do method.
 14442  func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
 14443  	c.ctx_ = ctx
 14444  	return c
 14445  }
 14446  
 14447  // Header returns a http.Header that can be modified by the caller to add
 14448  // headers to the request.
 14449  func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
 14450  	if c.header_ == nil {
 14451  		c.header_ = make(http.Header)
 14452  	}
 14453  	return c.header_
 14454  }
 14455  
 14456  func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
 14457  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14458  	var body io.Reader = nil
 14459  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
 14460  	if err != nil {
 14461  		return nil, err
 14462  	}
 14463  	c.urlParams_.Set("alt", alt)
 14464  	c.urlParams_.Set("prettyPrint", "false")
 14465  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14466  	urls += "?" + c.urlParams_.Encode()
 14467  	req, err := http.NewRequest("PUT", urls, body)
 14468  	if err != nil {
 14469  		return nil, err
 14470  	}
 14471  	req.Header = reqHeaders
 14472  	googleapi.Expand(req.URL, map[string]string{
 14473  		"name": c.name,
 14474  	})
 14475  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14476  }
 14477  
 14478  // Do executes the "apigee.organizations.apiproducts.update" call.
 14479  // Any non-2xx status code is an error. Response headers are in either
 14480  // *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a response was
 14481  // returned at all) in error.(*googleapi.Error).Header. Use
 14482  // googleapi.IsNotModified to check whether the returned error was because
 14483  // http.StatusNotModified was returned.
 14484  func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
 14485  	gensupport.SetOptions(c.urlParams_, opts...)
 14486  	res, err := c.doRequest("json")
 14487  	if res != nil && res.StatusCode == http.StatusNotModified {
 14488  		if res.Body != nil {
 14489  			res.Body.Close()
 14490  		}
 14491  		return nil, gensupport.WrapError(&googleapi.Error{
 14492  			Code:   res.StatusCode,
 14493  			Header: res.Header,
 14494  		})
 14495  	}
 14496  	if err != nil {
 14497  		return nil, err
 14498  	}
 14499  	defer googleapi.CloseBody(res)
 14500  	if err := googleapi.CheckResponse(res); err != nil {
 14501  		return nil, gensupport.WrapError(err)
 14502  	}
 14503  	ret := &GoogleCloudApigeeV1ApiProduct{
 14504  		ServerResponse: googleapi.ServerResponse{
 14505  			Header:         res.Header,
 14506  			HTTPStatusCode: res.StatusCode,
 14507  		},
 14508  	}
 14509  	target := &ret
 14510  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14511  		return nil, err
 14512  	}
 14513  	return ret, nil
 14514  }
 14515  
 14516  type OrganizationsApiproductsAttributesDeleteCall struct {
 14517  	s          *Service
 14518  	name       string
 14519  	urlParams_ gensupport.URLParams
 14520  	ctx_       context.Context
 14521  	header_    http.Header
 14522  }
 14523  
 14524  // Delete: Deletes an API product attribute.
 14525  //
 14526  //   - name: Name of the API product attribute. Use the following structure in
 14527  //     your request:
 14528  //     `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`.
 14529  func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
 14530  	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14531  	c.name = name
 14532  	return c
 14533  }
 14534  
 14535  // Fields allows partial responses to be retrieved. See
 14536  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14537  // details.
 14538  func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
 14539  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14540  	return c
 14541  }
 14542  
 14543  // Context sets the context to be used in this call's Do method.
 14544  func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
 14545  	c.ctx_ = ctx
 14546  	return c
 14547  }
 14548  
 14549  // Header returns a http.Header that can be modified by the caller to add
 14550  // headers to the request.
 14551  func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
 14552  	if c.header_ == nil {
 14553  		c.header_ = make(http.Header)
 14554  	}
 14555  	return c.header_
 14556  }
 14557  
 14558  func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
 14559  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14560  	var body io.Reader = nil
 14561  	c.urlParams_.Set("alt", alt)
 14562  	c.urlParams_.Set("prettyPrint", "false")
 14563  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14564  	urls += "?" + c.urlParams_.Encode()
 14565  	req, err := http.NewRequest("DELETE", urls, body)
 14566  	if err != nil {
 14567  		return nil, err
 14568  	}
 14569  	req.Header = reqHeaders
 14570  	googleapi.Expand(req.URL, map[string]string{
 14571  		"name": c.name,
 14572  	})
 14573  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14574  }
 14575  
 14576  // Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
 14577  // Any non-2xx status code is an error. Response headers are in either
 14578  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 14579  // returned at all) in error.(*googleapi.Error).Header. Use
 14580  // googleapi.IsNotModified to check whether the returned error was because
 14581  // http.StatusNotModified was returned.
 14582  func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 14583  	gensupport.SetOptions(c.urlParams_, opts...)
 14584  	res, err := c.doRequest("json")
 14585  	if res != nil && res.StatusCode == http.StatusNotModified {
 14586  		if res.Body != nil {
 14587  			res.Body.Close()
 14588  		}
 14589  		return nil, gensupport.WrapError(&googleapi.Error{
 14590  			Code:   res.StatusCode,
 14591  			Header: res.Header,
 14592  		})
 14593  	}
 14594  	if err != nil {
 14595  		return nil, err
 14596  	}
 14597  	defer googleapi.CloseBody(res)
 14598  	if err := googleapi.CheckResponse(res); err != nil {
 14599  		return nil, gensupport.WrapError(err)
 14600  	}
 14601  	ret := &GoogleCloudApigeeV1Attribute{
 14602  		ServerResponse: googleapi.ServerResponse{
 14603  			Header:         res.Header,
 14604  			HTTPStatusCode: res.StatusCode,
 14605  		},
 14606  	}
 14607  	target := &ret
 14608  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14609  		return nil, err
 14610  	}
 14611  	return ret, nil
 14612  }
 14613  
 14614  type OrganizationsApiproductsAttributesGetCall struct {
 14615  	s            *Service
 14616  	name         string
 14617  	urlParams_   gensupport.URLParams
 14618  	ifNoneMatch_ string
 14619  	ctx_         context.Context
 14620  	header_      http.Header
 14621  }
 14622  
 14623  // Get: Gets the value of an API product attribute.
 14624  //
 14625  //   - name: Name of the API product attribute. Use the following structure in
 14626  //     your request:
 14627  //     `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`.
 14628  func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
 14629  	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14630  	c.name = name
 14631  	return c
 14632  }
 14633  
 14634  // Fields allows partial responses to be retrieved. See
 14635  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14636  // details.
 14637  func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
 14638  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14639  	return c
 14640  }
 14641  
 14642  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14643  // object's ETag matches the given value. This is useful for getting updates
 14644  // only after the object has changed since the last request.
 14645  func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
 14646  	c.ifNoneMatch_ = entityTag
 14647  	return c
 14648  }
 14649  
 14650  // Context sets the context to be used in this call's Do method.
 14651  func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
 14652  	c.ctx_ = ctx
 14653  	return c
 14654  }
 14655  
 14656  // Header returns a http.Header that can be modified by the caller to add
 14657  // headers to the request.
 14658  func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
 14659  	if c.header_ == nil {
 14660  		c.header_ = make(http.Header)
 14661  	}
 14662  	return c.header_
 14663  }
 14664  
 14665  func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
 14666  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14667  	if c.ifNoneMatch_ != "" {
 14668  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14669  	}
 14670  	var body io.Reader = nil
 14671  	c.urlParams_.Set("alt", alt)
 14672  	c.urlParams_.Set("prettyPrint", "false")
 14673  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14674  	urls += "?" + c.urlParams_.Encode()
 14675  	req, err := http.NewRequest("GET", urls, body)
 14676  	if err != nil {
 14677  		return nil, err
 14678  	}
 14679  	req.Header = reqHeaders
 14680  	googleapi.Expand(req.URL, map[string]string{
 14681  		"name": c.name,
 14682  	})
 14683  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14684  }
 14685  
 14686  // Do executes the "apigee.organizations.apiproducts.attributes.get" call.
 14687  // Any non-2xx status code is an error. Response headers are in either
 14688  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 14689  // returned at all) in error.(*googleapi.Error).Header. Use
 14690  // googleapi.IsNotModified to check whether the returned error was because
 14691  // http.StatusNotModified was returned.
 14692  func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 14693  	gensupport.SetOptions(c.urlParams_, opts...)
 14694  	res, err := c.doRequest("json")
 14695  	if res != nil && res.StatusCode == http.StatusNotModified {
 14696  		if res.Body != nil {
 14697  			res.Body.Close()
 14698  		}
 14699  		return nil, gensupport.WrapError(&googleapi.Error{
 14700  			Code:   res.StatusCode,
 14701  			Header: res.Header,
 14702  		})
 14703  	}
 14704  	if err != nil {
 14705  		return nil, err
 14706  	}
 14707  	defer googleapi.CloseBody(res)
 14708  	if err := googleapi.CheckResponse(res); err != nil {
 14709  		return nil, gensupport.WrapError(err)
 14710  	}
 14711  	ret := &GoogleCloudApigeeV1Attribute{
 14712  		ServerResponse: googleapi.ServerResponse{
 14713  			Header:         res.Header,
 14714  			HTTPStatusCode: res.StatusCode,
 14715  		},
 14716  	}
 14717  	target := &ret
 14718  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14719  		return nil, err
 14720  	}
 14721  	return ret, nil
 14722  }
 14723  
 14724  type OrganizationsApiproductsAttributesListCall struct {
 14725  	s            *Service
 14726  	parent       string
 14727  	urlParams_   gensupport.URLParams
 14728  	ifNoneMatch_ string
 14729  	ctx_         context.Context
 14730  	header_      http.Header
 14731  }
 14732  
 14733  // List: Lists all API product attributes.
 14734  //
 14735  //   - parent: Name of the API product. Use the following structure in your
 14736  //     request: `organizations/{org}/apiproducts/{apiproduct}`.
 14737  func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
 14738  	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14739  	c.parent = parent
 14740  	return c
 14741  }
 14742  
 14743  // Fields allows partial responses to be retrieved. See
 14744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14745  // details.
 14746  func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
 14747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14748  	return c
 14749  }
 14750  
 14751  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14752  // object's ETag matches the given value. This is useful for getting updates
 14753  // only after the object has changed since the last request.
 14754  func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
 14755  	c.ifNoneMatch_ = entityTag
 14756  	return c
 14757  }
 14758  
 14759  // Context sets the context to be used in this call's Do method.
 14760  func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
 14761  	c.ctx_ = ctx
 14762  	return c
 14763  }
 14764  
 14765  // Header returns a http.Header that can be modified by the caller to add
 14766  // headers to the request.
 14767  func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
 14768  	if c.header_ == nil {
 14769  		c.header_ = make(http.Header)
 14770  	}
 14771  	return c.header_
 14772  }
 14773  
 14774  func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
 14775  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14776  	if c.ifNoneMatch_ != "" {
 14777  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14778  	}
 14779  	var body io.Reader = nil
 14780  	c.urlParams_.Set("alt", alt)
 14781  	c.urlParams_.Set("prettyPrint", "false")
 14782  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
 14783  	urls += "?" + c.urlParams_.Encode()
 14784  	req, err := http.NewRequest("GET", urls, body)
 14785  	if err != nil {
 14786  		return nil, err
 14787  	}
 14788  	req.Header = reqHeaders
 14789  	googleapi.Expand(req.URL, map[string]string{
 14790  		"parent": c.parent,
 14791  	})
 14792  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14793  }
 14794  
 14795  // Do executes the "apigee.organizations.apiproducts.attributes.list" call.
 14796  // Any non-2xx status code is an error. Response headers are in either
 14797  // *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a response was
 14798  // returned at all) in error.(*googleapi.Error).Header. Use
 14799  // googleapi.IsNotModified to check whether the returned error was because
 14800  // http.StatusNotModified was returned.
 14801  func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
 14802  	gensupport.SetOptions(c.urlParams_, opts...)
 14803  	res, err := c.doRequest("json")
 14804  	if res != nil && res.StatusCode == http.StatusNotModified {
 14805  		if res.Body != nil {
 14806  			res.Body.Close()
 14807  		}
 14808  		return nil, gensupport.WrapError(&googleapi.Error{
 14809  			Code:   res.StatusCode,
 14810  			Header: res.Header,
 14811  		})
 14812  	}
 14813  	if err != nil {
 14814  		return nil, err
 14815  	}
 14816  	defer googleapi.CloseBody(res)
 14817  	if err := googleapi.CheckResponse(res); err != nil {
 14818  		return nil, gensupport.WrapError(err)
 14819  	}
 14820  	ret := &GoogleCloudApigeeV1Attributes{
 14821  		ServerResponse: googleapi.ServerResponse{
 14822  			Header:         res.Header,
 14823  			HTTPStatusCode: res.StatusCode,
 14824  		},
 14825  	}
 14826  	target := &ret
 14827  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14828  		return nil, err
 14829  	}
 14830  	return ret, nil
 14831  }
 14832  
 14833  type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
 14834  	s                            *Service
 14835  	name                         string
 14836  	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
 14837  	urlParams_                   gensupport.URLParams
 14838  	ctx_                         context.Context
 14839  	header_                      http.Header
 14840  }
 14841  
 14842  // UpdateApiProductAttribute: Updates the value of an API product attribute.
 14843  // **Note**: OAuth access tokens and Key Management Service (KMS) entities
 14844  // (apps, developers, and API products) are cached for 180 seconds (current
 14845  // default). Any custom attributes associated with entities also get cached for
 14846  // at least 180 seconds after entity is accessed during runtime. In this case,
 14847  // the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
 14848  // access token in less than 180 seconds.
 14849  //
 14850  //   - name: Name of the API product. Use the following structure in your
 14851  //     request: `organizations/{org}/apiproducts/{apiproduct}`.
 14852  func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
 14853  	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14854  	c.name = name
 14855  	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
 14856  	return c
 14857  }
 14858  
 14859  // Fields allows partial responses to be retrieved. See
 14860  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14861  // details.
 14862  func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
 14863  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14864  	return c
 14865  }
 14866  
 14867  // Context sets the context to be used in this call's Do method.
 14868  func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
 14869  	c.ctx_ = ctx
 14870  	return c
 14871  }
 14872  
 14873  // Header returns a http.Header that can be modified by the caller to add
 14874  // headers to the request.
 14875  func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
 14876  	if c.header_ == nil {
 14877  		c.header_ = make(http.Header)
 14878  	}
 14879  	return c.header_
 14880  }
 14881  
 14882  func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
 14883  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14884  	var body io.Reader = nil
 14885  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
 14886  	if err != nil {
 14887  		return nil, err
 14888  	}
 14889  	c.urlParams_.Set("alt", alt)
 14890  	c.urlParams_.Set("prettyPrint", "false")
 14891  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14892  	urls += "?" + c.urlParams_.Encode()
 14893  	req, err := http.NewRequest("POST", urls, body)
 14894  	if err != nil {
 14895  		return nil, err
 14896  	}
 14897  	req.Header = reqHeaders
 14898  	googleapi.Expand(req.URL, map[string]string{
 14899  		"name": c.name,
 14900  	})
 14901  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14902  }
 14903  
 14904  // Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
 14905  // Any non-2xx status code is an error. Response headers are in either
 14906  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 14907  // returned at all) in error.(*googleapi.Error).Header. Use
 14908  // googleapi.IsNotModified to check whether the returned error was because
 14909  // http.StatusNotModified was returned.
 14910  func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 14911  	gensupport.SetOptions(c.urlParams_, opts...)
 14912  	res, err := c.doRequest("json")
 14913  	if res != nil && res.StatusCode == http.StatusNotModified {
 14914  		if res.Body != nil {
 14915  			res.Body.Close()
 14916  		}
 14917  		return nil, gensupport.WrapError(&googleapi.Error{
 14918  			Code:   res.StatusCode,
 14919  			Header: res.Header,
 14920  		})
 14921  	}
 14922  	if err != nil {
 14923  		return nil, err
 14924  	}
 14925  	defer googleapi.CloseBody(res)
 14926  	if err := googleapi.CheckResponse(res); err != nil {
 14927  		return nil, gensupport.WrapError(err)
 14928  	}
 14929  	ret := &GoogleCloudApigeeV1Attribute{
 14930  		ServerResponse: googleapi.ServerResponse{
 14931  			Header:         res.Header,
 14932  			HTTPStatusCode: res.StatusCode,
 14933  		},
 14934  	}
 14935  	target := &ret
 14936  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14937  		return nil, err
 14938  	}
 14939  	return ret, nil
 14940  }
 14941  
 14942  type OrganizationsApiproductsRateplansCreateCall struct {
 14943  	s                           *Service
 14944  	parent                      string
 14945  	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
 14946  	urlParams_                  gensupport.URLParams
 14947  	ctx_                        context.Context
 14948  	header_                     http.Header
 14949  }
 14950  
 14951  // Create: Create a rate plan that is associated with an API product in an
 14952  // organization. Using rate plans, API product owners can monetize their API
 14953  // products by configuring one or more of the following: - Billing frequency -
 14954  // Initial setup fees for using an API product - Payment funding model
 14955  // (postpaid only) - Fixed recurring or consumption-based charges for using an
 14956  // API product - Revenue sharing with developer partners An API product can
 14957  // have multiple rate plans associated with it but *only one* rate plan can be
 14958  // active at any point of time. **Note: From the developer's perspective, they
 14959  // purchase API products not rate plans.
 14960  //
 14961  //   - parent: Name of the API product that is associated with the rate plan. Use
 14962  //     the following structure in your request:
 14963  //     `organizations/{org}/apiproducts/{apiproduct}`.
 14964  func (r *OrganizationsApiproductsRateplansService) Create(parent string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansCreateCall {
 14965  	c := &OrganizationsApiproductsRateplansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14966  	c.parent = parent
 14967  	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
 14968  	return c
 14969  }
 14970  
 14971  // Fields allows partial responses to be retrieved. See
 14972  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14973  // details.
 14974  func (c *OrganizationsApiproductsRateplansCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansCreateCall {
 14975  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14976  	return c
 14977  }
 14978  
 14979  // Context sets the context to be used in this call's Do method.
 14980  func (c *OrganizationsApiproductsRateplansCreateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansCreateCall {
 14981  	c.ctx_ = ctx
 14982  	return c
 14983  }
 14984  
 14985  // Header returns a http.Header that can be modified by the caller to add
 14986  // headers to the request.
 14987  func (c *OrganizationsApiproductsRateplansCreateCall) Header() http.Header {
 14988  	if c.header_ == nil {
 14989  		c.header_ = make(http.Header)
 14990  	}
 14991  	return c.header_
 14992  }
 14993  
 14994  func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*http.Response, error) {
 14995  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14996  	var body io.Reader = nil
 14997  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
 14998  	if err != nil {
 14999  		return nil, err
 15000  	}
 15001  	c.urlParams_.Set("alt", alt)
 15002  	c.urlParams_.Set("prettyPrint", "false")
 15003  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
 15004  	urls += "?" + c.urlParams_.Encode()
 15005  	req, err := http.NewRequest("POST", urls, body)
 15006  	if err != nil {
 15007  		return nil, err
 15008  	}
 15009  	req.Header = reqHeaders
 15010  	googleapi.Expand(req.URL, map[string]string{
 15011  		"parent": c.parent,
 15012  	})
 15013  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15014  }
 15015  
 15016  // Do executes the "apigee.organizations.apiproducts.rateplans.create" call.
 15017  // Any non-2xx status code is an error. Response headers are in either
 15018  // *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response was
 15019  // returned at all) in error.(*googleapi.Error).Header. Use
 15020  // googleapi.IsNotModified to check whether the returned error was because
 15021  // http.StatusNotModified was returned.
 15022  func (c *OrganizationsApiproductsRateplansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
 15023  	gensupport.SetOptions(c.urlParams_, opts...)
 15024  	res, err := c.doRequest("json")
 15025  	if res != nil && res.StatusCode == http.StatusNotModified {
 15026  		if res.Body != nil {
 15027  			res.Body.Close()
 15028  		}
 15029  		return nil, gensupport.WrapError(&googleapi.Error{
 15030  			Code:   res.StatusCode,
 15031  			Header: res.Header,
 15032  		})
 15033  	}
 15034  	if err != nil {
 15035  		return nil, err
 15036  	}
 15037  	defer googleapi.CloseBody(res)
 15038  	if err := googleapi.CheckResponse(res); err != nil {
 15039  		return nil, gensupport.WrapError(err)
 15040  	}
 15041  	ret := &GoogleCloudApigeeV1RatePlan{
 15042  		ServerResponse: googleapi.ServerResponse{
 15043  			Header:         res.Header,
 15044  			HTTPStatusCode: res.StatusCode,
 15045  		},
 15046  	}
 15047  	target := &ret
 15048  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15049  		return nil, err
 15050  	}
 15051  	return ret, nil
 15052  }
 15053  
 15054  type OrganizationsApiproductsRateplansDeleteCall struct {
 15055  	s          *Service
 15056  	name       string
 15057  	urlParams_ gensupport.URLParams
 15058  	ctx_       context.Context
 15059  	header_    http.Header
 15060  }
 15061  
 15062  // Delete: Deletes a rate plan.
 15063  //
 15064  //   - name: ID of the rate plan. Use the following structure in your request:
 15065  //     `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
 15066  func (r *OrganizationsApiproductsRateplansService) Delete(name string) *OrganizationsApiproductsRateplansDeleteCall {
 15067  	c := &OrganizationsApiproductsRateplansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15068  	c.name = name
 15069  	return c
 15070  }
 15071  
 15072  // Fields allows partial responses to be retrieved. See
 15073  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15074  // details.
 15075  func (c *OrganizationsApiproductsRateplansDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansDeleteCall {
 15076  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15077  	return c
 15078  }
 15079  
 15080  // Context sets the context to be used in this call's Do method.
 15081  func (c *OrganizationsApiproductsRateplansDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansDeleteCall {
 15082  	c.ctx_ = ctx
 15083  	return c
 15084  }
 15085  
 15086  // Header returns a http.Header that can be modified by the caller to add
 15087  // headers to the request.
 15088  func (c *OrganizationsApiproductsRateplansDeleteCall) Header() http.Header {
 15089  	if c.header_ == nil {
 15090  		c.header_ = make(http.Header)
 15091  	}
 15092  	return c.header_
 15093  }
 15094  
 15095  func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*http.Response, error) {
 15096  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15097  	var body io.Reader = nil
 15098  	c.urlParams_.Set("alt", alt)
 15099  	c.urlParams_.Set("prettyPrint", "false")
 15100  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15101  	urls += "?" + c.urlParams_.Encode()
 15102  	req, err := http.NewRequest("DELETE", urls, body)
 15103  	if err != nil {
 15104  		return nil, err
 15105  	}
 15106  	req.Header = reqHeaders
 15107  	googleapi.Expand(req.URL, map[string]string{
 15108  		"name": c.name,
 15109  	})
 15110  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15111  }
 15112  
 15113  // Do executes the "apigee.organizations.apiproducts.rateplans.delete" call.
 15114  // Any non-2xx status code is an error. Response headers are in either
 15115  // *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response was
 15116  // returned at all) in error.(*googleapi.Error).Header. Use
 15117  // googleapi.IsNotModified to check whether the returned error was because
 15118  // http.StatusNotModified was returned.
 15119  func (c *OrganizationsApiproductsRateplansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
 15120  	gensupport.SetOptions(c.urlParams_, opts...)
 15121  	res, err := c.doRequest("json")
 15122  	if res != nil && res.StatusCode == http.StatusNotModified {
 15123  		if res.Body != nil {
 15124  			res.Body.Close()
 15125  		}
 15126  		return nil, gensupport.WrapError(&googleapi.Error{
 15127  			Code:   res.StatusCode,
 15128  			Header: res.Header,
 15129  		})
 15130  	}
 15131  	if err != nil {
 15132  		return nil, err
 15133  	}
 15134  	defer googleapi.CloseBody(res)
 15135  	if err := googleapi.CheckResponse(res); err != nil {
 15136  		return nil, gensupport.WrapError(err)
 15137  	}
 15138  	ret := &GoogleCloudApigeeV1RatePlan{
 15139  		ServerResponse: googleapi.ServerResponse{
 15140  			Header:         res.Header,
 15141  			HTTPStatusCode: res.StatusCode,
 15142  		},
 15143  	}
 15144  	target := &ret
 15145  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15146  		return nil, err
 15147  	}
 15148  	return ret, nil
 15149  }
 15150  
 15151  type OrganizationsApiproductsRateplansGetCall struct {
 15152  	s            *Service
 15153  	name         string
 15154  	urlParams_   gensupport.URLParams
 15155  	ifNoneMatch_ string
 15156  	ctx_         context.Context
 15157  	header_      http.Header
 15158  }
 15159  
 15160  // Get: Gets the details of a rate plan.
 15161  //
 15162  //   - name: Name of the rate plan. Use the following structure in your request:
 15163  //     `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
 15164  func (r *OrganizationsApiproductsRateplansService) Get(name string) *OrganizationsApiproductsRateplansGetCall {
 15165  	c := &OrganizationsApiproductsRateplansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15166  	c.name = name
 15167  	return c
 15168  }
 15169  
 15170  // Fields allows partial responses to be retrieved. See
 15171  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15172  // details.
 15173  func (c *OrganizationsApiproductsRateplansGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansGetCall {
 15174  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15175  	return c
 15176  }
 15177  
 15178  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15179  // object's ETag matches the given value. This is useful for getting updates
 15180  // only after the object has changed since the last request.
 15181  func (c *OrganizationsApiproductsRateplansGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansGetCall {
 15182  	c.ifNoneMatch_ = entityTag
 15183  	return c
 15184  }
 15185  
 15186  // Context sets the context to be used in this call's Do method.
 15187  func (c *OrganizationsApiproductsRateplansGetCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansGetCall {
 15188  	c.ctx_ = ctx
 15189  	return c
 15190  }
 15191  
 15192  // Header returns a http.Header that can be modified by the caller to add
 15193  // headers to the request.
 15194  func (c *OrganizationsApiproductsRateplansGetCall) Header() http.Header {
 15195  	if c.header_ == nil {
 15196  		c.header_ = make(http.Header)
 15197  	}
 15198  	return c.header_
 15199  }
 15200  
 15201  func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http.Response, error) {
 15202  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15203  	if c.ifNoneMatch_ != "" {
 15204  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15205  	}
 15206  	var body io.Reader = nil
 15207  	c.urlParams_.Set("alt", alt)
 15208  	c.urlParams_.Set("prettyPrint", "false")
 15209  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15210  	urls += "?" + c.urlParams_.Encode()
 15211  	req, err := http.NewRequest("GET", urls, body)
 15212  	if err != nil {
 15213  		return nil, err
 15214  	}
 15215  	req.Header = reqHeaders
 15216  	googleapi.Expand(req.URL, map[string]string{
 15217  		"name": c.name,
 15218  	})
 15219  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15220  }
 15221  
 15222  // Do executes the "apigee.organizations.apiproducts.rateplans.get" call.
 15223  // Any non-2xx status code is an error. Response headers are in either
 15224  // *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response was
 15225  // returned at all) in error.(*googleapi.Error).Header. Use
 15226  // googleapi.IsNotModified to check whether the returned error was because
 15227  // http.StatusNotModified was returned.
 15228  func (c *OrganizationsApiproductsRateplansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
 15229  	gensupport.SetOptions(c.urlParams_, opts...)
 15230  	res, err := c.doRequest("json")
 15231  	if res != nil && res.StatusCode == http.StatusNotModified {
 15232  		if res.Body != nil {
 15233  			res.Body.Close()
 15234  		}
 15235  		return nil, gensupport.WrapError(&googleapi.Error{
 15236  			Code:   res.StatusCode,
 15237  			Header: res.Header,
 15238  		})
 15239  	}
 15240  	if err != nil {
 15241  		return nil, err
 15242  	}
 15243  	defer googleapi.CloseBody(res)
 15244  	if err := googleapi.CheckResponse(res); err != nil {
 15245  		return nil, gensupport.WrapError(err)
 15246  	}
 15247  	ret := &GoogleCloudApigeeV1RatePlan{
 15248  		ServerResponse: googleapi.ServerResponse{
 15249  			Header:         res.Header,
 15250  			HTTPStatusCode: res.StatusCode,
 15251  		},
 15252  	}
 15253  	target := &ret
 15254  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15255  		return nil, err
 15256  	}
 15257  	return ret, nil
 15258  }
 15259  
 15260  type OrganizationsApiproductsRateplansListCall struct {
 15261  	s            *Service
 15262  	parent       string
 15263  	urlParams_   gensupport.URLParams
 15264  	ifNoneMatch_ string
 15265  	ctx_         context.Context
 15266  	header_      http.Header
 15267  }
 15268  
 15269  // List: Lists all the rate plans for an API product.
 15270  //
 15271  //   - parent: Name of the API product. Use the following structure in your
 15272  //     request: `organizations/{org}/apiproducts/{apiproduct}` Use
 15273  //     `organizations/{org}/apiproducts/-` to return rate plans for all API
 15274  //     products within the organization.
 15275  func (r *OrganizationsApiproductsRateplansService) List(parent string) *OrganizationsApiproductsRateplansListCall {
 15276  	c := &OrganizationsApiproductsRateplansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15277  	c.parent = parent
 15278  	return c
 15279  }
 15280  
 15281  // Count sets the optional parameter "count": Number of rate plans to return in
 15282  // the API call. Use with the `startKey` parameter to provide more targeted
 15283  // filtering. The maximum limit is 1000. Defaults to 100.
 15284  func (c *OrganizationsApiproductsRateplansListCall) Count(count int64) *OrganizationsApiproductsRateplansListCall {
 15285  	c.urlParams_.Set("count", fmt.Sprint(count))
 15286  	return c
 15287  }
 15288  
 15289  // Expand sets the optional parameter "expand": Flag that specifies whether to
 15290  // expand the results. Set to `true` to get expanded details about each API.
 15291  // Defaults to `false`.
 15292  func (c *OrganizationsApiproductsRateplansListCall) Expand(expand bool) *OrganizationsApiproductsRateplansListCall {
 15293  	c.urlParams_.Set("expand", fmt.Sprint(expand))
 15294  	return c
 15295  }
 15296  
 15297  // OrderBy sets the optional parameter "orderBy": Name of the attribute used
 15298  // for sorting. Valid values include: * `name`: Name of the rate plan. *
 15299  // `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). * `startTime`: Time
 15300  // when the rate plan becomes active. * `endTime`: Time when the rate plan
 15301  // expires. **Note**: Not supported by Apigee at this time.
 15302  func (c *OrganizationsApiproductsRateplansListCall) OrderBy(orderBy string) *OrganizationsApiproductsRateplansListCall {
 15303  	c.urlParams_.Set("orderBy", orderBy)
 15304  	return c
 15305  }
 15306  
 15307  // StartKey sets the optional parameter "startKey": Name of the rate plan from
 15308  // which to start displaying the list of rate plans. If omitted, the list
 15309  // starts from the first item. For example, to view the rate plans from 51-150,
 15310  // set the value of `startKey` to the name of the 51st rate plan and set the
 15311  // value of `count` to 100.
 15312  func (c *OrganizationsApiproductsRateplansListCall) StartKey(startKey string) *OrganizationsApiproductsRateplansListCall {
 15313  	c.urlParams_.Set("startKey", startKey)
 15314  	return c
 15315  }
 15316  
 15317  // State sets the optional parameter "state": State of the rate plans (`DRAFT`,
 15318  // `PUBLISHED`) that you want to display.
 15319  //
 15320  // Possible values:
 15321  //
 15322  //	"STATE_UNSPECIFIED" - State of the rate plan is not specified.
 15323  //	"DRAFT" - Rate plan is in draft mode and only visible to API providers.
 15324  //	"PUBLISHED" - Rate plan is published and will become visible to developers
 15325  //
 15326  // for the configured duration (between `startTime` and `endTime`).
 15327  func (c *OrganizationsApiproductsRateplansListCall) State(state string) *OrganizationsApiproductsRateplansListCall {
 15328  	c.urlParams_.Set("state", state)
 15329  	return c
 15330  }
 15331  
 15332  // Fields allows partial responses to be retrieved. See
 15333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15334  // details.
 15335  func (c *OrganizationsApiproductsRateplansListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansListCall {
 15336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15337  	return c
 15338  }
 15339  
 15340  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15341  // object's ETag matches the given value. This is useful for getting updates
 15342  // only after the object has changed since the last request.
 15343  func (c *OrganizationsApiproductsRateplansListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansListCall {
 15344  	c.ifNoneMatch_ = entityTag
 15345  	return c
 15346  }
 15347  
 15348  // Context sets the context to be used in this call's Do method.
 15349  func (c *OrganizationsApiproductsRateplansListCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansListCall {
 15350  	c.ctx_ = ctx
 15351  	return c
 15352  }
 15353  
 15354  // Header returns a http.Header that can be modified by the caller to add
 15355  // headers to the request.
 15356  func (c *OrganizationsApiproductsRateplansListCall) Header() http.Header {
 15357  	if c.header_ == nil {
 15358  		c.header_ = make(http.Header)
 15359  	}
 15360  	return c.header_
 15361  }
 15362  
 15363  func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http.Response, error) {
 15364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15365  	if c.ifNoneMatch_ != "" {
 15366  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15367  	}
 15368  	var body io.Reader = nil
 15369  	c.urlParams_.Set("alt", alt)
 15370  	c.urlParams_.Set("prettyPrint", "false")
 15371  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
 15372  	urls += "?" + c.urlParams_.Encode()
 15373  	req, err := http.NewRequest("GET", urls, body)
 15374  	if err != nil {
 15375  		return nil, err
 15376  	}
 15377  	req.Header = reqHeaders
 15378  	googleapi.Expand(req.URL, map[string]string{
 15379  		"parent": c.parent,
 15380  	})
 15381  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15382  }
 15383  
 15384  // Do executes the "apigee.organizations.apiproducts.rateplans.list" call.
 15385  // Any non-2xx status code is an error. Response headers are in either
 15386  // *GoogleCloudApigeeV1ListRatePlansResponse.ServerResponse.Header or (if a
 15387  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15388  // googleapi.IsNotModified to check whether the returned error was because
 15389  // http.StatusNotModified was returned.
 15390  func (c *OrganizationsApiproductsRateplansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListRatePlansResponse, error) {
 15391  	gensupport.SetOptions(c.urlParams_, opts...)
 15392  	res, err := c.doRequest("json")
 15393  	if res != nil && res.StatusCode == http.StatusNotModified {
 15394  		if res.Body != nil {
 15395  			res.Body.Close()
 15396  		}
 15397  		return nil, gensupport.WrapError(&googleapi.Error{
 15398  			Code:   res.StatusCode,
 15399  			Header: res.Header,
 15400  		})
 15401  	}
 15402  	if err != nil {
 15403  		return nil, err
 15404  	}
 15405  	defer googleapi.CloseBody(res)
 15406  	if err := googleapi.CheckResponse(res); err != nil {
 15407  		return nil, gensupport.WrapError(err)
 15408  	}
 15409  	ret := &GoogleCloudApigeeV1ListRatePlansResponse{
 15410  		ServerResponse: googleapi.ServerResponse{
 15411  			Header:         res.Header,
 15412  			HTTPStatusCode: res.StatusCode,
 15413  		},
 15414  	}
 15415  	target := &ret
 15416  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15417  		return nil, err
 15418  	}
 15419  	return ret, nil
 15420  }
 15421  
 15422  type OrganizationsApiproductsRateplansUpdateCall struct {
 15423  	s                           *Service
 15424  	name                        string
 15425  	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
 15426  	urlParams_                  gensupport.URLParams
 15427  	ctx_                        context.Context
 15428  	header_                     http.Header
 15429  }
 15430  
 15431  // Update: Updates an existing rate plan.
 15432  //
 15433  //   - name: Name of the rate plan. Use the following structure in your request:
 15434  //     `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
 15435  func (r *OrganizationsApiproductsRateplansService) Update(name string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansUpdateCall {
 15436  	c := &OrganizationsApiproductsRateplansUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15437  	c.name = name
 15438  	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
 15439  	return c
 15440  }
 15441  
 15442  // Fields allows partial responses to be retrieved. See
 15443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15444  // details.
 15445  func (c *OrganizationsApiproductsRateplansUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansUpdateCall {
 15446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15447  	return c
 15448  }
 15449  
 15450  // Context sets the context to be used in this call's Do method.
 15451  func (c *OrganizationsApiproductsRateplansUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansUpdateCall {
 15452  	c.ctx_ = ctx
 15453  	return c
 15454  }
 15455  
 15456  // Header returns a http.Header that can be modified by the caller to add
 15457  // headers to the request.
 15458  func (c *OrganizationsApiproductsRateplansUpdateCall) Header() http.Header {
 15459  	if c.header_ == nil {
 15460  		c.header_ = make(http.Header)
 15461  	}
 15462  	return c.header_
 15463  }
 15464  
 15465  func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*http.Response, error) {
 15466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15467  	var body io.Reader = nil
 15468  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
 15469  	if err != nil {
 15470  		return nil, err
 15471  	}
 15472  	c.urlParams_.Set("alt", alt)
 15473  	c.urlParams_.Set("prettyPrint", "false")
 15474  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15475  	urls += "?" + c.urlParams_.Encode()
 15476  	req, err := http.NewRequest("PUT", urls, body)
 15477  	if err != nil {
 15478  		return nil, err
 15479  	}
 15480  	req.Header = reqHeaders
 15481  	googleapi.Expand(req.URL, map[string]string{
 15482  		"name": c.name,
 15483  	})
 15484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15485  }
 15486  
 15487  // Do executes the "apigee.organizations.apiproducts.rateplans.update" call.
 15488  // Any non-2xx status code is an error. Response headers are in either
 15489  // *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response was
 15490  // returned at all) in error.(*googleapi.Error).Header. Use
 15491  // googleapi.IsNotModified to check whether the returned error was because
 15492  // http.StatusNotModified was returned.
 15493  func (c *OrganizationsApiproductsRateplansUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
 15494  	gensupport.SetOptions(c.urlParams_, opts...)
 15495  	res, err := c.doRequest("json")
 15496  	if res != nil && res.StatusCode == http.StatusNotModified {
 15497  		if res.Body != nil {
 15498  			res.Body.Close()
 15499  		}
 15500  		return nil, gensupport.WrapError(&googleapi.Error{
 15501  			Code:   res.StatusCode,
 15502  			Header: res.Header,
 15503  		})
 15504  	}
 15505  	if err != nil {
 15506  		return nil, err
 15507  	}
 15508  	defer googleapi.CloseBody(res)
 15509  	if err := googleapi.CheckResponse(res); err != nil {
 15510  		return nil, gensupport.WrapError(err)
 15511  	}
 15512  	ret := &GoogleCloudApigeeV1RatePlan{
 15513  		ServerResponse: googleapi.ServerResponse{
 15514  			Header:         res.Header,
 15515  			HTTPStatusCode: res.StatusCode,
 15516  		},
 15517  	}
 15518  	target := &ret
 15519  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15520  		return nil, err
 15521  	}
 15522  	return ret, nil
 15523  }
 15524  
 15525  type OrganizationsApisCreateCall struct {
 15526  	s                 *Service
 15527  	parent            string
 15528  	googleapihttpbody *GoogleApiHttpBody
 15529  	urlParams_        gensupport.URLParams
 15530  	ctx_              context.Context
 15531  	header_           http.Header
 15532  }
 15533  
 15534  // Create: Creates an API proxy. The API proxy created will not be accessible
 15535  // at runtime until it is deployed to an environment. Create a new API proxy by
 15536  // setting the `name` query parameter to the name of the API proxy. Import an
 15537  // API proxy configuration bundle stored in zip format on your local machine to
 15538  // your organization by doing the following: * Set the `name` query parameter
 15539  // to the name of the API proxy. * Set the `action` query parameter to
 15540  // `import`. * Set the `Content-Type` header to `multipart/form-data`. * Pass
 15541  // as a file the name of API proxy configuration bundle stored in zip format on
 15542  // your local machine using the `file` form field. **Note**: To validate the
 15543  // API proxy configuration bundle only without importing it, set the `action`
 15544  // query parameter to `validate`. When importing an API proxy configuration
 15545  // bundle, if the API proxy does not exist, it will be created. If the API
 15546  // proxy exists, then a new revision is created. Invalid API proxy
 15547  // configurations are rejected, and a list of validation errors is returned to
 15548  // the client.
 15549  //
 15550  //   - parent: Name of the organization in the following format:
 15551  //     `organizations/{org}`.
 15552  func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
 15553  	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15554  	c.parent = parent
 15555  	c.googleapihttpbody = googleapihttpbody
 15556  	return c
 15557  }
 15558  
 15559  // Action sets the optional parameter "action": Action to perform when
 15560  // importing an API proxy configuration bundle. Set this parameter to one of
 15561  // the following values: * `import` to import the API proxy configuration
 15562  // bundle. * `validate` to validate the API proxy configuration bundle without
 15563  // importing it.
 15564  func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
 15565  	c.urlParams_.Set("action", action)
 15566  	return c
 15567  }
 15568  
 15569  // Name sets the optional parameter "name": Name of the API proxy. Restrict the
 15570  // characters used to: A-Za-z0-9._-
 15571  func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
 15572  	c.urlParams_.Set("name", name)
 15573  	return c
 15574  }
 15575  
 15576  // Validate sets the optional parameter "validate": Ignored. All uploads are
 15577  // validated regardless of the value of this field. Maintained for
 15578  // compatibility with Apigee Edge API.
 15579  func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
 15580  	c.urlParams_.Set("validate", fmt.Sprint(validate))
 15581  	return c
 15582  }
 15583  
 15584  // Fields allows partial responses to be retrieved. See
 15585  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15586  // details.
 15587  func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
 15588  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15589  	return c
 15590  }
 15591  
 15592  // Context sets the context to be used in this call's Do method.
 15593  func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
 15594  	c.ctx_ = ctx
 15595  	return c
 15596  }
 15597  
 15598  // Header returns a http.Header that can be modified by the caller to add
 15599  // headers to the request.
 15600  func (c *OrganizationsApisCreateCall) Header() http.Header {
 15601  	if c.header_ == nil {
 15602  		c.header_ = make(http.Header)
 15603  	}
 15604  	return c.header_
 15605  }
 15606  
 15607  func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
 15608  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15609  	var body io.Reader = nil
 15610  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 15611  	if err != nil {
 15612  		return nil, err
 15613  	}
 15614  	c.urlParams_.Set("alt", alt)
 15615  	c.urlParams_.Set("prettyPrint", "false")
 15616  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
 15617  	urls += "?" + c.urlParams_.Encode()
 15618  	req, err := http.NewRequest("POST", urls, body)
 15619  	if err != nil {
 15620  		return nil, err
 15621  	}
 15622  	req.Header = reqHeaders
 15623  	googleapi.Expand(req.URL, map[string]string{
 15624  		"parent": c.parent,
 15625  	})
 15626  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15627  }
 15628  
 15629  // Do executes the "apigee.organizations.apis.create" call.
 15630  // Any non-2xx status code is an error. Response headers are in either
 15631  // *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or (if a response
 15632  // was returned at all) in error.(*googleapi.Error).Header. Use
 15633  // googleapi.IsNotModified to check whether the returned error was because
 15634  // http.StatusNotModified was returned.
 15635  func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
 15636  	gensupport.SetOptions(c.urlParams_, opts...)
 15637  	res, err := c.doRequest("json")
 15638  	if res != nil && res.StatusCode == http.StatusNotModified {
 15639  		if res.Body != nil {
 15640  			res.Body.Close()
 15641  		}
 15642  		return nil, gensupport.WrapError(&googleapi.Error{
 15643  			Code:   res.StatusCode,
 15644  			Header: res.Header,
 15645  		})
 15646  	}
 15647  	if err != nil {
 15648  		return nil, err
 15649  	}
 15650  	defer googleapi.CloseBody(res)
 15651  	if err := googleapi.CheckResponse(res); err != nil {
 15652  		return nil, gensupport.WrapError(err)
 15653  	}
 15654  	ret := &GoogleCloudApigeeV1ApiProxyRevision{
 15655  		ServerResponse: googleapi.ServerResponse{
 15656  			Header:         res.Header,
 15657  			HTTPStatusCode: res.StatusCode,
 15658  		},
 15659  	}
 15660  	target := &ret
 15661  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15662  		return nil, err
 15663  	}
 15664  	return ret, nil
 15665  }
 15666  
 15667  type OrganizationsApisDeleteCall struct {
 15668  	s          *Service
 15669  	name       string
 15670  	urlParams_ gensupport.URLParams
 15671  	ctx_       context.Context
 15672  	header_    http.Header
 15673  }
 15674  
 15675  // Delete: Deletes an API proxy and all associated endpoints, policies,
 15676  // resources, and revisions. The API proxy must be undeployed before you can
 15677  // delete it.
 15678  //
 15679  //   - name: Name of the API proxy in the following format:
 15680  //     `organizations/{org}/apis/{api}`.
 15681  func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
 15682  	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15683  	c.name = name
 15684  	return c
 15685  }
 15686  
 15687  // Fields allows partial responses to be retrieved. See
 15688  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15689  // details.
 15690  func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
 15691  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15692  	return c
 15693  }
 15694  
 15695  // Context sets the context to be used in this call's Do method.
 15696  func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
 15697  	c.ctx_ = ctx
 15698  	return c
 15699  }
 15700  
 15701  // Header returns a http.Header that can be modified by the caller to add
 15702  // headers to the request.
 15703  func (c *OrganizationsApisDeleteCall) Header() http.Header {
 15704  	if c.header_ == nil {
 15705  		c.header_ = make(http.Header)
 15706  	}
 15707  	return c.header_
 15708  }
 15709  
 15710  func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
 15711  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15712  	var body io.Reader = nil
 15713  	c.urlParams_.Set("alt", alt)
 15714  	c.urlParams_.Set("prettyPrint", "false")
 15715  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15716  	urls += "?" + c.urlParams_.Encode()
 15717  	req, err := http.NewRequest("DELETE", urls, body)
 15718  	if err != nil {
 15719  		return nil, err
 15720  	}
 15721  	req.Header = reqHeaders
 15722  	googleapi.Expand(req.URL, map[string]string{
 15723  		"name": c.name,
 15724  	})
 15725  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15726  }
 15727  
 15728  // Do executes the "apigee.organizations.apis.delete" call.
 15729  // Any non-2xx status code is an error. Response headers are in either
 15730  // *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response was
 15731  // returned at all) in error.(*googleapi.Error).Header. Use
 15732  // googleapi.IsNotModified to check whether the returned error was because
 15733  // http.StatusNotModified was returned.
 15734  func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
 15735  	gensupport.SetOptions(c.urlParams_, opts...)
 15736  	res, err := c.doRequest("json")
 15737  	if res != nil && res.StatusCode == http.StatusNotModified {
 15738  		if res.Body != nil {
 15739  			res.Body.Close()
 15740  		}
 15741  		return nil, gensupport.WrapError(&googleapi.Error{
 15742  			Code:   res.StatusCode,
 15743  			Header: res.Header,
 15744  		})
 15745  	}
 15746  	if err != nil {
 15747  		return nil, err
 15748  	}
 15749  	defer googleapi.CloseBody(res)
 15750  	if err := googleapi.CheckResponse(res); err != nil {
 15751  		return nil, gensupport.WrapError(err)
 15752  	}
 15753  	ret := &GoogleCloudApigeeV1ApiProxy{
 15754  		ServerResponse: googleapi.ServerResponse{
 15755  			Header:         res.Header,
 15756  			HTTPStatusCode: res.StatusCode,
 15757  		},
 15758  	}
 15759  	target := &ret
 15760  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15761  		return nil, err
 15762  	}
 15763  	return ret, nil
 15764  }
 15765  
 15766  type OrganizationsApisGetCall struct {
 15767  	s            *Service
 15768  	name         string
 15769  	urlParams_   gensupport.URLParams
 15770  	ifNoneMatch_ string
 15771  	ctx_         context.Context
 15772  	header_      http.Header
 15773  }
 15774  
 15775  // Get: Gets an API proxy including a list of existing revisions.
 15776  //
 15777  //   - name: Name of the API proxy in the following format:
 15778  //     `organizations/{org}/apis/{api}`.
 15779  func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
 15780  	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15781  	c.name = name
 15782  	return c
 15783  }
 15784  
 15785  // Fields allows partial responses to be retrieved. See
 15786  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15787  // details.
 15788  func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
 15789  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15790  	return c
 15791  }
 15792  
 15793  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15794  // object's ETag matches the given value. This is useful for getting updates
 15795  // only after the object has changed since the last request.
 15796  func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
 15797  	c.ifNoneMatch_ = entityTag
 15798  	return c
 15799  }
 15800  
 15801  // Context sets the context to be used in this call's Do method.
 15802  func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
 15803  	c.ctx_ = ctx
 15804  	return c
 15805  }
 15806  
 15807  // Header returns a http.Header that can be modified by the caller to add
 15808  // headers to the request.
 15809  func (c *OrganizationsApisGetCall) Header() http.Header {
 15810  	if c.header_ == nil {
 15811  		c.header_ = make(http.Header)
 15812  	}
 15813  	return c.header_
 15814  }
 15815  
 15816  func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
 15817  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15818  	if c.ifNoneMatch_ != "" {
 15819  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15820  	}
 15821  	var body io.Reader = nil
 15822  	c.urlParams_.Set("alt", alt)
 15823  	c.urlParams_.Set("prettyPrint", "false")
 15824  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15825  	urls += "?" + c.urlParams_.Encode()
 15826  	req, err := http.NewRequest("GET", urls, body)
 15827  	if err != nil {
 15828  		return nil, err
 15829  	}
 15830  	req.Header = reqHeaders
 15831  	googleapi.Expand(req.URL, map[string]string{
 15832  		"name": c.name,
 15833  	})
 15834  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15835  }
 15836  
 15837  // Do executes the "apigee.organizations.apis.get" call.
 15838  // Any non-2xx status code is an error. Response headers are in either
 15839  // *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response was
 15840  // returned at all) in error.(*googleapi.Error).Header. Use
 15841  // googleapi.IsNotModified to check whether the returned error was because
 15842  // http.StatusNotModified was returned.
 15843  func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
 15844  	gensupport.SetOptions(c.urlParams_, opts...)
 15845  	res, err := c.doRequest("json")
 15846  	if res != nil && res.StatusCode == http.StatusNotModified {
 15847  		if res.Body != nil {
 15848  			res.Body.Close()
 15849  		}
 15850  		return nil, gensupport.WrapError(&googleapi.Error{
 15851  			Code:   res.StatusCode,
 15852  			Header: res.Header,
 15853  		})
 15854  	}
 15855  	if err != nil {
 15856  		return nil, err
 15857  	}
 15858  	defer googleapi.CloseBody(res)
 15859  	if err := googleapi.CheckResponse(res); err != nil {
 15860  		return nil, gensupport.WrapError(err)
 15861  	}
 15862  	ret := &GoogleCloudApigeeV1ApiProxy{
 15863  		ServerResponse: googleapi.ServerResponse{
 15864  			Header:         res.Header,
 15865  			HTTPStatusCode: res.StatusCode,
 15866  		},
 15867  	}
 15868  	target := &ret
 15869  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15870  		return nil, err
 15871  	}
 15872  	return ret, nil
 15873  }
 15874  
 15875  type OrganizationsApisListCall struct {
 15876  	s            *Service
 15877  	parent       string
 15878  	urlParams_   gensupport.URLParams
 15879  	ifNoneMatch_ string
 15880  	ctx_         context.Context
 15881  	header_      http.Header
 15882  }
 15883  
 15884  // List: Lists the names of all API proxies in an organization. The names
 15885  // returned correspond to the names defined in the configuration files for each
 15886  // API proxy.
 15887  //
 15888  //   - parent: Name of the organization in the following format:
 15889  //     `organizations/{org}`.
 15890  func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
 15891  	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15892  	c.parent = parent
 15893  	return c
 15894  }
 15895  
 15896  // IncludeMetaData sets the optional parameter "includeMetaData": Flag that
 15897  // specifies whether to include API proxy metadata in the response.
 15898  func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
 15899  	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
 15900  	return c
 15901  }
 15902  
 15903  // IncludeRevisions sets the optional parameter "includeRevisions": Flag that
 15904  // specifies whether to include a list of revisions in the response.
 15905  func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
 15906  	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
 15907  	return c
 15908  }
 15909  
 15910  // Fields allows partial responses to be retrieved. See
 15911  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15912  // details.
 15913  func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
 15914  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15915  	return c
 15916  }
 15917  
 15918  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15919  // object's ETag matches the given value. This is useful for getting updates
 15920  // only after the object has changed since the last request.
 15921  func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
 15922  	c.ifNoneMatch_ = entityTag
 15923  	return c
 15924  }
 15925  
 15926  // Context sets the context to be used in this call's Do method.
 15927  func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
 15928  	c.ctx_ = ctx
 15929  	return c
 15930  }
 15931  
 15932  // Header returns a http.Header that can be modified by the caller to add
 15933  // headers to the request.
 15934  func (c *OrganizationsApisListCall) Header() http.Header {
 15935  	if c.header_ == nil {
 15936  		c.header_ = make(http.Header)
 15937  	}
 15938  	return c.header_
 15939  }
 15940  
 15941  func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
 15942  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15943  	if c.ifNoneMatch_ != "" {
 15944  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15945  	}
 15946  	var body io.Reader = nil
 15947  	c.urlParams_.Set("alt", alt)
 15948  	c.urlParams_.Set("prettyPrint", "false")
 15949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
 15950  	urls += "?" + c.urlParams_.Encode()
 15951  	req, err := http.NewRequest("GET", urls, body)
 15952  	if err != nil {
 15953  		return nil, err
 15954  	}
 15955  	req.Header = reqHeaders
 15956  	googleapi.Expand(req.URL, map[string]string{
 15957  		"parent": c.parent,
 15958  	})
 15959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15960  }
 15961  
 15962  // Do executes the "apigee.organizations.apis.list" call.
 15963  // Any non-2xx status code is an error. Response headers are in either
 15964  // *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or (if a
 15965  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15966  // googleapi.IsNotModified to check whether the returned error was because
 15967  // http.StatusNotModified was returned.
 15968  func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
 15969  	gensupport.SetOptions(c.urlParams_, opts...)
 15970  	res, err := c.doRequest("json")
 15971  	if res != nil && res.StatusCode == http.StatusNotModified {
 15972  		if res.Body != nil {
 15973  			res.Body.Close()
 15974  		}
 15975  		return nil, gensupport.WrapError(&googleapi.Error{
 15976  			Code:   res.StatusCode,
 15977  			Header: res.Header,
 15978  		})
 15979  	}
 15980  	if err != nil {
 15981  		return nil, err
 15982  	}
 15983  	defer googleapi.CloseBody(res)
 15984  	if err := googleapi.CheckResponse(res); err != nil {
 15985  		return nil, gensupport.WrapError(err)
 15986  	}
 15987  	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
 15988  		ServerResponse: googleapi.ServerResponse{
 15989  			Header:         res.Header,
 15990  			HTTPStatusCode: res.StatusCode,
 15991  		},
 15992  	}
 15993  	target := &ret
 15994  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15995  		return nil, err
 15996  	}
 15997  	return ret, nil
 15998  }
 15999  
 16000  type OrganizationsApisPatchCall struct {
 16001  	s                           *Service
 16002  	name                        string
 16003  	googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy
 16004  	urlParams_                  gensupport.URLParams
 16005  	ctx_                        context.Context
 16006  	header_                     http.Header
 16007  }
 16008  
 16009  // Patch: Updates an existing API proxy.
 16010  //
 16011  //   - name: API proxy to update in the following format:
 16012  //     `organizations/{org}/apis/{api}`.
 16013  func (r *OrganizationsApisService) Patch(name string, googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy) *OrganizationsApisPatchCall {
 16014  	c := &OrganizationsApisPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16015  	c.name = name
 16016  	c.googlecloudapigeev1apiproxy = googlecloudapigeev1apiproxy
 16017  	return c
 16018  }
 16019  
 16020  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 16021  // fields to update.
 16022  func (c *OrganizationsApisPatchCall) UpdateMask(updateMask string) *OrganizationsApisPatchCall {
 16023  	c.urlParams_.Set("updateMask", updateMask)
 16024  	return c
 16025  }
 16026  
 16027  // Fields allows partial responses to be retrieved. See
 16028  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16029  // details.
 16030  func (c *OrganizationsApisPatchCall) Fields(s ...googleapi.Field) *OrganizationsApisPatchCall {
 16031  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16032  	return c
 16033  }
 16034  
 16035  // Context sets the context to be used in this call's Do method.
 16036  func (c *OrganizationsApisPatchCall) Context(ctx context.Context) *OrganizationsApisPatchCall {
 16037  	c.ctx_ = ctx
 16038  	return c
 16039  }
 16040  
 16041  // Header returns a http.Header that can be modified by the caller to add
 16042  // headers to the request.
 16043  func (c *OrganizationsApisPatchCall) Header() http.Header {
 16044  	if c.header_ == nil {
 16045  		c.header_ = make(http.Header)
 16046  	}
 16047  	return c.header_
 16048  }
 16049  
 16050  func (c *OrganizationsApisPatchCall) doRequest(alt string) (*http.Response, error) {
 16051  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16052  	var body io.Reader = nil
 16053  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproxy)
 16054  	if err != nil {
 16055  		return nil, err
 16056  	}
 16057  	c.urlParams_.Set("alt", alt)
 16058  	c.urlParams_.Set("prettyPrint", "false")
 16059  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16060  	urls += "?" + c.urlParams_.Encode()
 16061  	req, err := http.NewRequest("PATCH", urls, body)
 16062  	if err != nil {
 16063  		return nil, err
 16064  	}
 16065  	req.Header = reqHeaders
 16066  	googleapi.Expand(req.URL, map[string]string{
 16067  		"name": c.name,
 16068  	})
 16069  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16070  }
 16071  
 16072  // Do executes the "apigee.organizations.apis.patch" call.
 16073  // Any non-2xx status code is an error. Response headers are in either
 16074  // *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response was
 16075  // returned at all) in error.(*googleapi.Error).Header. Use
 16076  // googleapi.IsNotModified to check whether the returned error was because
 16077  // http.StatusNotModified was returned.
 16078  func (c *OrganizationsApisPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
 16079  	gensupport.SetOptions(c.urlParams_, opts...)
 16080  	res, err := c.doRequest("json")
 16081  	if res != nil && res.StatusCode == http.StatusNotModified {
 16082  		if res.Body != nil {
 16083  			res.Body.Close()
 16084  		}
 16085  		return nil, gensupport.WrapError(&googleapi.Error{
 16086  			Code:   res.StatusCode,
 16087  			Header: res.Header,
 16088  		})
 16089  	}
 16090  	if err != nil {
 16091  		return nil, err
 16092  	}
 16093  	defer googleapi.CloseBody(res)
 16094  	if err := googleapi.CheckResponse(res); err != nil {
 16095  		return nil, gensupport.WrapError(err)
 16096  	}
 16097  	ret := &GoogleCloudApigeeV1ApiProxy{
 16098  		ServerResponse: googleapi.ServerResponse{
 16099  			Header:         res.Header,
 16100  			HTTPStatusCode: res.StatusCode,
 16101  		},
 16102  	}
 16103  	target := &ret
 16104  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16105  		return nil, err
 16106  	}
 16107  	return ret, nil
 16108  }
 16109  
 16110  type OrganizationsApisDeploymentsListCall struct {
 16111  	s            *Service
 16112  	parent       string
 16113  	urlParams_   gensupport.URLParams
 16114  	ifNoneMatch_ string
 16115  	ctx_         context.Context
 16116  	header_      http.Header
 16117  }
 16118  
 16119  // List: Lists all deployments of an API proxy.
 16120  //
 16121  //   - parent: Name of the API proxy for which to return deployment information
 16122  //     in the following format: `organizations/{org}/apis/{api}`.
 16123  func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
 16124  	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16125  	c.parent = parent
 16126  	return c
 16127  }
 16128  
 16129  // Fields allows partial responses to be retrieved. See
 16130  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16131  // details.
 16132  func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
 16133  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16134  	return c
 16135  }
 16136  
 16137  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16138  // object's ETag matches the given value. This is useful for getting updates
 16139  // only after the object has changed since the last request.
 16140  func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
 16141  	c.ifNoneMatch_ = entityTag
 16142  	return c
 16143  }
 16144  
 16145  // Context sets the context to be used in this call's Do method.
 16146  func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
 16147  	c.ctx_ = ctx
 16148  	return c
 16149  }
 16150  
 16151  // Header returns a http.Header that can be modified by the caller to add
 16152  // headers to the request.
 16153  func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
 16154  	if c.header_ == nil {
 16155  		c.header_ = make(http.Header)
 16156  	}
 16157  	return c.header_
 16158  }
 16159  
 16160  func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 16161  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16162  	if c.ifNoneMatch_ != "" {
 16163  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16164  	}
 16165  	var body io.Reader = nil
 16166  	c.urlParams_.Set("alt", alt)
 16167  	c.urlParams_.Set("prettyPrint", "false")
 16168  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 16169  	urls += "?" + c.urlParams_.Encode()
 16170  	req, err := http.NewRequest("GET", urls, body)
 16171  	if err != nil {
 16172  		return nil, err
 16173  	}
 16174  	req.Header = reqHeaders
 16175  	googleapi.Expand(req.URL, map[string]string{
 16176  		"parent": c.parent,
 16177  	})
 16178  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16179  }
 16180  
 16181  // Do executes the "apigee.organizations.apis.deployments.list" call.
 16182  // Any non-2xx status code is an error. Response headers are in either
 16183  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 16184  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16185  // googleapi.IsNotModified to check whether the returned error was because
 16186  // http.StatusNotModified was returned.
 16187  func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 16188  	gensupport.SetOptions(c.urlParams_, opts...)
 16189  	res, err := c.doRequest("json")
 16190  	if res != nil && res.StatusCode == http.StatusNotModified {
 16191  		if res.Body != nil {
 16192  			res.Body.Close()
 16193  		}
 16194  		return nil, gensupport.WrapError(&googleapi.Error{
 16195  			Code:   res.StatusCode,
 16196  			Header: res.Header,
 16197  		})
 16198  	}
 16199  	if err != nil {
 16200  		return nil, err
 16201  	}
 16202  	defer googleapi.CloseBody(res)
 16203  	if err := googleapi.CheckResponse(res); err != nil {
 16204  		return nil, gensupport.WrapError(err)
 16205  	}
 16206  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 16207  		ServerResponse: googleapi.ServerResponse{
 16208  			Header:         res.Header,
 16209  			HTTPStatusCode: res.StatusCode,
 16210  		},
 16211  	}
 16212  	target := &ret
 16213  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16214  		return nil, err
 16215  	}
 16216  	return ret, nil
 16217  }
 16218  
 16219  type OrganizationsApisKeyvaluemapsCreateCall struct {
 16220  	s                              *Service
 16221  	parent                         string
 16222  	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
 16223  	urlParams_                     gensupport.URLParams
 16224  	ctx_                           context.Context
 16225  	header_                        http.Header
 16226  }
 16227  
 16228  // Create: Creates a key value map in an API proxy.
 16229  //
 16230  //   - parent: Name of the environment in which to create the key value map. Use
 16231  //     the following structure in your request: `organizations/{org}/apis/{api}`.
 16232  func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
 16233  	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16234  	c.parent = parent
 16235  	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
 16236  	return c
 16237  }
 16238  
 16239  // Fields allows partial responses to be retrieved. See
 16240  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16241  // details.
 16242  func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
 16243  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16244  	return c
 16245  }
 16246  
 16247  // Context sets the context to be used in this call's Do method.
 16248  func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
 16249  	c.ctx_ = ctx
 16250  	return c
 16251  }
 16252  
 16253  // Header returns a http.Header that can be modified by the caller to add
 16254  // headers to the request.
 16255  func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
 16256  	if c.header_ == nil {
 16257  		c.header_ = make(http.Header)
 16258  	}
 16259  	return c.header_
 16260  }
 16261  
 16262  func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
 16263  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16264  	var body io.Reader = nil
 16265  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
 16266  	if err != nil {
 16267  		return nil, err
 16268  	}
 16269  	c.urlParams_.Set("alt", alt)
 16270  	c.urlParams_.Set("prettyPrint", "false")
 16271  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
 16272  	urls += "?" + c.urlParams_.Encode()
 16273  	req, err := http.NewRequest("POST", urls, body)
 16274  	if err != nil {
 16275  		return nil, err
 16276  	}
 16277  	req.Header = reqHeaders
 16278  	googleapi.Expand(req.URL, map[string]string{
 16279  		"parent": c.parent,
 16280  	})
 16281  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16282  }
 16283  
 16284  // Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
 16285  // Any non-2xx status code is an error. Response headers are in either
 16286  // *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a response was
 16287  // returned at all) in error.(*googleapi.Error).Header. Use
 16288  // googleapi.IsNotModified to check whether the returned error was because
 16289  // http.StatusNotModified was returned.
 16290  func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
 16291  	gensupport.SetOptions(c.urlParams_, opts...)
 16292  	res, err := c.doRequest("json")
 16293  	if res != nil && res.StatusCode == http.StatusNotModified {
 16294  		if res.Body != nil {
 16295  			res.Body.Close()
 16296  		}
 16297  		return nil, gensupport.WrapError(&googleapi.Error{
 16298  			Code:   res.StatusCode,
 16299  			Header: res.Header,
 16300  		})
 16301  	}
 16302  	if err != nil {
 16303  		return nil, err
 16304  	}
 16305  	defer googleapi.CloseBody(res)
 16306  	if err := googleapi.CheckResponse(res); err != nil {
 16307  		return nil, gensupport.WrapError(err)
 16308  	}
 16309  	ret := &GoogleCloudApigeeV1KeyValueMap{
 16310  		ServerResponse: googleapi.ServerResponse{
 16311  			Header:         res.Header,
 16312  			HTTPStatusCode: res.StatusCode,
 16313  		},
 16314  	}
 16315  	target := &ret
 16316  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16317  		return nil, err
 16318  	}
 16319  	return ret, nil
 16320  }
 16321  
 16322  type OrganizationsApisKeyvaluemapsDeleteCall struct {
 16323  	s          *Service
 16324  	name       string
 16325  	urlParams_ gensupport.URLParams
 16326  	ctx_       context.Context
 16327  	header_    http.Header
 16328  }
 16329  
 16330  // Delete: Deletes a key value map from an API proxy.
 16331  //
 16332  //   - name: Name of the key value map. Use the following structure in your
 16333  //     request: `organizations/{org}/apis/{api}/keyvaluemaps/{keyvaluemap}`.
 16334  func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
 16335  	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16336  	c.name = name
 16337  	return c
 16338  }
 16339  
 16340  // Fields allows partial responses to be retrieved. See
 16341  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16342  // details.
 16343  func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
 16344  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16345  	return c
 16346  }
 16347  
 16348  // Context sets the context to be used in this call's Do method.
 16349  func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
 16350  	c.ctx_ = ctx
 16351  	return c
 16352  }
 16353  
 16354  // Header returns a http.Header that can be modified by the caller to add
 16355  // headers to the request.
 16356  func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
 16357  	if c.header_ == nil {
 16358  		c.header_ = make(http.Header)
 16359  	}
 16360  	return c.header_
 16361  }
 16362  
 16363  func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
 16364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16365  	var body io.Reader = nil
 16366  	c.urlParams_.Set("alt", alt)
 16367  	c.urlParams_.Set("prettyPrint", "false")
 16368  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16369  	urls += "?" + c.urlParams_.Encode()
 16370  	req, err := http.NewRequest("DELETE", urls, body)
 16371  	if err != nil {
 16372  		return nil, err
 16373  	}
 16374  	req.Header = reqHeaders
 16375  	googleapi.Expand(req.URL, map[string]string{
 16376  		"name": c.name,
 16377  	})
 16378  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16379  }
 16380  
 16381  // Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
 16382  // Any non-2xx status code is an error. Response headers are in either
 16383  // *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a response was
 16384  // returned at all) in error.(*googleapi.Error).Header. Use
 16385  // googleapi.IsNotModified to check whether the returned error was because
 16386  // http.StatusNotModified was returned.
 16387  func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
 16388  	gensupport.SetOptions(c.urlParams_, opts...)
 16389  	res, err := c.doRequest("json")
 16390  	if res != nil && res.StatusCode == http.StatusNotModified {
 16391  		if res.Body != nil {
 16392  			res.Body.Close()
 16393  		}
 16394  		return nil, gensupport.WrapError(&googleapi.Error{
 16395  			Code:   res.StatusCode,
 16396  			Header: res.Header,
 16397  		})
 16398  	}
 16399  	if err != nil {
 16400  		return nil, err
 16401  	}
 16402  	defer googleapi.CloseBody(res)
 16403  	if err := googleapi.CheckResponse(res); err != nil {
 16404  		return nil, gensupport.WrapError(err)
 16405  	}
 16406  	ret := &GoogleCloudApigeeV1KeyValueMap{
 16407  		ServerResponse: googleapi.ServerResponse{
 16408  			Header:         res.Header,
 16409  			HTTPStatusCode: res.StatusCode,
 16410  		},
 16411  	}
 16412  	target := &ret
 16413  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16414  		return nil, err
 16415  	}
 16416  	return ret, nil
 16417  }
 16418  
 16419  type OrganizationsApisKeyvaluemapsEntriesCreateCall struct {
 16420  	s                                *Service
 16421  	parent                           string
 16422  	googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
 16423  	urlParams_                       gensupport.URLParams
 16424  	ctx_                             context.Context
 16425  	header_                          http.Header
 16426  }
 16427  
 16428  // Create: Creates key value entries in a key value map scoped to an
 16429  // organization, environment, or API proxy. **Note**: Supported for Apigee
 16430  // hybrid 1.8.x and higher.
 16431  //
 16432  //   - parent: Scope as indicated by the URI in which to create the key value map
 16433  //     entry. Use **one** of the following structures in your request: *
 16434  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 16435  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 16436  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 16437  func (r *OrganizationsApisKeyvaluemapsEntriesService) Create(parent string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsApisKeyvaluemapsEntriesCreateCall {
 16438  	c := &OrganizationsApisKeyvaluemapsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16439  	c.parent = parent
 16440  	c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
 16441  	return c
 16442  }
 16443  
 16444  // Fields allows partial responses to be retrieved. See
 16445  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16446  // details.
 16447  func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesCreateCall {
 16448  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16449  	return c
 16450  }
 16451  
 16452  // Context sets the context to be used in this call's Do method.
 16453  func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesCreateCall {
 16454  	c.ctx_ = ctx
 16455  	return c
 16456  }
 16457  
 16458  // Header returns a http.Header that can be modified by the caller to add
 16459  // headers to the request.
 16460  func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Header() http.Header {
 16461  	if c.header_ == nil {
 16462  		c.header_ = make(http.Header)
 16463  	}
 16464  	return c.header_
 16465  }
 16466  
 16467  func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
 16468  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16469  	var body io.Reader = nil
 16470  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
 16471  	if err != nil {
 16472  		return nil, err
 16473  	}
 16474  	c.urlParams_.Set("alt", alt)
 16475  	c.urlParams_.Set("prettyPrint", "false")
 16476  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 16477  	urls += "?" + c.urlParams_.Encode()
 16478  	req, err := http.NewRequest("POST", urls, body)
 16479  	if err != nil {
 16480  		return nil, err
 16481  	}
 16482  	req.Header = reqHeaders
 16483  	googleapi.Expand(req.URL, map[string]string{
 16484  		"parent": c.parent,
 16485  	})
 16486  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16487  }
 16488  
 16489  // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.create" call.
 16490  // Any non-2xx status code is an error. Response headers are in either
 16491  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 16492  // was returned at all) in error.(*googleapi.Error).Header. Use
 16493  // googleapi.IsNotModified to check whether the returned error was because
 16494  // http.StatusNotModified was returned.
 16495  func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 16496  	gensupport.SetOptions(c.urlParams_, opts...)
 16497  	res, err := c.doRequest("json")
 16498  	if res != nil && res.StatusCode == http.StatusNotModified {
 16499  		if res.Body != nil {
 16500  			res.Body.Close()
 16501  		}
 16502  		return nil, gensupport.WrapError(&googleapi.Error{
 16503  			Code:   res.StatusCode,
 16504  			Header: res.Header,
 16505  		})
 16506  	}
 16507  	if err != nil {
 16508  		return nil, err
 16509  	}
 16510  	defer googleapi.CloseBody(res)
 16511  	if err := googleapi.CheckResponse(res); err != nil {
 16512  		return nil, gensupport.WrapError(err)
 16513  	}
 16514  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 16515  		ServerResponse: googleapi.ServerResponse{
 16516  			Header:         res.Header,
 16517  			HTTPStatusCode: res.StatusCode,
 16518  		},
 16519  	}
 16520  	target := &ret
 16521  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16522  		return nil, err
 16523  	}
 16524  	return ret, nil
 16525  }
 16526  
 16527  type OrganizationsApisKeyvaluemapsEntriesDeleteCall struct {
 16528  	s          *Service
 16529  	name       string
 16530  	urlParams_ gensupport.URLParams
 16531  	ctx_       context.Context
 16532  	header_    http.Header
 16533  }
 16534  
 16535  // Delete: Deletes a key value entry from a key value map scoped to an
 16536  // organization, environment, or API proxy. **Notes:** * After you delete the
 16537  // key value entry, the policy consuming the entry will continue to function
 16538  // with its cached values for a few minutes. This is expected behavior. *
 16539  // Supported for Apigee hybrid 1.8.x and higher.
 16540  //
 16541  //   - name: Scope as indicated by the URI in which to delete the key value map
 16542  //     entry. Use **one** of the following structures in your request: *
 16543  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}/entries
 16544  //     /{entry}`. *
 16545  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 16546  //     aluemap}/entries/{entry}` *
 16547  //     `organizations/{organization}/keyvaluemaps/{keyvaluemap}/entries/{entry}`.
 16548  func (r *OrganizationsApisKeyvaluemapsEntriesService) Delete(name string) *OrganizationsApisKeyvaluemapsEntriesDeleteCall {
 16549  	c := &OrganizationsApisKeyvaluemapsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16550  	c.name = name
 16551  	return c
 16552  }
 16553  
 16554  // Fields allows partial responses to be retrieved. See
 16555  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16556  // details.
 16557  func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesDeleteCall {
 16558  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16559  	return c
 16560  }
 16561  
 16562  // Context sets the context to be used in this call's Do method.
 16563  func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesDeleteCall {
 16564  	c.ctx_ = ctx
 16565  	return c
 16566  }
 16567  
 16568  // Header returns a http.Header that can be modified by the caller to add
 16569  // headers to the request.
 16570  func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Header() http.Header {
 16571  	if c.header_ == nil {
 16572  		c.header_ = make(http.Header)
 16573  	}
 16574  	return c.header_
 16575  }
 16576  
 16577  func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 16578  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16579  	var body io.Reader = nil
 16580  	c.urlParams_.Set("alt", alt)
 16581  	c.urlParams_.Set("prettyPrint", "false")
 16582  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16583  	urls += "?" + c.urlParams_.Encode()
 16584  	req, err := http.NewRequest("DELETE", urls, body)
 16585  	if err != nil {
 16586  		return nil, err
 16587  	}
 16588  	req.Header = reqHeaders
 16589  	googleapi.Expand(req.URL, map[string]string{
 16590  		"name": c.name,
 16591  	})
 16592  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16593  }
 16594  
 16595  // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.delete" call.
 16596  // Any non-2xx status code is an error. Response headers are in either
 16597  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 16598  // was returned at all) in error.(*googleapi.Error).Header. Use
 16599  // googleapi.IsNotModified to check whether the returned error was because
 16600  // http.StatusNotModified was returned.
 16601  func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 16602  	gensupport.SetOptions(c.urlParams_, opts...)
 16603  	res, err := c.doRequest("json")
 16604  	if res != nil && res.StatusCode == http.StatusNotModified {
 16605  		if res.Body != nil {
 16606  			res.Body.Close()
 16607  		}
 16608  		return nil, gensupport.WrapError(&googleapi.Error{
 16609  			Code:   res.StatusCode,
 16610  			Header: res.Header,
 16611  		})
 16612  	}
 16613  	if err != nil {
 16614  		return nil, err
 16615  	}
 16616  	defer googleapi.CloseBody(res)
 16617  	if err := googleapi.CheckResponse(res); err != nil {
 16618  		return nil, gensupport.WrapError(err)
 16619  	}
 16620  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 16621  		ServerResponse: googleapi.ServerResponse{
 16622  			Header:         res.Header,
 16623  			HTTPStatusCode: res.StatusCode,
 16624  		},
 16625  	}
 16626  	target := &ret
 16627  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16628  		return nil, err
 16629  	}
 16630  	return ret, nil
 16631  }
 16632  
 16633  type OrganizationsApisKeyvaluemapsEntriesGetCall struct {
 16634  	s            *Service
 16635  	name         string
 16636  	urlParams_   gensupport.URLParams
 16637  	ifNoneMatch_ string
 16638  	ctx_         context.Context
 16639  	header_      http.Header
 16640  }
 16641  
 16642  // Get: Get the key value entry value for a key value map scoped to an
 16643  // organization, environment, or API proxy. **Note**: Supported for Apigee
 16644  // hybrid 1.8.x and higher.
 16645  //
 16646  //   - name: Scope as indicated by the URI in which to fetch the key value map
 16647  //     entry/value. Use **one** of the following structures in your request: *
 16648  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}/entries
 16649  //     /{entry}`. *
 16650  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 16651  //     aluemap}/entries/{entry}` *
 16652  //     `organizations/{organization}/keyvaluemaps/{keyvaluemap}/entries/{entry}`.
 16653  func (r *OrganizationsApisKeyvaluemapsEntriesService) Get(name string) *OrganizationsApisKeyvaluemapsEntriesGetCall {
 16654  	c := &OrganizationsApisKeyvaluemapsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16655  	c.name = name
 16656  	return c
 16657  }
 16658  
 16659  // Fields allows partial responses to be retrieved. See
 16660  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16661  // details.
 16662  func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesGetCall {
 16663  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16664  	return c
 16665  }
 16666  
 16667  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16668  // object's ETag matches the given value. This is useful for getting updates
 16669  // only after the object has changed since the last request.
 16670  func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) IfNoneMatch(entityTag string) *OrganizationsApisKeyvaluemapsEntriesGetCall {
 16671  	c.ifNoneMatch_ = entityTag
 16672  	return c
 16673  }
 16674  
 16675  // Context sets the context to be used in this call's Do method.
 16676  func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesGetCall {
 16677  	c.ctx_ = ctx
 16678  	return c
 16679  }
 16680  
 16681  // Header returns a http.Header that can be modified by the caller to add
 16682  // headers to the request.
 16683  func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Header() http.Header {
 16684  	if c.header_ == nil {
 16685  		c.header_ = make(http.Header)
 16686  	}
 16687  	return c.header_
 16688  }
 16689  
 16690  func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
 16691  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16692  	if c.ifNoneMatch_ != "" {
 16693  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16694  	}
 16695  	var body io.Reader = nil
 16696  	c.urlParams_.Set("alt", alt)
 16697  	c.urlParams_.Set("prettyPrint", "false")
 16698  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16699  	urls += "?" + c.urlParams_.Encode()
 16700  	req, err := http.NewRequest("GET", urls, body)
 16701  	if err != nil {
 16702  		return nil, err
 16703  	}
 16704  	req.Header = reqHeaders
 16705  	googleapi.Expand(req.URL, map[string]string{
 16706  		"name": c.name,
 16707  	})
 16708  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16709  }
 16710  
 16711  // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.get" call.
 16712  // Any non-2xx status code is an error. Response headers are in either
 16713  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 16714  // was returned at all) in error.(*googleapi.Error).Header. Use
 16715  // googleapi.IsNotModified to check whether the returned error was because
 16716  // http.StatusNotModified was returned.
 16717  func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 16718  	gensupport.SetOptions(c.urlParams_, opts...)
 16719  	res, err := c.doRequest("json")
 16720  	if res != nil && res.StatusCode == http.StatusNotModified {
 16721  		if res.Body != nil {
 16722  			res.Body.Close()
 16723  		}
 16724  		return nil, gensupport.WrapError(&googleapi.Error{
 16725  			Code:   res.StatusCode,
 16726  			Header: res.Header,
 16727  		})
 16728  	}
 16729  	if err != nil {
 16730  		return nil, err
 16731  	}
 16732  	defer googleapi.CloseBody(res)
 16733  	if err := googleapi.CheckResponse(res); err != nil {
 16734  		return nil, gensupport.WrapError(err)
 16735  	}
 16736  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 16737  		ServerResponse: googleapi.ServerResponse{
 16738  			Header:         res.Header,
 16739  			HTTPStatusCode: res.StatusCode,
 16740  		},
 16741  	}
 16742  	target := &ret
 16743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16744  		return nil, err
 16745  	}
 16746  	return ret, nil
 16747  }
 16748  
 16749  type OrganizationsApisKeyvaluemapsEntriesListCall struct {
 16750  	s            *Service
 16751  	parent       string
 16752  	urlParams_   gensupport.URLParams
 16753  	ifNoneMatch_ string
 16754  	ctx_         context.Context
 16755  	header_      http.Header
 16756  }
 16757  
 16758  // List: Lists key value entries for key values maps scoped to an organization,
 16759  // environment, or API proxy. **Note**: Supported for Apigee hybrid 1.8.x and
 16760  // higher.
 16761  //
 16762  //   - parent: Scope as indicated by the URI in which to list key value maps. Use
 16763  //     **one** of the following structures in your request: *
 16764  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 16765  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 16766  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 16767  func (r *OrganizationsApisKeyvaluemapsEntriesService) List(parent string) *OrganizationsApisKeyvaluemapsEntriesListCall {
 16768  	c := &OrganizationsApisKeyvaluemapsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16769  	c.parent = parent
 16770  	return c
 16771  }
 16772  
 16773  // PageSize sets the optional parameter "pageSize": Maximum number of key value
 16774  // entries to return. If unspecified, at most 100 entries will be returned.
 16775  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) PageSize(pageSize int64) *OrganizationsApisKeyvaluemapsEntriesListCall {
 16776  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16777  	return c
 16778  }
 16779  
 16780  // PageToken sets the optional parameter "pageToken": Page token. If provides,
 16781  // must be a valid key value entry returned from a previous call that can be
 16782  // used to retrieve the next page.
 16783  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) PageToken(pageToken string) *OrganizationsApisKeyvaluemapsEntriesListCall {
 16784  	c.urlParams_.Set("pageToken", pageToken)
 16785  	return c
 16786  }
 16787  
 16788  // Fields allows partial responses to be retrieved. See
 16789  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16790  // details.
 16791  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesListCall {
 16792  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16793  	return c
 16794  }
 16795  
 16796  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16797  // object's ETag matches the given value. This is useful for getting updates
 16798  // only after the object has changed since the last request.
 16799  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) IfNoneMatch(entityTag string) *OrganizationsApisKeyvaluemapsEntriesListCall {
 16800  	c.ifNoneMatch_ = entityTag
 16801  	return c
 16802  }
 16803  
 16804  // Context sets the context to be used in this call's Do method.
 16805  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesListCall {
 16806  	c.ctx_ = ctx
 16807  	return c
 16808  }
 16809  
 16810  // Header returns a http.Header that can be modified by the caller to add
 16811  // headers to the request.
 16812  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Header() http.Header {
 16813  	if c.header_ == nil {
 16814  		c.header_ = make(http.Header)
 16815  	}
 16816  	return c.header_
 16817  }
 16818  
 16819  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) doRequest(alt string) (*http.Response, error) {
 16820  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16821  	if c.ifNoneMatch_ != "" {
 16822  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16823  	}
 16824  	var body io.Reader = nil
 16825  	c.urlParams_.Set("alt", alt)
 16826  	c.urlParams_.Set("prettyPrint", "false")
 16827  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 16828  	urls += "?" + c.urlParams_.Encode()
 16829  	req, err := http.NewRequest("GET", urls, body)
 16830  	if err != nil {
 16831  		return nil, err
 16832  	}
 16833  	req.Header = reqHeaders
 16834  	googleapi.Expand(req.URL, map[string]string{
 16835  		"parent": c.parent,
 16836  	})
 16837  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16838  }
 16839  
 16840  // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.list" call.
 16841  // Any non-2xx status code is an error. Response headers are in either
 16842  // *GoogleCloudApigeeV1ListKeyValueEntriesResponse.ServerResponse.Header or (if
 16843  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 16844  // googleapi.IsNotModified to check whether the returned error was because
 16845  // http.StatusNotModified was returned.
 16846  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListKeyValueEntriesResponse, error) {
 16847  	gensupport.SetOptions(c.urlParams_, opts...)
 16848  	res, err := c.doRequest("json")
 16849  	if res != nil && res.StatusCode == http.StatusNotModified {
 16850  		if res.Body != nil {
 16851  			res.Body.Close()
 16852  		}
 16853  		return nil, gensupport.WrapError(&googleapi.Error{
 16854  			Code:   res.StatusCode,
 16855  			Header: res.Header,
 16856  		})
 16857  	}
 16858  	if err != nil {
 16859  		return nil, err
 16860  	}
 16861  	defer googleapi.CloseBody(res)
 16862  	if err := googleapi.CheckResponse(res); err != nil {
 16863  		return nil, gensupport.WrapError(err)
 16864  	}
 16865  	ret := &GoogleCloudApigeeV1ListKeyValueEntriesResponse{
 16866  		ServerResponse: googleapi.ServerResponse{
 16867  			Header:         res.Header,
 16868  			HTTPStatusCode: res.StatusCode,
 16869  		},
 16870  	}
 16871  	target := &ret
 16872  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16873  		return nil, err
 16874  	}
 16875  	return ret, nil
 16876  }
 16877  
 16878  // Pages invokes f for each page of results.
 16879  // A non-nil error returned from f will halt the iteration.
 16880  // The provided context supersedes any context provided to the Context method.
 16881  func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListKeyValueEntriesResponse) error) error {
 16882  	c.ctx_ = ctx
 16883  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16884  	for {
 16885  		x, err := c.Do()
 16886  		if err != nil {
 16887  			return err
 16888  		}
 16889  		if err := f(x); err != nil {
 16890  			return err
 16891  		}
 16892  		if x.NextPageToken == "" {
 16893  			return nil
 16894  		}
 16895  		c.PageToken(x.NextPageToken)
 16896  	}
 16897  }
 16898  
 16899  type OrganizationsApisKeyvaluemapsEntriesUpdateCall struct {
 16900  	s                                *Service
 16901  	name                             string
 16902  	googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
 16903  	urlParams_                       gensupport.URLParams
 16904  	ctx_                             context.Context
 16905  	header_                          http.Header
 16906  }
 16907  
 16908  // Update: Update key value entry scoped to an organization, environment, or
 16909  // API proxy for an existing key.
 16910  //
 16911  //   - name: Scope as indicated by the URI in which to create the key value map
 16912  //     entry. Use **one** of the following structures in your request: *
 16913  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 16914  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 16915  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 16916  func (r *OrganizationsApisKeyvaluemapsEntriesService) Update(name string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsApisKeyvaluemapsEntriesUpdateCall {
 16917  	c := &OrganizationsApisKeyvaluemapsEntriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16918  	c.name = name
 16919  	c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
 16920  	return c
 16921  }
 16922  
 16923  // Fields allows partial responses to be retrieved. See
 16924  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16925  // details.
 16926  func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesUpdateCall {
 16927  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16928  	return c
 16929  }
 16930  
 16931  // Context sets the context to be used in this call's Do method.
 16932  func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesUpdateCall {
 16933  	c.ctx_ = ctx
 16934  	return c
 16935  }
 16936  
 16937  // Header returns a http.Header that can be modified by the caller to add
 16938  // headers to the request.
 16939  func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Header() http.Header {
 16940  	if c.header_ == nil {
 16941  		c.header_ = make(http.Header)
 16942  	}
 16943  	return c.header_
 16944  }
 16945  
 16946  func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*http.Response, error) {
 16947  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16948  	var body io.Reader = nil
 16949  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
 16950  	if err != nil {
 16951  		return nil, err
 16952  	}
 16953  	c.urlParams_.Set("alt", alt)
 16954  	c.urlParams_.Set("prettyPrint", "false")
 16955  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16956  	urls += "?" + c.urlParams_.Encode()
 16957  	req, err := http.NewRequest("PUT", urls, body)
 16958  	if err != nil {
 16959  		return nil, err
 16960  	}
 16961  	req.Header = reqHeaders
 16962  	googleapi.Expand(req.URL, map[string]string{
 16963  		"name": c.name,
 16964  	})
 16965  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16966  }
 16967  
 16968  // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.update" call.
 16969  // Any non-2xx status code is an error. Response headers are in either
 16970  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 16971  // was returned at all) in error.(*googleapi.Error).Header. Use
 16972  // googleapi.IsNotModified to check whether the returned error was because
 16973  // http.StatusNotModified was returned.
 16974  func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 16975  	gensupport.SetOptions(c.urlParams_, opts...)
 16976  	res, err := c.doRequest("json")
 16977  	if res != nil && res.StatusCode == http.StatusNotModified {
 16978  		if res.Body != nil {
 16979  			res.Body.Close()
 16980  		}
 16981  		return nil, gensupport.WrapError(&googleapi.Error{
 16982  			Code:   res.StatusCode,
 16983  			Header: res.Header,
 16984  		})
 16985  	}
 16986  	if err != nil {
 16987  		return nil, err
 16988  	}
 16989  	defer googleapi.CloseBody(res)
 16990  	if err := googleapi.CheckResponse(res); err != nil {
 16991  		return nil, gensupport.WrapError(err)
 16992  	}
 16993  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 16994  		ServerResponse: googleapi.ServerResponse{
 16995  			Header:         res.Header,
 16996  			HTTPStatusCode: res.StatusCode,
 16997  		},
 16998  	}
 16999  	target := &ret
 17000  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17001  		return nil, err
 17002  	}
 17003  	return ret, nil
 17004  }
 17005  
 17006  type OrganizationsApisRevisionsDeleteCall struct {
 17007  	s          *Service
 17008  	name       string
 17009  	urlParams_ gensupport.URLParams
 17010  	ctx_       context.Context
 17011  	header_    http.Header
 17012  }
 17013  
 17014  // Delete: Deletes an API proxy revision and all policies, resources,
 17015  // endpoints, and revisions associated with it. The API proxy revision must be
 17016  // undeployed before you can delete it.
 17017  //
 17018  //   - name: API proxy revision in the following format:
 17019  //     `organizations/{org}/apis/{api}/revisions/{rev}`.
 17020  func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
 17021  	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17022  	c.name = name
 17023  	return c
 17024  }
 17025  
 17026  // Fields allows partial responses to be retrieved. See
 17027  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17028  // details.
 17029  func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
 17030  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17031  	return c
 17032  }
 17033  
 17034  // Context sets the context to be used in this call's Do method.
 17035  func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
 17036  	c.ctx_ = ctx
 17037  	return c
 17038  }
 17039  
 17040  // Header returns a http.Header that can be modified by the caller to add
 17041  // headers to the request.
 17042  func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
 17043  	if c.header_ == nil {
 17044  		c.header_ = make(http.Header)
 17045  	}
 17046  	return c.header_
 17047  }
 17048  
 17049  func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 17050  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17051  	var body io.Reader = nil
 17052  	c.urlParams_.Set("alt", alt)
 17053  	c.urlParams_.Set("prettyPrint", "false")
 17054  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17055  	urls += "?" + c.urlParams_.Encode()
 17056  	req, err := http.NewRequest("DELETE", urls, body)
 17057  	if err != nil {
 17058  		return nil, err
 17059  	}
 17060  	req.Header = reqHeaders
 17061  	googleapi.Expand(req.URL, map[string]string{
 17062  		"name": c.name,
 17063  	})
 17064  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17065  }
 17066  
 17067  // Do executes the "apigee.organizations.apis.revisions.delete" call.
 17068  // Any non-2xx status code is an error. Response headers are in either
 17069  // *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or (if a response
 17070  // was returned at all) in error.(*googleapi.Error).Header. Use
 17071  // googleapi.IsNotModified to check whether the returned error was because
 17072  // http.StatusNotModified was returned.
 17073  func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
 17074  	gensupport.SetOptions(c.urlParams_, opts...)
 17075  	res, err := c.doRequest("json")
 17076  	if res != nil && res.StatusCode == http.StatusNotModified {
 17077  		if res.Body != nil {
 17078  			res.Body.Close()
 17079  		}
 17080  		return nil, gensupport.WrapError(&googleapi.Error{
 17081  			Code:   res.StatusCode,
 17082  			Header: res.Header,
 17083  		})
 17084  	}
 17085  	if err != nil {
 17086  		return nil, err
 17087  	}
 17088  	defer googleapi.CloseBody(res)
 17089  	if err := googleapi.CheckResponse(res); err != nil {
 17090  		return nil, gensupport.WrapError(err)
 17091  	}
 17092  	ret := &GoogleCloudApigeeV1ApiProxyRevision{
 17093  		ServerResponse: googleapi.ServerResponse{
 17094  			Header:         res.Header,
 17095  			HTTPStatusCode: res.StatusCode,
 17096  		},
 17097  	}
 17098  	target := &ret
 17099  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17100  		return nil, err
 17101  	}
 17102  	return ret, nil
 17103  }
 17104  
 17105  type OrganizationsApisRevisionsGetCall struct {
 17106  	s            *Service
 17107  	name         string
 17108  	urlParams_   gensupport.URLParams
 17109  	ifNoneMatch_ string
 17110  	ctx_         context.Context
 17111  	header_      http.Header
 17112  }
 17113  
 17114  // Get: Gets an API proxy revision. To download the API proxy configuration
 17115  // bundle for the specified revision as a zip file, set the `format` query
 17116  // parameter to `bundle`. If you are using curl, specify `-o filename.zip` to
 17117  // save the output to a file; otherwise, it displays to `stdout`. Then, develop
 17118  // the API proxy configuration locally and upload the updated API proxy
 17119  // configuration revision, as described in updateApiProxyRevision
 17120  // (updateApiProxyRevision).
 17121  //
 17122  //   - name: API proxy revision in the following format:
 17123  //     `organizations/{org}/apis/{api}/revisions/{rev}`.
 17124  func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
 17125  	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17126  	c.name = name
 17127  	return c
 17128  }
 17129  
 17130  // Format sets the optional parameter "format": Format used when downloading
 17131  // the API proxy configuration revision. Set to `bundle` to download the API
 17132  // proxy configuration revision as a zip file.
 17133  func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
 17134  	c.urlParams_.Set("format", format)
 17135  	return c
 17136  }
 17137  
 17138  // Fields allows partial responses to be retrieved. See
 17139  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17140  // details.
 17141  func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
 17142  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17143  	return c
 17144  }
 17145  
 17146  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17147  // object's ETag matches the given value. This is useful for getting updates
 17148  // only after the object has changed since the last request.
 17149  func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
 17150  	c.ifNoneMatch_ = entityTag
 17151  	return c
 17152  }
 17153  
 17154  // Context sets the context to be used in this call's Do method.
 17155  func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
 17156  	c.ctx_ = ctx
 17157  	return c
 17158  }
 17159  
 17160  // Header returns a http.Header that can be modified by the caller to add
 17161  // headers to the request.
 17162  func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
 17163  	if c.header_ == nil {
 17164  		c.header_ = make(http.Header)
 17165  	}
 17166  	return c.header_
 17167  }
 17168  
 17169  func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
 17170  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17171  	if c.ifNoneMatch_ != "" {
 17172  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17173  	}
 17174  	var body io.Reader = nil
 17175  	c.urlParams_.Set("alt", alt)
 17176  	c.urlParams_.Set("prettyPrint", "false")
 17177  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17178  	urls += "?" + c.urlParams_.Encode()
 17179  	req, err := http.NewRequest("GET", urls, body)
 17180  	if err != nil {
 17181  		return nil, err
 17182  	}
 17183  	req.Header = reqHeaders
 17184  	googleapi.Expand(req.URL, map[string]string{
 17185  		"name": c.name,
 17186  	})
 17187  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17188  }
 17189  
 17190  // Do executes the "apigee.organizations.apis.revisions.get" call.
 17191  // Any non-2xx status code is an error. Response headers are in either
 17192  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 17193  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17194  // check whether the returned error was because http.StatusNotModified was
 17195  // returned.
 17196  func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 17197  	gensupport.SetOptions(c.urlParams_, opts...)
 17198  	res, err := c.doRequest("json")
 17199  	if res != nil && res.StatusCode == http.StatusNotModified {
 17200  		if res.Body != nil {
 17201  			res.Body.Close()
 17202  		}
 17203  		return nil, gensupport.WrapError(&googleapi.Error{
 17204  			Code:   res.StatusCode,
 17205  			Header: res.Header,
 17206  		})
 17207  	}
 17208  	if err != nil {
 17209  		return nil, err
 17210  	}
 17211  	defer googleapi.CloseBody(res)
 17212  	if err := googleapi.CheckResponse(res); err != nil {
 17213  		return nil, gensupport.WrapError(err)
 17214  	}
 17215  	ret := &GoogleApiHttpBody{
 17216  		ServerResponse: googleapi.ServerResponse{
 17217  			Header:         res.Header,
 17218  			HTTPStatusCode: res.StatusCode,
 17219  		},
 17220  	}
 17221  	target := &ret
 17222  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17223  		return nil, err
 17224  	}
 17225  	return ret, nil
 17226  }
 17227  
 17228  type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
 17229  	s                 *Service
 17230  	name              string
 17231  	googleapihttpbody *GoogleApiHttpBody
 17232  	urlParams_        gensupport.URLParams
 17233  	ctx_              context.Context
 17234  	header_           http.Header
 17235  }
 17236  
 17237  // UpdateApiProxyRevision: Updates an existing API proxy revision by uploading
 17238  // the API proxy configuration bundle as a zip file from your local machine.
 17239  // You can update only API proxy revisions that have never been deployed. After
 17240  // deployment, an API proxy revision becomes immutable, even if it is
 17241  // undeployed. Set the `Content-Type` header to either `multipart/form-data` or
 17242  // `application/octet-stream`.
 17243  //
 17244  //   - name: API proxy revision to update in the following format:
 17245  //     `organizations/{org}/apis/{api}/revisions/{rev}`.
 17246  func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
 17247  	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17248  	c.name = name
 17249  	c.googleapihttpbody = googleapihttpbody
 17250  	return c
 17251  }
 17252  
 17253  // Validate sets the optional parameter "validate": Ignored. All uploads are
 17254  // validated regardless of the value of this field. Maintained for
 17255  // compatibility with Apigee Edge API.
 17256  func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
 17257  	c.urlParams_.Set("validate", fmt.Sprint(validate))
 17258  	return c
 17259  }
 17260  
 17261  // Fields allows partial responses to be retrieved. See
 17262  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17263  // details.
 17264  func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
 17265  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17266  	return c
 17267  }
 17268  
 17269  // Context sets the context to be used in this call's Do method.
 17270  func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
 17271  	c.ctx_ = ctx
 17272  	return c
 17273  }
 17274  
 17275  // Header returns a http.Header that can be modified by the caller to add
 17276  // headers to the request.
 17277  func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
 17278  	if c.header_ == nil {
 17279  		c.header_ = make(http.Header)
 17280  	}
 17281  	return c.header_
 17282  }
 17283  
 17284  func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
 17285  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17286  	var body io.Reader = nil
 17287  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 17288  	if err != nil {
 17289  		return nil, err
 17290  	}
 17291  	c.urlParams_.Set("alt", alt)
 17292  	c.urlParams_.Set("prettyPrint", "false")
 17293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17294  	urls += "?" + c.urlParams_.Encode()
 17295  	req, err := http.NewRequest("POST", urls, body)
 17296  	if err != nil {
 17297  		return nil, err
 17298  	}
 17299  	req.Header = reqHeaders
 17300  	googleapi.Expand(req.URL, map[string]string{
 17301  		"name": c.name,
 17302  	})
 17303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17304  }
 17305  
 17306  // Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
 17307  // Any non-2xx status code is an error. Response headers are in either
 17308  // *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or (if a response
 17309  // was returned at all) in error.(*googleapi.Error).Header. Use
 17310  // googleapi.IsNotModified to check whether the returned error was because
 17311  // http.StatusNotModified was returned.
 17312  func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
 17313  	gensupport.SetOptions(c.urlParams_, opts...)
 17314  	res, err := c.doRequest("json")
 17315  	if res != nil && res.StatusCode == http.StatusNotModified {
 17316  		if res.Body != nil {
 17317  			res.Body.Close()
 17318  		}
 17319  		return nil, gensupport.WrapError(&googleapi.Error{
 17320  			Code:   res.StatusCode,
 17321  			Header: res.Header,
 17322  		})
 17323  	}
 17324  	if err != nil {
 17325  		return nil, err
 17326  	}
 17327  	defer googleapi.CloseBody(res)
 17328  	if err := googleapi.CheckResponse(res); err != nil {
 17329  		return nil, gensupport.WrapError(err)
 17330  	}
 17331  	ret := &GoogleCloudApigeeV1ApiProxyRevision{
 17332  		ServerResponse: googleapi.ServerResponse{
 17333  			Header:         res.Header,
 17334  			HTTPStatusCode: res.StatusCode,
 17335  		},
 17336  	}
 17337  	target := &ret
 17338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17339  		return nil, err
 17340  	}
 17341  	return ret, nil
 17342  }
 17343  
 17344  type OrganizationsApisRevisionsDeploymentsListCall struct {
 17345  	s            *Service
 17346  	parent       string
 17347  	urlParams_   gensupport.URLParams
 17348  	ifNoneMatch_ string
 17349  	ctx_         context.Context
 17350  	header_      http.Header
 17351  }
 17352  
 17353  // List: Lists all deployments of an API proxy revision.
 17354  //
 17355  //   - parent: Name of the API proxy revision for which to return deployment
 17356  //     information in the following format:
 17357  //     `organizations/{org}/apis/{api}/revisions/{rev}`.
 17358  func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
 17359  	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17360  	c.parent = parent
 17361  	return c
 17362  }
 17363  
 17364  // Fields allows partial responses to be retrieved. See
 17365  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17366  // details.
 17367  func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
 17368  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17369  	return c
 17370  }
 17371  
 17372  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17373  // object's ETag matches the given value. This is useful for getting updates
 17374  // only after the object has changed since the last request.
 17375  func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
 17376  	c.ifNoneMatch_ = entityTag
 17377  	return c
 17378  }
 17379  
 17380  // Context sets the context to be used in this call's Do method.
 17381  func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
 17382  	c.ctx_ = ctx
 17383  	return c
 17384  }
 17385  
 17386  // Header returns a http.Header that can be modified by the caller to add
 17387  // headers to the request.
 17388  func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
 17389  	if c.header_ == nil {
 17390  		c.header_ = make(http.Header)
 17391  	}
 17392  	return c.header_
 17393  }
 17394  
 17395  func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 17396  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17397  	if c.ifNoneMatch_ != "" {
 17398  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17399  	}
 17400  	var body io.Reader = nil
 17401  	c.urlParams_.Set("alt", alt)
 17402  	c.urlParams_.Set("prettyPrint", "false")
 17403  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 17404  	urls += "?" + c.urlParams_.Encode()
 17405  	req, err := http.NewRequest("GET", urls, body)
 17406  	if err != nil {
 17407  		return nil, err
 17408  	}
 17409  	req.Header = reqHeaders
 17410  	googleapi.Expand(req.URL, map[string]string{
 17411  		"parent": c.parent,
 17412  	})
 17413  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17414  }
 17415  
 17416  // Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
 17417  // Any non-2xx status code is an error. Response headers are in either
 17418  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 17419  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17420  // googleapi.IsNotModified to check whether the returned error was because
 17421  // http.StatusNotModified was returned.
 17422  func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 17423  	gensupport.SetOptions(c.urlParams_, opts...)
 17424  	res, err := c.doRequest("json")
 17425  	if res != nil && res.StatusCode == http.StatusNotModified {
 17426  		if res.Body != nil {
 17427  			res.Body.Close()
 17428  		}
 17429  		return nil, gensupport.WrapError(&googleapi.Error{
 17430  			Code:   res.StatusCode,
 17431  			Header: res.Header,
 17432  		})
 17433  	}
 17434  	if err != nil {
 17435  		return nil, err
 17436  	}
 17437  	defer googleapi.CloseBody(res)
 17438  	if err := googleapi.CheckResponse(res); err != nil {
 17439  		return nil, gensupport.WrapError(err)
 17440  	}
 17441  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 17442  		ServerResponse: googleapi.ServerResponse{
 17443  			Header:         res.Header,
 17444  			HTTPStatusCode: res.StatusCode,
 17445  		},
 17446  	}
 17447  	target := &ret
 17448  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17449  		return nil, err
 17450  	}
 17451  	return ret, nil
 17452  }
 17453  
 17454  type OrganizationsAppgroupsCreateCall struct {
 17455  	s                           *Service
 17456  	parent                      string
 17457  	googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup
 17458  	urlParams_                  gensupport.URLParams
 17459  	ctx_                        context.Context
 17460  	header_                     http.Header
 17461  }
 17462  
 17463  // Create: Creates an AppGroup. Once created, user can register apps under the
 17464  // AppGroup to obtain secret key and password. At creation time, the AppGroup's
 17465  // state is set as `active`.
 17466  //
 17467  //   - parent: Name of the Apigee organization in which the AppGroup is created.
 17468  //     Use the following structure in your request: `organizations/{org}`.
 17469  func (r *OrganizationsAppgroupsService) Create(parent string, googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup) *OrganizationsAppgroupsCreateCall {
 17470  	c := &OrganizationsAppgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17471  	c.parent = parent
 17472  	c.googlecloudapigeev1appgroup = googlecloudapigeev1appgroup
 17473  	return c
 17474  }
 17475  
 17476  // Fields allows partial responses to be retrieved. See
 17477  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17478  // details.
 17479  func (c *OrganizationsAppgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsCreateCall {
 17480  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17481  	return c
 17482  }
 17483  
 17484  // Context sets the context to be used in this call's Do method.
 17485  func (c *OrganizationsAppgroupsCreateCall) Context(ctx context.Context) *OrganizationsAppgroupsCreateCall {
 17486  	c.ctx_ = ctx
 17487  	return c
 17488  }
 17489  
 17490  // Header returns a http.Header that can be modified by the caller to add
 17491  // headers to the request.
 17492  func (c *OrganizationsAppgroupsCreateCall) Header() http.Header {
 17493  	if c.header_ == nil {
 17494  		c.header_ = make(http.Header)
 17495  	}
 17496  	return c.header_
 17497  }
 17498  
 17499  func (c *OrganizationsAppgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
 17500  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17501  	var body io.Reader = nil
 17502  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroup)
 17503  	if err != nil {
 17504  		return nil, err
 17505  	}
 17506  	c.urlParams_.Set("alt", alt)
 17507  	c.urlParams_.Set("prettyPrint", "false")
 17508  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appgroups")
 17509  	urls += "?" + c.urlParams_.Encode()
 17510  	req, err := http.NewRequest("POST", urls, body)
 17511  	if err != nil {
 17512  		return nil, err
 17513  	}
 17514  	req.Header = reqHeaders
 17515  	googleapi.Expand(req.URL, map[string]string{
 17516  		"parent": c.parent,
 17517  	})
 17518  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17519  }
 17520  
 17521  // Do executes the "apigee.organizations.appgroups.create" call.
 17522  // Any non-2xx status code is an error. Response headers are in either
 17523  // *GoogleCloudApigeeV1AppGroup.ServerResponse.Header or (if a response was
 17524  // returned at all) in error.(*googleapi.Error).Header. Use
 17525  // googleapi.IsNotModified to check whether the returned error was because
 17526  // http.StatusNotModified was returned.
 17527  func (c *OrganizationsAppgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
 17528  	gensupport.SetOptions(c.urlParams_, opts...)
 17529  	res, err := c.doRequest("json")
 17530  	if res != nil && res.StatusCode == http.StatusNotModified {
 17531  		if res.Body != nil {
 17532  			res.Body.Close()
 17533  		}
 17534  		return nil, gensupport.WrapError(&googleapi.Error{
 17535  			Code:   res.StatusCode,
 17536  			Header: res.Header,
 17537  		})
 17538  	}
 17539  	if err != nil {
 17540  		return nil, err
 17541  	}
 17542  	defer googleapi.CloseBody(res)
 17543  	if err := googleapi.CheckResponse(res); err != nil {
 17544  		return nil, gensupport.WrapError(err)
 17545  	}
 17546  	ret := &GoogleCloudApigeeV1AppGroup{
 17547  		ServerResponse: googleapi.ServerResponse{
 17548  			Header:         res.Header,
 17549  			HTTPStatusCode: res.StatusCode,
 17550  		},
 17551  	}
 17552  	target := &ret
 17553  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17554  		return nil, err
 17555  	}
 17556  	return ret, nil
 17557  }
 17558  
 17559  type OrganizationsAppgroupsDeleteCall struct {
 17560  	s          *Service
 17561  	name       string
 17562  	urlParams_ gensupport.URLParams
 17563  	ctx_       context.Context
 17564  	header_    http.Header
 17565  }
 17566  
 17567  // Delete: Deletes an AppGroup. All app and API keys associations with the
 17568  // AppGroup are also removed. **Warning**: This API will permanently delete the
 17569  // AppGroup and related artifacts. **Note**: The delete operation is
 17570  // asynchronous. The AppGroup app is deleted immediately, but its associated
 17571  // resources, such as apps and API keys, may take anywhere from a few seconds
 17572  // to a few minutes to be deleted.
 17573  //
 17574  //   - name: Name of the AppGroup. Use the following structure in your request:
 17575  //     `organizations/{org}/appgroups/{app_group_name}`.
 17576  func (r *OrganizationsAppgroupsService) Delete(name string) *OrganizationsAppgroupsDeleteCall {
 17577  	c := &OrganizationsAppgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17578  	c.name = name
 17579  	return c
 17580  }
 17581  
 17582  // Fields allows partial responses to be retrieved. See
 17583  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17584  // details.
 17585  func (c *OrganizationsAppgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsDeleteCall {
 17586  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17587  	return c
 17588  }
 17589  
 17590  // Context sets the context to be used in this call's Do method.
 17591  func (c *OrganizationsAppgroupsDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsDeleteCall {
 17592  	c.ctx_ = ctx
 17593  	return c
 17594  }
 17595  
 17596  // Header returns a http.Header that can be modified by the caller to add
 17597  // headers to the request.
 17598  func (c *OrganizationsAppgroupsDeleteCall) Header() http.Header {
 17599  	if c.header_ == nil {
 17600  		c.header_ = make(http.Header)
 17601  	}
 17602  	return c.header_
 17603  }
 17604  
 17605  func (c *OrganizationsAppgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
 17606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17607  	var body io.Reader = nil
 17608  	c.urlParams_.Set("alt", alt)
 17609  	c.urlParams_.Set("prettyPrint", "false")
 17610  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17611  	urls += "?" + c.urlParams_.Encode()
 17612  	req, err := http.NewRequest("DELETE", urls, body)
 17613  	if err != nil {
 17614  		return nil, err
 17615  	}
 17616  	req.Header = reqHeaders
 17617  	googleapi.Expand(req.URL, map[string]string{
 17618  		"name": c.name,
 17619  	})
 17620  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17621  }
 17622  
 17623  // Do executes the "apigee.organizations.appgroups.delete" call.
 17624  // Any non-2xx status code is an error. Response headers are in either
 17625  // *GoogleCloudApigeeV1AppGroup.ServerResponse.Header or (if a response was
 17626  // returned at all) in error.(*googleapi.Error).Header. Use
 17627  // googleapi.IsNotModified to check whether the returned error was because
 17628  // http.StatusNotModified was returned.
 17629  func (c *OrganizationsAppgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
 17630  	gensupport.SetOptions(c.urlParams_, opts...)
 17631  	res, err := c.doRequest("json")
 17632  	if res != nil && res.StatusCode == http.StatusNotModified {
 17633  		if res.Body != nil {
 17634  			res.Body.Close()
 17635  		}
 17636  		return nil, gensupport.WrapError(&googleapi.Error{
 17637  			Code:   res.StatusCode,
 17638  			Header: res.Header,
 17639  		})
 17640  	}
 17641  	if err != nil {
 17642  		return nil, err
 17643  	}
 17644  	defer googleapi.CloseBody(res)
 17645  	if err := googleapi.CheckResponse(res); err != nil {
 17646  		return nil, gensupport.WrapError(err)
 17647  	}
 17648  	ret := &GoogleCloudApigeeV1AppGroup{
 17649  		ServerResponse: googleapi.ServerResponse{
 17650  			Header:         res.Header,
 17651  			HTTPStatusCode: res.StatusCode,
 17652  		},
 17653  	}
 17654  	target := &ret
 17655  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17656  		return nil, err
 17657  	}
 17658  	return ret, nil
 17659  }
 17660  
 17661  type OrganizationsAppgroupsGetCall struct {
 17662  	s            *Service
 17663  	name         string
 17664  	urlParams_   gensupport.URLParams
 17665  	ifNoneMatch_ string
 17666  	ctx_         context.Context
 17667  	header_      http.Header
 17668  }
 17669  
 17670  // Get: Returns the AppGroup details for the provided AppGroup name in the
 17671  // request URI.
 17672  //
 17673  //   - name: Name of the AppGroup. Use the following structure in your request:
 17674  //     `organizations/{org}/appgroups/{app_group_name}`.
 17675  func (r *OrganizationsAppgroupsService) Get(name string) *OrganizationsAppgroupsGetCall {
 17676  	c := &OrganizationsAppgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17677  	c.name = name
 17678  	return c
 17679  }
 17680  
 17681  // Fields allows partial responses to be retrieved. See
 17682  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17683  // details.
 17684  func (c *OrganizationsAppgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsGetCall {
 17685  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17686  	return c
 17687  }
 17688  
 17689  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17690  // object's ETag matches the given value. This is useful for getting updates
 17691  // only after the object has changed since the last request.
 17692  func (c *OrganizationsAppgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsGetCall {
 17693  	c.ifNoneMatch_ = entityTag
 17694  	return c
 17695  }
 17696  
 17697  // Context sets the context to be used in this call's Do method.
 17698  func (c *OrganizationsAppgroupsGetCall) Context(ctx context.Context) *OrganizationsAppgroupsGetCall {
 17699  	c.ctx_ = ctx
 17700  	return c
 17701  }
 17702  
 17703  // Header returns a http.Header that can be modified by the caller to add
 17704  // headers to the request.
 17705  func (c *OrganizationsAppgroupsGetCall) Header() http.Header {
 17706  	if c.header_ == nil {
 17707  		c.header_ = make(http.Header)
 17708  	}
 17709  	return c.header_
 17710  }
 17711  
 17712  func (c *OrganizationsAppgroupsGetCall) doRequest(alt string) (*http.Response, error) {
 17713  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17714  	if c.ifNoneMatch_ != "" {
 17715  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17716  	}
 17717  	var body io.Reader = nil
 17718  	c.urlParams_.Set("alt", alt)
 17719  	c.urlParams_.Set("prettyPrint", "false")
 17720  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17721  	urls += "?" + c.urlParams_.Encode()
 17722  	req, err := http.NewRequest("GET", urls, body)
 17723  	if err != nil {
 17724  		return nil, err
 17725  	}
 17726  	req.Header = reqHeaders
 17727  	googleapi.Expand(req.URL, map[string]string{
 17728  		"name": c.name,
 17729  	})
 17730  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17731  }
 17732  
 17733  // Do executes the "apigee.organizations.appgroups.get" call.
 17734  // Any non-2xx status code is an error. Response headers are in either
 17735  // *GoogleCloudApigeeV1AppGroup.ServerResponse.Header or (if a response was
 17736  // returned at all) in error.(*googleapi.Error).Header. Use
 17737  // googleapi.IsNotModified to check whether the returned error was because
 17738  // http.StatusNotModified was returned.
 17739  func (c *OrganizationsAppgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
 17740  	gensupport.SetOptions(c.urlParams_, opts...)
 17741  	res, err := c.doRequest("json")
 17742  	if res != nil && res.StatusCode == http.StatusNotModified {
 17743  		if res.Body != nil {
 17744  			res.Body.Close()
 17745  		}
 17746  		return nil, gensupport.WrapError(&googleapi.Error{
 17747  			Code:   res.StatusCode,
 17748  			Header: res.Header,
 17749  		})
 17750  	}
 17751  	if err != nil {
 17752  		return nil, err
 17753  	}
 17754  	defer googleapi.CloseBody(res)
 17755  	if err := googleapi.CheckResponse(res); err != nil {
 17756  		return nil, gensupport.WrapError(err)
 17757  	}
 17758  	ret := &GoogleCloudApigeeV1AppGroup{
 17759  		ServerResponse: googleapi.ServerResponse{
 17760  			Header:         res.Header,
 17761  			HTTPStatusCode: res.StatusCode,
 17762  		},
 17763  	}
 17764  	target := &ret
 17765  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17766  		return nil, err
 17767  	}
 17768  	return ret, nil
 17769  }
 17770  
 17771  type OrganizationsAppgroupsListCall struct {
 17772  	s            *Service
 17773  	parent       string
 17774  	urlParams_   gensupport.URLParams
 17775  	ifNoneMatch_ string
 17776  	ctx_         context.Context
 17777  	header_      http.Header
 17778  }
 17779  
 17780  // List: Lists all AppGroups in an organization. A maximum of 1000 AppGroups
 17781  // are returned in the response if PageSize is not specified, or if the
 17782  // PageSize is greater than 1000.
 17783  //
 17784  //   - parent: Name of the Apigee organization. Use the following structure in
 17785  //     your request: `organizations/{org}`.
 17786  func (r *OrganizationsAppgroupsService) List(parent string) *OrganizationsAppgroupsListCall {
 17787  	c := &OrganizationsAppgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17788  	c.parent = parent
 17789  	return c
 17790  }
 17791  
 17792  // Filter sets the optional parameter "filter": The filter expression to be
 17793  // used to get the list of AppGroups, where filtering can be done on status,
 17794  // channelId or channelUri of the app group. Examples: filter=status=active",
 17795  // filter=channelId=, filter=channelUri=
 17796  func (c *OrganizationsAppgroupsListCall) Filter(filter string) *OrganizationsAppgroupsListCall {
 17797  	c.urlParams_.Set("filter", filter)
 17798  	return c
 17799  }
 17800  
 17801  // PageSize sets the optional parameter "pageSize": Count of AppGroups a single
 17802  // page can have in the response. If unspecified, at most 1000 AppGroups will
 17803  // be returned. The maximum value is 1000; values above 1000 will be coerced to
 17804  // 1000.
 17805  func (c *OrganizationsAppgroupsListCall) PageSize(pageSize int64) *OrganizationsAppgroupsListCall {
 17806  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17807  	return c
 17808  }
 17809  
 17810  // PageToken sets the optional parameter "pageToken": The starting index record
 17811  // for listing the AppGroups.
 17812  func (c *OrganizationsAppgroupsListCall) PageToken(pageToken string) *OrganizationsAppgroupsListCall {
 17813  	c.urlParams_.Set("pageToken", pageToken)
 17814  	return c
 17815  }
 17816  
 17817  // Fields allows partial responses to be retrieved. See
 17818  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17819  // details.
 17820  func (c *OrganizationsAppgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsListCall {
 17821  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17822  	return c
 17823  }
 17824  
 17825  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17826  // object's ETag matches the given value. This is useful for getting updates
 17827  // only after the object has changed since the last request.
 17828  func (c *OrganizationsAppgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsListCall {
 17829  	c.ifNoneMatch_ = entityTag
 17830  	return c
 17831  }
 17832  
 17833  // Context sets the context to be used in this call's Do method.
 17834  func (c *OrganizationsAppgroupsListCall) Context(ctx context.Context) *OrganizationsAppgroupsListCall {
 17835  	c.ctx_ = ctx
 17836  	return c
 17837  }
 17838  
 17839  // Header returns a http.Header that can be modified by the caller to add
 17840  // headers to the request.
 17841  func (c *OrganizationsAppgroupsListCall) Header() http.Header {
 17842  	if c.header_ == nil {
 17843  		c.header_ = make(http.Header)
 17844  	}
 17845  	return c.header_
 17846  }
 17847  
 17848  func (c *OrganizationsAppgroupsListCall) doRequest(alt string) (*http.Response, error) {
 17849  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17850  	if c.ifNoneMatch_ != "" {
 17851  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17852  	}
 17853  	var body io.Reader = nil
 17854  	c.urlParams_.Set("alt", alt)
 17855  	c.urlParams_.Set("prettyPrint", "false")
 17856  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appgroups")
 17857  	urls += "?" + c.urlParams_.Encode()
 17858  	req, err := http.NewRequest("GET", urls, body)
 17859  	if err != nil {
 17860  		return nil, err
 17861  	}
 17862  	req.Header = reqHeaders
 17863  	googleapi.Expand(req.URL, map[string]string{
 17864  		"parent": c.parent,
 17865  	})
 17866  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17867  }
 17868  
 17869  // Do executes the "apigee.organizations.appgroups.list" call.
 17870  // Any non-2xx status code is an error. Response headers are in either
 17871  // *GoogleCloudApigeeV1ListAppGroupsResponse.ServerResponse.Header or (if a
 17872  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17873  // googleapi.IsNotModified to check whether the returned error was because
 17874  // http.StatusNotModified was returned.
 17875  func (c *OrganizationsAppgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppGroupsResponse, error) {
 17876  	gensupport.SetOptions(c.urlParams_, opts...)
 17877  	res, err := c.doRequest("json")
 17878  	if res != nil && res.StatusCode == http.StatusNotModified {
 17879  		if res.Body != nil {
 17880  			res.Body.Close()
 17881  		}
 17882  		return nil, gensupport.WrapError(&googleapi.Error{
 17883  			Code:   res.StatusCode,
 17884  			Header: res.Header,
 17885  		})
 17886  	}
 17887  	if err != nil {
 17888  		return nil, err
 17889  	}
 17890  	defer googleapi.CloseBody(res)
 17891  	if err := googleapi.CheckResponse(res); err != nil {
 17892  		return nil, gensupport.WrapError(err)
 17893  	}
 17894  	ret := &GoogleCloudApigeeV1ListAppGroupsResponse{
 17895  		ServerResponse: googleapi.ServerResponse{
 17896  			Header:         res.Header,
 17897  			HTTPStatusCode: res.StatusCode,
 17898  		},
 17899  	}
 17900  	target := &ret
 17901  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17902  		return nil, err
 17903  	}
 17904  	return ret, nil
 17905  }
 17906  
 17907  // Pages invokes f for each page of results.
 17908  // A non-nil error returned from f will halt the iteration.
 17909  // The provided context supersedes any context provided to the Context method.
 17910  func (c *OrganizationsAppgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListAppGroupsResponse) error) error {
 17911  	c.ctx_ = ctx
 17912  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17913  	for {
 17914  		x, err := c.Do()
 17915  		if err != nil {
 17916  			return err
 17917  		}
 17918  		if err := f(x); err != nil {
 17919  			return err
 17920  		}
 17921  		if x.NextPageToken == "" {
 17922  			return nil
 17923  		}
 17924  		c.PageToken(x.NextPageToken)
 17925  	}
 17926  }
 17927  
 17928  type OrganizationsAppgroupsUpdateCall struct {
 17929  	s                           *Service
 17930  	name                        string
 17931  	googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup
 17932  	urlParams_                  gensupport.URLParams
 17933  	ctx_                        context.Context
 17934  	header_                     http.Header
 17935  }
 17936  
 17937  // Update: Updates an AppGroup. This API replaces the existing AppGroup details
 17938  // with those specified in the request. Include or exclude any existing details
 17939  // that you want to retain or delete, respectively. Note that the state of the
 17940  // AppGroup should be updated using `action`, and not via AppGroup.
 17941  //
 17942  //   - name: Name of the AppGroup. Use the following structure in your request:
 17943  //     `organizations/{org}/appgroups/{app_group_name}`.
 17944  func (r *OrganizationsAppgroupsService) Update(name string, googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup) *OrganizationsAppgroupsUpdateCall {
 17945  	c := &OrganizationsAppgroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17946  	c.name = name
 17947  	c.googlecloudapigeev1appgroup = googlecloudapigeev1appgroup
 17948  	return c
 17949  }
 17950  
 17951  // Action sets the optional parameter "action": Activate or de-activate the
 17952  // AppGroup by setting the action as `active` or `inactive`. The `Content-Type`
 17953  // header must be set to `application/octet-stream`, with empty body.
 17954  func (c *OrganizationsAppgroupsUpdateCall) Action(action string) *OrganizationsAppgroupsUpdateCall {
 17955  	c.urlParams_.Set("action", action)
 17956  	return c
 17957  }
 17958  
 17959  // Fields allows partial responses to be retrieved. See
 17960  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17961  // details.
 17962  func (c *OrganizationsAppgroupsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsUpdateCall {
 17963  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17964  	return c
 17965  }
 17966  
 17967  // Context sets the context to be used in this call's Do method.
 17968  func (c *OrganizationsAppgroupsUpdateCall) Context(ctx context.Context) *OrganizationsAppgroupsUpdateCall {
 17969  	c.ctx_ = ctx
 17970  	return c
 17971  }
 17972  
 17973  // Header returns a http.Header that can be modified by the caller to add
 17974  // headers to the request.
 17975  func (c *OrganizationsAppgroupsUpdateCall) Header() http.Header {
 17976  	if c.header_ == nil {
 17977  		c.header_ = make(http.Header)
 17978  	}
 17979  	return c.header_
 17980  }
 17981  
 17982  func (c *OrganizationsAppgroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
 17983  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17984  	var body io.Reader = nil
 17985  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroup)
 17986  	if err != nil {
 17987  		return nil, err
 17988  	}
 17989  	c.urlParams_.Set("alt", alt)
 17990  	c.urlParams_.Set("prettyPrint", "false")
 17991  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17992  	urls += "?" + c.urlParams_.Encode()
 17993  	req, err := http.NewRequest("PUT", urls, body)
 17994  	if err != nil {
 17995  		return nil, err
 17996  	}
 17997  	req.Header = reqHeaders
 17998  	googleapi.Expand(req.URL, map[string]string{
 17999  		"name": c.name,
 18000  	})
 18001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18002  }
 18003  
 18004  // Do executes the "apigee.organizations.appgroups.update" call.
 18005  // Any non-2xx status code is an error. Response headers are in either
 18006  // *GoogleCloudApigeeV1AppGroup.ServerResponse.Header or (if a response was
 18007  // returned at all) in error.(*googleapi.Error).Header. Use
 18008  // googleapi.IsNotModified to check whether the returned error was because
 18009  // http.StatusNotModified was returned.
 18010  func (c *OrganizationsAppgroupsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
 18011  	gensupport.SetOptions(c.urlParams_, opts...)
 18012  	res, err := c.doRequest("json")
 18013  	if res != nil && res.StatusCode == http.StatusNotModified {
 18014  		if res.Body != nil {
 18015  			res.Body.Close()
 18016  		}
 18017  		return nil, gensupport.WrapError(&googleapi.Error{
 18018  			Code:   res.StatusCode,
 18019  			Header: res.Header,
 18020  		})
 18021  	}
 18022  	if err != nil {
 18023  		return nil, err
 18024  	}
 18025  	defer googleapi.CloseBody(res)
 18026  	if err := googleapi.CheckResponse(res); err != nil {
 18027  		return nil, gensupport.WrapError(err)
 18028  	}
 18029  	ret := &GoogleCloudApigeeV1AppGroup{
 18030  		ServerResponse: googleapi.ServerResponse{
 18031  			Header:         res.Header,
 18032  			HTTPStatusCode: res.StatusCode,
 18033  		},
 18034  	}
 18035  	target := &ret
 18036  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18037  		return nil, err
 18038  	}
 18039  	return ret, nil
 18040  }
 18041  
 18042  type OrganizationsAppgroupsAppsCreateCall struct {
 18043  	s                              *Service
 18044  	parent                         string
 18045  	googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp
 18046  	urlParams_                     gensupport.URLParams
 18047  	ctx_                           context.Context
 18048  	header_                        http.Header
 18049  }
 18050  
 18051  // Create: Creates an app and associates it with an AppGroup. This API
 18052  // associates the AppGroup app with the specified API product and
 18053  // auto-generates an API key for the app to use in calls to API proxies inside
 18054  // that API product. The `name` is the unique ID of the app that you can use in
 18055  // API calls.
 18056  //
 18057  //   - parent: Name of the AppGroup. Use the following structure in your request:
 18058  //     `organizations/{org}/appgroups/{app_group_name}`.
 18059  func (r *OrganizationsAppgroupsAppsService) Create(parent string, googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp) *OrganizationsAppgroupsAppsCreateCall {
 18060  	c := &OrganizationsAppgroupsAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18061  	c.parent = parent
 18062  	c.googlecloudapigeev1appgroupapp = googlecloudapigeev1appgroupapp
 18063  	return c
 18064  }
 18065  
 18066  // Fields allows partial responses to be retrieved. See
 18067  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18068  // details.
 18069  func (c *OrganizationsAppgroupsAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsCreateCall {
 18070  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18071  	return c
 18072  }
 18073  
 18074  // Context sets the context to be used in this call's Do method.
 18075  func (c *OrganizationsAppgroupsAppsCreateCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsCreateCall {
 18076  	c.ctx_ = ctx
 18077  	return c
 18078  }
 18079  
 18080  // Header returns a http.Header that can be modified by the caller to add
 18081  // headers to the request.
 18082  func (c *OrganizationsAppgroupsAppsCreateCall) Header() http.Header {
 18083  	if c.header_ == nil {
 18084  		c.header_ = make(http.Header)
 18085  	}
 18086  	return c.header_
 18087  }
 18088  
 18089  func (c *OrganizationsAppgroupsAppsCreateCall) doRequest(alt string) (*http.Response, error) {
 18090  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18091  	var body io.Reader = nil
 18092  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroupapp)
 18093  	if err != nil {
 18094  		return nil, err
 18095  	}
 18096  	c.urlParams_.Set("alt", alt)
 18097  	c.urlParams_.Set("prettyPrint", "false")
 18098  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
 18099  	urls += "?" + c.urlParams_.Encode()
 18100  	req, err := http.NewRequest("POST", urls, body)
 18101  	if err != nil {
 18102  		return nil, err
 18103  	}
 18104  	req.Header = reqHeaders
 18105  	googleapi.Expand(req.URL, map[string]string{
 18106  		"parent": c.parent,
 18107  	})
 18108  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18109  }
 18110  
 18111  // Do executes the "apigee.organizations.appgroups.apps.create" call.
 18112  // Any non-2xx status code is an error. Response headers are in either
 18113  // *GoogleCloudApigeeV1AppGroupApp.ServerResponse.Header or (if a response was
 18114  // returned at all) in error.(*googleapi.Error).Header. Use
 18115  // googleapi.IsNotModified to check whether the returned error was because
 18116  // http.StatusNotModified was returned.
 18117  func (c *OrganizationsAppgroupsAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
 18118  	gensupport.SetOptions(c.urlParams_, opts...)
 18119  	res, err := c.doRequest("json")
 18120  	if res != nil && res.StatusCode == http.StatusNotModified {
 18121  		if res.Body != nil {
 18122  			res.Body.Close()
 18123  		}
 18124  		return nil, gensupport.WrapError(&googleapi.Error{
 18125  			Code:   res.StatusCode,
 18126  			Header: res.Header,
 18127  		})
 18128  	}
 18129  	if err != nil {
 18130  		return nil, err
 18131  	}
 18132  	defer googleapi.CloseBody(res)
 18133  	if err := googleapi.CheckResponse(res); err != nil {
 18134  		return nil, gensupport.WrapError(err)
 18135  	}
 18136  	ret := &GoogleCloudApigeeV1AppGroupApp{
 18137  		ServerResponse: googleapi.ServerResponse{
 18138  			Header:         res.Header,
 18139  			HTTPStatusCode: res.StatusCode,
 18140  		},
 18141  	}
 18142  	target := &ret
 18143  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18144  		return nil, err
 18145  	}
 18146  	return ret, nil
 18147  }
 18148  
 18149  type OrganizationsAppgroupsAppsDeleteCall struct {
 18150  	s          *Service
 18151  	name       string
 18152  	urlParams_ gensupport.URLParams
 18153  	ctx_       context.Context
 18154  	header_    http.Header
 18155  }
 18156  
 18157  // Delete: Deletes an AppGroup app. **Note**: The delete operation is
 18158  // asynchronous. The AppGroup app is deleted immediately, but its associated
 18159  // resources, such as app keys or access tokens, may take anywhere from a few
 18160  // seconds to a few minutes to be deleted.
 18161  //
 18162  //   - name: Name of the AppGroup app. Use the following structure in your
 18163  //     request: `organizations/{org}/appgroups/{app_group_name}/apps/{app}`.
 18164  func (r *OrganizationsAppgroupsAppsService) Delete(name string) *OrganizationsAppgroupsAppsDeleteCall {
 18165  	c := &OrganizationsAppgroupsAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18166  	c.name = name
 18167  	return c
 18168  }
 18169  
 18170  // Fields allows partial responses to be retrieved. See
 18171  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18172  // details.
 18173  func (c *OrganizationsAppgroupsAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsDeleteCall {
 18174  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18175  	return c
 18176  }
 18177  
 18178  // Context sets the context to be used in this call's Do method.
 18179  func (c *OrganizationsAppgroupsAppsDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsDeleteCall {
 18180  	c.ctx_ = ctx
 18181  	return c
 18182  }
 18183  
 18184  // Header returns a http.Header that can be modified by the caller to add
 18185  // headers to the request.
 18186  func (c *OrganizationsAppgroupsAppsDeleteCall) Header() http.Header {
 18187  	if c.header_ == nil {
 18188  		c.header_ = make(http.Header)
 18189  	}
 18190  	return c.header_
 18191  }
 18192  
 18193  func (c *OrganizationsAppgroupsAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
 18194  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18195  	var body io.Reader = nil
 18196  	c.urlParams_.Set("alt", alt)
 18197  	c.urlParams_.Set("prettyPrint", "false")
 18198  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18199  	urls += "?" + c.urlParams_.Encode()
 18200  	req, err := http.NewRequest("DELETE", urls, body)
 18201  	if err != nil {
 18202  		return nil, err
 18203  	}
 18204  	req.Header = reqHeaders
 18205  	googleapi.Expand(req.URL, map[string]string{
 18206  		"name": c.name,
 18207  	})
 18208  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18209  }
 18210  
 18211  // Do executes the "apigee.organizations.appgroups.apps.delete" call.
 18212  // Any non-2xx status code is an error. Response headers are in either
 18213  // *GoogleCloudApigeeV1AppGroupApp.ServerResponse.Header or (if a response was
 18214  // returned at all) in error.(*googleapi.Error).Header. Use
 18215  // googleapi.IsNotModified to check whether the returned error was because
 18216  // http.StatusNotModified was returned.
 18217  func (c *OrganizationsAppgroupsAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
 18218  	gensupport.SetOptions(c.urlParams_, opts...)
 18219  	res, err := c.doRequest("json")
 18220  	if res != nil && res.StatusCode == http.StatusNotModified {
 18221  		if res.Body != nil {
 18222  			res.Body.Close()
 18223  		}
 18224  		return nil, gensupport.WrapError(&googleapi.Error{
 18225  			Code:   res.StatusCode,
 18226  			Header: res.Header,
 18227  		})
 18228  	}
 18229  	if err != nil {
 18230  		return nil, err
 18231  	}
 18232  	defer googleapi.CloseBody(res)
 18233  	if err := googleapi.CheckResponse(res); err != nil {
 18234  		return nil, gensupport.WrapError(err)
 18235  	}
 18236  	ret := &GoogleCloudApigeeV1AppGroupApp{
 18237  		ServerResponse: googleapi.ServerResponse{
 18238  			Header:         res.Header,
 18239  			HTTPStatusCode: res.StatusCode,
 18240  		},
 18241  	}
 18242  	target := &ret
 18243  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18244  		return nil, err
 18245  	}
 18246  	return ret, nil
 18247  }
 18248  
 18249  type OrganizationsAppgroupsAppsGetCall struct {
 18250  	s            *Service
 18251  	name         string
 18252  	urlParams_   gensupport.URLParams
 18253  	ifNoneMatch_ string
 18254  	ctx_         context.Context
 18255  	header_      http.Header
 18256  }
 18257  
 18258  // Get: Returns the details for an AppGroup app.
 18259  //
 18260  //   - name: Name of the AppGroup app. Use the following structure in your
 18261  //     request: `organizations/{org}/appgroups/{app_group_name}/apps/{app}`.
 18262  func (r *OrganizationsAppgroupsAppsService) Get(name string) *OrganizationsAppgroupsAppsGetCall {
 18263  	c := &OrganizationsAppgroupsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18264  	c.name = name
 18265  	return c
 18266  }
 18267  
 18268  // Fields allows partial responses to be retrieved. See
 18269  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18270  // details.
 18271  func (c *OrganizationsAppgroupsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsGetCall {
 18272  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18273  	return c
 18274  }
 18275  
 18276  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18277  // object's ETag matches the given value. This is useful for getting updates
 18278  // only after the object has changed since the last request.
 18279  func (c *OrganizationsAppgroupsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsAppsGetCall {
 18280  	c.ifNoneMatch_ = entityTag
 18281  	return c
 18282  }
 18283  
 18284  // Context sets the context to be used in this call's Do method.
 18285  func (c *OrganizationsAppgroupsAppsGetCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsGetCall {
 18286  	c.ctx_ = ctx
 18287  	return c
 18288  }
 18289  
 18290  // Header returns a http.Header that can be modified by the caller to add
 18291  // headers to the request.
 18292  func (c *OrganizationsAppgroupsAppsGetCall) Header() http.Header {
 18293  	if c.header_ == nil {
 18294  		c.header_ = make(http.Header)
 18295  	}
 18296  	return c.header_
 18297  }
 18298  
 18299  func (c *OrganizationsAppgroupsAppsGetCall) doRequest(alt string) (*http.Response, error) {
 18300  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18301  	if c.ifNoneMatch_ != "" {
 18302  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18303  	}
 18304  	var body io.Reader = nil
 18305  	c.urlParams_.Set("alt", alt)
 18306  	c.urlParams_.Set("prettyPrint", "false")
 18307  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18308  	urls += "?" + c.urlParams_.Encode()
 18309  	req, err := http.NewRequest("GET", urls, body)
 18310  	if err != nil {
 18311  		return nil, err
 18312  	}
 18313  	req.Header = reqHeaders
 18314  	googleapi.Expand(req.URL, map[string]string{
 18315  		"name": c.name,
 18316  	})
 18317  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18318  }
 18319  
 18320  // Do executes the "apigee.organizations.appgroups.apps.get" call.
 18321  // Any non-2xx status code is an error. Response headers are in either
 18322  // *GoogleCloudApigeeV1AppGroupApp.ServerResponse.Header or (if a response was
 18323  // returned at all) in error.(*googleapi.Error).Header. Use
 18324  // googleapi.IsNotModified to check whether the returned error was because
 18325  // http.StatusNotModified was returned.
 18326  func (c *OrganizationsAppgroupsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
 18327  	gensupport.SetOptions(c.urlParams_, opts...)
 18328  	res, err := c.doRequest("json")
 18329  	if res != nil && res.StatusCode == http.StatusNotModified {
 18330  		if res.Body != nil {
 18331  			res.Body.Close()
 18332  		}
 18333  		return nil, gensupport.WrapError(&googleapi.Error{
 18334  			Code:   res.StatusCode,
 18335  			Header: res.Header,
 18336  		})
 18337  	}
 18338  	if err != nil {
 18339  		return nil, err
 18340  	}
 18341  	defer googleapi.CloseBody(res)
 18342  	if err := googleapi.CheckResponse(res); err != nil {
 18343  		return nil, gensupport.WrapError(err)
 18344  	}
 18345  	ret := &GoogleCloudApigeeV1AppGroupApp{
 18346  		ServerResponse: googleapi.ServerResponse{
 18347  			Header:         res.Header,
 18348  			HTTPStatusCode: res.StatusCode,
 18349  		},
 18350  	}
 18351  	target := &ret
 18352  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18353  		return nil, err
 18354  	}
 18355  	return ret, nil
 18356  }
 18357  
 18358  type OrganizationsAppgroupsAppsListCall struct {
 18359  	s            *Service
 18360  	parent       string
 18361  	urlParams_   gensupport.URLParams
 18362  	ifNoneMatch_ string
 18363  	ctx_         context.Context
 18364  	header_      http.Header
 18365  }
 18366  
 18367  // List: Lists all apps created by an AppGroup in an Apigee organization.
 18368  // Optionally, you can request an expanded view of the AppGroup apps. Lists all
 18369  // AppGroupApps in an AppGroup. A maximum of 1000 AppGroup apps are returned in
 18370  // the response if PageSize is not specified, or if the PageSize is greater
 18371  // than 1000.
 18372  //
 18373  //   - parent: Name of the AppGroup. Use the following structure in your request:
 18374  //     `organizations/{org}/appgroups/{app_group_name}`.
 18375  func (r *OrganizationsAppgroupsAppsService) List(parent string) *OrganizationsAppgroupsAppsListCall {
 18376  	c := &OrganizationsAppgroupsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18377  	c.parent = parent
 18378  	return c
 18379  }
 18380  
 18381  // PageSize sets the optional parameter "pageSize": Maximum number entries to
 18382  // return. If unspecified, at most 1000 entries will be returned.
 18383  func (c *OrganizationsAppgroupsAppsListCall) PageSize(pageSize int64) *OrganizationsAppgroupsAppsListCall {
 18384  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18385  	return c
 18386  }
 18387  
 18388  // PageToken sets the optional parameter "pageToken": Page token. If provides,
 18389  // must be a valid AppGroup app returned from a previous call that can be used
 18390  // to retrieve the next page.
 18391  func (c *OrganizationsAppgroupsAppsListCall) PageToken(pageToken string) *OrganizationsAppgroupsAppsListCall {
 18392  	c.urlParams_.Set("pageToken", pageToken)
 18393  	return c
 18394  }
 18395  
 18396  // Fields allows partial responses to be retrieved. See
 18397  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18398  // details.
 18399  func (c *OrganizationsAppgroupsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsListCall {
 18400  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18401  	return c
 18402  }
 18403  
 18404  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18405  // object's ETag matches the given value. This is useful for getting updates
 18406  // only after the object has changed since the last request.
 18407  func (c *OrganizationsAppgroupsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsAppsListCall {
 18408  	c.ifNoneMatch_ = entityTag
 18409  	return c
 18410  }
 18411  
 18412  // Context sets the context to be used in this call's Do method.
 18413  func (c *OrganizationsAppgroupsAppsListCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsListCall {
 18414  	c.ctx_ = ctx
 18415  	return c
 18416  }
 18417  
 18418  // Header returns a http.Header that can be modified by the caller to add
 18419  // headers to the request.
 18420  func (c *OrganizationsAppgroupsAppsListCall) Header() http.Header {
 18421  	if c.header_ == nil {
 18422  		c.header_ = make(http.Header)
 18423  	}
 18424  	return c.header_
 18425  }
 18426  
 18427  func (c *OrganizationsAppgroupsAppsListCall) doRequest(alt string) (*http.Response, error) {
 18428  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18429  	if c.ifNoneMatch_ != "" {
 18430  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18431  	}
 18432  	var body io.Reader = nil
 18433  	c.urlParams_.Set("alt", alt)
 18434  	c.urlParams_.Set("prettyPrint", "false")
 18435  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
 18436  	urls += "?" + c.urlParams_.Encode()
 18437  	req, err := http.NewRequest("GET", urls, body)
 18438  	if err != nil {
 18439  		return nil, err
 18440  	}
 18441  	req.Header = reqHeaders
 18442  	googleapi.Expand(req.URL, map[string]string{
 18443  		"parent": c.parent,
 18444  	})
 18445  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18446  }
 18447  
 18448  // Do executes the "apigee.organizations.appgroups.apps.list" call.
 18449  // Any non-2xx status code is an error. Response headers are in either
 18450  // *GoogleCloudApigeeV1ListAppGroupAppsResponse.ServerResponse.Header or (if a
 18451  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18452  // googleapi.IsNotModified to check whether the returned error was because
 18453  // http.StatusNotModified was returned.
 18454  func (c *OrganizationsAppgroupsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppGroupAppsResponse, error) {
 18455  	gensupport.SetOptions(c.urlParams_, opts...)
 18456  	res, err := c.doRequest("json")
 18457  	if res != nil && res.StatusCode == http.StatusNotModified {
 18458  		if res.Body != nil {
 18459  			res.Body.Close()
 18460  		}
 18461  		return nil, gensupport.WrapError(&googleapi.Error{
 18462  			Code:   res.StatusCode,
 18463  			Header: res.Header,
 18464  		})
 18465  	}
 18466  	if err != nil {
 18467  		return nil, err
 18468  	}
 18469  	defer googleapi.CloseBody(res)
 18470  	if err := googleapi.CheckResponse(res); err != nil {
 18471  		return nil, gensupport.WrapError(err)
 18472  	}
 18473  	ret := &GoogleCloudApigeeV1ListAppGroupAppsResponse{
 18474  		ServerResponse: googleapi.ServerResponse{
 18475  			Header:         res.Header,
 18476  			HTTPStatusCode: res.StatusCode,
 18477  		},
 18478  	}
 18479  	target := &ret
 18480  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18481  		return nil, err
 18482  	}
 18483  	return ret, nil
 18484  }
 18485  
 18486  // Pages invokes f for each page of results.
 18487  // A non-nil error returned from f will halt the iteration.
 18488  // The provided context supersedes any context provided to the Context method.
 18489  func (c *OrganizationsAppgroupsAppsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListAppGroupAppsResponse) error) error {
 18490  	c.ctx_ = ctx
 18491  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18492  	for {
 18493  		x, err := c.Do()
 18494  		if err != nil {
 18495  			return err
 18496  		}
 18497  		if err := f(x); err != nil {
 18498  			return err
 18499  		}
 18500  		if x.NextPageToken == "" {
 18501  			return nil
 18502  		}
 18503  		c.PageToken(x.NextPageToken)
 18504  	}
 18505  }
 18506  
 18507  type OrganizationsAppgroupsAppsUpdateCall struct {
 18508  	s                              *Service
 18509  	name                           string
 18510  	googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp
 18511  	urlParams_                     gensupport.URLParams
 18512  	ctx_                           context.Context
 18513  	header_                        http.Header
 18514  }
 18515  
 18516  // Update: Updates the details for an AppGroup app. In addition, you can add an
 18517  // API product to an AppGroup app and automatically generate an API key for the
 18518  // app to use when calling APIs in the API product. If you want to use an
 18519  // existing API key for the API product, add the API product to the API key
 18520  // using the UpdateAppGroupAppKey API. Using this API, you cannot update the
 18521  // app name, as it is the primary key used to identify the app and cannot be
 18522  // changed. This API replaces the existing attributes with those specified in
 18523  // the request. Include or exclude any existing attributes that you want to
 18524  // retain or delete, respectively.
 18525  //
 18526  //   - name: Name of the AppGroup app. Use the following structure in your
 18527  //     request: `organizations/{org}/appgroups/{app_group_name}/apps/{app}`.
 18528  func (r *OrganizationsAppgroupsAppsService) Update(name string, googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp) *OrganizationsAppgroupsAppsUpdateCall {
 18529  	c := &OrganizationsAppgroupsAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18530  	c.name = name
 18531  	c.googlecloudapigeev1appgroupapp = googlecloudapigeev1appgroupapp
 18532  	return c
 18533  }
 18534  
 18535  // Action sets the optional parameter "action": Approve or revoke the consumer
 18536  // key by setting this value to `approve` or `revoke`. The `Content-Type`
 18537  // header must be set to `application/octet-stream`, with empty body.
 18538  func (c *OrganizationsAppgroupsAppsUpdateCall) Action(action string) *OrganizationsAppgroupsAppsUpdateCall {
 18539  	c.urlParams_.Set("action", action)
 18540  	return c
 18541  }
 18542  
 18543  // Fields allows partial responses to be retrieved. See
 18544  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18545  // details.
 18546  func (c *OrganizationsAppgroupsAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsUpdateCall {
 18547  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18548  	return c
 18549  }
 18550  
 18551  // Context sets the context to be used in this call's Do method.
 18552  func (c *OrganizationsAppgroupsAppsUpdateCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsUpdateCall {
 18553  	c.ctx_ = ctx
 18554  	return c
 18555  }
 18556  
 18557  // Header returns a http.Header that can be modified by the caller to add
 18558  // headers to the request.
 18559  func (c *OrganizationsAppgroupsAppsUpdateCall) Header() http.Header {
 18560  	if c.header_ == nil {
 18561  		c.header_ = make(http.Header)
 18562  	}
 18563  	return c.header_
 18564  }
 18565  
 18566  func (c *OrganizationsAppgroupsAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
 18567  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18568  	var body io.Reader = nil
 18569  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroupapp)
 18570  	if err != nil {
 18571  		return nil, err
 18572  	}
 18573  	c.urlParams_.Set("alt", alt)
 18574  	c.urlParams_.Set("prettyPrint", "false")
 18575  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18576  	urls += "?" + c.urlParams_.Encode()
 18577  	req, err := http.NewRequest("PUT", urls, body)
 18578  	if err != nil {
 18579  		return nil, err
 18580  	}
 18581  	req.Header = reqHeaders
 18582  	googleapi.Expand(req.URL, map[string]string{
 18583  		"name": c.name,
 18584  	})
 18585  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18586  }
 18587  
 18588  // Do executes the "apigee.organizations.appgroups.apps.update" call.
 18589  // Any non-2xx status code is an error. Response headers are in either
 18590  // *GoogleCloudApigeeV1AppGroupApp.ServerResponse.Header or (if a response was
 18591  // returned at all) in error.(*googleapi.Error).Header. Use
 18592  // googleapi.IsNotModified to check whether the returned error was because
 18593  // http.StatusNotModified was returned.
 18594  func (c *OrganizationsAppgroupsAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
 18595  	gensupport.SetOptions(c.urlParams_, opts...)
 18596  	res, err := c.doRequest("json")
 18597  	if res != nil && res.StatusCode == http.StatusNotModified {
 18598  		if res.Body != nil {
 18599  			res.Body.Close()
 18600  		}
 18601  		return nil, gensupport.WrapError(&googleapi.Error{
 18602  			Code:   res.StatusCode,
 18603  			Header: res.Header,
 18604  		})
 18605  	}
 18606  	if err != nil {
 18607  		return nil, err
 18608  	}
 18609  	defer googleapi.CloseBody(res)
 18610  	if err := googleapi.CheckResponse(res); err != nil {
 18611  		return nil, gensupport.WrapError(err)
 18612  	}
 18613  	ret := &GoogleCloudApigeeV1AppGroupApp{
 18614  		ServerResponse: googleapi.ServerResponse{
 18615  			Header:         res.Header,
 18616  			HTTPStatusCode: res.StatusCode,
 18617  		},
 18618  	}
 18619  	target := &ret
 18620  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18621  		return nil, err
 18622  	}
 18623  	return ret, nil
 18624  }
 18625  
 18626  type OrganizationsAppgroupsAppsKeysCreateCall struct {
 18627  	s                                 *Service
 18628  	parent                            string
 18629  	googlecloudapigeev1appgroupappkey *GoogleCloudApigeeV1AppGroupAppKey
 18630  	urlParams_                        gensupport.URLParams
 18631  	ctx_                              context.Context
 18632  	header_                           http.Header
 18633  }
 18634  
 18635  // Create: Creates a custom consumer key and secret for a AppGroup app. This is
 18636  // particularly useful if you want to migrate existing consumer keys and
 18637  // secrets to Apigee from another system. Consumer keys and secrets can contain
 18638  // letters, numbers, underscores, and hyphens. No other special characters are
 18639  // allowed. To avoid service disruptions, a consumer key and secret should not
 18640  // exceed 2 KBs each. **Note**: When creating the consumer key and secret, an
 18641  // association to API products will not be made. Therefore, you should not
 18642  // specify the associated API products in your request. Instead, use the
 18643  // ProductizeAppGroupAppKey API to make the association after the consumer key
 18644  // and secret are created. If a consumer key and secret already exist, you can
 18645  // keep them or delete them using the DeleteAppGroupAppKey API.
 18646  //
 18647  //   - parent: Parent of the AppGroup app key. Use the following structure in
 18648  //     your request:
 18649  //     `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys`.
 18650  func (r *OrganizationsAppgroupsAppsKeysService) Create(parent string, googlecloudapigeev1appgroupappkey *GoogleCloudApigeeV1AppGroupAppKey) *OrganizationsAppgroupsAppsKeysCreateCall {
 18651  	c := &OrganizationsAppgroupsAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18652  	c.parent = parent
 18653  	c.googlecloudapigeev1appgroupappkey = googlecloudapigeev1appgroupappkey
 18654  	return c
 18655  }
 18656  
 18657  // Fields allows partial responses to be retrieved. See
 18658  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18659  // details.
 18660  func (c *OrganizationsAppgroupsAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysCreateCall {
 18661  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18662  	return c
 18663  }
 18664  
 18665  // Context sets the context to be used in this call's Do method.
 18666  func (c *OrganizationsAppgroupsAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysCreateCall {
 18667  	c.ctx_ = ctx
 18668  	return c
 18669  }
 18670  
 18671  // Header returns a http.Header that can be modified by the caller to add
 18672  // headers to the request.
 18673  func (c *OrganizationsAppgroupsAppsKeysCreateCall) Header() http.Header {
 18674  	if c.header_ == nil {
 18675  		c.header_ = make(http.Header)
 18676  	}
 18677  	return c.header_
 18678  }
 18679  
 18680  func (c *OrganizationsAppgroupsAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
 18681  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18682  	var body io.Reader = nil
 18683  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroupappkey)
 18684  	if err != nil {
 18685  		return nil, err
 18686  	}
 18687  	c.urlParams_.Set("alt", alt)
 18688  	c.urlParams_.Set("prettyPrint", "false")
 18689  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
 18690  	urls += "?" + c.urlParams_.Encode()
 18691  	req, err := http.NewRequest("POST", urls, body)
 18692  	if err != nil {
 18693  		return nil, err
 18694  	}
 18695  	req.Header = reqHeaders
 18696  	googleapi.Expand(req.URL, map[string]string{
 18697  		"parent": c.parent,
 18698  	})
 18699  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18700  }
 18701  
 18702  // Do executes the "apigee.organizations.appgroups.apps.keys.create" call.
 18703  // Any non-2xx status code is an error. Response headers are in either
 18704  // *GoogleCloudApigeeV1AppGroupAppKey.ServerResponse.Header or (if a response
 18705  // was returned at all) in error.(*googleapi.Error).Header. Use
 18706  // googleapi.IsNotModified to check whether the returned error was because
 18707  // http.StatusNotModified was returned.
 18708  func (c *OrganizationsAppgroupsAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
 18709  	gensupport.SetOptions(c.urlParams_, opts...)
 18710  	res, err := c.doRequest("json")
 18711  	if res != nil && res.StatusCode == http.StatusNotModified {
 18712  		if res.Body != nil {
 18713  			res.Body.Close()
 18714  		}
 18715  		return nil, gensupport.WrapError(&googleapi.Error{
 18716  			Code:   res.StatusCode,
 18717  			Header: res.Header,
 18718  		})
 18719  	}
 18720  	if err != nil {
 18721  		return nil, err
 18722  	}
 18723  	defer googleapi.CloseBody(res)
 18724  	if err := googleapi.CheckResponse(res); err != nil {
 18725  		return nil, gensupport.WrapError(err)
 18726  	}
 18727  	ret := &GoogleCloudApigeeV1AppGroupAppKey{
 18728  		ServerResponse: googleapi.ServerResponse{
 18729  			Header:         res.Header,
 18730  			HTTPStatusCode: res.StatusCode,
 18731  		},
 18732  	}
 18733  	target := &ret
 18734  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18735  		return nil, err
 18736  	}
 18737  	return ret, nil
 18738  }
 18739  
 18740  type OrganizationsAppgroupsAppsKeysDeleteCall struct {
 18741  	s          *Service
 18742  	name       string
 18743  	urlParams_ gensupport.URLParams
 18744  	ctx_       context.Context
 18745  	header_    http.Header
 18746  }
 18747  
 18748  // Delete: Deletes an app's consumer key and removes all API products
 18749  // associated with the app. After the consumer key is deleted, it cannot be
 18750  // used to access any APIs.
 18751  //
 18752  //   - name: Name of the AppGroup app key. Use the following structure in your
 18753  //     request:
 18754  //     `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}`.
 18755  func (r *OrganizationsAppgroupsAppsKeysService) Delete(name string) *OrganizationsAppgroupsAppsKeysDeleteCall {
 18756  	c := &OrganizationsAppgroupsAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18757  	c.name = name
 18758  	return c
 18759  }
 18760  
 18761  // Fields allows partial responses to be retrieved. See
 18762  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18763  // details.
 18764  func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysDeleteCall {
 18765  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18766  	return c
 18767  }
 18768  
 18769  // Context sets the context to be used in this call's Do method.
 18770  func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysDeleteCall {
 18771  	c.ctx_ = ctx
 18772  	return c
 18773  }
 18774  
 18775  // Header returns a http.Header that can be modified by the caller to add
 18776  // headers to the request.
 18777  func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Header() http.Header {
 18778  	if c.header_ == nil {
 18779  		c.header_ = make(http.Header)
 18780  	}
 18781  	return c.header_
 18782  }
 18783  
 18784  func (c *OrganizationsAppgroupsAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
 18785  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18786  	var body io.Reader = nil
 18787  	c.urlParams_.Set("alt", alt)
 18788  	c.urlParams_.Set("prettyPrint", "false")
 18789  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18790  	urls += "?" + c.urlParams_.Encode()
 18791  	req, err := http.NewRequest("DELETE", urls, body)
 18792  	if err != nil {
 18793  		return nil, err
 18794  	}
 18795  	req.Header = reqHeaders
 18796  	googleapi.Expand(req.URL, map[string]string{
 18797  		"name": c.name,
 18798  	})
 18799  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18800  }
 18801  
 18802  // Do executes the "apigee.organizations.appgroups.apps.keys.delete" call.
 18803  // Any non-2xx status code is an error. Response headers are in either
 18804  // *GoogleCloudApigeeV1AppGroupAppKey.ServerResponse.Header or (if a response
 18805  // was returned at all) in error.(*googleapi.Error).Header. Use
 18806  // googleapi.IsNotModified to check whether the returned error was because
 18807  // http.StatusNotModified was returned.
 18808  func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
 18809  	gensupport.SetOptions(c.urlParams_, opts...)
 18810  	res, err := c.doRequest("json")
 18811  	if res != nil && res.StatusCode == http.StatusNotModified {
 18812  		if res.Body != nil {
 18813  			res.Body.Close()
 18814  		}
 18815  		return nil, gensupport.WrapError(&googleapi.Error{
 18816  			Code:   res.StatusCode,
 18817  			Header: res.Header,
 18818  		})
 18819  	}
 18820  	if err != nil {
 18821  		return nil, err
 18822  	}
 18823  	defer googleapi.CloseBody(res)
 18824  	if err := googleapi.CheckResponse(res); err != nil {
 18825  		return nil, gensupport.WrapError(err)
 18826  	}
 18827  	ret := &GoogleCloudApigeeV1AppGroupAppKey{
 18828  		ServerResponse: googleapi.ServerResponse{
 18829  			Header:         res.Header,
 18830  			HTTPStatusCode: res.StatusCode,
 18831  		},
 18832  	}
 18833  	target := &ret
 18834  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18835  		return nil, err
 18836  	}
 18837  	return ret, nil
 18838  }
 18839  
 18840  type OrganizationsAppgroupsAppsKeysGetCall struct {
 18841  	s            *Service
 18842  	name         string
 18843  	urlParams_   gensupport.URLParams
 18844  	ifNoneMatch_ string
 18845  	ctx_         context.Context
 18846  	header_      http.Header
 18847  }
 18848  
 18849  // Get: Gets details for a consumer key for a AppGroup app, including the key
 18850  // and secret value, associated API products, and other information.
 18851  //
 18852  //   - name: Name of the AppGroup app key. Use the following structure in your
 18853  //     request:
 18854  //     `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}`.
 18855  func (r *OrganizationsAppgroupsAppsKeysService) Get(name string) *OrganizationsAppgroupsAppsKeysGetCall {
 18856  	c := &OrganizationsAppgroupsAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18857  	c.name = name
 18858  	return c
 18859  }
 18860  
 18861  // Fields allows partial responses to be retrieved. See
 18862  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18863  // details.
 18864  func (c *OrganizationsAppgroupsAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysGetCall {
 18865  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18866  	return c
 18867  }
 18868  
 18869  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18870  // object's ETag matches the given value. This is useful for getting updates
 18871  // only after the object has changed since the last request.
 18872  func (c *OrganizationsAppgroupsAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsAppsKeysGetCall {
 18873  	c.ifNoneMatch_ = entityTag
 18874  	return c
 18875  }
 18876  
 18877  // Context sets the context to be used in this call's Do method.
 18878  func (c *OrganizationsAppgroupsAppsKeysGetCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysGetCall {
 18879  	c.ctx_ = ctx
 18880  	return c
 18881  }
 18882  
 18883  // Header returns a http.Header that can be modified by the caller to add
 18884  // headers to the request.
 18885  func (c *OrganizationsAppgroupsAppsKeysGetCall) Header() http.Header {
 18886  	if c.header_ == nil {
 18887  		c.header_ = make(http.Header)
 18888  	}
 18889  	return c.header_
 18890  }
 18891  
 18892  func (c *OrganizationsAppgroupsAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
 18893  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18894  	if c.ifNoneMatch_ != "" {
 18895  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18896  	}
 18897  	var body io.Reader = nil
 18898  	c.urlParams_.Set("alt", alt)
 18899  	c.urlParams_.Set("prettyPrint", "false")
 18900  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18901  	urls += "?" + c.urlParams_.Encode()
 18902  	req, err := http.NewRequest("GET", urls, body)
 18903  	if err != nil {
 18904  		return nil, err
 18905  	}
 18906  	req.Header = reqHeaders
 18907  	googleapi.Expand(req.URL, map[string]string{
 18908  		"name": c.name,
 18909  	})
 18910  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18911  }
 18912  
 18913  // Do executes the "apigee.organizations.appgroups.apps.keys.get" call.
 18914  // Any non-2xx status code is an error. Response headers are in either
 18915  // *GoogleCloudApigeeV1AppGroupAppKey.ServerResponse.Header or (if a response
 18916  // was returned at all) in error.(*googleapi.Error).Header. Use
 18917  // googleapi.IsNotModified to check whether the returned error was because
 18918  // http.StatusNotModified was returned.
 18919  func (c *OrganizationsAppgroupsAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
 18920  	gensupport.SetOptions(c.urlParams_, opts...)
 18921  	res, err := c.doRequest("json")
 18922  	if res != nil && res.StatusCode == http.StatusNotModified {
 18923  		if res.Body != nil {
 18924  			res.Body.Close()
 18925  		}
 18926  		return nil, gensupport.WrapError(&googleapi.Error{
 18927  			Code:   res.StatusCode,
 18928  			Header: res.Header,
 18929  		})
 18930  	}
 18931  	if err != nil {
 18932  		return nil, err
 18933  	}
 18934  	defer googleapi.CloseBody(res)
 18935  	if err := googleapi.CheckResponse(res); err != nil {
 18936  		return nil, gensupport.WrapError(err)
 18937  	}
 18938  	ret := &GoogleCloudApigeeV1AppGroupAppKey{
 18939  		ServerResponse: googleapi.ServerResponse{
 18940  			Header:         res.Header,
 18941  			HTTPStatusCode: res.StatusCode,
 18942  		},
 18943  	}
 18944  	target := &ret
 18945  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18946  		return nil, err
 18947  	}
 18948  	return ret, nil
 18949  }
 18950  
 18951  type OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall struct {
 18952  	s                                              *Service
 18953  	name                                           string
 18954  	googlecloudapigeev1updateappgroupappkeyrequest *GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest
 18955  	urlParams_                                     gensupport.URLParams
 18956  	ctx_                                           context.Context
 18957  	header_                                        http.Header
 18958  }
 18959  
 18960  // UpdateAppGroupAppKey: Adds an API product to an AppGroupAppKey, enabling the
 18961  // app that holds the key to access the API resources bundled in the API
 18962  // product. In addition, you can add attributes to the AppGroupAppKey. This API
 18963  // replaces the existing attributes with those specified in the request.
 18964  // Include or exclude any existing attributes that you want to retain or
 18965  // delete, respectively. You can use the same key to access all API products
 18966  // associated with the app.
 18967  //
 18968  //   - name: Name of the AppGroup app key. Use the following structure in your
 18969  //     request:
 18970  //     `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}`.
 18971  func (r *OrganizationsAppgroupsAppsKeysService) UpdateAppGroupAppKey(name string, googlecloudapigeev1updateappgroupappkeyrequest *GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest) *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall {
 18972  	c := &OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18973  	c.name = name
 18974  	c.googlecloudapigeev1updateappgroupappkeyrequest = googlecloudapigeev1updateappgroupappkeyrequest
 18975  	return c
 18976  }
 18977  
 18978  // Fields allows partial responses to be retrieved. See
 18979  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18980  // details.
 18981  func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall {
 18982  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18983  	return c
 18984  }
 18985  
 18986  // Context sets the context to be used in this call's Do method.
 18987  func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall {
 18988  	c.ctx_ = ctx
 18989  	return c
 18990  }
 18991  
 18992  // Header returns a http.Header that can be modified by the caller to add
 18993  // headers to the request.
 18994  func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Header() http.Header {
 18995  	if c.header_ == nil {
 18996  		c.header_ = make(http.Header)
 18997  	}
 18998  	return c.header_
 18999  }
 19000  
 19001  func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) doRequest(alt string) (*http.Response, error) {
 19002  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19003  	var body io.Reader = nil
 19004  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1updateappgroupappkeyrequest)
 19005  	if err != nil {
 19006  		return nil, err
 19007  	}
 19008  	c.urlParams_.Set("alt", alt)
 19009  	c.urlParams_.Set("prettyPrint", "false")
 19010  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19011  	urls += "?" + c.urlParams_.Encode()
 19012  	req, err := http.NewRequest("POST", urls, body)
 19013  	if err != nil {
 19014  		return nil, err
 19015  	}
 19016  	req.Header = reqHeaders
 19017  	googleapi.Expand(req.URL, map[string]string{
 19018  		"name": c.name,
 19019  	})
 19020  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19021  }
 19022  
 19023  // Do executes the "apigee.organizations.appgroups.apps.keys.updateAppGroupAppKey" call.
 19024  // Any non-2xx status code is an error. Response headers are in either
 19025  // *GoogleCloudApigeeV1AppGroupAppKey.ServerResponse.Header or (if a response
 19026  // was returned at all) in error.(*googleapi.Error).Header. Use
 19027  // googleapi.IsNotModified to check whether the returned error was because
 19028  // http.StatusNotModified was returned.
 19029  func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
 19030  	gensupport.SetOptions(c.urlParams_, opts...)
 19031  	res, err := c.doRequest("json")
 19032  	if res != nil && res.StatusCode == http.StatusNotModified {
 19033  		if res.Body != nil {
 19034  			res.Body.Close()
 19035  		}
 19036  		return nil, gensupport.WrapError(&googleapi.Error{
 19037  			Code:   res.StatusCode,
 19038  			Header: res.Header,
 19039  		})
 19040  	}
 19041  	if err != nil {
 19042  		return nil, err
 19043  	}
 19044  	defer googleapi.CloseBody(res)
 19045  	if err := googleapi.CheckResponse(res); err != nil {
 19046  		return nil, gensupport.WrapError(err)
 19047  	}
 19048  	ret := &GoogleCloudApigeeV1AppGroupAppKey{
 19049  		ServerResponse: googleapi.ServerResponse{
 19050  			Header:         res.Header,
 19051  			HTTPStatusCode: res.StatusCode,
 19052  		},
 19053  	}
 19054  	target := &ret
 19055  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19056  		return nil, err
 19057  	}
 19058  	return ret, nil
 19059  }
 19060  
 19061  type OrganizationsAppgroupsAppsKeysApiproductsDeleteCall struct {
 19062  	s          *Service
 19063  	name       string
 19064  	urlParams_ gensupport.URLParams
 19065  	ctx_       context.Context
 19066  	header_    http.Header
 19067  }
 19068  
 19069  // Delete: Removes an API product from an app's consumer key. After the API
 19070  // product is removed, the app cannot access the API resources defined in that
 19071  // API product. **Note**: The consumer key is not removed, only its association
 19072  // with the API product.
 19073  //
 19074  //   - name: Parent of the AppGroup app key. Use the following structure in your
 19075  //     request:
 19076  //     `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}/apipr
 19077  //     oducts/{apiproduct}`.
 19078  func (r *OrganizationsAppgroupsAppsKeysApiproductsService) Delete(name string) *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall {
 19079  	c := &OrganizationsAppgroupsAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19080  	c.name = name
 19081  	return c
 19082  }
 19083  
 19084  // Fields allows partial responses to be retrieved. See
 19085  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19086  // details.
 19087  func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall {
 19088  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19089  	return c
 19090  }
 19091  
 19092  // Context sets the context to be used in this call's Do method.
 19093  func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall {
 19094  	c.ctx_ = ctx
 19095  	return c
 19096  }
 19097  
 19098  // Header returns a http.Header that can be modified by the caller to add
 19099  // headers to the request.
 19100  func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Header() http.Header {
 19101  	if c.header_ == nil {
 19102  		c.header_ = make(http.Header)
 19103  	}
 19104  	return c.header_
 19105  }
 19106  
 19107  func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19109  	var body io.Reader = nil
 19110  	c.urlParams_.Set("alt", alt)
 19111  	c.urlParams_.Set("prettyPrint", "false")
 19112  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19113  	urls += "?" + c.urlParams_.Encode()
 19114  	req, err := http.NewRequest("DELETE", urls, body)
 19115  	if err != nil {
 19116  		return nil, err
 19117  	}
 19118  	req.Header = reqHeaders
 19119  	googleapi.Expand(req.URL, map[string]string{
 19120  		"name": c.name,
 19121  	})
 19122  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19123  }
 19124  
 19125  // Do executes the "apigee.organizations.appgroups.apps.keys.apiproducts.delete" call.
 19126  // Any non-2xx status code is an error. Response headers are in either
 19127  // *GoogleCloudApigeeV1AppGroupAppKey.ServerResponse.Header or (if a response
 19128  // was returned at all) in error.(*googleapi.Error).Header. Use
 19129  // googleapi.IsNotModified to check whether the returned error was because
 19130  // http.StatusNotModified was returned.
 19131  func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
 19132  	gensupport.SetOptions(c.urlParams_, opts...)
 19133  	res, err := c.doRequest("json")
 19134  	if res != nil && res.StatusCode == http.StatusNotModified {
 19135  		if res.Body != nil {
 19136  			res.Body.Close()
 19137  		}
 19138  		return nil, gensupport.WrapError(&googleapi.Error{
 19139  			Code:   res.StatusCode,
 19140  			Header: res.Header,
 19141  		})
 19142  	}
 19143  	if err != nil {
 19144  		return nil, err
 19145  	}
 19146  	defer googleapi.CloseBody(res)
 19147  	if err := googleapi.CheckResponse(res); err != nil {
 19148  		return nil, gensupport.WrapError(err)
 19149  	}
 19150  	ret := &GoogleCloudApigeeV1AppGroupAppKey{
 19151  		ServerResponse: googleapi.ServerResponse{
 19152  			Header:         res.Header,
 19153  			HTTPStatusCode: res.StatusCode,
 19154  		},
 19155  	}
 19156  	target := &ret
 19157  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19158  		return nil, err
 19159  	}
 19160  	return ret, nil
 19161  }
 19162  
 19163  type OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall struct {
 19164  	s          *Service
 19165  	name       string
 19166  	urlParams_ gensupport.URLParams
 19167  	ctx_       context.Context
 19168  	header_    http.Header
 19169  }
 19170  
 19171  // UpdateAppGroupAppKeyApiProduct: Approves or revokes the consumer key for an
 19172  // API product. After a consumer key is approved, the app can use it to access
 19173  // APIs. A consumer key that is revoked or pending cannot be used to access an
 19174  // API. Any access tokens associated with a revoked consumer key will remain
 19175  // active. However, Apigee checks the status of the consumer key and if set to
 19176  // `revoked` will not allow access to the API.
 19177  //
 19178  //   - name: Name of the API product in the developer app key in the following
 19179  //     format:
 19180  //     `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}/apipr
 19181  //     oducts/{apiproduct}`.
 19182  func (r *OrganizationsAppgroupsAppsKeysApiproductsService) UpdateAppGroupAppKeyApiProduct(name string) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
 19183  	c := &OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19184  	c.name = name
 19185  	return c
 19186  }
 19187  
 19188  // Action sets the optional parameter "action": Approve or revoke the consumer
 19189  // key by setting this value to `approve` or `revoke` respectively. The
 19190  // `Content-Type` header, if set, must be set to `application/octet-stream`,
 19191  // with empty body.
 19192  func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Action(action string) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
 19193  	c.urlParams_.Set("action", action)
 19194  	return c
 19195  }
 19196  
 19197  // Fields allows partial responses to be retrieved. See
 19198  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19199  // details.
 19200  func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
 19201  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19202  	return c
 19203  }
 19204  
 19205  // Context sets the context to be used in this call's Do method.
 19206  func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
 19207  	c.ctx_ = ctx
 19208  	return c
 19209  }
 19210  
 19211  // Header returns a http.Header that can be modified by the caller to add
 19212  // headers to the request.
 19213  func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Header() http.Header {
 19214  	if c.header_ == nil {
 19215  		c.header_ = make(http.Header)
 19216  	}
 19217  	return c.header_
 19218  }
 19219  
 19220  func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
 19221  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19222  	var body io.Reader = nil
 19223  	c.urlParams_.Set("alt", alt)
 19224  	c.urlParams_.Set("prettyPrint", "false")
 19225  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19226  	urls += "?" + c.urlParams_.Encode()
 19227  	req, err := http.NewRequest("POST", urls, body)
 19228  	if err != nil {
 19229  		return nil, err
 19230  	}
 19231  	req.Header = reqHeaders
 19232  	googleapi.Expand(req.URL, map[string]string{
 19233  		"name": c.name,
 19234  	})
 19235  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19236  }
 19237  
 19238  // Do executes the "apigee.organizations.appgroups.apps.keys.apiproducts.updateAppGroupAppKeyApiProduct" call.
 19239  // Any non-2xx status code is an error. Response headers are in either
 19240  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19241  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19242  // check whether the returned error was because http.StatusNotModified was
 19243  // returned.
 19244  func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19245  	gensupport.SetOptions(c.urlParams_, opts...)
 19246  	res, err := c.doRequest("json")
 19247  	if res != nil && res.StatusCode == http.StatusNotModified {
 19248  		if res.Body != nil {
 19249  			res.Body.Close()
 19250  		}
 19251  		return nil, gensupport.WrapError(&googleapi.Error{
 19252  			Code:   res.StatusCode,
 19253  			Header: res.Header,
 19254  		})
 19255  	}
 19256  	if err != nil {
 19257  		return nil, err
 19258  	}
 19259  	defer googleapi.CloseBody(res)
 19260  	if err := googleapi.CheckResponse(res); err != nil {
 19261  		return nil, gensupport.WrapError(err)
 19262  	}
 19263  	ret := &GoogleProtobufEmpty{
 19264  		ServerResponse: googleapi.ServerResponse{
 19265  			Header:         res.Header,
 19266  			HTTPStatusCode: res.StatusCode,
 19267  		},
 19268  	}
 19269  	target := &ret
 19270  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19271  		return nil, err
 19272  	}
 19273  	return ret, nil
 19274  }
 19275  
 19276  type OrganizationsAppsGetCall struct {
 19277  	s            *Service
 19278  	name         string
 19279  	urlParams_   gensupport.URLParams
 19280  	ifNoneMatch_ string
 19281  	ctx_         context.Context
 19282  	header_      http.Header
 19283  }
 19284  
 19285  // Get: Gets the app profile for the specified app ID.
 19286  //
 19287  // - name: App ID in the following format: `organizations/{org}/apps/{app}`.
 19288  func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
 19289  	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19290  	c.name = name
 19291  	return c
 19292  }
 19293  
 19294  // Fields allows partial responses to be retrieved. See
 19295  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19296  // details.
 19297  func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
 19298  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19299  	return c
 19300  }
 19301  
 19302  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19303  // object's ETag matches the given value. This is useful for getting updates
 19304  // only after the object has changed since the last request.
 19305  func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
 19306  	c.ifNoneMatch_ = entityTag
 19307  	return c
 19308  }
 19309  
 19310  // Context sets the context to be used in this call's Do method.
 19311  func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
 19312  	c.ctx_ = ctx
 19313  	return c
 19314  }
 19315  
 19316  // Header returns a http.Header that can be modified by the caller to add
 19317  // headers to the request.
 19318  func (c *OrganizationsAppsGetCall) Header() http.Header {
 19319  	if c.header_ == nil {
 19320  		c.header_ = make(http.Header)
 19321  	}
 19322  	return c.header_
 19323  }
 19324  
 19325  func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
 19326  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19327  	if c.ifNoneMatch_ != "" {
 19328  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19329  	}
 19330  	var body io.Reader = nil
 19331  	c.urlParams_.Set("alt", alt)
 19332  	c.urlParams_.Set("prettyPrint", "false")
 19333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19334  	urls += "?" + c.urlParams_.Encode()
 19335  	req, err := http.NewRequest("GET", urls, body)
 19336  	if err != nil {
 19337  		return nil, err
 19338  	}
 19339  	req.Header = reqHeaders
 19340  	googleapi.Expand(req.URL, map[string]string{
 19341  		"name": c.name,
 19342  	})
 19343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19344  }
 19345  
 19346  // Do executes the "apigee.organizations.apps.get" call.
 19347  // Any non-2xx status code is an error. Response headers are in either
 19348  // *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was returned
 19349  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19350  // check whether the returned error was because http.StatusNotModified was
 19351  // returned.
 19352  func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
 19353  	gensupport.SetOptions(c.urlParams_, opts...)
 19354  	res, err := c.doRequest("json")
 19355  	if res != nil && res.StatusCode == http.StatusNotModified {
 19356  		if res.Body != nil {
 19357  			res.Body.Close()
 19358  		}
 19359  		return nil, gensupport.WrapError(&googleapi.Error{
 19360  			Code:   res.StatusCode,
 19361  			Header: res.Header,
 19362  		})
 19363  	}
 19364  	if err != nil {
 19365  		return nil, err
 19366  	}
 19367  	defer googleapi.CloseBody(res)
 19368  	if err := googleapi.CheckResponse(res); err != nil {
 19369  		return nil, gensupport.WrapError(err)
 19370  	}
 19371  	ret := &GoogleCloudApigeeV1App{
 19372  		ServerResponse: googleapi.ServerResponse{
 19373  			Header:         res.Header,
 19374  			HTTPStatusCode: res.StatusCode,
 19375  		},
 19376  	}
 19377  	target := &ret
 19378  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19379  		return nil, err
 19380  	}
 19381  	return ret, nil
 19382  }
 19383  
 19384  type OrganizationsAppsListCall struct {
 19385  	s            *Service
 19386  	parent       string
 19387  	urlParams_   gensupport.URLParams
 19388  	ifNoneMatch_ string
 19389  	ctx_         context.Context
 19390  	header_      http.Header
 19391  }
 19392  
 19393  // List: Lists IDs of apps within an organization that have the specified app
 19394  // status (approved or revoked) or are of the specified app type (developer or
 19395  // company).
 19396  //
 19397  //   - parent: Resource path of the parent in the following format:
 19398  //     `organizations/{org}`.
 19399  func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
 19400  	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19401  	c.parent = parent
 19402  	return c
 19403  }
 19404  
 19405  // ApiProduct sets the optional parameter "apiProduct": API product.
 19406  func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
 19407  	c.urlParams_.Set("apiProduct", apiProduct)
 19408  	return c
 19409  }
 19410  
 19411  // Apptype sets the optional parameter "apptype": 'apptype' is no longer
 19412  // available. Use a 'filter' instead.
 19413  func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
 19414  	c.urlParams_.Set("apptype", apptype)
 19415  	return c
 19416  }
 19417  
 19418  // Expand sets the optional parameter "expand": Flag that specifies whether to
 19419  // return an expanded list of apps for the organization. Defaults to `false`.
 19420  func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
 19421  	c.urlParams_.Set("expand", fmt.Sprint(expand))
 19422  	return c
 19423  }
 19424  
 19425  // Filter sets the optional parameter "filter": The filter expression to be
 19426  // used to get the list of apps, where filtering can be done on developerEmail,
 19427  // apiProduct, consumerKey, status, appId, appName, appType and appGroup.
 19428  // Examples: "developerEmail=foo@bar.com", "appType=AppGroup", or
 19429  // "appType=Developer" "filter" is supported from ver 1.10.0 and above.
 19430  func (c *OrganizationsAppsListCall) Filter(filter string) *OrganizationsAppsListCall {
 19431  	c.urlParams_.Set("filter", filter)
 19432  	return c
 19433  }
 19434  
 19435  // Ids sets the optional parameter "ids": Comma-separated list of app IDs on
 19436  // which to filter.
 19437  func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
 19438  	c.urlParams_.Set("ids", ids)
 19439  	return c
 19440  }
 19441  
 19442  // IncludeCred sets the optional parameter "includeCred": Flag that specifies
 19443  // whether to include credentials in the response.
 19444  func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
 19445  	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
 19446  	return c
 19447  }
 19448  
 19449  // KeyStatus sets the optional parameter "keyStatus": Key status of the app.
 19450  // Valid values include `approved` or `revoked`. Defaults to `approved`.
 19451  func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
 19452  	c.urlParams_.Set("keyStatus", keyStatus)
 19453  	return c
 19454  }
 19455  
 19456  // PageSize sets the optional parameter "pageSize": Count of apps a single page
 19457  // can have in the response. If unspecified, at most 100 apps will be returned.
 19458  // The maximum value is 100; values above 100 will be coerced to 100.
 19459  // "page_size" is supported from ver 1.10.0 and above.
 19460  func (c *OrganizationsAppsListCall) PageSize(pageSize int64) *OrganizationsAppsListCall {
 19461  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19462  	return c
 19463  }
 19464  
 19465  // PageToken sets the optional parameter "pageToken": The starting index record
 19466  // for listing the developers. "page_token" is supported from ver 1.10.0 and
 19467  // above.
 19468  func (c *OrganizationsAppsListCall) PageToken(pageToken string) *OrganizationsAppsListCall {
 19469  	c.urlParams_.Set("pageToken", pageToken)
 19470  	return c
 19471  }
 19472  
 19473  // Rows sets the optional parameter "rows": Maximum number of app IDs to
 19474  // return. Defaults to 10000.
 19475  func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
 19476  	c.urlParams_.Set("rows", fmt.Sprint(rows))
 19477  	return c
 19478  }
 19479  
 19480  // StartKey sets the optional parameter "startKey": Returns the list of apps
 19481  // starting from the specified app ID.
 19482  func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
 19483  	c.urlParams_.Set("startKey", startKey)
 19484  	return c
 19485  }
 19486  
 19487  // Status sets the optional parameter "status": Filter by the status of the
 19488  // app. Valid values are `approved` or `revoked`. Defaults to `approved`.
 19489  func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
 19490  	c.urlParams_.Set("status", status)
 19491  	return c
 19492  }
 19493  
 19494  // Fields allows partial responses to be retrieved. See
 19495  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19496  // details.
 19497  func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
 19498  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19499  	return c
 19500  }
 19501  
 19502  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19503  // object's ETag matches the given value. This is useful for getting updates
 19504  // only after the object has changed since the last request.
 19505  func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
 19506  	c.ifNoneMatch_ = entityTag
 19507  	return c
 19508  }
 19509  
 19510  // Context sets the context to be used in this call's Do method.
 19511  func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
 19512  	c.ctx_ = ctx
 19513  	return c
 19514  }
 19515  
 19516  // Header returns a http.Header that can be modified by the caller to add
 19517  // headers to the request.
 19518  func (c *OrganizationsAppsListCall) Header() http.Header {
 19519  	if c.header_ == nil {
 19520  		c.header_ = make(http.Header)
 19521  	}
 19522  	return c.header_
 19523  }
 19524  
 19525  func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
 19526  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19527  	if c.ifNoneMatch_ != "" {
 19528  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19529  	}
 19530  	var body io.Reader = nil
 19531  	c.urlParams_.Set("alt", alt)
 19532  	c.urlParams_.Set("prettyPrint", "false")
 19533  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
 19534  	urls += "?" + c.urlParams_.Encode()
 19535  	req, err := http.NewRequest("GET", urls, body)
 19536  	if err != nil {
 19537  		return nil, err
 19538  	}
 19539  	req.Header = reqHeaders
 19540  	googleapi.Expand(req.URL, map[string]string{
 19541  		"parent": c.parent,
 19542  	})
 19543  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19544  }
 19545  
 19546  // Do executes the "apigee.organizations.apps.list" call.
 19547  // Any non-2xx status code is an error. Response headers are in either
 19548  // *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or (if a response
 19549  // was returned at all) in error.(*googleapi.Error).Header. Use
 19550  // googleapi.IsNotModified to check whether the returned error was because
 19551  // http.StatusNotModified was returned.
 19552  func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
 19553  	gensupport.SetOptions(c.urlParams_, opts...)
 19554  	res, err := c.doRequest("json")
 19555  	if res != nil && res.StatusCode == http.StatusNotModified {
 19556  		if res.Body != nil {
 19557  			res.Body.Close()
 19558  		}
 19559  		return nil, gensupport.WrapError(&googleapi.Error{
 19560  			Code:   res.StatusCode,
 19561  			Header: res.Header,
 19562  		})
 19563  	}
 19564  	if err != nil {
 19565  		return nil, err
 19566  	}
 19567  	defer googleapi.CloseBody(res)
 19568  	if err := googleapi.CheckResponse(res); err != nil {
 19569  		return nil, gensupport.WrapError(err)
 19570  	}
 19571  	ret := &GoogleCloudApigeeV1ListAppsResponse{
 19572  		ServerResponse: googleapi.ServerResponse{
 19573  			Header:         res.Header,
 19574  			HTTPStatusCode: res.StatusCode,
 19575  		},
 19576  	}
 19577  	target := &ret
 19578  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19579  		return nil, err
 19580  	}
 19581  	return ret, nil
 19582  }
 19583  
 19584  // Pages invokes f for each page of results.
 19585  // A non-nil error returned from f will halt the iteration.
 19586  // The provided context supersedes any context provided to the Context method.
 19587  func (c *OrganizationsAppsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListAppsResponse) error) error {
 19588  	c.ctx_ = ctx
 19589  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19590  	for {
 19591  		x, err := c.Do()
 19592  		if err != nil {
 19593  			return err
 19594  		}
 19595  		if err := f(x); err != nil {
 19596  			return err
 19597  		}
 19598  		if x.NextPageToken == "" {
 19599  			return nil
 19600  		}
 19601  		c.PageToken(x.NextPageToken)
 19602  	}
 19603  }
 19604  
 19605  type OrganizationsDatacollectorsCreateCall struct {
 19606  	s                                *Service
 19607  	parent                           string
 19608  	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
 19609  	urlParams_                       gensupport.URLParams
 19610  	ctx_                             context.Context
 19611  	header_                          http.Header
 19612  }
 19613  
 19614  // Create: Creates a new data collector.
 19615  //
 19616  //   - parent: Name of the organization in which to create the data collector in
 19617  //     the following format: `organizations/{org}`.
 19618  func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
 19619  	c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19620  	c.parent = parent
 19621  	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
 19622  	return c
 19623  }
 19624  
 19625  // DataCollectorId sets the optional parameter "dataCollectorId": ID of the
 19626  // data collector. Overrides any ID in the data collector resource. Must be a
 19627  // string beginning with `dc_` that contains only letters, numbers, and
 19628  // underscores.
 19629  func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
 19630  	c.urlParams_.Set("dataCollectorId", dataCollectorId)
 19631  	return c
 19632  }
 19633  
 19634  // Fields allows partial responses to be retrieved. See
 19635  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19636  // details.
 19637  func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
 19638  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19639  	return c
 19640  }
 19641  
 19642  // Context sets the context to be used in this call's Do method.
 19643  func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
 19644  	c.ctx_ = ctx
 19645  	return c
 19646  }
 19647  
 19648  // Header returns a http.Header that can be modified by the caller to add
 19649  // headers to the request.
 19650  func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
 19651  	if c.header_ == nil {
 19652  		c.header_ = make(http.Header)
 19653  	}
 19654  	return c.header_
 19655  }
 19656  
 19657  func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
 19658  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19659  	var body io.Reader = nil
 19660  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
 19661  	if err != nil {
 19662  		return nil, err
 19663  	}
 19664  	c.urlParams_.Set("alt", alt)
 19665  	c.urlParams_.Set("prettyPrint", "false")
 19666  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
 19667  	urls += "?" + c.urlParams_.Encode()
 19668  	req, err := http.NewRequest("POST", urls, body)
 19669  	if err != nil {
 19670  		return nil, err
 19671  	}
 19672  	req.Header = reqHeaders
 19673  	googleapi.Expand(req.URL, map[string]string{
 19674  		"parent": c.parent,
 19675  	})
 19676  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19677  }
 19678  
 19679  // Do executes the "apigee.organizations.datacollectors.create" call.
 19680  // Any non-2xx status code is an error. Response headers are in either
 19681  // *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if a response
 19682  // was returned at all) in error.(*googleapi.Error).Header. Use
 19683  // googleapi.IsNotModified to check whether the returned error was because
 19684  // http.StatusNotModified was returned.
 19685  func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
 19686  	gensupport.SetOptions(c.urlParams_, opts...)
 19687  	res, err := c.doRequest("json")
 19688  	if res != nil && res.StatusCode == http.StatusNotModified {
 19689  		if res.Body != nil {
 19690  			res.Body.Close()
 19691  		}
 19692  		return nil, gensupport.WrapError(&googleapi.Error{
 19693  			Code:   res.StatusCode,
 19694  			Header: res.Header,
 19695  		})
 19696  	}
 19697  	if err != nil {
 19698  		return nil, err
 19699  	}
 19700  	defer googleapi.CloseBody(res)
 19701  	if err := googleapi.CheckResponse(res); err != nil {
 19702  		return nil, gensupport.WrapError(err)
 19703  	}
 19704  	ret := &GoogleCloudApigeeV1DataCollector{
 19705  		ServerResponse: googleapi.ServerResponse{
 19706  			Header:         res.Header,
 19707  			HTTPStatusCode: res.StatusCode,
 19708  		},
 19709  	}
 19710  	target := &ret
 19711  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19712  		return nil, err
 19713  	}
 19714  	return ret, nil
 19715  }
 19716  
 19717  type OrganizationsDatacollectorsDeleteCall struct {
 19718  	s          *Service
 19719  	name       string
 19720  	urlParams_ gensupport.URLParams
 19721  	ctx_       context.Context
 19722  	header_    http.Header
 19723  }
 19724  
 19725  // Delete: Deletes a data collector.
 19726  //
 19727  //   - name: Name of the data collector in the following format:
 19728  //     `organizations/{org}/datacollectors/{data_collector_id}`.
 19729  func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
 19730  	c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19731  	c.name = name
 19732  	return c
 19733  }
 19734  
 19735  // Fields allows partial responses to be retrieved. See
 19736  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19737  // details.
 19738  func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
 19739  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19740  	return c
 19741  }
 19742  
 19743  // Context sets the context to be used in this call's Do method.
 19744  func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
 19745  	c.ctx_ = ctx
 19746  	return c
 19747  }
 19748  
 19749  // Header returns a http.Header that can be modified by the caller to add
 19750  // headers to the request.
 19751  func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
 19752  	if c.header_ == nil {
 19753  		c.header_ = make(http.Header)
 19754  	}
 19755  	return c.header_
 19756  }
 19757  
 19758  func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19759  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19760  	var body io.Reader = nil
 19761  	c.urlParams_.Set("alt", alt)
 19762  	c.urlParams_.Set("prettyPrint", "false")
 19763  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19764  	urls += "?" + c.urlParams_.Encode()
 19765  	req, err := http.NewRequest("DELETE", urls, body)
 19766  	if err != nil {
 19767  		return nil, err
 19768  	}
 19769  	req.Header = reqHeaders
 19770  	googleapi.Expand(req.URL, map[string]string{
 19771  		"name": c.name,
 19772  	})
 19773  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19774  }
 19775  
 19776  // Do executes the "apigee.organizations.datacollectors.delete" call.
 19777  // Any non-2xx status code is an error. Response headers are in either
 19778  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19779  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19780  // check whether the returned error was because http.StatusNotModified was
 19781  // returned.
 19782  func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19783  	gensupport.SetOptions(c.urlParams_, opts...)
 19784  	res, err := c.doRequest("json")
 19785  	if res != nil && res.StatusCode == http.StatusNotModified {
 19786  		if res.Body != nil {
 19787  			res.Body.Close()
 19788  		}
 19789  		return nil, gensupport.WrapError(&googleapi.Error{
 19790  			Code:   res.StatusCode,
 19791  			Header: res.Header,
 19792  		})
 19793  	}
 19794  	if err != nil {
 19795  		return nil, err
 19796  	}
 19797  	defer googleapi.CloseBody(res)
 19798  	if err := googleapi.CheckResponse(res); err != nil {
 19799  		return nil, gensupport.WrapError(err)
 19800  	}
 19801  	ret := &GoogleProtobufEmpty{
 19802  		ServerResponse: googleapi.ServerResponse{
 19803  			Header:         res.Header,
 19804  			HTTPStatusCode: res.StatusCode,
 19805  		},
 19806  	}
 19807  	target := &ret
 19808  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19809  		return nil, err
 19810  	}
 19811  	return ret, nil
 19812  }
 19813  
 19814  type OrganizationsDatacollectorsGetCall struct {
 19815  	s            *Service
 19816  	name         string
 19817  	urlParams_   gensupport.URLParams
 19818  	ifNoneMatch_ string
 19819  	ctx_         context.Context
 19820  	header_      http.Header
 19821  }
 19822  
 19823  // Get: Gets a data collector.
 19824  //
 19825  //   - name: Name of the data collector in the following format:
 19826  //     `organizations/{org}/datacollectors/{data_collector_id}`.
 19827  func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
 19828  	c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19829  	c.name = name
 19830  	return c
 19831  }
 19832  
 19833  // Fields allows partial responses to be retrieved. See
 19834  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19835  // details.
 19836  func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
 19837  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19838  	return c
 19839  }
 19840  
 19841  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19842  // object's ETag matches the given value. This is useful for getting updates
 19843  // only after the object has changed since the last request.
 19844  func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
 19845  	c.ifNoneMatch_ = entityTag
 19846  	return c
 19847  }
 19848  
 19849  // Context sets the context to be used in this call's Do method.
 19850  func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
 19851  	c.ctx_ = ctx
 19852  	return c
 19853  }
 19854  
 19855  // Header returns a http.Header that can be modified by the caller to add
 19856  // headers to the request.
 19857  func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
 19858  	if c.header_ == nil {
 19859  		c.header_ = make(http.Header)
 19860  	}
 19861  	return c.header_
 19862  }
 19863  
 19864  func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
 19865  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19866  	if c.ifNoneMatch_ != "" {
 19867  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19868  	}
 19869  	var body io.Reader = nil
 19870  	c.urlParams_.Set("alt", alt)
 19871  	c.urlParams_.Set("prettyPrint", "false")
 19872  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19873  	urls += "?" + c.urlParams_.Encode()
 19874  	req, err := http.NewRequest("GET", urls, body)
 19875  	if err != nil {
 19876  		return nil, err
 19877  	}
 19878  	req.Header = reqHeaders
 19879  	googleapi.Expand(req.URL, map[string]string{
 19880  		"name": c.name,
 19881  	})
 19882  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19883  }
 19884  
 19885  // Do executes the "apigee.organizations.datacollectors.get" call.
 19886  // Any non-2xx status code is an error. Response headers are in either
 19887  // *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if a response
 19888  // was returned at all) in error.(*googleapi.Error).Header. Use
 19889  // googleapi.IsNotModified to check whether the returned error was because
 19890  // http.StatusNotModified was returned.
 19891  func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
 19892  	gensupport.SetOptions(c.urlParams_, opts...)
 19893  	res, err := c.doRequest("json")
 19894  	if res != nil && res.StatusCode == http.StatusNotModified {
 19895  		if res.Body != nil {
 19896  			res.Body.Close()
 19897  		}
 19898  		return nil, gensupport.WrapError(&googleapi.Error{
 19899  			Code:   res.StatusCode,
 19900  			Header: res.Header,
 19901  		})
 19902  	}
 19903  	if err != nil {
 19904  		return nil, err
 19905  	}
 19906  	defer googleapi.CloseBody(res)
 19907  	if err := googleapi.CheckResponse(res); err != nil {
 19908  		return nil, gensupport.WrapError(err)
 19909  	}
 19910  	ret := &GoogleCloudApigeeV1DataCollector{
 19911  		ServerResponse: googleapi.ServerResponse{
 19912  			Header:         res.Header,
 19913  			HTTPStatusCode: res.StatusCode,
 19914  		},
 19915  	}
 19916  	target := &ret
 19917  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19918  		return nil, err
 19919  	}
 19920  	return ret, nil
 19921  }
 19922  
 19923  type OrganizationsDatacollectorsListCall struct {
 19924  	s            *Service
 19925  	parent       string
 19926  	urlParams_   gensupport.URLParams
 19927  	ifNoneMatch_ string
 19928  	ctx_         context.Context
 19929  	header_      http.Header
 19930  }
 19931  
 19932  // List: Lists all data collectors.
 19933  //
 19934  //   - parent: Name of the organization for which to list data collectors in the
 19935  //     following format: `organizations/{org}`.
 19936  func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
 19937  	c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19938  	c.parent = parent
 19939  	return c
 19940  }
 19941  
 19942  // PageSize sets the optional parameter "pageSize": Maximum number of data
 19943  // collectors to return. The page size defaults to 25.
 19944  func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
 19945  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19946  	return c
 19947  }
 19948  
 19949  // PageToken sets the optional parameter "pageToken": Page token, returned from
 19950  // a previous ListDataCollectors call, that you can use to retrieve the next
 19951  // page.
 19952  func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
 19953  	c.urlParams_.Set("pageToken", pageToken)
 19954  	return c
 19955  }
 19956  
 19957  // Fields allows partial responses to be retrieved. See
 19958  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19959  // details.
 19960  func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
 19961  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19962  	return c
 19963  }
 19964  
 19965  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19966  // object's ETag matches the given value. This is useful for getting updates
 19967  // only after the object has changed since the last request.
 19968  func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
 19969  	c.ifNoneMatch_ = entityTag
 19970  	return c
 19971  }
 19972  
 19973  // Context sets the context to be used in this call's Do method.
 19974  func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
 19975  	c.ctx_ = ctx
 19976  	return c
 19977  }
 19978  
 19979  // Header returns a http.Header that can be modified by the caller to add
 19980  // headers to the request.
 19981  func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
 19982  	if c.header_ == nil {
 19983  		c.header_ = make(http.Header)
 19984  	}
 19985  	return c.header_
 19986  }
 19987  
 19988  func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
 19989  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19990  	if c.ifNoneMatch_ != "" {
 19991  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19992  	}
 19993  	var body io.Reader = nil
 19994  	c.urlParams_.Set("alt", alt)
 19995  	c.urlParams_.Set("prettyPrint", "false")
 19996  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
 19997  	urls += "?" + c.urlParams_.Encode()
 19998  	req, err := http.NewRequest("GET", urls, body)
 19999  	if err != nil {
 20000  		return nil, err
 20001  	}
 20002  	req.Header = reqHeaders
 20003  	googleapi.Expand(req.URL, map[string]string{
 20004  		"parent": c.parent,
 20005  	})
 20006  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20007  }
 20008  
 20009  // Do executes the "apigee.organizations.datacollectors.list" call.
 20010  // Any non-2xx status code is an error. Response headers are in either
 20011  // *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header or (if
 20012  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 20013  // googleapi.IsNotModified to check whether the returned error was because
 20014  // http.StatusNotModified was returned.
 20015  func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
 20016  	gensupport.SetOptions(c.urlParams_, opts...)
 20017  	res, err := c.doRequest("json")
 20018  	if res != nil && res.StatusCode == http.StatusNotModified {
 20019  		if res.Body != nil {
 20020  			res.Body.Close()
 20021  		}
 20022  		return nil, gensupport.WrapError(&googleapi.Error{
 20023  			Code:   res.StatusCode,
 20024  			Header: res.Header,
 20025  		})
 20026  	}
 20027  	if err != nil {
 20028  		return nil, err
 20029  	}
 20030  	defer googleapi.CloseBody(res)
 20031  	if err := googleapi.CheckResponse(res); err != nil {
 20032  		return nil, gensupport.WrapError(err)
 20033  	}
 20034  	ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
 20035  		ServerResponse: googleapi.ServerResponse{
 20036  			Header:         res.Header,
 20037  			HTTPStatusCode: res.StatusCode,
 20038  		},
 20039  	}
 20040  	target := &ret
 20041  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20042  		return nil, err
 20043  	}
 20044  	return ret, nil
 20045  }
 20046  
 20047  // Pages invokes f for each page of results.
 20048  // A non-nil error returned from f will halt the iteration.
 20049  // The provided context supersedes any context provided to the Context method.
 20050  func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
 20051  	c.ctx_ = ctx
 20052  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20053  	for {
 20054  		x, err := c.Do()
 20055  		if err != nil {
 20056  			return err
 20057  		}
 20058  		if err := f(x); err != nil {
 20059  			return err
 20060  		}
 20061  		if x.NextPageToken == "" {
 20062  			return nil
 20063  		}
 20064  		c.PageToken(x.NextPageToken)
 20065  	}
 20066  }
 20067  
 20068  type OrganizationsDatacollectorsPatchCall struct {
 20069  	s                                *Service
 20070  	name                             string
 20071  	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
 20072  	urlParams_                       gensupport.URLParams
 20073  	ctx_                             context.Context
 20074  	header_                          http.Header
 20075  }
 20076  
 20077  // Patch: Updates a data collector.
 20078  //
 20079  //   - name: Name of the data collector in the following format:
 20080  //     `organizations/{org}/datacollectors/{data_collector_id}`.
 20081  func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
 20082  	c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20083  	c.name = name
 20084  	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
 20085  	return c
 20086  }
 20087  
 20088  // UpdateMask sets the optional parameter "updateMask": List of fields to be
 20089  // updated.
 20090  func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
 20091  	c.urlParams_.Set("updateMask", updateMask)
 20092  	return c
 20093  }
 20094  
 20095  // Fields allows partial responses to be retrieved. See
 20096  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20097  // details.
 20098  func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
 20099  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20100  	return c
 20101  }
 20102  
 20103  // Context sets the context to be used in this call's Do method.
 20104  func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
 20105  	c.ctx_ = ctx
 20106  	return c
 20107  }
 20108  
 20109  // Header returns a http.Header that can be modified by the caller to add
 20110  // headers to the request.
 20111  func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
 20112  	if c.header_ == nil {
 20113  		c.header_ = make(http.Header)
 20114  	}
 20115  	return c.header_
 20116  }
 20117  
 20118  func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
 20119  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20120  	var body io.Reader = nil
 20121  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
 20122  	if err != nil {
 20123  		return nil, err
 20124  	}
 20125  	c.urlParams_.Set("alt", alt)
 20126  	c.urlParams_.Set("prettyPrint", "false")
 20127  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20128  	urls += "?" + c.urlParams_.Encode()
 20129  	req, err := http.NewRequest("PATCH", urls, body)
 20130  	if err != nil {
 20131  		return nil, err
 20132  	}
 20133  	req.Header = reqHeaders
 20134  	googleapi.Expand(req.URL, map[string]string{
 20135  		"name": c.name,
 20136  	})
 20137  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20138  }
 20139  
 20140  // Do executes the "apigee.organizations.datacollectors.patch" call.
 20141  // Any non-2xx status code is an error. Response headers are in either
 20142  // *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if a response
 20143  // was returned at all) in error.(*googleapi.Error).Header. Use
 20144  // googleapi.IsNotModified to check whether the returned error was because
 20145  // http.StatusNotModified was returned.
 20146  func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
 20147  	gensupport.SetOptions(c.urlParams_, opts...)
 20148  	res, err := c.doRequest("json")
 20149  	if res != nil && res.StatusCode == http.StatusNotModified {
 20150  		if res.Body != nil {
 20151  			res.Body.Close()
 20152  		}
 20153  		return nil, gensupport.WrapError(&googleapi.Error{
 20154  			Code:   res.StatusCode,
 20155  			Header: res.Header,
 20156  		})
 20157  	}
 20158  	if err != nil {
 20159  		return nil, err
 20160  	}
 20161  	defer googleapi.CloseBody(res)
 20162  	if err := googleapi.CheckResponse(res); err != nil {
 20163  		return nil, gensupport.WrapError(err)
 20164  	}
 20165  	ret := &GoogleCloudApigeeV1DataCollector{
 20166  		ServerResponse: googleapi.ServerResponse{
 20167  			Header:         res.Header,
 20168  			HTTPStatusCode: res.StatusCode,
 20169  		},
 20170  	}
 20171  	target := &ret
 20172  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20173  		return nil, err
 20174  	}
 20175  	return ret, nil
 20176  }
 20177  
 20178  type OrganizationsDeploymentsListCall struct {
 20179  	s            *Service
 20180  	parent       string
 20181  	urlParams_   gensupport.URLParams
 20182  	ifNoneMatch_ string
 20183  	ctx_         context.Context
 20184  	header_      http.Header
 20185  }
 20186  
 20187  // List: Lists all deployments of API proxies or shared flows.
 20188  //
 20189  //   - parent: Name of the organization for which to return deployment
 20190  //     information in the following format: `organizations/{org}`.
 20191  func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
 20192  	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20193  	c.parent = parent
 20194  	return c
 20195  }
 20196  
 20197  // SharedFlows sets the optional parameter "sharedFlows": Flag that specifies
 20198  // whether to return shared flow or API proxy deployments. Set to `true` to
 20199  // return shared flow deployments; set to `false` to return API proxy
 20200  // deployments. Defaults to `false`.
 20201  func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
 20202  	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
 20203  	return c
 20204  }
 20205  
 20206  // Fields allows partial responses to be retrieved. See
 20207  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20208  // details.
 20209  func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
 20210  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20211  	return c
 20212  }
 20213  
 20214  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20215  // object's ETag matches the given value. This is useful for getting updates
 20216  // only after the object has changed since the last request.
 20217  func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
 20218  	c.ifNoneMatch_ = entityTag
 20219  	return c
 20220  }
 20221  
 20222  // Context sets the context to be used in this call's Do method.
 20223  func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
 20224  	c.ctx_ = ctx
 20225  	return c
 20226  }
 20227  
 20228  // Header returns a http.Header that can be modified by the caller to add
 20229  // headers to the request.
 20230  func (c *OrganizationsDeploymentsListCall) Header() http.Header {
 20231  	if c.header_ == nil {
 20232  		c.header_ = make(http.Header)
 20233  	}
 20234  	return c.header_
 20235  }
 20236  
 20237  func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 20238  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20239  	if c.ifNoneMatch_ != "" {
 20240  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20241  	}
 20242  	var body io.Reader = nil
 20243  	c.urlParams_.Set("alt", alt)
 20244  	c.urlParams_.Set("prettyPrint", "false")
 20245  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 20246  	urls += "?" + c.urlParams_.Encode()
 20247  	req, err := http.NewRequest("GET", urls, body)
 20248  	if err != nil {
 20249  		return nil, err
 20250  	}
 20251  	req.Header = reqHeaders
 20252  	googleapi.Expand(req.URL, map[string]string{
 20253  		"parent": c.parent,
 20254  	})
 20255  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20256  }
 20257  
 20258  // Do executes the "apigee.organizations.deployments.list" call.
 20259  // Any non-2xx status code is an error. Response headers are in either
 20260  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 20261  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20262  // googleapi.IsNotModified to check whether the returned error was because
 20263  // http.StatusNotModified was returned.
 20264  func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 20265  	gensupport.SetOptions(c.urlParams_, opts...)
 20266  	res, err := c.doRequest("json")
 20267  	if res != nil && res.StatusCode == http.StatusNotModified {
 20268  		if res.Body != nil {
 20269  			res.Body.Close()
 20270  		}
 20271  		return nil, gensupport.WrapError(&googleapi.Error{
 20272  			Code:   res.StatusCode,
 20273  			Header: res.Header,
 20274  		})
 20275  	}
 20276  	if err != nil {
 20277  		return nil, err
 20278  	}
 20279  	defer googleapi.CloseBody(res)
 20280  	if err := googleapi.CheckResponse(res); err != nil {
 20281  		return nil, gensupport.WrapError(err)
 20282  	}
 20283  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 20284  		ServerResponse: googleapi.ServerResponse{
 20285  			Header:         res.Header,
 20286  			HTTPStatusCode: res.StatusCode,
 20287  		},
 20288  	}
 20289  	target := &ret
 20290  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20291  		return nil, err
 20292  	}
 20293  	return ret, nil
 20294  }
 20295  
 20296  type OrganizationsDevelopersAttributesCall struct {
 20297  	s                             *Service
 20298  	parent                        string
 20299  	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
 20300  	urlParams_                    gensupport.URLParams
 20301  	ctx_                          context.Context
 20302  	header_                       http.Header
 20303  }
 20304  
 20305  // Attributes: Updates developer attributes. This API replaces the existing
 20306  // attributes with those specified in the request. Add new attributes, and
 20307  // include or exclude any existing attributes that you want to retain or
 20308  // remove, respectively. The custom attribute limit is 18. **Note**: OAuth
 20309  // access tokens and Key Management Service (KMS) entities (apps, developers,
 20310  // and API products) are cached for 180 seconds (default). Any custom
 20311  // attributes associated with these entities are cached for at least 180
 20312  // seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn`
 20313  // element on the OAuthV2 policy won't be able to expire an access token in
 20314  // less than 180 seconds.
 20315  //
 20316  //   - parent: Email address of the developer for which attributes are being
 20317  //     updated. Use the following structure in your request:
 20318  //     `organizations/{org}/developers/{developer_email}`.
 20319  func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
 20320  	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20321  	c.parent = parent
 20322  	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
 20323  	return c
 20324  }
 20325  
 20326  // Fields allows partial responses to be retrieved. See
 20327  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20328  // details.
 20329  func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
 20330  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20331  	return c
 20332  }
 20333  
 20334  // Context sets the context to be used in this call's Do method.
 20335  func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
 20336  	c.ctx_ = ctx
 20337  	return c
 20338  }
 20339  
 20340  // Header returns a http.Header that can be modified by the caller to add
 20341  // headers to the request.
 20342  func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
 20343  	if c.header_ == nil {
 20344  		c.header_ = make(http.Header)
 20345  	}
 20346  	return c.header_
 20347  }
 20348  
 20349  func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
 20350  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20351  	var body io.Reader = nil
 20352  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
 20353  	if err != nil {
 20354  		return nil, err
 20355  	}
 20356  	c.urlParams_.Set("alt", alt)
 20357  	c.urlParams_.Set("prettyPrint", "false")
 20358  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
 20359  	urls += "?" + c.urlParams_.Encode()
 20360  	req, err := http.NewRequest("POST", urls, body)
 20361  	if err != nil {
 20362  		return nil, err
 20363  	}
 20364  	req.Header = reqHeaders
 20365  	googleapi.Expand(req.URL, map[string]string{
 20366  		"parent": c.parent,
 20367  	})
 20368  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20369  }
 20370  
 20371  // Do executes the "apigee.organizations.developers.attributes" call.
 20372  // Any non-2xx status code is an error. Response headers are in either
 20373  // *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a response was
 20374  // returned at all) in error.(*googleapi.Error).Header. Use
 20375  // googleapi.IsNotModified to check whether the returned error was because
 20376  // http.StatusNotModified was returned.
 20377  func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
 20378  	gensupport.SetOptions(c.urlParams_, opts...)
 20379  	res, err := c.doRequest("json")
 20380  	if res != nil && res.StatusCode == http.StatusNotModified {
 20381  		if res.Body != nil {
 20382  			res.Body.Close()
 20383  		}
 20384  		return nil, gensupport.WrapError(&googleapi.Error{
 20385  			Code:   res.StatusCode,
 20386  			Header: res.Header,
 20387  		})
 20388  	}
 20389  	if err != nil {
 20390  		return nil, err
 20391  	}
 20392  	defer googleapi.CloseBody(res)
 20393  	if err := googleapi.CheckResponse(res); err != nil {
 20394  		return nil, gensupport.WrapError(err)
 20395  	}
 20396  	ret := &GoogleCloudApigeeV1Attributes{
 20397  		ServerResponse: googleapi.ServerResponse{
 20398  			Header:         res.Header,
 20399  			HTTPStatusCode: res.StatusCode,
 20400  		},
 20401  	}
 20402  	target := &ret
 20403  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20404  		return nil, err
 20405  	}
 20406  	return ret, nil
 20407  }
 20408  
 20409  type OrganizationsDevelopersCreateCall struct {
 20410  	s                            *Service
 20411  	parent                       string
 20412  	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
 20413  	urlParams_                   gensupport.URLParams
 20414  	ctx_                         context.Context
 20415  	header_                      http.Header
 20416  }
 20417  
 20418  // Create: Creates a developer. Once created, the developer can register an app
 20419  // and obtain an API key. At creation time, a developer is set as `active`. To
 20420  // change the developer status, use the SetDeveloperStatus API.
 20421  //
 20422  //   - parent: Name of the Apigee organization in which the developer is created.
 20423  //     Use the following structure in your request: `organizations/{org}`.
 20424  func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
 20425  	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20426  	c.parent = parent
 20427  	c.googlecloudapigeev1developer = googlecloudapigeev1developer
 20428  	return c
 20429  }
 20430  
 20431  // Fields allows partial responses to be retrieved. See
 20432  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20433  // details.
 20434  func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
 20435  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20436  	return c
 20437  }
 20438  
 20439  // Context sets the context to be used in this call's Do method.
 20440  func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
 20441  	c.ctx_ = ctx
 20442  	return c
 20443  }
 20444  
 20445  // Header returns a http.Header that can be modified by the caller to add
 20446  // headers to the request.
 20447  func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
 20448  	if c.header_ == nil {
 20449  		c.header_ = make(http.Header)
 20450  	}
 20451  	return c.header_
 20452  }
 20453  
 20454  func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
 20455  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20456  	var body io.Reader = nil
 20457  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
 20458  	if err != nil {
 20459  		return nil, err
 20460  	}
 20461  	c.urlParams_.Set("alt", alt)
 20462  	c.urlParams_.Set("prettyPrint", "false")
 20463  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
 20464  	urls += "?" + c.urlParams_.Encode()
 20465  	req, err := http.NewRequest("POST", urls, body)
 20466  	if err != nil {
 20467  		return nil, err
 20468  	}
 20469  	req.Header = reqHeaders
 20470  	googleapi.Expand(req.URL, map[string]string{
 20471  		"parent": c.parent,
 20472  	})
 20473  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20474  }
 20475  
 20476  // Do executes the "apigee.organizations.developers.create" call.
 20477  // Any non-2xx status code is an error. Response headers are in either
 20478  // *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a response was
 20479  // returned at all) in error.(*googleapi.Error).Header. Use
 20480  // googleapi.IsNotModified to check whether the returned error was because
 20481  // http.StatusNotModified was returned.
 20482  func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
 20483  	gensupport.SetOptions(c.urlParams_, opts...)
 20484  	res, err := c.doRequest("json")
 20485  	if res != nil && res.StatusCode == http.StatusNotModified {
 20486  		if res.Body != nil {
 20487  			res.Body.Close()
 20488  		}
 20489  		return nil, gensupport.WrapError(&googleapi.Error{
 20490  			Code:   res.StatusCode,
 20491  			Header: res.Header,
 20492  		})
 20493  	}
 20494  	if err != nil {
 20495  		return nil, err
 20496  	}
 20497  	defer googleapi.CloseBody(res)
 20498  	if err := googleapi.CheckResponse(res); err != nil {
 20499  		return nil, gensupport.WrapError(err)
 20500  	}
 20501  	ret := &GoogleCloudApigeeV1Developer{
 20502  		ServerResponse: googleapi.ServerResponse{
 20503  			Header:         res.Header,
 20504  			HTTPStatusCode: res.StatusCode,
 20505  		},
 20506  	}
 20507  	target := &ret
 20508  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20509  		return nil, err
 20510  	}
 20511  	return ret, nil
 20512  }
 20513  
 20514  type OrganizationsDevelopersDeleteCall struct {
 20515  	s          *Service
 20516  	name       string
 20517  	urlParams_ gensupport.URLParams
 20518  	ctx_       context.Context
 20519  	header_    http.Header
 20520  }
 20521  
 20522  // Delete: Deletes a developer. All apps and API keys associated with the
 20523  // developer are also removed. **Warning**: This API will permanently delete
 20524  // the developer and related artifacts. To avoid permanently deleting
 20525  // developers and their artifacts, set the developer status to `inactive` using
 20526  // the SetDeveloperStatus API. **Note**: The delete operation is asynchronous.
 20527  // The developer app is deleted immediately, but its associated resources, such
 20528  // as apps and API keys, may take anywhere from a few seconds to a few minutes
 20529  // to be deleted.
 20530  //
 20531  //   - name: Email address of the developer. Use the following structure in your
 20532  //     request: `organizations/{org}/developers/{developer_email}`.
 20533  func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
 20534  	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20535  	c.name = name
 20536  	return c
 20537  }
 20538  
 20539  // Fields allows partial responses to be retrieved. See
 20540  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20541  // details.
 20542  func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
 20543  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20544  	return c
 20545  }
 20546  
 20547  // Context sets the context to be used in this call's Do method.
 20548  func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
 20549  	c.ctx_ = ctx
 20550  	return c
 20551  }
 20552  
 20553  // Header returns a http.Header that can be modified by the caller to add
 20554  // headers to the request.
 20555  func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
 20556  	if c.header_ == nil {
 20557  		c.header_ = make(http.Header)
 20558  	}
 20559  	return c.header_
 20560  }
 20561  
 20562  func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
 20563  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20564  	var body io.Reader = nil
 20565  	c.urlParams_.Set("alt", alt)
 20566  	c.urlParams_.Set("prettyPrint", "false")
 20567  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20568  	urls += "?" + c.urlParams_.Encode()
 20569  	req, err := http.NewRequest("DELETE", urls, body)
 20570  	if err != nil {
 20571  		return nil, err
 20572  	}
 20573  	req.Header = reqHeaders
 20574  	googleapi.Expand(req.URL, map[string]string{
 20575  		"name": c.name,
 20576  	})
 20577  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20578  }
 20579  
 20580  // Do executes the "apigee.organizations.developers.delete" call.
 20581  // Any non-2xx status code is an error. Response headers are in either
 20582  // *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a response was
 20583  // returned at all) in error.(*googleapi.Error).Header. Use
 20584  // googleapi.IsNotModified to check whether the returned error was because
 20585  // http.StatusNotModified was returned.
 20586  func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
 20587  	gensupport.SetOptions(c.urlParams_, opts...)
 20588  	res, err := c.doRequest("json")
 20589  	if res != nil && res.StatusCode == http.StatusNotModified {
 20590  		if res.Body != nil {
 20591  			res.Body.Close()
 20592  		}
 20593  		return nil, gensupport.WrapError(&googleapi.Error{
 20594  			Code:   res.StatusCode,
 20595  			Header: res.Header,
 20596  		})
 20597  	}
 20598  	if err != nil {
 20599  		return nil, err
 20600  	}
 20601  	defer googleapi.CloseBody(res)
 20602  	if err := googleapi.CheckResponse(res); err != nil {
 20603  		return nil, gensupport.WrapError(err)
 20604  	}
 20605  	ret := &GoogleCloudApigeeV1Developer{
 20606  		ServerResponse: googleapi.ServerResponse{
 20607  			Header:         res.Header,
 20608  			HTTPStatusCode: res.StatusCode,
 20609  		},
 20610  	}
 20611  	target := &ret
 20612  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20613  		return nil, err
 20614  	}
 20615  	return ret, nil
 20616  }
 20617  
 20618  type OrganizationsDevelopersGetCall struct {
 20619  	s            *Service
 20620  	name         string
 20621  	urlParams_   gensupport.URLParams
 20622  	ifNoneMatch_ string
 20623  	ctx_         context.Context
 20624  	header_      http.Header
 20625  }
 20626  
 20627  // Get: Returns the developer details, including the developer's name, email
 20628  // address, apps, and other information. **Note**: The response includes only
 20629  // the first 100 developer apps.
 20630  //
 20631  //   - name: Email address of the developer. Use the following structure in your
 20632  //     request: `organizations/{org}/developers/{developer_email}`.
 20633  func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
 20634  	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20635  	c.name = name
 20636  	return c
 20637  }
 20638  
 20639  // Action sets the optional parameter "action": Status of the developer. Valid
 20640  // values are `active` or `inactive`.
 20641  func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
 20642  	c.urlParams_.Set("action", action)
 20643  	return c
 20644  }
 20645  
 20646  // Fields allows partial responses to be retrieved. See
 20647  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20648  // details.
 20649  func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
 20650  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20651  	return c
 20652  }
 20653  
 20654  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20655  // object's ETag matches the given value. This is useful for getting updates
 20656  // only after the object has changed since the last request.
 20657  func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
 20658  	c.ifNoneMatch_ = entityTag
 20659  	return c
 20660  }
 20661  
 20662  // Context sets the context to be used in this call's Do method.
 20663  func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
 20664  	c.ctx_ = ctx
 20665  	return c
 20666  }
 20667  
 20668  // Header returns a http.Header that can be modified by the caller to add
 20669  // headers to the request.
 20670  func (c *OrganizationsDevelopersGetCall) Header() http.Header {
 20671  	if c.header_ == nil {
 20672  		c.header_ = make(http.Header)
 20673  	}
 20674  	return c.header_
 20675  }
 20676  
 20677  func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
 20678  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20679  	if c.ifNoneMatch_ != "" {
 20680  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20681  	}
 20682  	var body io.Reader = nil
 20683  	c.urlParams_.Set("alt", alt)
 20684  	c.urlParams_.Set("prettyPrint", "false")
 20685  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20686  	urls += "?" + c.urlParams_.Encode()
 20687  	req, err := http.NewRequest("GET", urls, body)
 20688  	if err != nil {
 20689  		return nil, err
 20690  	}
 20691  	req.Header = reqHeaders
 20692  	googleapi.Expand(req.URL, map[string]string{
 20693  		"name": c.name,
 20694  	})
 20695  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20696  }
 20697  
 20698  // Do executes the "apigee.organizations.developers.get" call.
 20699  // Any non-2xx status code is an error. Response headers are in either
 20700  // *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a response was
 20701  // returned at all) in error.(*googleapi.Error).Header. Use
 20702  // googleapi.IsNotModified to check whether the returned error was because
 20703  // http.StatusNotModified was returned.
 20704  func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
 20705  	gensupport.SetOptions(c.urlParams_, opts...)
 20706  	res, err := c.doRequest("json")
 20707  	if res != nil && res.StatusCode == http.StatusNotModified {
 20708  		if res.Body != nil {
 20709  			res.Body.Close()
 20710  		}
 20711  		return nil, gensupport.WrapError(&googleapi.Error{
 20712  			Code:   res.StatusCode,
 20713  			Header: res.Header,
 20714  		})
 20715  	}
 20716  	if err != nil {
 20717  		return nil, err
 20718  	}
 20719  	defer googleapi.CloseBody(res)
 20720  	if err := googleapi.CheckResponse(res); err != nil {
 20721  		return nil, gensupport.WrapError(err)
 20722  	}
 20723  	ret := &GoogleCloudApigeeV1Developer{
 20724  		ServerResponse: googleapi.ServerResponse{
 20725  			Header:         res.Header,
 20726  			HTTPStatusCode: res.StatusCode,
 20727  		},
 20728  	}
 20729  	target := &ret
 20730  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20731  		return nil, err
 20732  	}
 20733  	return ret, nil
 20734  }
 20735  
 20736  type OrganizationsDevelopersGetBalanceCall struct {
 20737  	s            *Service
 20738  	name         string
 20739  	urlParams_   gensupport.URLParams
 20740  	ifNoneMatch_ string
 20741  	ctx_         context.Context
 20742  	header_      http.Header
 20743  }
 20744  
 20745  // GetBalance: Gets the account balance for the developer.
 20746  //
 20747  //   - name: Account balance for the developer. Use the following structure in
 20748  //     your request: `organizations/{org}/developers/{developer}/balance`.
 20749  func (r *OrganizationsDevelopersService) GetBalance(name string) *OrganizationsDevelopersGetBalanceCall {
 20750  	c := &OrganizationsDevelopersGetBalanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20751  	c.name = name
 20752  	return c
 20753  }
 20754  
 20755  // Fields allows partial responses to be retrieved. See
 20756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20757  // details.
 20758  func (c *OrganizationsDevelopersGetBalanceCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetBalanceCall {
 20759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20760  	return c
 20761  }
 20762  
 20763  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20764  // object's ETag matches the given value. This is useful for getting updates
 20765  // only after the object has changed since the last request.
 20766  func (c *OrganizationsDevelopersGetBalanceCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetBalanceCall {
 20767  	c.ifNoneMatch_ = entityTag
 20768  	return c
 20769  }
 20770  
 20771  // Context sets the context to be used in this call's Do method.
 20772  func (c *OrganizationsDevelopersGetBalanceCall) Context(ctx context.Context) *OrganizationsDevelopersGetBalanceCall {
 20773  	c.ctx_ = ctx
 20774  	return c
 20775  }
 20776  
 20777  // Header returns a http.Header that can be modified by the caller to add
 20778  // headers to the request.
 20779  func (c *OrganizationsDevelopersGetBalanceCall) Header() http.Header {
 20780  	if c.header_ == nil {
 20781  		c.header_ = make(http.Header)
 20782  	}
 20783  	return c.header_
 20784  }
 20785  
 20786  func (c *OrganizationsDevelopersGetBalanceCall) doRequest(alt string) (*http.Response, error) {
 20787  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20788  	if c.ifNoneMatch_ != "" {
 20789  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20790  	}
 20791  	var body io.Reader = nil
 20792  	c.urlParams_.Set("alt", alt)
 20793  	c.urlParams_.Set("prettyPrint", "false")
 20794  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20795  	urls += "?" + c.urlParams_.Encode()
 20796  	req, err := http.NewRequest("GET", urls, body)
 20797  	if err != nil {
 20798  		return nil, err
 20799  	}
 20800  	req.Header = reqHeaders
 20801  	googleapi.Expand(req.URL, map[string]string{
 20802  		"name": c.name,
 20803  	})
 20804  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20805  }
 20806  
 20807  // Do executes the "apigee.organizations.developers.getBalance" call.
 20808  // Any non-2xx status code is an error. Response headers are in either
 20809  // *GoogleCloudApigeeV1DeveloperBalance.ServerResponse.Header or (if a response
 20810  // was returned at all) in error.(*googleapi.Error).Header. Use
 20811  // googleapi.IsNotModified to check whether the returned error was because
 20812  // http.StatusNotModified was returned.
 20813  func (c *OrganizationsDevelopersGetBalanceCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
 20814  	gensupport.SetOptions(c.urlParams_, opts...)
 20815  	res, err := c.doRequest("json")
 20816  	if res != nil && res.StatusCode == http.StatusNotModified {
 20817  		if res.Body != nil {
 20818  			res.Body.Close()
 20819  		}
 20820  		return nil, gensupport.WrapError(&googleapi.Error{
 20821  			Code:   res.StatusCode,
 20822  			Header: res.Header,
 20823  		})
 20824  	}
 20825  	if err != nil {
 20826  		return nil, err
 20827  	}
 20828  	defer googleapi.CloseBody(res)
 20829  	if err := googleapi.CheckResponse(res); err != nil {
 20830  		return nil, gensupport.WrapError(err)
 20831  	}
 20832  	ret := &GoogleCloudApigeeV1DeveloperBalance{
 20833  		ServerResponse: googleapi.ServerResponse{
 20834  			Header:         res.Header,
 20835  			HTTPStatusCode: res.StatusCode,
 20836  		},
 20837  	}
 20838  	target := &ret
 20839  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20840  		return nil, err
 20841  	}
 20842  	return ret, nil
 20843  }
 20844  
 20845  type OrganizationsDevelopersGetMonetizationConfigCall struct {
 20846  	s            *Service
 20847  	name         string
 20848  	urlParams_   gensupport.URLParams
 20849  	ifNoneMatch_ string
 20850  	ctx_         context.Context
 20851  	header_      http.Header
 20852  }
 20853  
 20854  // GetMonetizationConfig: Gets the monetization configuration for the
 20855  // developer.
 20856  //
 20857  //   - name: Monetization configuration for the developer. Use the following
 20858  //     structure in your request:
 20859  //     `organizations/{org}/developers/{developer}/monetizationConfig`.
 20860  func (r *OrganizationsDevelopersService) GetMonetizationConfig(name string) *OrganizationsDevelopersGetMonetizationConfigCall {
 20861  	c := &OrganizationsDevelopersGetMonetizationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20862  	c.name = name
 20863  	return c
 20864  }
 20865  
 20866  // Fields allows partial responses to be retrieved. See
 20867  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20868  // details.
 20869  func (c *OrganizationsDevelopersGetMonetizationConfigCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetMonetizationConfigCall {
 20870  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20871  	return c
 20872  }
 20873  
 20874  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20875  // object's ETag matches the given value. This is useful for getting updates
 20876  // only after the object has changed since the last request.
 20877  func (c *OrganizationsDevelopersGetMonetizationConfigCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetMonetizationConfigCall {
 20878  	c.ifNoneMatch_ = entityTag
 20879  	return c
 20880  }
 20881  
 20882  // Context sets the context to be used in this call's Do method.
 20883  func (c *OrganizationsDevelopersGetMonetizationConfigCall) Context(ctx context.Context) *OrganizationsDevelopersGetMonetizationConfigCall {
 20884  	c.ctx_ = ctx
 20885  	return c
 20886  }
 20887  
 20888  // Header returns a http.Header that can be modified by the caller to add
 20889  // headers to the request.
 20890  func (c *OrganizationsDevelopersGetMonetizationConfigCall) Header() http.Header {
 20891  	if c.header_ == nil {
 20892  		c.header_ = make(http.Header)
 20893  	}
 20894  	return c.header_
 20895  }
 20896  
 20897  func (c *OrganizationsDevelopersGetMonetizationConfigCall) doRequest(alt string) (*http.Response, error) {
 20898  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20899  	if c.ifNoneMatch_ != "" {
 20900  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20901  	}
 20902  	var body io.Reader = nil
 20903  	c.urlParams_.Set("alt", alt)
 20904  	c.urlParams_.Set("prettyPrint", "false")
 20905  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20906  	urls += "?" + c.urlParams_.Encode()
 20907  	req, err := http.NewRequest("GET", urls, body)
 20908  	if err != nil {
 20909  		return nil, err
 20910  	}
 20911  	req.Header = reqHeaders
 20912  	googleapi.Expand(req.URL, map[string]string{
 20913  		"name": c.name,
 20914  	})
 20915  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20916  }
 20917  
 20918  // Do executes the "apigee.organizations.developers.getMonetizationConfig" call.
 20919  // Any non-2xx status code is an error. Response headers are in either
 20920  // *GoogleCloudApigeeV1DeveloperMonetizationConfig.ServerResponse.Header or (if
 20921  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 20922  // googleapi.IsNotModified to check whether the returned error was because
 20923  // http.StatusNotModified was returned.
 20924  func (c *OrganizationsDevelopersGetMonetizationConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperMonetizationConfig, error) {
 20925  	gensupport.SetOptions(c.urlParams_, opts...)
 20926  	res, err := c.doRequest("json")
 20927  	if res != nil && res.StatusCode == http.StatusNotModified {
 20928  		if res.Body != nil {
 20929  			res.Body.Close()
 20930  		}
 20931  		return nil, gensupport.WrapError(&googleapi.Error{
 20932  			Code:   res.StatusCode,
 20933  			Header: res.Header,
 20934  		})
 20935  	}
 20936  	if err != nil {
 20937  		return nil, err
 20938  	}
 20939  	defer googleapi.CloseBody(res)
 20940  	if err := googleapi.CheckResponse(res); err != nil {
 20941  		return nil, gensupport.WrapError(err)
 20942  	}
 20943  	ret := &GoogleCloudApigeeV1DeveloperMonetizationConfig{
 20944  		ServerResponse: googleapi.ServerResponse{
 20945  			Header:         res.Header,
 20946  			HTTPStatusCode: res.StatusCode,
 20947  		},
 20948  	}
 20949  	target := &ret
 20950  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20951  		return nil, err
 20952  	}
 20953  	return ret, nil
 20954  }
 20955  
 20956  type OrganizationsDevelopersListCall struct {
 20957  	s            *Service
 20958  	parent       string
 20959  	urlParams_   gensupport.URLParams
 20960  	ifNoneMatch_ string
 20961  	ctx_         context.Context
 20962  	header_      http.Header
 20963  }
 20964  
 20965  // List: Lists all developers in an organization by email address. By default,
 20966  // the response does not include company developers. Set the `includeCompany`
 20967  // query parameter to `true` to include company developers. **Note**: A maximum
 20968  // of 1000 developers are returned in the response. You paginate the list of
 20969  // developers returned using the `startKey` and `count` query parameters.
 20970  //
 20971  //   - parent: Name of the Apigee organization. Use the following structure in
 20972  //     your request: `organizations/{org}`.
 20973  func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
 20974  	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20975  	c.parent = parent
 20976  	return c
 20977  }
 20978  
 20979  // App sets the optional parameter "app": List only Developers that are
 20980  // associated with the app. Note that start_key, count are not applicable for
 20981  // this filter criteria.
 20982  func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
 20983  	c.urlParams_.Set("app", app)
 20984  	return c
 20985  }
 20986  
 20987  // Count sets the optional parameter "count": Number of developers to return in
 20988  // the API call. Use with the `startKey` parameter to provide more targeted
 20989  // filtering. The limit is 1000.
 20990  func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
 20991  	c.urlParams_.Set("count", fmt.Sprint(count))
 20992  	return c
 20993  }
 20994  
 20995  // Expand sets the optional parameter "expand": Specifies whether to expand the
 20996  // results. Set to `true` to expand the results. This query parameter is not
 20997  // valid if you use the `count` or `startKey` query parameters.
 20998  func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
 20999  	c.urlParams_.Set("expand", fmt.Sprint(expand))
 21000  	return c
 21001  }
 21002  
 21003  // Ids sets the optional parameter "ids": List of IDs to include, separated by
 21004  // commas.
 21005  func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
 21006  	c.urlParams_.Set("ids", ids)
 21007  	return c
 21008  }
 21009  
 21010  // IncludeCompany sets the optional parameter "includeCompany": Flag that
 21011  // specifies whether to include company details in the response.
 21012  func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
 21013  	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
 21014  	return c
 21015  }
 21016  
 21017  // StartKey sets the optional parameter "startKey": **Note**: Must be used in
 21018  // conjunction with the `count` parameter. Email address of the developer from
 21019  // which to start displaying the list of developers. For example, if the an
 21020  // unfiltered list returns: ``` westley@example.com fezzik@example.com
 21021  // buttercup@example.com ``` and your `startKey` is `fezzik@example.com`, the
 21022  // list returned will be ``` fezzik@example.com buttercup@example.com ```
 21023  func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
 21024  	c.urlParams_.Set("startKey", startKey)
 21025  	return c
 21026  }
 21027  
 21028  // Fields allows partial responses to be retrieved. See
 21029  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21030  // details.
 21031  func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
 21032  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21033  	return c
 21034  }
 21035  
 21036  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21037  // object's ETag matches the given value. This is useful for getting updates
 21038  // only after the object has changed since the last request.
 21039  func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
 21040  	c.ifNoneMatch_ = entityTag
 21041  	return c
 21042  }
 21043  
 21044  // Context sets the context to be used in this call's Do method.
 21045  func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
 21046  	c.ctx_ = ctx
 21047  	return c
 21048  }
 21049  
 21050  // Header returns a http.Header that can be modified by the caller to add
 21051  // headers to the request.
 21052  func (c *OrganizationsDevelopersListCall) Header() http.Header {
 21053  	if c.header_ == nil {
 21054  		c.header_ = make(http.Header)
 21055  	}
 21056  	return c.header_
 21057  }
 21058  
 21059  func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
 21060  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21061  	if c.ifNoneMatch_ != "" {
 21062  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21063  	}
 21064  	var body io.Reader = nil
 21065  	c.urlParams_.Set("alt", alt)
 21066  	c.urlParams_.Set("prettyPrint", "false")
 21067  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
 21068  	urls += "?" + c.urlParams_.Encode()
 21069  	req, err := http.NewRequest("GET", urls, body)
 21070  	if err != nil {
 21071  		return nil, err
 21072  	}
 21073  	req.Header = reqHeaders
 21074  	googleapi.Expand(req.URL, map[string]string{
 21075  		"parent": c.parent,
 21076  	})
 21077  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21078  }
 21079  
 21080  // Do executes the "apigee.organizations.developers.list" call.
 21081  // Any non-2xx status code is an error. Response headers are in either
 21082  // *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or (if a
 21083  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21084  // googleapi.IsNotModified to check whether the returned error was because
 21085  // http.StatusNotModified was returned.
 21086  func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
 21087  	gensupport.SetOptions(c.urlParams_, opts...)
 21088  	res, err := c.doRequest("json")
 21089  	if res != nil && res.StatusCode == http.StatusNotModified {
 21090  		if res.Body != nil {
 21091  			res.Body.Close()
 21092  		}
 21093  		return nil, gensupport.WrapError(&googleapi.Error{
 21094  			Code:   res.StatusCode,
 21095  			Header: res.Header,
 21096  		})
 21097  	}
 21098  	if err != nil {
 21099  		return nil, err
 21100  	}
 21101  	defer googleapi.CloseBody(res)
 21102  	if err := googleapi.CheckResponse(res); err != nil {
 21103  		return nil, gensupport.WrapError(err)
 21104  	}
 21105  	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
 21106  		ServerResponse: googleapi.ServerResponse{
 21107  			Header:         res.Header,
 21108  			HTTPStatusCode: res.StatusCode,
 21109  		},
 21110  	}
 21111  	target := &ret
 21112  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21113  		return nil, err
 21114  	}
 21115  	return ret, nil
 21116  }
 21117  
 21118  type OrganizationsDevelopersSetDeveloperStatusCall struct {
 21119  	s          *Service
 21120  	name       string
 21121  	urlParams_ gensupport.URLParams
 21122  	ctx_       context.Context
 21123  	header_    http.Header
 21124  }
 21125  
 21126  // SetDeveloperStatus: Sets the status of a developer. A developer is `active`
 21127  // by default. If you set a developer's status to `inactive`, the API keys
 21128  // assigned to the developer apps are no longer valid even though the API keys
 21129  // are set to `approved`. Inactive developers can still sign in to the
 21130  // developer portal and create apps; however, any new API keys generated during
 21131  // app creation won't work. To set the status of a developer, set the `action`
 21132  // query parameter to `active` or `inactive`, and the `Content-Type` header to
 21133  // `application/octet-stream`. If successful, the API call returns the
 21134  // following HTTP status code: `204 No Content`
 21135  //
 21136  //   - name: Name of the developer. Use the following structure in your request:
 21137  //     `organizations/{org}/developers/{developer_id}`.
 21138  func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
 21139  	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21140  	c.name = name
 21141  	return c
 21142  }
 21143  
 21144  // Action sets the optional parameter "action": Status of the developer. Valid
 21145  // values are `active` and `inactive`.
 21146  func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
 21147  	c.urlParams_.Set("action", action)
 21148  	return c
 21149  }
 21150  
 21151  // Fields allows partial responses to be retrieved. See
 21152  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21153  // details.
 21154  func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
 21155  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21156  	return c
 21157  }
 21158  
 21159  // Context sets the context to be used in this call's Do method.
 21160  func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
 21161  	c.ctx_ = ctx
 21162  	return c
 21163  }
 21164  
 21165  // Header returns a http.Header that can be modified by the caller to add
 21166  // headers to the request.
 21167  func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
 21168  	if c.header_ == nil {
 21169  		c.header_ = make(http.Header)
 21170  	}
 21171  	return c.header_
 21172  }
 21173  
 21174  func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
 21175  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21176  	var body io.Reader = nil
 21177  	c.urlParams_.Set("alt", alt)
 21178  	c.urlParams_.Set("prettyPrint", "false")
 21179  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21180  	urls += "?" + c.urlParams_.Encode()
 21181  	req, err := http.NewRequest("POST", urls, body)
 21182  	if err != nil {
 21183  		return nil, err
 21184  	}
 21185  	req.Header = reqHeaders
 21186  	googleapi.Expand(req.URL, map[string]string{
 21187  		"name": c.name,
 21188  	})
 21189  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21190  }
 21191  
 21192  // Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
 21193  // Any non-2xx status code is an error. Response headers are in either
 21194  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21195  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21196  // check whether the returned error was because http.StatusNotModified was
 21197  // returned.
 21198  func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21199  	gensupport.SetOptions(c.urlParams_, opts...)
 21200  	res, err := c.doRequest("json")
 21201  	if res != nil && res.StatusCode == http.StatusNotModified {
 21202  		if res.Body != nil {
 21203  			res.Body.Close()
 21204  		}
 21205  		return nil, gensupport.WrapError(&googleapi.Error{
 21206  			Code:   res.StatusCode,
 21207  			Header: res.Header,
 21208  		})
 21209  	}
 21210  	if err != nil {
 21211  		return nil, err
 21212  	}
 21213  	defer googleapi.CloseBody(res)
 21214  	if err := googleapi.CheckResponse(res); err != nil {
 21215  		return nil, gensupport.WrapError(err)
 21216  	}
 21217  	ret := &GoogleProtobufEmpty{
 21218  		ServerResponse: googleapi.ServerResponse{
 21219  			Header:         res.Header,
 21220  			HTTPStatusCode: res.StatusCode,
 21221  		},
 21222  	}
 21223  	target := &ret
 21224  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21225  		return nil, err
 21226  	}
 21227  	return ret, nil
 21228  }
 21229  
 21230  type OrganizationsDevelopersUpdateCall struct {
 21231  	s                            *Service
 21232  	name                         string
 21233  	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
 21234  	urlParams_                   gensupport.URLParams
 21235  	ctx_                         context.Context
 21236  	header_                      http.Header
 21237  }
 21238  
 21239  // Update: Updates a developer. This API replaces the existing developer
 21240  // details with those specified in the request. Include or exclude any existing
 21241  // details that you want to retain or delete, respectively. The custom
 21242  // attribute limit is 18. **Note**: OAuth access tokens and Key Management
 21243  // Service (KMS) entities (apps, developers, and API products) are cached for
 21244  // 180 seconds (current default). Any custom attributes associated with these
 21245  // entities are cached for at least 180 seconds after the entity is accessed at
 21246  // runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be
 21247  // able to expire an access token in less than 180 seconds.
 21248  //
 21249  //   - name: Email address of the developer. Use the following structure in your
 21250  //     request: `organizations/{org}/developers/{developer_email}`.
 21251  func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
 21252  	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21253  	c.name = name
 21254  	c.googlecloudapigeev1developer = googlecloudapigeev1developer
 21255  	return c
 21256  }
 21257  
 21258  // Fields allows partial responses to be retrieved. See
 21259  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21260  // details.
 21261  func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
 21262  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21263  	return c
 21264  }
 21265  
 21266  // Context sets the context to be used in this call's Do method.
 21267  func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
 21268  	c.ctx_ = ctx
 21269  	return c
 21270  }
 21271  
 21272  // Header returns a http.Header that can be modified by the caller to add
 21273  // headers to the request.
 21274  func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
 21275  	if c.header_ == nil {
 21276  		c.header_ = make(http.Header)
 21277  	}
 21278  	return c.header_
 21279  }
 21280  
 21281  func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
 21282  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21283  	var body io.Reader = nil
 21284  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
 21285  	if err != nil {
 21286  		return nil, err
 21287  	}
 21288  	c.urlParams_.Set("alt", alt)
 21289  	c.urlParams_.Set("prettyPrint", "false")
 21290  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21291  	urls += "?" + c.urlParams_.Encode()
 21292  	req, err := http.NewRequest("PUT", urls, body)
 21293  	if err != nil {
 21294  		return nil, err
 21295  	}
 21296  	req.Header = reqHeaders
 21297  	googleapi.Expand(req.URL, map[string]string{
 21298  		"name": c.name,
 21299  	})
 21300  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21301  }
 21302  
 21303  // Do executes the "apigee.organizations.developers.update" call.
 21304  // Any non-2xx status code is an error. Response headers are in either
 21305  // *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a response was
 21306  // returned at all) in error.(*googleapi.Error).Header. Use
 21307  // googleapi.IsNotModified to check whether the returned error was because
 21308  // http.StatusNotModified was returned.
 21309  func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
 21310  	gensupport.SetOptions(c.urlParams_, opts...)
 21311  	res, err := c.doRequest("json")
 21312  	if res != nil && res.StatusCode == http.StatusNotModified {
 21313  		if res.Body != nil {
 21314  			res.Body.Close()
 21315  		}
 21316  		return nil, gensupport.WrapError(&googleapi.Error{
 21317  			Code:   res.StatusCode,
 21318  			Header: res.Header,
 21319  		})
 21320  	}
 21321  	if err != nil {
 21322  		return nil, err
 21323  	}
 21324  	defer googleapi.CloseBody(res)
 21325  	if err := googleapi.CheckResponse(res); err != nil {
 21326  		return nil, gensupport.WrapError(err)
 21327  	}
 21328  	ret := &GoogleCloudApigeeV1Developer{
 21329  		ServerResponse: googleapi.ServerResponse{
 21330  			Header:         res.Header,
 21331  			HTTPStatusCode: res.StatusCode,
 21332  		},
 21333  	}
 21334  	target := &ret
 21335  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21336  		return nil, err
 21337  	}
 21338  	return ret, nil
 21339  }
 21340  
 21341  type OrganizationsDevelopersUpdateMonetizationConfigCall struct {
 21342  	s                                              *Service
 21343  	name                                           string
 21344  	googlecloudapigeev1developermonetizationconfig *GoogleCloudApigeeV1DeveloperMonetizationConfig
 21345  	urlParams_                                     gensupport.URLParams
 21346  	ctx_                                           context.Context
 21347  	header_                                        http.Header
 21348  }
 21349  
 21350  // UpdateMonetizationConfig: Updates the monetization configuration for the
 21351  // developer.
 21352  //
 21353  //   - name: Monetization configuration for the developer. Use the following
 21354  //     structure in your request:
 21355  //     `organizations/{org}/developers/{developer}/monetizationConfig`.
 21356  func (r *OrganizationsDevelopersService) UpdateMonetizationConfig(name string, googlecloudapigeev1developermonetizationconfig *GoogleCloudApigeeV1DeveloperMonetizationConfig) *OrganizationsDevelopersUpdateMonetizationConfigCall {
 21357  	c := &OrganizationsDevelopersUpdateMonetizationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21358  	c.name = name
 21359  	c.googlecloudapigeev1developermonetizationconfig = googlecloudapigeev1developermonetizationconfig
 21360  	return c
 21361  }
 21362  
 21363  // Fields allows partial responses to be retrieved. See
 21364  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21365  // details.
 21366  func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateMonetizationConfigCall {
 21367  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21368  	return c
 21369  }
 21370  
 21371  // Context sets the context to be used in this call's Do method.
 21372  func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateMonetizationConfigCall {
 21373  	c.ctx_ = ctx
 21374  	return c
 21375  }
 21376  
 21377  // Header returns a http.Header that can be modified by the caller to add
 21378  // headers to the request.
 21379  func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Header() http.Header {
 21380  	if c.header_ == nil {
 21381  		c.header_ = make(http.Header)
 21382  	}
 21383  	return c.header_
 21384  }
 21385  
 21386  func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) doRequest(alt string) (*http.Response, error) {
 21387  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21388  	var body io.Reader = nil
 21389  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developermonetizationconfig)
 21390  	if err != nil {
 21391  		return nil, err
 21392  	}
 21393  	c.urlParams_.Set("alt", alt)
 21394  	c.urlParams_.Set("prettyPrint", "false")
 21395  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21396  	urls += "?" + c.urlParams_.Encode()
 21397  	req, err := http.NewRequest("PUT", urls, body)
 21398  	if err != nil {
 21399  		return nil, err
 21400  	}
 21401  	req.Header = reqHeaders
 21402  	googleapi.Expand(req.URL, map[string]string{
 21403  		"name": c.name,
 21404  	})
 21405  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21406  }
 21407  
 21408  // Do executes the "apigee.organizations.developers.updateMonetizationConfig" call.
 21409  // Any non-2xx status code is an error. Response headers are in either
 21410  // *GoogleCloudApigeeV1DeveloperMonetizationConfig.ServerResponse.Header or (if
 21411  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 21412  // googleapi.IsNotModified to check whether the returned error was because
 21413  // http.StatusNotModified was returned.
 21414  func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperMonetizationConfig, error) {
 21415  	gensupport.SetOptions(c.urlParams_, opts...)
 21416  	res, err := c.doRequest("json")
 21417  	if res != nil && res.StatusCode == http.StatusNotModified {
 21418  		if res.Body != nil {
 21419  			res.Body.Close()
 21420  		}
 21421  		return nil, gensupport.WrapError(&googleapi.Error{
 21422  			Code:   res.StatusCode,
 21423  			Header: res.Header,
 21424  		})
 21425  	}
 21426  	if err != nil {
 21427  		return nil, err
 21428  	}
 21429  	defer googleapi.CloseBody(res)
 21430  	if err := googleapi.CheckResponse(res); err != nil {
 21431  		return nil, gensupport.WrapError(err)
 21432  	}
 21433  	ret := &GoogleCloudApigeeV1DeveloperMonetizationConfig{
 21434  		ServerResponse: googleapi.ServerResponse{
 21435  			Header:         res.Header,
 21436  			HTTPStatusCode: res.StatusCode,
 21437  		},
 21438  	}
 21439  	target := &ret
 21440  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21441  		return nil, err
 21442  	}
 21443  	return ret, nil
 21444  }
 21445  
 21446  type OrganizationsDevelopersAppsAttributesCall struct {
 21447  	s                             *Service
 21448  	name                          string
 21449  	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
 21450  	urlParams_                    gensupport.URLParams
 21451  	ctx_                          context.Context
 21452  	header_                       http.Header
 21453  }
 21454  
 21455  // Attributes: Updates attributes for a developer app. This API replaces the
 21456  // current attributes with those specified in the request.
 21457  //
 21458  //   - name: Name of the developer app. Use the following structure in your
 21459  //     request: `organizations/{org}/developers/{developer_email}/apps/{app}`.
 21460  func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
 21461  	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21462  	c.name = name
 21463  	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
 21464  	return c
 21465  }
 21466  
 21467  // Fields allows partial responses to be retrieved. See
 21468  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21469  // details.
 21470  func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
 21471  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21472  	return c
 21473  }
 21474  
 21475  // Context sets the context to be used in this call's Do method.
 21476  func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
 21477  	c.ctx_ = ctx
 21478  	return c
 21479  }
 21480  
 21481  // Header returns a http.Header that can be modified by the caller to add
 21482  // headers to the request.
 21483  func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
 21484  	if c.header_ == nil {
 21485  		c.header_ = make(http.Header)
 21486  	}
 21487  	return c.header_
 21488  }
 21489  
 21490  func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
 21491  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21492  	var body io.Reader = nil
 21493  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
 21494  	if err != nil {
 21495  		return nil, err
 21496  	}
 21497  	c.urlParams_.Set("alt", alt)
 21498  	c.urlParams_.Set("prettyPrint", "false")
 21499  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
 21500  	urls += "?" + c.urlParams_.Encode()
 21501  	req, err := http.NewRequest("POST", urls, body)
 21502  	if err != nil {
 21503  		return nil, err
 21504  	}
 21505  	req.Header = reqHeaders
 21506  	googleapi.Expand(req.URL, map[string]string{
 21507  		"name": c.name,
 21508  	})
 21509  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21510  }
 21511  
 21512  // Do executes the "apigee.organizations.developers.apps.attributes" call.
 21513  // Any non-2xx status code is an error. Response headers are in either
 21514  // *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a response was
 21515  // returned at all) in error.(*googleapi.Error).Header. Use
 21516  // googleapi.IsNotModified to check whether the returned error was because
 21517  // http.StatusNotModified was returned.
 21518  func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
 21519  	gensupport.SetOptions(c.urlParams_, opts...)
 21520  	res, err := c.doRequest("json")
 21521  	if res != nil && res.StatusCode == http.StatusNotModified {
 21522  		if res.Body != nil {
 21523  			res.Body.Close()
 21524  		}
 21525  		return nil, gensupport.WrapError(&googleapi.Error{
 21526  			Code:   res.StatusCode,
 21527  			Header: res.Header,
 21528  		})
 21529  	}
 21530  	if err != nil {
 21531  		return nil, err
 21532  	}
 21533  	defer googleapi.CloseBody(res)
 21534  	if err := googleapi.CheckResponse(res); err != nil {
 21535  		return nil, gensupport.WrapError(err)
 21536  	}
 21537  	ret := &GoogleCloudApigeeV1Attributes{
 21538  		ServerResponse: googleapi.ServerResponse{
 21539  			Header:         res.Header,
 21540  			HTTPStatusCode: res.StatusCode,
 21541  		},
 21542  	}
 21543  	target := &ret
 21544  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21545  		return nil, err
 21546  	}
 21547  	return ret, nil
 21548  }
 21549  
 21550  type OrganizationsDevelopersAppsCreateCall struct {
 21551  	s                               *Service
 21552  	parent                          string
 21553  	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
 21554  	urlParams_                      gensupport.URLParams
 21555  	ctx_                            context.Context
 21556  	header_                         http.Header
 21557  }
 21558  
 21559  // Create: Creates an app associated with a developer. This API associates the
 21560  // developer app with the specified API product and auto-generates an API key
 21561  // for the app to use in calls to API proxies inside that API product. The
 21562  // `name` is the unique ID of the app that you can use in API calls. The
 21563  // `DisplayName` (set as an attribute) appears in the UI. If you don't set the
 21564  // `DisplayName` attribute, the `name` appears in the UI.
 21565  //
 21566  //   - parent: Name of the developer. Use the following structure in your
 21567  //     request: `organizations/{org}/developers/{developer_email}`.
 21568  func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
 21569  	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21570  	c.parent = parent
 21571  	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
 21572  	return c
 21573  }
 21574  
 21575  // Fields allows partial responses to be retrieved. See
 21576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21577  // details.
 21578  func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
 21579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21580  	return c
 21581  }
 21582  
 21583  // Context sets the context to be used in this call's Do method.
 21584  func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
 21585  	c.ctx_ = ctx
 21586  	return c
 21587  }
 21588  
 21589  // Header returns a http.Header that can be modified by the caller to add
 21590  // headers to the request.
 21591  func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
 21592  	if c.header_ == nil {
 21593  		c.header_ = make(http.Header)
 21594  	}
 21595  	return c.header_
 21596  }
 21597  
 21598  func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
 21599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21600  	var body io.Reader = nil
 21601  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
 21602  	if err != nil {
 21603  		return nil, err
 21604  	}
 21605  	c.urlParams_.Set("alt", alt)
 21606  	c.urlParams_.Set("prettyPrint", "false")
 21607  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
 21608  	urls += "?" + c.urlParams_.Encode()
 21609  	req, err := http.NewRequest("POST", urls, body)
 21610  	if err != nil {
 21611  		return nil, err
 21612  	}
 21613  	req.Header = reqHeaders
 21614  	googleapi.Expand(req.URL, map[string]string{
 21615  		"parent": c.parent,
 21616  	})
 21617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21618  }
 21619  
 21620  // Do executes the "apigee.organizations.developers.apps.create" call.
 21621  // Any non-2xx status code is an error. Response headers are in either
 21622  // *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if a response was
 21623  // returned at all) in error.(*googleapi.Error).Header. Use
 21624  // googleapi.IsNotModified to check whether the returned error was because
 21625  // http.StatusNotModified was returned.
 21626  func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
 21627  	gensupport.SetOptions(c.urlParams_, opts...)
 21628  	res, err := c.doRequest("json")
 21629  	if res != nil && res.StatusCode == http.StatusNotModified {
 21630  		if res.Body != nil {
 21631  			res.Body.Close()
 21632  		}
 21633  		return nil, gensupport.WrapError(&googleapi.Error{
 21634  			Code:   res.StatusCode,
 21635  			Header: res.Header,
 21636  		})
 21637  	}
 21638  	if err != nil {
 21639  		return nil, err
 21640  	}
 21641  	defer googleapi.CloseBody(res)
 21642  	if err := googleapi.CheckResponse(res); err != nil {
 21643  		return nil, gensupport.WrapError(err)
 21644  	}
 21645  	ret := &GoogleCloudApigeeV1DeveloperApp{
 21646  		ServerResponse: googleapi.ServerResponse{
 21647  			Header:         res.Header,
 21648  			HTTPStatusCode: res.StatusCode,
 21649  		},
 21650  	}
 21651  	target := &ret
 21652  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21653  		return nil, err
 21654  	}
 21655  	return ret, nil
 21656  }
 21657  
 21658  type OrganizationsDevelopersAppsDeleteCall struct {
 21659  	s          *Service
 21660  	name       string
 21661  	urlParams_ gensupport.URLParams
 21662  	ctx_       context.Context
 21663  	header_    http.Header
 21664  }
 21665  
 21666  // Delete: Deletes a developer app. **Note**: The delete operation is
 21667  // asynchronous. The developer app is deleted immediately, but its associated
 21668  // resources, such as app keys or access tokens, may take anywhere from a few
 21669  // seconds to a few minutes to be deleted.
 21670  //
 21671  //   - name: Name of the developer app. Use the following structure in your
 21672  //     request: `organizations/{org}/developers/{developer_email}/apps/{app}`.
 21673  func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
 21674  	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21675  	c.name = name
 21676  	return c
 21677  }
 21678  
 21679  // Fields allows partial responses to be retrieved. See
 21680  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21681  // details.
 21682  func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
 21683  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21684  	return c
 21685  }
 21686  
 21687  // Context sets the context to be used in this call's Do method.
 21688  func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
 21689  	c.ctx_ = ctx
 21690  	return c
 21691  }
 21692  
 21693  // Header returns a http.Header that can be modified by the caller to add
 21694  // headers to the request.
 21695  func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
 21696  	if c.header_ == nil {
 21697  		c.header_ = make(http.Header)
 21698  	}
 21699  	return c.header_
 21700  }
 21701  
 21702  func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21703  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21704  	var body io.Reader = nil
 21705  	c.urlParams_.Set("alt", alt)
 21706  	c.urlParams_.Set("prettyPrint", "false")
 21707  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21708  	urls += "?" + c.urlParams_.Encode()
 21709  	req, err := http.NewRequest("DELETE", urls, body)
 21710  	if err != nil {
 21711  		return nil, err
 21712  	}
 21713  	req.Header = reqHeaders
 21714  	googleapi.Expand(req.URL, map[string]string{
 21715  		"name": c.name,
 21716  	})
 21717  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21718  }
 21719  
 21720  // Do executes the "apigee.organizations.developers.apps.delete" call.
 21721  // Any non-2xx status code is an error. Response headers are in either
 21722  // *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if a response was
 21723  // returned at all) in error.(*googleapi.Error).Header. Use
 21724  // googleapi.IsNotModified to check whether the returned error was because
 21725  // http.StatusNotModified was returned.
 21726  func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
 21727  	gensupport.SetOptions(c.urlParams_, opts...)
 21728  	res, err := c.doRequest("json")
 21729  	if res != nil && res.StatusCode == http.StatusNotModified {
 21730  		if res.Body != nil {
 21731  			res.Body.Close()
 21732  		}
 21733  		return nil, gensupport.WrapError(&googleapi.Error{
 21734  			Code:   res.StatusCode,
 21735  			Header: res.Header,
 21736  		})
 21737  	}
 21738  	if err != nil {
 21739  		return nil, err
 21740  	}
 21741  	defer googleapi.CloseBody(res)
 21742  	if err := googleapi.CheckResponse(res); err != nil {
 21743  		return nil, gensupport.WrapError(err)
 21744  	}
 21745  	ret := &GoogleCloudApigeeV1DeveloperApp{
 21746  		ServerResponse: googleapi.ServerResponse{
 21747  			Header:         res.Header,
 21748  			HTTPStatusCode: res.StatusCode,
 21749  		},
 21750  	}
 21751  	target := &ret
 21752  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21753  		return nil, err
 21754  	}
 21755  	return ret, nil
 21756  }
 21757  
 21758  type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
 21759  	s                               *Service
 21760  	name                            string
 21761  	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
 21762  	urlParams_                      gensupport.URLParams
 21763  	ctx_                            context.Context
 21764  	header_                         http.Header
 21765  }
 21766  
 21767  // GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a developer app
 21768  // by enabling you to: * Approve or revoke a developer app * Generate a new
 21769  // consumer key and secret for a developer app To approve or revoke a developer
 21770  // app, set the `action` query parameter to `approve` or `revoke`,
 21771  // respectively, and the `Content-Type` header to `application/octet-stream`.
 21772  // If a developer app is revoked, none of its API keys are valid for API calls
 21773  // even though the keys are still approved. If successful, the API call returns
 21774  // the following HTTP status code: `204 No Content` To generate a new consumer
 21775  // key and secret for a developer app, pass the new key/secret details. Rather
 21776  // than replace an existing key, this API generates a new key. In this case,
 21777  // multiple key pairs may be associated with a single developer app. Each key
 21778  // pair has an independent status (`approve` or `revoke`) and expiration time.
 21779  // Any approved, non-expired key can be used in an API call. For example, if
 21780  // you're using API key rotation, you can generate new keys with expiration
 21781  // times that overlap keys that are going to expire. You might also generate a
 21782  // new consumer key/secret if the security of the original key/secret is
 21783  // compromised. The `keyExpiresIn` property defines the expiration time for the
 21784  // API key in milliseconds. If you don't set this property or set it to `-1`,
 21785  // the API key never expires. **Notes**: * When generating a new key/secret,
 21786  // this API replaces the existing attributes, notes, and callback URLs with
 21787  // those specified in the request. Include or exclude any existing information
 21788  // that you want to retain or delete, respectively. * To migrate existing
 21789  // consumer keys and secrets to hybrid from another system, see the
 21790  // CreateDeveloperAppKey API.
 21791  //
 21792  //   - name: Name of the developer app. Use the following structure in your
 21793  //     request: `organizations/{org}/developers/{developer_email}/apps/{app}`.
 21794  func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
 21795  	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21796  	c.name = name
 21797  	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
 21798  	return c
 21799  }
 21800  
 21801  // Action sets the optional parameter "action": Action. Valid values are
 21802  // `approve` or `revoke`.
 21803  func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
 21804  	c.urlParams_.Set("action", action)
 21805  	return c
 21806  }
 21807  
 21808  // Fields allows partial responses to be retrieved. See
 21809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21810  // details.
 21811  func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
 21812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21813  	return c
 21814  }
 21815  
 21816  // Context sets the context to be used in this call's Do method.
 21817  func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
 21818  	c.ctx_ = ctx
 21819  	return c
 21820  }
 21821  
 21822  // Header returns a http.Header that can be modified by the caller to add
 21823  // headers to the request.
 21824  func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
 21825  	if c.header_ == nil {
 21826  		c.header_ = make(http.Header)
 21827  	}
 21828  	return c.header_
 21829  }
 21830  
 21831  func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
 21832  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21833  	var body io.Reader = nil
 21834  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
 21835  	if err != nil {
 21836  		return nil, err
 21837  	}
 21838  	c.urlParams_.Set("alt", alt)
 21839  	c.urlParams_.Set("prettyPrint", "false")
 21840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21841  	urls += "?" + c.urlParams_.Encode()
 21842  	req, err := http.NewRequest("POST", urls, body)
 21843  	if err != nil {
 21844  		return nil, err
 21845  	}
 21846  	req.Header = reqHeaders
 21847  	googleapi.Expand(req.URL, map[string]string{
 21848  		"name": c.name,
 21849  	})
 21850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21851  }
 21852  
 21853  // Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
 21854  // Any non-2xx status code is an error. Response headers are in either
 21855  // *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if a response was
 21856  // returned at all) in error.(*googleapi.Error).Header. Use
 21857  // googleapi.IsNotModified to check whether the returned error was because
 21858  // http.StatusNotModified was returned.
 21859  func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
 21860  	gensupport.SetOptions(c.urlParams_, opts...)
 21861  	res, err := c.doRequest("json")
 21862  	if res != nil && res.StatusCode == http.StatusNotModified {
 21863  		if res.Body != nil {
 21864  			res.Body.Close()
 21865  		}
 21866  		return nil, gensupport.WrapError(&googleapi.Error{
 21867  			Code:   res.StatusCode,
 21868  			Header: res.Header,
 21869  		})
 21870  	}
 21871  	if err != nil {
 21872  		return nil, err
 21873  	}
 21874  	defer googleapi.CloseBody(res)
 21875  	if err := googleapi.CheckResponse(res); err != nil {
 21876  		return nil, gensupport.WrapError(err)
 21877  	}
 21878  	ret := &GoogleCloudApigeeV1DeveloperApp{
 21879  		ServerResponse: googleapi.ServerResponse{
 21880  			Header:         res.Header,
 21881  			HTTPStatusCode: res.StatusCode,
 21882  		},
 21883  	}
 21884  	target := &ret
 21885  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21886  		return nil, err
 21887  	}
 21888  	return ret, nil
 21889  }
 21890  
 21891  type OrganizationsDevelopersAppsGetCall struct {
 21892  	s            *Service
 21893  	name         string
 21894  	urlParams_   gensupport.URLParams
 21895  	ifNoneMatch_ string
 21896  	ctx_         context.Context
 21897  	header_      http.Header
 21898  }
 21899  
 21900  // Get: Returns the details for a developer app.
 21901  //
 21902  //   - name: Name of the developer app. Use the following structure in your
 21903  //     request: `organizations/{org}/developers/{developer_email}/apps/{app}`.
 21904  func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
 21905  	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21906  	c.name = name
 21907  	return c
 21908  }
 21909  
 21910  // Entity sets the optional parameter "entity": **Note**: Must be used in
 21911  // conjunction with the `query` parameter. Set to `apiresources` to return the
 21912  // number of API resources that have been approved for access by a developer
 21913  // app in the specified Apigee organization.
 21914  func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
 21915  	c.urlParams_.Set("entity", entity)
 21916  	return c
 21917  }
 21918  
 21919  // Query sets the optional parameter "query": **Note**: Must be used in
 21920  // conjunction with the `entity` parameter. Set to `count` to return the number
 21921  // of API resources that have been approved for access by a developer app in
 21922  // the specified Apigee organization.
 21923  func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
 21924  	c.urlParams_.Set("query", query)
 21925  	return c
 21926  }
 21927  
 21928  // Fields allows partial responses to be retrieved. See
 21929  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21930  // details.
 21931  func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
 21932  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21933  	return c
 21934  }
 21935  
 21936  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21937  // object's ETag matches the given value. This is useful for getting updates
 21938  // only after the object has changed since the last request.
 21939  func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
 21940  	c.ifNoneMatch_ = entityTag
 21941  	return c
 21942  }
 21943  
 21944  // Context sets the context to be used in this call's Do method.
 21945  func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
 21946  	c.ctx_ = ctx
 21947  	return c
 21948  }
 21949  
 21950  // Header returns a http.Header that can be modified by the caller to add
 21951  // headers to the request.
 21952  func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
 21953  	if c.header_ == nil {
 21954  		c.header_ = make(http.Header)
 21955  	}
 21956  	return c.header_
 21957  }
 21958  
 21959  func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
 21960  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21961  	if c.ifNoneMatch_ != "" {
 21962  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21963  	}
 21964  	var body io.Reader = nil
 21965  	c.urlParams_.Set("alt", alt)
 21966  	c.urlParams_.Set("prettyPrint", "false")
 21967  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21968  	urls += "?" + c.urlParams_.Encode()
 21969  	req, err := http.NewRequest("GET", urls, body)
 21970  	if err != nil {
 21971  		return nil, err
 21972  	}
 21973  	req.Header = reqHeaders
 21974  	googleapi.Expand(req.URL, map[string]string{
 21975  		"name": c.name,
 21976  	})
 21977  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21978  }
 21979  
 21980  // Do executes the "apigee.organizations.developers.apps.get" call.
 21981  // Any non-2xx status code is an error. Response headers are in either
 21982  // *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if a response was
 21983  // returned at all) in error.(*googleapi.Error).Header. Use
 21984  // googleapi.IsNotModified to check whether the returned error was because
 21985  // http.StatusNotModified was returned.
 21986  func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
 21987  	gensupport.SetOptions(c.urlParams_, opts...)
 21988  	res, err := c.doRequest("json")
 21989  	if res != nil && res.StatusCode == http.StatusNotModified {
 21990  		if res.Body != nil {
 21991  			res.Body.Close()
 21992  		}
 21993  		return nil, gensupport.WrapError(&googleapi.Error{
 21994  			Code:   res.StatusCode,
 21995  			Header: res.Header,
 21996  		})
 21997  	}
 21998  	if err != nil {
 21999  		return nil, err
 22000  	}
 22001  	defer googleapi.CloseBody(res)
 22002  	if err := googleapi.CheckResponse(res); err != nil {
 22003  		return nil, gensupport.WrapError(err)
 22004  	}
 22005  	ret := &GoogleCloudApigeeV1DeveloperApp{
 22006  		ServerResponse: googleapi.ServerResponse{
 22007  			Header:         res.Header,
 22008  			HTTPStatusCode: res.StatusCode,
 22009  		},
 22010  	}
 22011  	target := &ret
 22012  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22013  		return nil, err
 22014  	}
 22015  	return ret, nil
 22016  }
 22017  
 22018  type OrganizationsDevelopersAppsListCall struct {
 22019  	s            *Service
 22020  	parent       string
 22021  	urlParams_   gensupport.URLParams
 22022  	ifNoneMatch_ string
 22023  	ctx_         context.Context
 22024  	header_      http.Header
 22025  }
 22026  
 22027  // List: Lists all apps created by a developer in an Apigee organization.
 22028  // Optionally, you can request an expanded view of the developer apps. A
 22029  // maximum of 100 developer apps are returned per API call. You can paginate
 22030  // the list of deveoper apps returned using the `startKey` and `count` query
 22031  // parameters.
 22032  //
 22033  //   - parent: Name of the developer. Use the following structure in your
 22034  //     request: `organizations/{org}/developers/{developer_email}`.
 22035  func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
 22036  	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22037  	c.parent = parent
 22038  	return c
 22039  }
 22040  
 22041  // Count sets the optional parameter "count": Number of developer apps to
 22042  // return in the API call. Use with the `startKey` parameter to provide more
 22043  // targeted filtering. The limit is 1000.
 22044  func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
 22045  	c.urlParams_.Set("count", fmt.Sprint(count))
 22046  	return c
 22047  }
 22048  
 22049  // Expand sets the optional parameter "expand": Specifies whether to expand the
 22050  // results. Set to `true` to expand the results. This query parameter is not
 22051  // valid if you use the `count` or `startKey` query parameters.
 22052  func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
 22053  	c.urlParams_.Set("expand", fmt.Sprint(expand))
 22054  	return c
 22055  }
 22056  
 22057  // ShallowExpand sets the optional parameter "shallowExpand": Specifies whether
 22058  // to expand the results in shallow mode. Set to `true` to expand the results
 22059  // in shallow mode.
 22060  func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
 22061  	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
 22062  	return c
 22063  }
 22064  
 22065  // StartKey sets the optional parameter "startKey": **Note**: Must be used in
 22066  // conjunction with the `count` parameter. Name of the developer app from which
 22067  // to start displaying the list of developer apps. For example, if you're
 22068  // returning 50 developer apps at a time (using the `count` query parameter),
 22069  // you can view developer apps 50-99 by entering the name of the 50th developer
 22070  // app. The developer app name is case sensitive.
 22071  func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
 22072  	c.urlParams_.Set("startKey", startKey)
 22073  	return c
 22074  }
 22075  
 22076  // Fields allows partial responses to be retrieved. See
 22077  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22078  // details.
 22079  func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
 22080  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22081  	return c
 22082  }
 22083  
 22084  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22085  // object's ETag matches the given value. This is useful for getting updates
 22086  // only after the object has changed since the last request.
 22087  func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
 22088  	c.ifNoneMatch_ = entityTag
 22089  	return c
 22090  }
 22091  
 22092  // Context sets the context to be used in this call's Do method.
 22093  func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
 22094  	c.ctx_ = ctx
 22095  	return c
 22096  }
 22097  
 22098  // Header returns a http.Header that can be modified by the caller to add
 22099  // headers to the request.
 22100  func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
 22101  	if c.header_ == nil {
 22102  		c.header_ = make(http.Header)
 22103  	}
 22104  	return c.header_
 22105  }
 22106  
 22107  func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
 22108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22109  	if c.ifNoneMatch_ != "" {
 22110  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22111  	}
 22112  	var body io.Reader = nil
 22113  	c.urlParams_.Set("alt", alt)
 22114  	c.urlParams_.Set("prettyPrint", "false")
 22115  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
 22116  	urls += "?" + c.urlParams_.Encode()
 22117  	req, err := http.NewRequest("GET", urls, body)
 22118  	if err != nil {
 22119  		return nil, err
 22120  	}
 22121  	req.Header = reqHeaders
 22122  	googleapi.Expand(req.URL, map[string]string{
 22123  		"parent": c.parent,
 22124  	})
 22125  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22126  }
 22127  
 22128  // Do executes the "apigee.organizations.developers.apps.list" call.
 22129  // Any non-2xx status code is an error. Response headers are in either
 22130  // *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header or (if a
 22131  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22132  // googleapi.IsNotModified to check whether the returned error was because
 22133  // http.StatusNotModified was returned.
 22134  func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
 22135  	gensupport.SetOptions(c.urlParams_, opts...)
 22136  	res, err := c.doRequest("json")
 22137  	if res != nil && res.StatusCode == http.StatusNotModified {
 22138  		if res.Body != nil {
 22139  			res.Body.Close()
 22140  		}
 22141  		return nil, gensupport.WrapError(&googleapi.Error{
 22142  			Code:   res.StatusCode,
 22143  			Header: res.Header,
 22144  		})
 22145  	}
 22146  	if err != nil {
 22147  		return nil, err
 22148  	}
 22149  	defer googleapi.CloseBody(res)
 22150  	if err := googleapi.CheckResponse(res); err != nil {
 22151  		return nil, gensupport.WrapError(err)
 22152  	}
 22153  	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
 22154  		ServerResponse: googleapi.ServerResponse{
 22155  			Header:         res.Header,
 22156  			HTTPStatusCode: res.StatusCode,
 22157  		},
 22158  	}
 22159  	target := &ret
 22160  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22161  		return nil, err
 22162  	}
 22163  	return ret, nil
 22164  }
 22165  
 22166  type OrganizationsDevelopersAppsUpdateCall struct {
 22167  	s                               *Service
 22168  	name                            string
 22169  	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
 22170  	urlParams_                      gensupport.URLParams
 22171  	ctx_                            context.Context
 22172  	header_                         http.Header
 22173  }
 22174  
 22175  // Update: Updates the details for a developer app. In addition, you can add an
 22176  // API product to a developer app and automatically generate an API key for the
 22177  // app to use when calling APIs in the API product. If you want to use an
 22178  // existing API key for the API product, add the API product to the API key
 22179  // using the UpdateDeveloperAppKey API. Using this API, you cannot update the
 22180  // following: * App name as it is the primary key used to identify the app and
 22181  // cannot be changed. * Scopes associated with the app. Instead, use the
 22182  // ReplaceDeveloperAppKey API. This API replaces the existing attributes with
 22183  // those specified in the request. Include or exclude any existing attributes
 22184  // that you want to retain or delete, respectively.
 22185  //
 22186  //   - name: Name of the developer app. Use the following structure in your
 22187  //     request: `organizations/{org}/developers/{developer_email}/apps/{app}`.
 22188  func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
 22189  	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22190  	c.name = name
 22191  	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
 22192  	return c
 22193  }
 22194  
 22195  // Fields allows partial responses to be retrieved. See
 22196  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22197  // details.
 22198  func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
 22199  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22200  	return c
 22201  }
 22202  
 22203  // Context sets the context to be used in this call's Do method.
 22204  func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
 22205  	c.ctx_ = ctx
 22206  	return c
 22207  }
 22208  
 22209  // Header returns a http.Header that can be modified by the caller to add
 22210  // headers to the request.
 22211  func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
 22212  	if c.header_ == nil {
 22213  		c.header_ = make(http.Header)
 22214  	}
 22215  	return c.header_
 22216  }
 22217  
 22218  func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
 22219  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22220  	var body io.Reader = nil
 22221  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
 22222  	if err != nil {
 22223  		return nil, err
 22224  	}
 22225  	c.urlParams_.Set("alt", alt)
 22226  	c.urlParams_.Set("prettyPrint", "false")
 22227  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22228  	urls += "?" + c.urlParams_.Encode()
 22229  	req, err := http.NewRequest("PUT", urls, body)
 22230  	if err != nil {
 22231  		return nil, err
 22232  	}
 22233  	req.Header = reqHeaders
 22234  	googleapi.Expand(req.URL, map[string]string{
 22235  		"name": c.name,
 22236  	})
 22237  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22238  }
 22239  
 22240  // Do executes the "apigee.organizations.developers.apps.update" call.
 22241  // Any non-2xx status code is an error. Response headers are in either
 22242  // *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if a response was
 22243  // returned at all) in error.(*googleapi.Error).Header. Use
 22244  // googleapi.IsNotModified to check whether the returned error was because
 22245  // http.StatusNotModified was returned.
 22246  func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
 22247  	gensupport.SetOptions(c.urlParams_, opts...)
 22248  	res, err := c.doRequest("json")
 22249  	if res != nil && res.StatusCode == http.StatusNotModified {
 22250  		if res.Body != nil {
 22251  			res.Body.Close()
 22252  		}
 22253  		return nil, gensupport.WrapError(&googleapi.Error{
 22254  			Code:   res.StatusCode,
 22255  			Header: res.Header,
 22256  		})
 22257  	}
 22258  	if err != nil {
 22259  		return nil, err
 22260  	}
 22261  	defer googleapi.CloseBody(res)
 22262  	if err := googleapi.CheckResponse(res); err != nil {
 22263  		return nil, gensupport.WrapError(err)
 22264  	}
 22265  	ret := &GoogleCloudApigeeV1DeveloperApp{
 22266  		ServerResponse: googleapi.ServerResponse{
 22267  			Header:         res.Header,
 22268  			HTTPStatusCode: res.StatusCode,
 22269  		},
 22270  	}
 22271  	target := &ret
 22272  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22273  		return nil, err
 22274  	}
 22275  	return ret, nil
 22276  }
 22277  
 22278  type OrganizationsDevelopersAppsAttributesDeleteCall struct {
 22279  	s          *Service
 22280  	name       string
 22281  	urlParams_ gensupport.URLParams
 22282  	ctx_       context.Context
 22283  	header_    http.Header
 22284  }
 22285  
 22286  // Delete: Deletes a developer app attribute.
 22287  //
 22288  //   - name: Name of the developer app attribute. Use the following structure in
 22289  //     your request:
 22290  //     `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{at
 22291  //     tribute}`.
 22292  func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
 22293  	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22294  	c.name = name
 22295  	return c
 22296  }
 22297  
 22298  // Fields allows partial responses to be retrieved. See
 22299  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22300  // details.
 22301  func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
 22302  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22303  	return c
 22304  }
 22305  
 22306  // Context sets the context to be used in this call's Do method.
 22307  func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
 22308  	c.ctx_ = ctx
 22309  	return c
 22310  }
 22311  
 22312  // Header returns a http.Header that can be modified by the caller to add
 22313  // headers to the request.
 22314  func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
 22315  	if c.header_ == nil {
 22316  		c.header_ = make(http.Header)
 22317  	}
 22318  	return c.header_
 22319  }
 22320  
 22321  func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
 22322  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22323  	var body io.Reader = nil
 22324  	c.urlParams_.Set("alt", alt)
 22325  	c.urlParams_.Set("prettyPrint", "false")
 22326  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22327  	urls += "?" + c.urlParams_.Encode()
 22328  	req, err := http.NewRequest("DELETE", urls, body)
 22329  	if err != nil {
 22330  		return nil, err
 22331  	}
 22332  	req.Header = reqHeaders
 22333  	googleapi.Expand(req.URL, map[string]string{
 22334  		"name": c.name,
 22335  	})
 22336  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22337  }
 22338  
 22339  // Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
 22340  // Any non-2xx status code is an error. Response headers are in either
 22341  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 22342  // returned at all) in error.(*googleapi.Error).Header. Use
 22343  // googleapi.IsNotModified to check whether the returned error was because
 22344  // http.StatusNotModified was returned.
 22345  func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 22346  	gensupport.SetOptions(c.urlParams_, opts...)
 22347  	res, err := c.doRequest("json")
 22348  	if res != nil && res.StatusCode == http.StatusNotModified {
 22349  		if res.Body != nil {
 22350  			res.Body.Close()
 22351  		}
 22352  		return nil, gensupport.WrapError(&googleapi.Error{
 22353  			Code:   res.StatusCode,
 22354  			Header: res.Header,
 22355  		})
 22356  	}
 22357  	if err != nil {
 22358  		return nil, err
 22359  	}
 22360  	defer googleapi.CloseBody(res)
 22361  	if err := googleapi.CheckResponse(res); err != nil {
 22362  		return nil, gensupport.WrapError(err)
 22363  	}
 22364  	ret := &GoogleCloudApigeeV1Attribute{
 22365  		ServerResponse: googleapi.ServerResponse{
 22366  			Header:         res.Header,
 22367  			HTTPStatusCode: res.StatusCode,
 22368  		},
 22369  	}
 22370  	target := &ret
 22371  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22372  		return nil, err
 22373  	}
 22374  	return ret, nil
 22375  }
 22376  
 22377  type OrganizationsDevelopersAppsAttributesGetCall struct {
 22378  	s            *Service
 22379  	name         string
 22380  	urlParams_   gensupport.URLParams
 22381  	ifNoneMatch_ string
 22382  	ctx_         context.Context
 22383  	header_      http.Header
 22384  }
 22385  
 22386  // Get: Returns a developer app attribute.
 22387  //
 22388  //   - name: Name of the developer app attribute. Use the following structure in
 22389  //     your request:
 22390  //     `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{at
 22391  //     tribute}`.
 22392  func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
 22393  	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22394  	c.name = name
 22395  	return c
 22396  }
 22397  
 22398  // Fields allows partial responses to be retrieved. See
 22399  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22400  // details.
 22401  func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
 22402  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22403  	return c
 22404  }
 22405  
 22406  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22407  // object's ETag matches the given value. This is useful for getting updates
 22408  // only after the object has changed since the last request.
 22409  func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
 22410  	c.ifNoneMatch_ = entityTag
 22411  	return c
 22412  }
 22413  
 22414  // Context sets the context to be used in this call's Do method.
 22415  func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
 22416  	c.ctx_ = ctx
 22417  	return c
 22418  }
 22419  
 22420  // Header returns a http.Header that can be modified by the caller to add
 22421  // headers to the request.
 22422  func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
 22423  	if c.header_ == nil {
 22424  		c.header_ = make(http.Header)
 22425  	}
 22426  	return c.header_
 22427  }
 22428  
 22429  func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
 22430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22431  	if c.ifNoneMatch_ != "" {
 22432  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22433  	}
 22434  	var body io.Reader = nil
 22435  	c.urlParams_.Set("alt", alt)
 22436  	c.urlParams_.Set("prettyPrint", "false")
 22437  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22438  	urls += "?" + c.urlParams_.Encode()
 22439  	req, err := http.NewRequest("GET", urls, body)
 22440  	if err != nil {
 22441  		return nil, err
 22442  	}
 22443  	req.Header = reqHeaders
 22444  	googleapi.Expand(req.URL, map[string]string{
 22445  		"name": c.name,
 22446  	})
 22447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22448  }
 22449  
 22450  // Do executes the "apigee.organizations.developers.apps.attributes.get" call.
 22451  // Any non-2xx status code is an error. Response headers are in either
 22452  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 22453  // returned at all) in error.(*googleapi.Error).Header. Use
 22454  // googleapi.IsNotModified to check whether the returned error was because
 22455  // http.StatusNotModified was returned.
 22456  func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 22457  	gensupport.SetOptions(c.urlParams_, opts...)
 22458  	res, err := c.doRequest("json")
 22459  	if res != nil && res.StatusCode == http.StatusNotModified {
 22460  		if res.Body != nil {
 22461  			res.Body.Close()
 22462  		}
 22463  		return nil, gensupport.WrapError(&googleapi.Error{
 22464  			Code:   res.StatusCode,
 22465  			Header: res.Header,
 22466  		})
 22467  	}
 22468  	if err != nil {
 22469  		return nil, err
 22470  	}
 22471  	defer googleapi.CloseBody(res)
 22472  	if err := googleapi.CheckResponse(res); err != nil {
 22473  		return nil, gensupport.WrapError(err)
 22474  	}
 22475  	ret := &GoogleCloudApigeeV1Attribute{
 22476  		ServerResponse: googleapi.ServerResponse{
 22477  			Header:         res.Header,
 22478  			HTTPStatusCode: res.StatusCode,
 22479  		},
 22480  	}
 22481  	target := &ret
 22482  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22483  		return nil, err
 22484  	}
 22485  	return ret, nil
 22486  }
 22487  
 22488  type OrganizationsDevelopersAppsAttributesListCall struct {
 22489  	s            *Service
 22490  	parent       string
 22491  	urlParams_   gensupport.URLParams
 22492  	ifNoneMatch_ string
 22493  	ctx_         context.Context
 22494  	header_      http.Header
 22495  }
 22496  
 22497  // List: Returns a list of all developer app attributes.
 22498  //
 22499  //   - parent: Name of the developer app. Use the following structure in your
 22500  //     request: `organizations/{org}/developers/{developer_email}/apps/{app}`.
 22501  func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
 22502  	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22503  	c.parent = parent
 22504  	return c
 22505  }
 22506  
 22507  // Fields allows partial responses to be retrieved. See
 22508  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22509  // details.
 22510  func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
 22511  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22512  	return c
 22513  }
 22514  
 22515  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22516  // object's ETag matches the given value. This is useful for getting updates
 22517  // only after the object has changed since the last request.
 22518  func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
 22519  	c.ifNoneMatch_ = entityTag
 22520  	return c
 22521  }
 22522  
 22523  // Context sets the context to be used in this call's Do method.
 22524  func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
 22525  	c.ctx_ = ctx
 22526  	return c
 22527  }
 22528  
 22529  // Header returns a http.Header that can be modified by the caller to add
 22530  // headers to the request.
 22531  func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
 22532  	if c.header_ == nil {
 22533  		c.header_ = make(http.Header)
 22534  	}
 22535  	return c.header_
 22536  }
 22537  
 22538  func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
 22539  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22540  	if c.ifNoneMatch_ != "" {
 22541  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22542  	}
 22543  	var body io.Reader = nil
 22544  	c.urlParams_.Set("alt", alt)
 22545  	c.urlParams_.Set("prettyPrint", "false")
 22546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
 22547  	urls += "?" + c.urlParams_.Encode()
 22548  	req, err := http.NewRequest("GET", urls, body)
 22549  	if err != nil {
 22550  		return nil, err
 22551  	}
 22552  	req.Header = reqHeaders
 22553  	googleapi.Expand(req.URL, map[string]string{
 22554  		"parent": c.parent,
 22555  	})
 22556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22557  }
 22558  
 22559  // Do executes the "apigee.organizations.developers.apps.attributes.list" call.
 22560  // Any non-2xx status code is an error. Response headers are in either
 22561  // *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a response was
 22562  // returned at all) in error.(*googleapi.Error).Header. Use
 22563  // googleapi.IsNotModified to check whether the returned error was because
 22564  // http.StatusNotModified was returned.
 22565  func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
 22566  	gensupport.SetOptions(c.urlParams_, opts...)
 22567  	res, err := c.doRequest("json")
 22568  	if res != nil && res.StatusCode == http.StatusNotModified {
 22569  		if res.Body != nil {
 22570  			res.Body.Close()
 22571  		}
 22572  		return nil, gensupport.WrapError(&googleapi.Error{
 22573  			Code:   res.StatusCode,
 22574  			Header: res.Header,
 22575  		})
 22576  	}
 22577  	if err != nil {
 22578  		return nil, err
 22579  	}
 22580  	defer googleapi.CloseBody(res)
 22581  	if err := googleapi.CheckResponse(res); err != nil {
 22582  		return nil, gensupport.WrapError(err)
 22583  	}
 22584  	ret := &GoogleCloudApigeeV1Attributes{
 22585  		ServerResponse: googleapi.ServerResponse{
 22586  			Header:         res.Header,
 22587  			HTTPStatusCode: res.StatusCode,
 22588  		},
 22589  	}
 22590  	target := &ret
 22591  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22592  		return nil, err
 22593  	}
 22594  	return ret, nil
 22595  }
 22596  
 22597  type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
 22598  	s                            *Service
 22599  	name                         string
 22600  	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
 22601  	urlParams_                   gensupport.URLParams
 22602  	ctx_                         context.Context
 22603  	header_                      http.Header
 22604  }
 22605  
 22606  // UpdateDeveloperAppAttribute: Updates a developer app attribute. **Note**:
 22607  // OAuth access tokens and Key Management Service (KMS) entities (apps,
 22608  // developers, and API products) are cached for 180 seconds (current default).
 22609  // Any custom attributes associated with these entities are cached for at least
 22610  // 180 seconds after the entity is accessed at runtime. Therefore, an
 22611  // `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access
 22612  // token in less than 180 seconds.
 22613  //
 22614  //   - name: Name of the developer app attribute. Use the following structure in
 22615  //     your request:
 22616  //     `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{at
 22617  //     tribute}`.
 22618  func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
 22619  	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22620  	c.name = name
 22621  	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
 22622  	return c
 22623  }
 22624  
 22625  // Fields allows partial responses to be retrieved. See
 22626  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22627  // details.
 22628  func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
 22629  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22630  	return c
 22631  }
 22632  
 22633  // Context sets the context to be used in this call's Do method.
 22634  func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
 22635  	c.ctx_ = ctx
 22636  	return c
 22637  }
 22638  
 22639  // Header returns a http.Header that can be modified by the caller to add
 22640  // headers to the request.
 22641  func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
 22642  	if c.header_ == nil {
 22643  		c.header_ = make(http.Header)
 22644  	}
 22645  	return c.header_
 22646  }
 22647  
 22648  func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
 22649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22650  	var body io.Reader = nil
 22651  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
 22652  	if err != nil {
 22653  		return nil, err
 22654  	}
 22655  	c.urlParams_.Set("alt", alt)
 22656  	c.urlParams_.Set("prettyPrint", "false")
 22657  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22658  	urls += "?" + c.urlParams_.Encode()
 22659  	req, err := http.NewRequest("POST", urls, body)
 22660  	if err != nil {
 22661  		return nil, err
 22662  	}
 22663  	req.Header = reqHeaders
 22664  	googleapi.Expand(req.URL, map[string]string{
 22665  		"name": c.name,
 22666  	})
 22667  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22668  }
 22669  
 22670  // Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
 22671  // Any non-2xx status code is an error. Response headers are in either
 22672  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 22673  // returned at all) in error.(*googleapi.Error).Header. Use
 22674  // googleapi.IsNotModified to check whether the returned error was because
 22675  // http.StatusNotModified was returned.
 22676  func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 22677  	gensupport.SetOptions(c.urlParams_, opts...)
 22678  	res, err := c.doRequest("json")
 22679  	if res != nil && res.StatusCode == http.StatusNotModified {
 22680  		if res.Body != nil {
 22681  			res.Body.Close()
 22682  		}
 22683  		return nil, gensupport.WrapError(&googleapi.Error{
 22684  			Code:   res.StatusCode,
 22685  			Header: res.Header,
 22686  		})
 22687  	}
 22688  	if err != nil {
 22689  		return nil, err
 22690  	}
 22691  	defer googleapi.CloseBody(res)
 22692  	if err := googleapi.CheckResponse(res); err != nil {
 22693  		return nil, gensupport.WrapError(err)
 22694  	}
 22695  	ret := &GoogleCloudApigeeV1Attribute{
 22696  		ServerResponse: googleapi.ServerResponse{
 22697  			Header:         res.Header,
 22698  			HTTPStatusCode: res.StatusCode,
 22699  		},
 22700  	}
 22701  	target := &ret
 22702  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22703  		return nil, err
 22704  	}
 22705  	return ret, nil
 22706  }
 22707  
 22708  type OrganizationsDevelopersAppsKeysCreateCall struct {
 22709  	s                                  *Service
 22710  	parent                             string
 22711  	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
 22712  	urlParams_                         gensupport.URLParams
 22713  	ctx_                               context.Context
 22714  	header_                            http.Header
 22715  }
 22716  
 22717  // Create: Creates a custom consumer key and secret for a developer app. This
 22718  // is particularly useful if you want to migrate existing consumer keys and
 22719  // secrets to Apigee from another system. Consumer keys and secrets can contain
 22720  // letters, numbers, underscores, and hyphens. No other special characters are
 22721  // allowed. To avoid service disruptions, a consumer key and secret should not
 22722  // exceed 2 KBs each. **Note**: When creating the consumer key and secret, an
 22723  // association to API products will not be made. Therefore, you should not
 22724  // specify the associated API products in your request. Instead, use the
 22725  // UpdateDeveloperAppKey API to make the association after the consumer key and
 22726  // secret are created. If a consumer key and secret already exist, you can keep
 22727  // them or delete them using the DeleteDeveloperAppKey API. **Note**: All keys
 22728  // start out with status=approved, even if status=revoked is passed when the
 22729  // key is created. To revoke a key, use the UpdateDeveloperAppKey API.
 22730  //
 22731  //   - parent: Parent of the developer app key. Use the following structure in
 22732  //     your request:
 22733  //     'organizations/{org}/developers/{developerEmail}/apps/{appName}'.
 22734  func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
 22735  	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22736  	c.parent = parent
 22737  	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
 22738  	return c
 22739  }
 22740  
 22741  // Fields allows partial responses to be retrieved. See
 22742  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22743  // details.
 22744  func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
 22745  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22746  	return c
 22747  }
 22748  
 22749  // Context sets the context to be used in this call's Do method.
 22750  func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
 22751  	c.ctx_ = ctx
 22752  	return c
 22753  }
 22754  
 22755  // Header returns a http.Header that can be modified by the caller to add
 22756  // headers to the request.
 22757  func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
 22758  	if c.header_ == nil {
 22759  		c.header_ = make(http.Header)
 22760  	}
 22761  	return c.header_
 22762  }
 22763  
 22764  func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
 22765  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22766  	var body io.Reader = nil
 22767  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
 22768  	if err != nil {
 22769  		return nil, err
 22770  	}
 22771  	c.urlParams_.Set("alt", alt)
 22772  	c.urlParams_.Set("prettyPrint", "false")
 22773  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
 22774  	urls += "?" + c.urlParams_.Encode()
 22775  	req, err := http.NewRequest("POST", urls, body)
 22776  	if err != nil {
 22777  		return nil, err
 22778  	}
 22779  	req.Header = reqHeaders
 22780  	googleapi.Expand(req.URL, map[string]string{
 22781  		"parent": c.parent,
 22782  	})
 22783  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22784  }
 22785  
 22786  // Do executes the "apigee.organizations.developers.apps.keys.create" call.
 22787  // Any non-2xx status code is an error. Response headers are in either
 22788  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 22789  // was returned at all) in error.(*googleapi.Error).Header. Use
 22790  // googleapi.IsNotModified to check whether the returned error was because
 22791  // http.StatusNotModified was returned.
 22792  func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 22793  	gensupport.SetOptions(c.urlParams_, opts...)
 22794  	res, err := c.doRequest("json")
 22795  	if res != nil && res.StatusCode == http.StatusNotModified {
 22796  		if res.Body != nil {
 22797  			res.Body.Close()
 22798  		}
 22799  		return nil, gensupport.WrapError(&googleapi.Error{
 22800  			Code:   res.StatusCode,
 22801  			Header: res.Header,
 22802  		})
 22803  	}
 22804  	if err != nil {
 22805  		return nil, err
 22806  	}
 22807  	defer googleapi.CloseBody(res)
 22808  	if err := googleapi.CheckResponse(res); err != nil {
 22809  		return nil, gensupport.WrapError(err)
 22810  	}
 22811  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 22812  		ServerResponse: googleapi.ServerResponse{
 22813  			Header:         res.Header,
 22814  			HTTPStatusCode: res.StatusCode,
 22815  		},
 22816  	}
 22817  	target := &ret
 22818  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22819  		return nil, err
 22820  	}
 22821  	return ret, nil
 22822  }
 22823  
 22824  type OrganizationsDevelopersAppsKeysDeleteCall struct {
 22825  	s          *Service
 22826  	name       string
 22827  	urlParams_ gensupport.URLParams
 22828  	ctx_       context.Context
 22829  	header_    http.Header
 22830  }
 22831  
 22832  // Delete: Deletes an app's consumer key and removes all API products
 22833  // associated with the app. After the consumer key is deleted, it cannot be
 22834  // used to access any APIs. **Note**: After you delete a consumer key, you may
 22835  // want to: 1. Create a new consumer key and secret for the developer app using
 22836  // the CreateDeveloperAppKey API, and subsequently add an API product to the
 22837  // key using the UpdateDeveloperAppKey API. 2. Delete the developer app, if it
 22838  // is no longer required.
 22839  //
 22840  //   - name: Name of the developer app key. Use the following structure in your
 22841  //     request:
 22842  //     `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`.
 22843  func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
 22844  	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22845  	c.name = name
 22846  	return c
 22847  }
 22848  
 22849  // Fields allows partial responses to be retrieved. See
 22850  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22851  // details.
 22852  func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
 22853  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22854  	return c
 22855  }
 22856  
 22857  // Context sets the context to be used in this call's Do method.
 22858  func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
 22859  	c.ctx_ = ctx
 22860  	return c
 22861  }
 22862  
 22863  // Header returns a http.Header that can be modified by the caller to add
 22864  // headers to the request.
 22865  func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
 22866  	if c.header_ == nil {
 22867  		c.header_ = make(http.Header)
 22868  	}
 22869  	return c.header_
 22870  }
 22871  
 22872  func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
 22873  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22874  	var body io.Reader = nil
 22875  	c.urlParams_.Set("alt", alt)
 22876  	c.urlParams_.Set("prettyPrint", "false")
 22877  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22878  	urls += "?" + c.urlParams_.Encode()
 22879  	req, err := http.NewRequest("DELETE", urls, body)
 22880  	if err != nil {
 22881  		return nil, err
 22882  	}
 22883  	req.Header = reqHeaders
 22884  	googleapi.Expand(req.URL, map[string]string{
 22885  		"name": c.name,
 22886  	})
 22887  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22888  }
 22889  
 22890  // Do executes the "apigee.organizations.developers.apps.keys.delete" call.
 22891  // Any non-2xx status code is an error. Response headers are in either
 22892  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 22893  // was returned at all) in error.(*googleapi.Error).Header. Use
 22894  // googleapi.IsNotModified to check whether the returned error was because
 22895  // http.StatusNotModified was returned.
 22896  func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 22897  	gensupport.SetOptions(c.urlParams_, opts...)
 22898  	res, err := c.doRequest("json")
 22899  	if res != nil && res.StatusCode == http.StatusNotModified {
 22900  		if res.Body != nil {
 22901  			res.Body.Close()
 22902  		}
 22903  		return nil, gensupport.WrapError(&googleapi.Error{
 22904  			Code:   res.StatusCode,
 22905  			Header: res.Header,
 22906  		})
 22907  	}
 22908  	if err != nil {
 22909  		return nil, err
 22910  	}
 22911  	defer googleapi.CloseBody(res)
 22912  	if err := googleapi.CheckResponse(res); err != nil {
 22913  		return nil, gensupport.WrapError(err)
 22914  	}
 22915  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 22916  		ServerResponse: googleapi.ServerResponse{
 22917  			Header:         res.Header,
 22918  			HTTPStatusCode: res.StatusCode,
 22919  		},
 22920  	}
 22921  	target := &ret
 22922  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22923  		return nil, err
 22924  	}
 22925  	return ret, nil
 22926  }
 22927  
 22928  type OrganizationsDevelopersAppsKeysGetCall struct {
 22929  	s            *Service
 22930  	name         string
 22931  	urlParams_   gensupport.URLParams
 22932  	ifNoneMatch_ string
 22933  	ctx_         context.Context
 22934  	header_      http.Header
 22935  }
 22936  
 22937  // Get: Gets details for a consumer key for a developer app, including the key
 22938  // and secret value, associated API products, and other information.
 22939  //
 22940  //   - name: Name of the developer app key. Use the following structure in your
 22941  //     request:
 22942  //     `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`.
 22943  func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
 22944  	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22945  	c.name = name
 22946  	return c
 22947  }
 22948  
 22949  // Fields allows partial responses to be retrieved. See
 22950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22951  // details.
 22952  func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
 22953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22954  	return c
 22955  }
 22956  
 22957  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22958  // object's ETag matches the given value. This is useful for getting updates
 22959  // only after the object has changed since the last request.
 22960  func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
 22961  	c.ifNoneMatch_ = entityTag
 22962  	return c
 22963  }
 22964  
 22965  // Context sets the context to be used in this call's Do method.
 22966  func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
 22967  	c.ctx_ = ctx
 22968  	return c
 22969  }
 22970  
 22971  // Header returns a http.Header that can be modified by the caller to add
 22972  // headers to the request.
 22973  func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
 22974  	if c.header_ == nil {
 22975  		c.header_ = make(http.Header)
 22976  	}
 22977  	return c.header_
 22978  }
 22979  
 22980  func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
 22981  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22982  	if c.ifNoneMatch_ != "" {
 22983  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22984  	}
 22985  	var body io.Reader = nil
 22986  	c.urlParams_.Set("alt", alt)
 22987  	c.urlParams_.Set("prettyPrint", "false")
 22988  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22989  	urls += "?" + c.urlParams_.Encode()
 22990  	req, err := http.NewRequest("GET", urls, body)
 22991  	if err != nil {
 22992  		return nil, err
 22993  	}
 22994  	req.Header = reqHeaders
 22995  	googleapi.Expand(req.URL, map[string]string{
 22996  		"name": c.name,
 22997  	})
 22998  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22999  }
 23000  
 23001  // Do executes the "apigee.organizations.developers.apps.keys.get" call.
 23002  // Any non-2xx status code is an error. Response headers are in either
 23003  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 23004  // was returned at all) in error.(*googleapi.Error).Header. Use
 23005  // googleapi.IsNotModified to check whether the returned error was because
 23006  // http.StatusNotModified was returned.
 23007  func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 23008  	gensupport.SetOptions(c.urlParams_, opts...)
 23009  	res, err := c.doRequest("json")
 23010  	if res != nil && res.StatusCode == http.StatusNotModified {
 23011  		if res.Body != nil {
 23012  			res.Body.Close()
 23013  		}
 23014  		return nil, gensupport.WrapError(&googleapi.Error{
 23015  			Code:   res.StatusCode,
 23016  			Header: res.Header,
 23017  		})
 23018  	}
 23019  	if err != nil {
 23020  		return nil, err
 23021  	}
 23022  	defer googleapi.CloseBody(res)
 23023  	if err := googleapi.CheckResponse(res); err != nil {
 23024  		return nil, gensupport.WrapError(err)
 23025  	}
 23026  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 23027  		ServerResponse: googleapi.ServerResponse{
 23028  			Header:         res.Header,
 23029  			HTTPStatusCode: res.StatusCode,
 23030  		},
 23031  	}
 23032  	target := &ret
 23033  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23034  		return nil, err
 23035  	}
 23036  	return ret, nil
 23037  }
 23038  
 23039  type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
 23040  	s                                  *Service
 23041  	name                               string
 23042  	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
 23043  	urlParams_                         gensupport.URLParams
 23044  	ctx_                               context.Context
 23045  	header_                            http.Header
 23046  }
 23047  
 23048  // ReplaceDeveloperAppKey: Updates the scope of an app. This API replaces the
 23049  // existing scopes with those specified in the request. Include or exclude any
 23050  // existing scopes that you want to retain or delete, respectively. The
 23051  // specified scopes must already be defined for the API products associated
 23052  // with the app. This API sets the `scopes` element under the `apiProducts`
 23053  // element in the attributes of the app.
 23054  //
 23055  //   - name: Name of the developer app key. Use the following structure in your
 23056  //     request:
 23057  //     `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`.
 23058  func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
 23059  	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23060  	c.name = name
 23061  	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
 23062  	return c
 23063  }
 23064  
 23065  // Fields allows partial responses to be retrieved. See
 23066  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23067  // details.
 23068  func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
 23069  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23070  	return c
 23071  }
 23072  
 23073  // Context sets the context to be used in this call's Do method.
 23074  func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
 23075  	c.ctx_ = ctx
 23076  	return c
 23077  }
 23078  
 23079  // Header returns a http.Header that can be modified by the caller to add
 23080  // headers to the request.
 23081  func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
 23082  	if c.header_ == nil {
 23083  		c.header_ = make(http.Header)
 23084  	}
 23085  	return c.header_
 23086  }
 23087  
 23088  func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
 23089  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23090  	var body io.Reader = nil
 23091  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
 23092  	if err != nil {
 23093  		return nil, err
 23094  	}
 23095  	c.urlParams_.Set("alt", alt)
 23096  	c.urlParams_.Set("prettyPrint", "false")
 23097  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23098  	urls += "?" + c.urlParams_.Encode()
 23099  	req, err := http.NewRequest("PUT", urls, body)
 23100  	if err != nil {
 23101  		return nil, err
 23102  	}
 23103  	req.Header = reqHeaders
 23104  	googleapi.Expand(req.URL, map[string]string{
 23105  		"name": c.name,
 23106  	})
 23107  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23108  }
 23109  
 23110  // Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
 23111  // Any non-2xx status code is an error. Response headers are in either
 23112  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 23113  // was returned at all) in error.(*googleapi.Error).Header. Use
 23114  // googleapi.IsNotModified to check whether the returned error was because
 23115  // http.StatusNotModified was returned.
 23116  func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 23117  	gensupport.SetOptions(c.urlParams_, opts...)
 23118  	res, err := c.doRequest("json")
 23119  	if res != nil && res.StatusCode == http.StatusNotModified {
 23120  		if res.Body != nil {
 23121  			res.Body.Close()
 23122  		}
 23123  		return nil, gensupport.WrapError(&googleapi.Error{
 23124  			Code:   res.StatusCode,
 23125  			Header: res.Header,
 23126  		})
 23127  	}
 23128  	if err != nil {
 23129  		return nil, err
 23130  	}
 23131  	defer googleapi.CloseBody(res)
 23132  	if err := googleapi.CheckResponse(res); err != nil {
 23133  		return nil, gensupport.WrapError(err)
 23134  	}
 23135  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 23136  		ServerResponse: googleapi.ServerResponse{
 23137  			Header:         res.Header,
 23138  			HTTPStatusCode: res.StatusCode,
 23139  		},
 23140  	}
 23141  	target := &ret
 23142  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23143  		return nil, err
 23144  	}
 23145  	return ret, nil
 23146  }
 23147  
 23148  type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
 23149  	s                                  *Service
 23150  	name                               string
 23151  	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
 23152  	urlParams_                         gensupport.URLParams
 23153  	ctx_                               context.Context
 23154  	header_                            http.Header
 23155  }
 23156  
 23157  // UpdateDeveloperAppKey: Adds an API product to a developer app key, enabling
 23158  // the app that holds the key to access the API resources bundled in the API
 23159  // product. In addition, you can add attributes to a developer app key. This
 23160  // API replaces the existing attributes with those specified in the request.
 23161  // Include or exclude any existing attributes that you want to retain or
 23162  // delete, respectively. You can use the same key to access all API products
 23163  // associated with the app.
 23164  //
 23165  //   - name: Name of the developer app key. Use the following structure in your
 23166  //     request:
 23167  //     `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`.
 23168  func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
 23169  	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23170  	c.name = name
 23171  	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
 23172  	return c
 23173  }
 23174  
 23175  // Action sets the optional parameter "action": Approve or revoke the consumer
 23176  // key by setting this value to `approve` or `revoke`, respectively. The
 23177  // `Content-Type` header must be set to `application/octet-stream`.
 23178  func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
 23179  	c.urlParams_.Set("action", action)
 23180  	return c
 23181  }
 23182  
 23183  // Fields allows partial responses to be retrieved. See
 23184  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23185  // details.
 23186  func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
 23187  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23188  	return c
 23189  }
 23190  
 23191  // Context sets the context to be used in this call's Do method.
 23192  func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
 23193  	c.ctx_ = ctx
 23194  	return c
 23195  }
 23196  
 23197  // Header returns a http.Header that can be modified by the caller to add
 23198  // headers to the request.
 23199  func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
 23200  	if c.header_ == nil {
 23201  		c.header_ = make(http.Header)
 23202  	}
 23203  	return c.header_
 23204  }
 23205  
 23206  func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
 23207  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23208  	var body io.Reader = nil
 23209  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
 23210  	if err != nil {
 23211  		return nil, err
 23212  	}
 23213  	c.urlParams_.Set("alt", alt)
 23214  	c.urlParams_.Set("prettyPrint", "false")
 23215  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23216  	urls += "?" + c.urlParams_.Encode()
 23217  	req, err := http.NewRequest("POST", urls, body)
 23218  	if err != nil {
 23219  		return nil, err
 23220  	}
 23221  	req.Header = reqHeaders
 23222  	googleapi.Expand(req.URL, map[string]string{
 23223  		"name": c.name,
 23224  	})
 23225  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23226  }
 23227  
 23228  // Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
 23229  // Any non-2xx status code is an error. Response headers are in either
 23230  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 23231  // was returned at all) in error.(*googleapi.Error).Header. Use
 23232  // googleapi.IsNotModified to check whether the returned error was because
 23233  // http.StatusNotModified was returned.
 23234  func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 23235  	gensupport.SetOptions(c.urlParams_, opts...)
 23236  	res, err := c.doRequest("json")
 23237  	if res != nil && res.StatusCode == http.StatusNotModified {
 23238  		if res.Body != nil {
 23239  			res.Body.Close()
 23240  		}
 23241  		return nil, gensupport.WrapError(&googleapi.Error{
 23242  			Code:   res.StatusCode,
 23243  			Header: res.Header,
 23244  		})
 23245  	}
 23246  	if err != nil {
 23247  		return nil, err
 23248  	}
 23249  	defer googleapi.CloseBody(res)
 23250  	if err := googleapi.CheckResponse(res); err != nil {
 23251  		return nil, gensupport.WrapError(err)
 23252  	}
 23253  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 23254  		ServerResponse: googleapi.ServerResponse{
 23255  			Header:         res.Header,
 23256  			HTTPStatusCode: res.StatusCode,
 23257  		},
 23258  	}
 23259  	target := &ret
 23260  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23261  		return nil, err
 23262  	}
 23263  	return ret, nil
 23264  }
 23265  
 23266  type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
 23267  	s          *Service
 23268  	name       string
 23269  	urlParams_ gensupport.URLParams
 23270  	ctx_       context.Context
 23271  	header_    http.Header
 23272  }
 23273  
 23274  // Delete: Removes an API product from an app's consumer key. After the API
 23275  // product is removed, the app cannot access the API resources defined in that
 23276  // API product. **Note**: The consumer key is not removed, only its association
 23277  // with the API product.
 23278  //
 23279  //   - name: Name of the API product in the developer app key in the following
 23280  //     format:
 23281  //     `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/api
 23282  //     products/{apiproduct}`.
 23283  func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
 23284  	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23285  	c.name = name
 23286  	return c
 23287  }
 23288  
 23289  // Fields allows partial responses to be retrieved. See
 23290  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23291  // details.
 23292  func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
 23293  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23294  	return c
 23295  }
 23296  
 23297  // Context sets the context to be used in this call's Do method.
 23298  func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
 23299  	c.ctx_ = ctx
 23300  	return c
 23301  }
 23302  
 23303  // Header returns a http.Header that can be modified by the caller to add
 23304  // headers to the request.
 23305  func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
 23306  	if c.header_ == nil {
 23307  		c.header_ = make(http.Header)
 23308  	}
 23309  	return c.header_
 23310  }
 23311  
 23312  func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
 23313  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23314  	var body io.Reader = nil
 23315  	c.urlParams_.Set("alt", alt)
 23316  	c.urlParams_.Set("prettyPrint", "false")
 23317  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23318  	urls += "?" + c.urlParams_.Encode()
 23319  	req, err := http.NewRequest("DELETE", urls, body)
 23320  	if err != nil {
 23321  		return nil, err
 23322  	}
 23323  	req.Header = reqHeaders
 23324  	googleapi.Expand(req.URL, map[string]string{
 23325  		"name": c.name,
 23326  	})
 23327  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23328  }
 23329  
 23330  // Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call.
 23331  // Any non-2xx status code is an error. Response headers are in either
 23332  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 23333  // was returned at all) in error.(*googleapi.Error).Header. Use
 23334  // googleapi.IsNotModified to check whether the returned error was because
 23335  // http.StatusNotModified was returned.
 23336  func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 23337  	gensupport.SetOptions(c.urlParams_, opts...)
 23338  	res, err := c.doRequest("json")
 23339  	if res != nil && res.StatusCode == http.StatusNotModified {
 23340  		if res.Body != nil {
 23341  			res.Body.Close()
 23342  		}
 23343  		return nil, gensupport.WrapError(&googleapi.Error{
 23344  			Code:   res.StatusCode,
 23345  			Header: res.Header,
 23346  		})
 23347  	}
 23348  	if err != nil {
 23349  		return nil, err
 23350  	}
 23351  	defer googleapi.CloseBody(res)
 23352  	if err := googleapi.CheckResponse(res); err != nil {
 23353  		return nil, gensupport.WrapError(err)
 23354  	}
 23355  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 23356  		ServerResponse: googleapi.ServerResponse{
 23357  			Header:         res.Header,
 23358  			HTTPStatusCode: res.StatusCode,
 23359  		},
 23360  	}
 23361  	target := &ret
 23362  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23363  		return nil, err
 23364  	}
 23365  	return ret, nil
 23366  }
 23367  
 23368  type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
 23369  	s          *Service
 23370  	name       string
 23371  	urlParams_ gensupport.URLParams
 23372  	ctx_       context.Context
 23373  	header_    http.Header
 23374  }
 23375  
 23376  // UpdateDeveloperAppKeyApiProduct: Approves or revokes the consumer key for an
 23377  // API product. After a consumer key is approved, the app can use it to access
 23378  // APIs. A consumer key that is revoked or pending cannot be used to access an
 23379  // API. Any access tokens associated with a revoked consumer key will remain
 23380  // active. However, Apigee checks the status of the consumer key and if set to
 23381  // `revoked` will not allow access to the API.
 23382  //
 23383  //   - name: Name of the API product in the developer app key in the following
 23384  //     format:
 23385  //     `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/api
 23386  //     products/{apiproduct}`.
 23387  func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
 23388  	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23389  	c.name = name
 23390  	return c
 23391  }
 23392  
 23393  // Action sets the optional parameter "action": Approve or revoke the consumer
 23394  // key by setting this value to `approve` or `revoke`, respectively.
 23395  func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
 23396  	c.urlParams_.Set("action", action)
 23397  	return c
 23398  }
 23399  
 23400  // Fields allows partial responses to be retrieved. See
 23401  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23402  // details.
 23403  func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
 23404  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23405  	return c
 23406  }
 23407  
 23408  // Context sets the context to be used in this call's Do method.
 23409  func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
 23410  	c.ctx_ = ctx
 23411  	return c
 23412  }
 23413  
 23414  // Header returns a http.Header that can be modified by the caller to add
 23415  // headers to the request.
 23416  func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
 23417  	if c.header_ == nil {
 23418  		c.header_ = make(http.Header)
 23419  	}
 23420  	return c.header_
 23421  }
 23422  
 23423  func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
 23424  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23425  	var body io.Reader = nil
 23426  	c.urlParams_.Set("alt", alt)
 23427  	c.urlParams_.Set("prettyPrint", "false")
 23428  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23429  	urls += "?" + c.urlParams_.Encode()
 23430  	req, err := http.NewRequest("POST", urls, body)
 23431  	if err != nil {
 23432  		return nil, err
 23433  	}
 23434  	req.Header = reqHeaders
 23435  	googleapi.Expand(req.URL, map[string]string{
 23436  		"name": c.name,
 23437  	})
 23438  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23439  }
 23440  
 23441  // Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
 23442  // Any non-2xx status code is an error. Response headers are in either
 23443  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23444  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23445  // check whether the returned error was because http.StatusNotModified was
 23446  // returned.
 23447  func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23448  	gensupport.SetOptions(c.urlParams_, opts...)
 23449  	res, err := c.doRequest("json")
 23450  	if res != nil && res.StatusCode == http.StatusNotModified {
 23451  		if res.Body != nil {
 23452  			res.Body.Close()
 23453  		}
 23454  		return nil, gensupport.WrapError(&googleapi.Error{
 23455  			Code:   res.StatusCode,
 23456  			Header: res.Header,
 23457  		})
 23458  	}
 23459  	if err != nil {
 23460  		return nil, err
 23461  	}
 23462  	defer googleapi.CloseBody(res)
 23463  	if err := googleapi.CheckResponse(res); err != nil {
 23464  		return nil, gensupport.WrapError(err)
 23465  	}
 23466  	ret := &GoogleProtobufEmpty{
 23467  		ServerResponse: googleapi.ServerResponse{
 23468  			Header:         res.Header,
 23469  			HTTPStatusCode: res.StatusCode,
 23470  		},
 23471  	}
 23472  	target := &ret
 23473  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23474  		return nil, err
 23475  	}
 23476  	return ret, nil
 23477  }
 23478  
 23479  type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
 23480  	s                                  *Service
 23481  	parent                             string
 23482  	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
 23483  	urlParams_                         gensupport.URLParams
 23484  	ctx_                               context.Context
 23485  	header_                            http.Header
 23486  }
 23487  
 23488  // Create: Creates a custom consumer key and secret for a developer app. This
 23489  // is particularly useful if you want to migrate existing consumer keys and
 23490  // secrets to Apigee from another system. Consumer keys and secrets can contain
 23491  // letters, numbers, underscores, and hyphens. No other special characters are
 23492  // allowed. To avoid service disruptions, a consumer key and secret should not
 23493  // exceed 2 KBs each. **Note**: When creating the consumer key and secret, an
 23494  // association to API products will not be made. Therefore, you should not
 23495  // specify the associated API products in your request. Instead, use the
 23496  // UpdateDeveloperAppKey API to make the association after the consumer key and
 23497  // secret are created. If a consumer key and secret already exist, you can keep
 23498  // them or delete them using the DeleteDeveloperAppKey API. **Note**: All keys
 23499  // start out with status=approved, even if status=revoked is passed when the
 23500  // key is created. To revoke a key, use the UpdateDeveloperAppKey API.
 23501  //
 23502  //   - parent: Parent of the developer app key. Use the following structure in
 23503  //     your request:
 23504  //     'organizations/{org}/developers/{developerEmail}/apps/{appName}'.
 23505  func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
 23506  	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23507  	c.parent = parent
 23508  	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
 23509  	return c
 23510  }
 23511  
 23512  // Fields allows partial responses to be retrieved. See
 23513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23514  // details.
 23515  func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
 23516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23517  	return c
 23518  }
 23519  
 23520  // Context sets the context to be used in this call's Do method.
 23521  func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
 23522  	c.ctx_ = ctx
 23523  	return c
 23524  }
 23525  
 23526  // Header returns a http.Header that can be modified by the caller to add
 23527  // headers to the request.
 23528  func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
 23529  	if c.header_ == nil {
 23530  		c.header_ = make(http.Header)
 23531  	}
 23532  	return c.header_
 23533  }
 23534  
 23535  func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
 23536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23537  	var body io.Reader = nil
 23538  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
 23539  	if err != nil {
 23540  		return nil, err
 23541  	}
 23542  	c.urlParams_.Set("alt", alt)
 23543  	c.urlParams_.Set("prettyPrint", "false")
 23544  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
 23545  	urls += "?" + c.urlParams_.Encode()
 23546  	req, err := http.NewRequest("POST", urls, body)
 23547  	if err != nil {
 23548  		return nil, err
 23549  	}
 23550  	req.Header = reqHeaders
 23551  	googleapi.Expand(req.URL, map[string]string{
 23552  		"parent": c.parent,
 23553  	})
 23554  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23555  }
 23556  
 23557  // Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
 23558  // Any non-2xx status code is an error. Response headers are in either
 23559  // *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or (if a response
 23560  // was returned at all) in error.(*googleapi.Error).Header. Use
 23561  // googleapi.IsNotModified to check whether the returned error was because
 23562  // http.StatusNotModified was returned.
 23563  func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
 23564  	gensupport.SetOptions(c.urlParams_, opts...)
 23565  	res, err := c.doRequest("json")
 23566  	if res != nil && res.StatusCode == http.StatusNotModified {
 23567  		if res.Body != nil {
 23568  			res.Body.Close()
 23569  		}
 23570  		return nil, gensupport.WrapError(&googleapi.Error{
 23571  			Code:   res.StatusCode,
 23572  			Header: res.Header,
 23573  		})
 23574  	}
 23575  	if err != nil {
 23576  		return nil, err
 23577  	}
 23578  	defer googleapi.CloseBody(res)
 23579  	if err := googleapi.CheckResponse(res); err != nil {
 23580  		return nil, gensupport.WrapError(err)
 23581  	}
 23582  	ret := &GoogleCloudApigeeV1DeveloperAppKey{
 23583  		ServerResponse: googleapi.ServerResponse{
 23584  			Header:         res.Header,
 23585  			HTTPStatusCode: res.StatusCode,
 23586  		},
 23587  	}
 23588  	target := &ret
 23589  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23590  		return nil, err
 23591  	}
 23592  	return ret, nil
 23593  }
 23594  
 23595  type OrganizationsDevelopersAttributesDeleteCall struct {
 23596  	s          *Service
 23597  	name       string
 23598  	urlParams_ gensupport.URLParams
 23599  	ctx_       context.Context
 23600  	header_    http.Header
 23601  }
 23602  
 23603  // Delete: Deletes a developer attribute.
 23604  //
 23605  //   - name: Name of the developer attribute. Use the following structure in your
 23606  //     request:
 23607  //     `organizations/{org}/developers/{developer_email}/attributes/{attribute}`.
 23608  func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
 23609  	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23610  	c.name = name
 23611  	return c
 23612  }
 23613  
 23614  // Fields allows partial responses to be retrieved. See
 23615  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23616  // details.
 23617  func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
 23618  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23619  	return c
 23620  }
 23621  
 23622  // Context sets the context to be used in this call's Do method.
 23623  func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
 23624  	c.ctx_ = ctx
 23625  	return c
 23626  }
 23627  
 23628  // Header returns a http.Header that can be modified by the caller to add
 23629  // headers to the request.
 23630  func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
 23631  	if c.header_ == nil {
 23632  		c.header_ = make(http.Header)
 23633  	}
 23634  	return c.header_
 23635  }
 23636  
 23637  func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
 23638  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23639  	var body io.Reader = nil
 23640  	c.urlParams_.Set("alt", alt)
 23641  	c.urlParams_.Set("prettyPrint", "false")
 23642  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23643  	urls += "?" + c.urlParams_.Encode()
 23644  	req, err := http.NewRequest("DELETE", urls, body)
 23645  	if err != nil {
 23646  		return nil, err
 23647  	}
 23648  	req.Header = reqHeaders
 23649  	googleapi.Expand(req.URL, map[string]string{
 23650  		"name": c.name,
 23651  	})
 23652  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23653  }
 23654  
 23655  // Do executes the "apigee.organizations.developers.attributes.delete" call.
 23656  // Any non-2xx status code is an error. Response headers are in either
 23657  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 23658  // returned at all) in error.(*googleapi.Error).Header. Use
 23659  // googleapi.IsNotModified to check whether the returned error was because
 23660  // http.StatusNotModified was returned.
 23661  func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 23662  	gensupport.SetOptions(c.urlParams_, opts...)
 23663  	res, err := c.doRequest("json")
 23664  	if res != nil && res.StatusCode == http.StatusNotModified {
 23665  		if res.Body != nil {
 23666  			res.Body.Close()
 23667  		}
 23668  		return nil, gensupport.WrapError(&googleapi.Error{
 23669  			Code:   res.StatusCode,
 23670  			Header: res.Header,
 23671  		})
 23672  	}
 23673  	if err != nil {
 23674  		return nil, err
 23675  	}
 23676  	defer googleapi.CloseBody(res)
 23677  	if err := googleapi.CheckResponse(res); err != nil {
 23678  		return nil, gensupport.WrapError(err)
 23679  	}
 23680  	ret := &GoogleCloudApigeeV1Attribute{
 23681  		ServerResponse: googleapi.ServerResponse{
 23682  			Header:         res.Header,
 23683  			HTTPStatusCode: res.StatusCode,
 23684  		},
 23685  	}
 23686  	target := &ret
 23687  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23688  		return nil, err
 23689  	}
 23690  	return ret, nil
 23691  }
 23692  
 23693  type OrganizationsDevelopersAttributesGetCall struct {
 23694  	s            *Service
 23695  	name         string
 23696  	urlParams_   gensupport.URLParams
 23697  	ifNoneMatch_ string
 23698  	ctx_         context.Context
 23699  	header_      http.Header
 23700  }
 23701  
 23702  // Get: Returns the value of the specified developer attribute.
 23703  //
 23704  //   - name: Name of the developer attribute. Use the following structure in your
 23705  //     request:
 23706  //     `organizations/{org}/developers/{developer_email}/attributes/{attribute}`.
 23707  func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
 23708  	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23709  	c.name = name
 23710  	return c
 23711  }
 23712  
 23713  // Fields allows partial responses to be retrieved. See
 23714  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23715  // details.
 23716  func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
 23717  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23718  	return c
 23719  }
 23720  
 23721  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23722  // object's ETag matches the given value. This is useful for getting updates
 23723  // only after the object has changed since the last request.
 23724  func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
 23725  	c.ifNoneMatch_ = entityTag
 23726  	return c
 23727  }
 23728  
 23729  // Context sets the context to be used in this call's Do method.
 23730  func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
 23731  	c.ctx_ = ctx
 23732  	return c
 23733  }
 23734  
 23735  // Header returns a http.Header that can be modified by the caller to add
 23736  // headers to the request.
 23737  func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
 23738  	if c.header_ == nil {
 23739  		c.header_ = make(http.Header)
 23740  	}
 23741  	return c.header_
 23742  }
 23743  
 23744  func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
 23745  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23746  	if c.ifNoneMatch_ != "" {
 23747  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23748  	}
 23749  	var body io.Reader = nil
 23750  	c.urlParams_.Set("alt", alt)
 23751  	c.urlParams_.Set("prettyPrint", "false")
 23752  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23753  	urls += "?" + c.urlParams_.Encode()
 23754  	req, err := http.NewRequest("GET", urls, body)
 23755  	if err != nil {
 23756  		return nil, err
 23757  	}
 23758  	req.Header = reqHeaders
 23759  	googleapi.Expand(req.URL, map[string]string{
 23760  		"name": c.name,
 23761  	})
 23762  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23763  }
 23764  
 23765  // Do executes the "apigee.organizations.developers.attributes.get" call.
 23766  // Any non-2xx status code is an error. Response headers are in either
 23767  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 23768  // returned at all) in error.(*googleapi.Error).Header. Use
 23769  // googleapi.IsNotModified to check whether the returned error was because
 23770  // http.StatusNotModified was returned.
 23771  func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 23772  	gensupport.SetOptions(c.urlParams_, opts...)
 23773  	res, err := c.doRequest("json")
 23774  	if res != nil && res.StatusCode == http.StatusNotModified {
 23775  		if res.Body != nil {
 23776  			res.Body.Close()
 23777  		}
 23778  		return nil, gensupport.WrapError(&googleapi.Error{
 23779  			Code:   res.StatusCode,
 23780  			Header: res.Header,
 23781  		})
 23782  	}
 23783  	if err != nil {
 23784  		return nil, err
 23785  	}
 23786  	defer googleapi.CloseBody(res)
 23787  	if err := googleapi.CheckResponse(res); err != nil {
 23788  		return nil, gensupport.WrapError(err)
 23789  	}
 23790  	ret := &GoogleCloudApigeeV1Attribute{
 23791  		ServerResponse: googleapi.ServerResponse{
 23792  			Header:         res.Header,
 23793  			HTTPStatusCode: res.StatusCode,
 23794  		},
 23795  	}
 23796  	target := &ret
 23797  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23798  		return nil, err
 23799  	}
 23800  	return ret, nil
 23801  }
 23802  
 23803  type OrganizationsDevelopersAttributesListCall struct {
 23804  	s            *Service
 23805  	parent       string
 23806  	urlParams_   gensupport.URLParams
 23807  	ifNoneMatch_ string
 23808  	ctx_         context.Context
 23809  	header_      http.Header
 23810  }
 23811  
 23812  // List: Returns a list of all developer attributes.
 23813  //
 23814  //   - parent: Email address of the developer for which attributes are being
 23815  //     listed. Use the following structure in your request:
 23816  //     `organizations/{org}/developers/{developer_email}`.
 23817  func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
 23818  	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23819  	c.parent = parent
 23820  	return c
 23821  }
 23822  
 23823  // Fields allows partial responses to be retrieved. See
 23824  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23825  // details.
 23826  func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
 23827  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23828  	return c
 23829  }
 23830  
 23831  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23832  // object's ETag matches the given value. This is useful for getting updates
 23833  // only after the object has changed since the last request.
 23834  func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
 23835  	c.ifNoneMatch_ = entityTag
 23836  	return c
 23837  }
 23838  
 23839  // Context sets the context to be used in this call's Do method.
 23840  func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
 23841  	c.ctx_ = ctx
 23842  	return c
 23843  }
 23844  
 23845  // Header returns a http.Header that can be modified by the caller to add
 23846  // headers to the request.
 23847  func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
 23848  	if c.header_ == nil {
 23849  		c.header_ = make(http.Header)
 23850  	}
 23851  	return c.header_
 23852  }
 23853  
 23854  func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
 23855  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23856  	if c.ifNoneMatch_ != "" {
 23857  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23858  	}
 23859  	var body io.Reader = nil
 23860  	c.urlParams_.Set("alt", alt)
 23861  	c.urlParams_.Set("prettyPrint", "false")
 23862  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
 23863  	urls += "?" + c.urlParams_.Encode()
 23864  	req, err := http.NewRequest("GET", urls, body)
 23865  	if err != nil {
 23866  		return nil, err
 23867  	}
 23868  	req.Header = reqHeaders
 23869  	googleapi.Expand(req.URL, map[string]string{
 23870  		"parent": c.parent,
 23871  	})
 23872  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23873  }
 23874  
 23875  // Do executes the "apigee.organizations.developers.attributes.list" call.
 23876  // Any non-2xx status code is an error. Response headers are in either
 23877  // *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a response was
 23878  // returned at all) in error.(*googleapi.Error).Header. Use
 23879  // googleapi.IsNotModified to check whether the returned error was because
 23880  // http.StatusNotModified was returned.
 23881  func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
 23882  	gensupport.SetOptions(c.urlParams_, opts...)
 23883  	res, err := c.doRequest("json")
 23884  	if res != nil && res.StatusCode == http.StatusNotModified {
 23885  		if res.Body != nil {
 23886  			res.Body.Close()
 23887  		}
 23888  		return nil, gensupport.WrapError(&googleapi.Error{
 23889  			Code:   res.StatusCode,
 23890  			Header: res.Header,
 23891  		})
 23892  	}
 23893  	if err != nil {
 23894  		return nil, err
 23895  	}
 23896  	defer googleapi.CloseBody(res)
 23897  	if err := googleapi.CheckResponse(res); err != nil {
 23898  		return nil, gensupport.WrapError(err)
 23899  	}
 23900  	ret := &GoogleCloudApigeeV1Attributes{
 23901  		ServerResponse: googleapi.ServerResponse{
 23902  			Header:         res.Header,
 23903  			HTTPStatusCode: res.StatusCode,
 23904  		},
 23905  	}
 23906  	target := &ret
 23907  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23908  		return nil, err
 23909  	}
 23910  	return ret, nil
 23911  }
 23912  
 23913  type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
 23914  	s                            *Service
 23915  	name                         string
 23916  	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
 23917  	urlParams_                   gensupport.URLParams
 23918  	ctx_                         context.Context
 23919  	header_                      http.Header
 23920  }
 23921  
 23922  // UpdateDeveloperAttribute: Updates a developer attribute. **Note**: OAuth
 23923  // access tokens and Key Management Service (KMS) entities (apps, developers,
 23924  // and API products) are cached for 180 seconds (default). Any custom
 23925  // attributes associated with these entities are cached for at least 180
 23926  // seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn`
 23927  // element on the OAuthV2 policy won't be able to expire an access token in
 23928  // less than 180 seconds.
 23929  //
 23930  //   - name: Name of the developer attribute. Use the following structure in your
 23931  //     request:
 23932  //     `organizations/{org}/developers/{developer_email}/attributes/{attribute}`.
 23933  func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
 23934  	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23935  	c.name = name
 23936  	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
 23937  	return c
 23938  }
 23939  
 23940  // Fields allows partial responses to be retrieved. See
 23941  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23942  // details.
 23943  func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
 23944  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23945  	return c
 23946  }
 23947  
 23948  // Context sets the context to be used in this call's Do method.
 23949  func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
 23950  	c.ctx_ = ctx
 23951  	return c
 23952  }
 23953  
 23954  // Header returns a http.Header that can be modified by the caller to add
 23955  // headers to the request.
 23956  func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
 23957  	if c.header_ == nil {
 23958  		c.header_ = make(http.Header)
 23959  	}
 23960  	return c.header_
 23961  }
 23962  
 23963  func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
 23964  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23965  	var body io.Reader = nil
 23966  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
 23967  	if err != nil {
 23968  		return nil, err
 23969  	}
 23970  	c.urlParams_.Set("alt", alt)
 23971  	c.urlParams_.Set("prettyPrint", "false")
 23972  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23973  	urls += "?" + c.urlParams_.Encode()
 23974  	req, err := http.NewRequest("POST", urls, body)
 23975  	if err != nil {
 23976  		return nil, err
 23977  	}
 23978  	req.Header = reqHeaders
 23979  	googleapi.Expand(req.URL, map[string]string{
 23980  		"name": c.name,
 23981  	})
 23982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23983  }
 23984  
 23985  // Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
 23986  // Any non-2xx status code is an error. Response headers are in either
 23987  // *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a response was
 23988  // returned at all) in error.(*googleapi.Error).Header. Use
 23989  // googleapi.IsNotModified to check whether the returned error was because
 23990  // http.StatusNotModified was returned.
 23991  func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
 23992  	gensupport.SetOptions(c.urlParams_, opts...)
 23993  	res, err := c.doRequest("json")
 23994  	if res != nil && res.StatusCode == http.StatusNotModified {
 23995  		if res.Body != nil {
 23996  			res.Body.Close()
 23997  		}
 23998  		return nil, gensupport.WrapError(&googleapi.Error{
 23999  			Code:   res.StatusCode,
 24000  			Header: res.Header,
 24001  		})
 24002  	}
 24003  	if err != nil {
 24004  		return nil, err
 24005  	}
 24006  	defer googleapi.CloseBody(res)
 24007  	if err := googleapi.CheckResponse(res); err != nil {
 24008  		return nil, gensupport.WrapError(err)
 24009  	}
 24010  	ret := &GoogleCloudApigeeV1Attribute{
 24011  		ServerResponse: googleapi.ServerResponse{
 24012  			Header:         res.Header,
 24013  			HTTPStatusCode: res.StatusCode,
 24014  		},
 24015  	}
 24016  	target := &ret
 24017  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24018  		return nil, err
 24019  	}
 24020  	return ret, nil
 24021  }
 24022  
 24023  type OrganizationsDevelopersBalanceAdjustCall struct {
 24024  	s                                                *Service
 24025  	name                                             string
 24026  	googlecloudapigeev1adjustdeveloperbalancerequest *GoogleCloudApigeeV1AdjustDeveloperBalanceRequest
 24027  	urlParams_                                       gensupport.URLParams
 24028  	ctx_                                             context.Context
 24029  	header_                                          http.Header
 24030  }
 24031  
 24032  // Adjust: Adjust the prepaid balance for the developer. This API will be used
 24033  // in scenarios where the developer has been under-charged or over-charged.
 24034  //
 24035  //   - name: Account balance for the developer. Use the following structure in
 24036  //     your request: `organizations/{org}/developers/{developer}/balance`.
 24037  func (r *OrganizationsDevelopersBalanceService) Adjust(name string, googlecloudapigeev1adjustdeveloperbalancerequest *GoogleCloudApigeeV1AdjustDeveloperBalanceRequest) *OrganizationsDevelopersBalanceAdjustCall {
 24038  	c := &OrganizationsDevelopersBalanceAdjustCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24039  	c.name = name
 24040  	c.googlecloudapigeev1adjustdeveloperbalancerequest = googlecloudapigeev1adjustdeveloperbalancerequest
 24041  	return c
 24042  }
 24043  
 24044  // Fields allows partial responses to be retrieved. See
 24045  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24046  // details.
 24047  func (c *OrganizationsDevelopersBalanceAdjustCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersBalanceAdjustCall {
 24048  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24049  	return c
 24050  }
 24051  
 24052  // Context sets the context to be used in this call's Do method.
 24053  func (c *OrganizationsDevelopersBalanceAdjustCall) Context(ctx context.Context) *OrganizationsDevelopersBalanceAdjustCall {
 24054  	c.ctx_ = ctx
 24055  	return c
 24056  }
 24057  
 24058  // Header returns a http.Header that can be modified by the caller to add
 24059  // headers to the request.
 24060  func (c *OrganizationsDevelopersBalanceAdjustCall) Header() http.Header {
 24061  	if c.header_ == nil {
 24062  		c.header_ = make(http.Header)
 24063  	}
 24064  	return c.header_
 24065  }
 24066  
 24067  func (c *OrganizationsDevelopersBalanceAdjustCall) doRequest(alt string) (*http.Response, error) {
 24068  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24069  	var body io.Reader = nil
 24070  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1adjustdeveloperbalancerequest)
 24071  	if err != nil {
 24072  		return nil, err
 24073  	}
 24074  	c.urlParams_.Set("alt", alt)
 24075  	c.urlParams_.Set("prettyPrint", "false")
 24076  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:adjust")
 24077  	urls += "?" + c.urlParams_.Encode()
 24078  	req, err := http.NewRequest("POST", urls, body)
 24079  	if err != nil {
 24080  		return nil, err
 24081  	}
 24082  	req.Header = reqHeaders
 24083  	googleapi.Expand(req.URL, map[string]string{
 24084  		"name": c.name,
 24085  	})
 24086  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24087  }
 24088  
 24089  // Do executes the "apigee.organizations.developers.balance.adjust" call.
 24090  // Any non-2xx status code is an error. Response headers are in either
 24091  // *GoogleCloudApigeeV1DeveloperBalance.ServerResponse.Header or (if a response
 24092  // was returned at all) in error.(*googleapi.Error).Header. Use
 24093  // googleapi.IsNotModified to check whether the returned error was because
 24094  // http.StatusNotModified was returned.
 24095  func (c *OrganizationsDevelopersBalanceAdjustCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
 24096  	gensupport.SetOptions(c.urlParams_, opts...)
 24097  	res, err := c.doRequest("json")
 24098  	if res != nil && res.StatusCode == http.StatusNotModified {
 24099  		if res.Body != nil {
 24100  			res.Body.Close()
 24101  		}
 24102  		return nil, gensupport.WrapError(&googleapi.Error{
 24103  			Code:   res.StatusCode,
 24104  			Header: res.Header,
 24105  		})
 24106  	}
 24107  	if err != nil {
 24108  		return nil, err
 24109  	}
 24110  	defer googleapi.CloseBody(res)
 24111  	if err := googleapi.CheckResponse(res); err != nil {
 24112  		return nil, gensupport.WrapError(err)
 24113  	}
 24114  	ret := &GoogleCloudApigeeV1DeveloperBalance{
 24115  		ServerResponse: googleapi.ServerResponse{
 24116  			Header:         res.Header,
 24117  			HTTPStatusCode: res.StatusCode,
 24118  		},
 24119  	}
 24120  	target := &ret
 24121  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24122  		return nil, err
 24123  	}
 24124  	return ret, nil
 24125  }
 24126  
 24127  type OrganizationsDevelopersBalanceCreditCall struct {
 24128  	s                                                *Service
 24129  	name                                             string
 24130  	googlecloudapigeev1creditdeveloperbalancerequest *GoogleCloudApigeeV1CreditDeveloperBalanceRequest
 24131  	urlParams_                                       gensupport.URLParams
 24132  	ctx_                                             context.Context
 24133  	header_                                          http.Header
 24134  }
 24135  
 24136  // Credit: Credits the account balance for the developer.
 24137  //
 24138  //   - name: Account balance for the developer. Use the following structure in
 24139  //     your request: `organizations/{org}/developers/{developer}/balance`.
 24140  func (r *OrganizationsDevelopersBalanceService) Credit(name string, googlecloudapigeev1creditdeveloperbalancerequest *GoogleCloudApigeeV1CreditDeveloperBalanceRequest) *OrganizationsDevelopersBalanceCreditCall {
 24141  	c := &OrganizationsDevelopersBalanceCreditCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24142  	c.name = name
 24143  	c.googlecloudapigeev1creditdeveloperbalancerequest = googlecloudapigeev1creditdeveloperbalancerequest
 24144  	return c
 24145  }
 24146  
 24147  // Fields allows partial responses to be retrieved. See
 24148  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24149  // details.
 24150  func (c *OrganizationsDevelopersBalanceCreditCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersBalanceCreditCall {
 24151  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24152  	return c
 24153  }
 24154  
 24155  // Context sets the context to be used in this call's Do method.
 24156  func (c *OrganizationsDevelopersBalanceCreditCall) Context(ctx context.Context) *OrganizationsDevelopersBalanceCreditCall {
 24157  	c.ctx_ = ctx
 24158  	return c
 24159  }
 24160  
 24161  // Header returns a http.Header that can be modified by the caller to add
 24162  // headers to the request.
 24163  func (c *OrganizationsDevelopersBalanceCreditCall) Header() http.Header {
 24164  	if c.header_ == nil {
 24165  		c.header_ = make(http.Header)
 24166  	}
 24167  	return c.header_
 24168  }
 24169  
 24170  func (c *OrganizationsDevelopersBalanceCreditCall) doRequest(alt string) (*http.Response, error) {
 24171  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24172  	var body io.Reader = nil
 24173  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1creditdeveloperbalancerequest)
 24174  	if err != nil {
 24175  		return nil, err
 24176  	}
 24177  	c.urlParams_.Set("alt", alt)
 24178  	c.urlParams_.Set("prettyPrint", "false")
 24179  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:credit")
 24180  	urls += "?" + c.urlParams_.Encode()
 24181  	req, err := http.NewRequest("POST", urls, body)
 24182  	if err != nil {
 24183  		return nil, err
 24184  	}
 24185  	req.Header = reqHeaders
 24186  	googleapi.Expand(req.URL, map[string]string{
 24187  		"name": c.name,
 24188  	})
 24189  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24190  }
 24191  
 24192  // Do executes the "apigee.organizations.developers.balance.credit" call.
 24193  // Any non-2xx status code is an error. Response headers are in either
 24194  // *GoogleCloudApigeeV1DeveloperBalance.ServerResponse.Header or (if a response
 24195  // was returned at all) in error.(*googleapi.Error).Header. Use
 24196  // googleapi.IsNotModified to check whether the returned error was because
 24197  // http.StatusNotModified was returned.
 24198  func (c *OrganizationsDevelopersBalanceCreditCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
 24199  	gensupport.SetOptions(c.urlParams_, opts...)
 24200  	res, err := c.doRequest("json")
 24201  	if res != nil && res.StatusCode == http.StatusNotModified {
 24202  		if res.Body != nil {
 24203  			res.Body.Close()
 24204  		}
 24205  		return nil, gensupport.WrapError(&googleapi.Error{
 24206  			Code:   res.StatusCode,
 24207  			Header: res.Header,
 24208  		})
 24209  	}
 24210  	if err != nil {
 24211  		return nil, err
 24212  	}
 24213  	defer googleapi.CloseBody(res)
 24214  	if err := googleapi.CheckResponse(res); err != nil {
 24215  		return nil, gensupport.WrapError(err)
 24216  	}
 24217  	ret := &GoogleCloudApigeeV1DeveloperBalance{
 24218  		ServerResponse: googleapi.ServerResponse{
 24219  			Header:         res.Header,
 24220  			HTTPStatusCode: res.StatusCode,
 24221  		},
 24222  	}
 24223  	target := &ret
 24224  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24225  		return nil, err
 24226  	}
 24227  	return ret, nil
 24228  }
 24229  
 24230  type OrganizationsDevelopersSubscriptionsCreateCall struct {
 24231  	s                                        *Service
 24232  	parent                                   string
 24233  	googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription
 24234  	urlParams_                               gensupport.URLParams
 24235  	ctx_                                     context.Context
 24236  	header_                                  http.Header
 24237  }
 24238  
 24239  // Create: Creates a subscription to an API product.
 24240  //
 24241  //   - parent: Email address of the developer that is purchasing a subscription
 24242  //     to the API product. Use the following structure in your request:
 24243  //     `organizations/{org}/developers/{developer_email}`.
 24244  func (r *OrganizationsDevelopersSubscriptionsService) Create(parent string, googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription) *OrganizationsDevelopersSubscriptionsCreateCall {
 24245  	c := &OrganizationsDevelopersSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24246  	c.parent = parent
 24247  	c.googlecloudapigeev1developersubscription = googlecloudapigeev1developersubscription
 24248  	return c
 24249  }
 24250  
 24251  // Fields allows partial responses to be retrieved. See
 24252  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24253  // details.
 24254  func (c *OrganizationsDevelopersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsCreateCall {
 24255  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24256  	return c
 24257  }
 24258  
 24259  // Context sets the context to be used in this call's Do method.
 24260  func (c *OrganizationsDevelopersSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsCreateCall {
 24261  	c.ctx_ = ctx
 24262  	return c
 24263  }
 24264  
 24265  // Header returns a http.Header that can be modified by the caller to add
 24266  // headers to the request.
 24267  func (c *OrganizationsDevelopersSubscriptionsCreateCall) Header() http.Header {
 24268  	if c.header_ == nil {
 24269  		c.header_ = make(http.Header)
 24270  	}
 24271  	return c.header_
 24272  }
 24273  
 24274  func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
 24275  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24276  	var body io.Reader = nil
 24277  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developersubscription)
 24278  	if err != nil {
 24279  		return nil, err
 24280  	}
 24281  	c.urlParams_.Set("alt", alt)
 24282  	c.urlParams_.Set("prettyPrint", "false")
 24283  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
 24284  	urls += "?" + c.urlParams_.Encode()
 24285  	req, err := http.NewRequest("POST", urls, body)
 24286  	if err != nil {
 24287  		return nil, err
 24288  	}
 24289  	req.Header = reqHeaders
 24290  	googleapi.Expand(req.URL, map[string]string{
 24291  		"parent": c.parent,
 24292  	})
 24293  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24294  }
 24295  
 24296  // Do executes the "apigee.organizations.developers.subscriptions.create" call.
 24297  // Any non-2xx status code is an error. Response headers are in either
 24298  // *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or (if a
 24299  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24300  // googleapi.IsNotModified to check whether the returned error was because
 24301  // http.StatusNotModified was returned.
 24302  func (c *OrganizationsDevelopersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
 24303  	gensupport.SetOptions(c.urlParams_, opts...)
 24304  	res, err := c.doRequest("json")
 24305  	if res != nil && res.StatusCode == http.StatusNotModified {
 24306  		if res.Body != nil {
 24307  			res.Body.Close()
 24308  		}
 24309  		return nil, gensupport.WrapError(&googleapi.Error{
 24310  			Code:   res.StatusCode,
 24311  			Header: res.Header,
 24312  		})
 24313  	}
 24314  	if err != nil {
 24315  		return nil, err
 24316  	}
 24317  	defer googleapi.CloseBody(res)
 24318  	if err := googleapi.CheckResponse(res); err != nil {
 24319  		return nil, gensupport.WrapError(err)
 24320  	}
 24321  	ret := &GoogleCloudApigeeV1DeveloperSubscription{
 24322  		ServerResponse: googleapi.ServerResponse{
 24323  			Header:         res.Header,
 24324  			HTTPStatusCode: res.StatusCode,
 24325  		},
 24326  	}
 24327  	target := &ret
 24328  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24329  		return nil, err
 24330  	}
 24331  	return ret, nil
 24332  }
 24333  
 24334  type OrganizationsDevelopersSubscriptionsExpireCall struct {
 24335  	s                                                     *Service
 24336  	name                                                  string
 24337  	googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
 24338  	urlParams_                                            gensupport.URLParams
 24339  	ctx_                                                  context.Context
 24340  	header_                                               http.Header
 24341  }
 24342  
 24343  // Expire: Expires an API product subscription immediately.
 24344  //
 24345  //   - name: Name of the API product subscription. Use the following structure in
 24346  //     your request:
 24347  //     `organizations/{org}/developers/{developer_email}/subscriptions/{subscripti
 24348  //     on}`.
 24349  func (r *OrganizationsDevelopersSubscriptionsService) Expire(name string, googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest) *OrganizationsDevelopersSubscriptionsExpireCall {
 24350  	c := &OrganizationsDevelopersSubscriptionsExpireCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24351  	c.name = name
 24352  	c.googlecloudapigeev1expiredevelopersubscriptionrequest = googlecloudapigeev1expiredevelopersubscriptionrequest
 24353  	return c
 24354  }
 24355  
 24356  // Fields allows partial responses to be retrieved. See
 24357  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24358  // details.
 24359  func (c *OrganizationsDevelopersSubscriptionsExpireCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsExpireCall {
 24360  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24361  	return c
 24362  }
 24363  
 24364  // Context sets the context to be used in this call's Do method.
 24365  func (c *OrganizationsDevelopersSubscriptionsExpireCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsExpireCall {
 24366  	c.ctx_ = ctx
 24367  	return c
 24368  }
 24369  
 24370  // Header returns a http.Header that can be modified by the caller to add
 24371  // headers to the request.
 24372  func (c *OrganizationsDevelopersSubscriptionsExpireCall) Header() http.Header {
 24373  	if c.header_ == nil {
 24374  		c.header_ = make(http.Header)
 24375  	}
 24376  	return c.header_
 24377  }
 24378  
 24379  func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) (*http.Response, error) {
 24380  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24381  	var body io.Reader = nil
 24382  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1expiredevelopersubscriptionrequest)
 24383  	if err != nil {
 24384  		return nil, err
 24385  	}
 24386  	c.urlParams_.Set("alt", alt)
 24387  	c.urlParams_.Set("prettyPrint", "false")
 24388  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:expire")
 24389  	urls += "?" + c.urlParams_.Encode()
 24390  	req, err := http.NewRequest("POST", urls, body)
 24391  	if err != nil {
 24392  		return nil, err
 24393  	}
 24394  	req.Header = reqHeaders
 24395  	googleapi.Expand(req.URL, map[string]string{
 24396  		"name": c.name,
 24397  	})
 24398  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24399  }
 24400  
 24401  // Do executes the "apigee.organizations.developers.subscriptions.expire" call.
 24402  // Any non-2xx status code is an error. Response headers are in either
 24403  // *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or (if a
 24404  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24405  // googleapi.IsNotModified to check whether the returned error was because
 24406  // http.StatusNotModified was returned.
 24407  func (c *OrganizationsDevelopersSubscriptionsExpireCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
 24408  	gensupport.SetOptions(c.urlParams_, opts...)
 24409  	res, err := c.doRequest("json")
 24410  	if res != nil && res.StatusCode == http.StatusNotModified {
 24411  		if res.Body != nil {
 24412  			res.Body.Close()
 24413  		}
 24414  		return nil, gensupport.WrapError(&googleapi.Error{
 24415  			Code:   res.StatusCode,
 24416  			Header: res.Header,
 24417  		})
 24418  	}
 24419  	if err != nil {
 24420  		return nil, err
 24421  	}
 24422  	defer googleapi.CloseBody(res)
 24423  	if err := googleapi.CheckResponse(res); err != nil {
 24424  		return nil, gensupport.WrapError(err)
 24425  	}
 24426  	ret := &GoogleCloudApigeeV1DeveloperSubscription{
 24427  		ServerResponse: googleapi.ServerResponse{
 24428  			Header:         res.Header,
 24429  			HTTPStatusCode: res.StatusCode,
 24430  		},
 24431  	}
 24432  	target := &ret
 24433  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24434  		return nil, err
 24435  	}
 24436  	return ret, nil
 24437  }
 24438  
 24439  type OrganizationsDevelopersSubscriptionsGetCall struct {
 24440  	s            *Service
 24441  	name         string
 24442  	urlParams_   gensupport.URLParams
 24443  	ifNoneMatch_ string
 24444  	ctx_         context.Context
 24445  	header_      http.Header
 24446  }
 24447  
 24448  // Get: Gets details for an API product subscription.
 24449  //
 24450  //   - name: Name of the API product subscription. Use the following structure in
 24451  //     your request:
 24452  //     `organizations/{org}/developers/{developer_email}/subscriptions/{subscripti
 24453  //     on}`.
 24454  func (r *OrganizationsDevelopersSubscriptionsService) Get(name string) *OrganizationsDevelopersSubscriptionsGetCall {
 24455  	c := &OrganizationsDevelopersSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24456  	c.name = name
 24457  	return c
 24458  }
 24459  
 24460  // Fields allows partial responses to be retrieved. See
 24461  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24462  // details.
 24463  func (c *OrganizationsDevelopersSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsGetCall {
 24464  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24465  	return c
 24466  }
 24467  
 24468  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24469  // object's ETag matches the given value. This is useful for getting updates
 24470  // only after the object has changed since the last request.
 24471  func (c *OrganizationsDevelopersSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsGetCall {
 24472  	c.ifNoneMatch_ = entityTag
 24473  	return c
 24474  }
 24475  
 24476  // Context sets the context to be used in this call's Do method.
 24477  func (c *OrganizationsDevelopersSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsGetCall {
 24478  	c.ctx_ = ctx
 24479  	return c
 24480  }
 24481  
 24482  // Header returns a http.Header that can be modified by the caller to add
 24483  // headers to the request.
 24484  func (c *OrganizationsDevelopersSubscriptionsGetCall) Header() http.Header {
 24485  	if c.header_ == nil {
 24486  		c.header_ = make(http.Header)
 24487  	}
 24488  	return c.header_
 24489  }
 24490  
 24491  func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
 24492  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24493  	if c.ifNoneMatch_ != "" {
 24494  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24495  	}
 24496  	var body io.Reader = nil
 24497  	c.urlParams_.Set("alt", alt)
 24498  	c.urlParams_.Set("prettyPrint", "false")
 24499  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24500  	urls += "?" + c.urlParams_.Encode()
 24501  	req, err := http.NewRequest("GET", urls, body)
 24502  	if err != nil {
 24503  		return nil, err
 24504  	}
 24505  	req.Header = reqHeaders
 24506  	googleapi.Expand(req.URL, map[string]string{
 24507  		"name": c.name,
 24508  	})
 24509  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24510  }
 24511  
 24512  // Do executes the "apigee.organizations.developers.subscriptions.get" call.
 24513  // Any non-2xx status code is an error. Response headers are in either
 24514  // *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or (if a
 24515  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24516  // googleapi.IsNotModified to check whether the returned error was because
 24517  // http.StatusNotModified was returned.
 24518  func (c *OrganizationsDevelopersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
 24519  	gensupport.SetOptions(c.urlParams_, opts...)
 24520  	res, err := c.doRequest("json")
 24521  	if res != nil && res.StatusCode == http.StatusNotModified {
 24522  		if res.Body != nil {
 24523  			res.Body.Close()
 24524  		}
 24525  		return nil, gensupport.WrapError(&googleapi.Error{
 24526  			Code:   res.StatusCode,
 24527  			Header: res.Header,
 24528  		})
 24529  	}
 24530  	if err != nil {
 24531  		return nil, err
 24532  	}
 24533  	defer googleapi.CloseBody(res)
 24534  	if err := googleapi.CheckResponse(res); err != nil {
 24535  		return nil, gensupport.WrapError(err)
 24536  	}
 24537  	ret := &GoogleCloudApigeeV1DeveloperSubscription{
 24538  		ServerResponse: googleapi.ServerResponse{
 24539  			Header:         res.Header,
 24540  			HTTPStatusCode: res.StatusCode,
 24541  		},
 24542  	}
 24543  	target := &ret
 24544  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24545  		return nil, err
 24546  	}
 24547  	return ret, nil
 24548  }
 24549  
 24550  type OrganizationsDevelopersSubscriptionsListCall struct {
 24551  	s            *Service
 24552  	parent       string
 24553  	urlParams_   gensupport.URLParams
 24554  	ifNoneMatch_ string
 24555  	ctx_         context.Context
 24556  	header_      http.Header
 24557  }
 24558  
 24559  // List: Lists all API product subscriptions for a developer.
 24560  //
 24561  //   - parent: Email address of the developer. Use the following structure in
 24562  //     your request: `organizations/{org}/developers/{developer_email}`.
 24563  func (r *OrganizationsDevelopersSubscriptionsService) List(parent string) *OrganizationsDevelopersSubscriptionsListCall {
 24564  	c := &OrganizationsDevelopersSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24565  	c.parent = parent
 24566  	return c
 24567  }
 24568  
 24569  // Count sets the optional parameter "count": Number of API product
 24570  // subscriptions to return in the API call. Use with `startKey` to provide more
 24571  // targeted filtering. Defaults to 100. The maximum limit is 1000.
 24572  func (c *OrganizationsDevelopersSubscriptionsListCall) Count(count int64) *OrganizationsDevelopersSubscriptionsListCall {
 24573  	c.urlParams_.Set("count", fmt.Sprint(count))
 24574  	return c
 24575  }
 24576  
 24577  // StartKey sets the optional parameter "startKey": Name of the API product
 24578  // subscription from which to start displaying the list of subscriptions. If
 24579  // omitted, the list starts from the first item. For example, to view the API
 24580  // product subscriptions from 51-150, set the value of `startKey` to the name
 24581  // of the 51st subscription and set the value of `count` to 100.
 24582  func (c *OrganizationsDevelopersSubscriptionsListCall) StartKey(startKey string) *OrganizationsDevelopersSubscriptionsListCall {
 24583  	c.urlParams_.Set("startKey", startKey)
 24584  	return c
 24585  }
 24586  
 24587  // Fields allows partial responses to be retrieved. See
 24588  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24589  // details.
 24590  func (c *OrganizationsDevelopersSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsListCall {
 24591  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24592  	return c
 24593  }
 24594  
 24595  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24596  // object's ETag matches the given value. This is useful for getting updates
 24597  // only after the object has changed since the last request.
 24598  func (c *OrganizationsDevelopersSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsListCall {
 24599  	c.ifNoneMatch_ = entityTag
 24600  	return c
 24601  }
 24602  
 24603  // Context sets the context to be used in this call's Do method.
 24604  func (c *OrganizationsDevelopersSubscriptionsListCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsListCall {
 24605  	c.ctx_ = ctx
 24606  	return c
 24607  }
 24608  
 24609  // Header returns a http.Header that can be modified by the caller to add
 24610  // headers to the request.
 24611  func (c *OrganizationsDevelopersSubscriptionsListCall) Header() http.Header {
 24612  	if c.header_ == nil {
 24613  		c.header_ = make(http.Header)
 24614  	}
 24615  	return c.header_
 24616  }
 24617  
 24618  func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
 24619  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24620  	if c.ifNoneMatch_ != "" {
 24621  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24622  	}
 24623  	var body io.Reader = nil
 24624  	c.urlParams_.Set("alt", alt)
 24625  	c.urlParams_.Set("prettyPrint", "false")
 24626  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
 24627  	urls += "?" + c.urlParams_.Encode()
 24628  	req, err := http.NewRequest("GET", urls, body)
 24629  	if err != nil {
 24630  		return nil, err
 24631  	}
 24632  	req.Header = reqHeaders
 24633  	googleapi.Expand(req.URL, map[string]string{
 24634  		"parent": c.parent,
 24635  	})
 24636  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24637  }
 24638  
 24639  // Do executes the "apigee.organizations.developers.subscriptions.list" call.
 24640  // Any non-2xx status code is an error. Response headers are in either
 24641  // *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.ServerResponse.Header
 24642  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 24643  // Use googleapi.IsNotModified to check whether the returned error was because
 24644  // http.StatusNotModified was returned.
 24645  func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse, error) {
 24646  	gensupport.SetOptions(c.urlParams_, opts...)
 24647  	res, err := c.doRequest("json")
 24648  	if res != nil && res.StatusCode == http.StatusNotModified {
 24649  		if res.Body != nil {
 24650  			res.Body.Close()
 24651  		}
 24652  		return nil, gensupport.WrapError(&googleapi.Error{
 24653  			Code:   res.StatusCode,
 24654  			Header: res.Header,
 24655  		})
 24656  	}
 24657  	if err != nil {
 24658  		return nil, err
 24659  	}
 24660  	defer googleapi.CloseBody(res)
 24661  	if err := googleapi.CheckResponse(res); err != nil {
 24662  		return nil, gensupport.WrapError(err)
 24663  	}
 24664  	ret := &GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse{
 24665  		ServerResponse: googleapi.ServerResponse{
 24666  			Header:         res.Header,
 24667  			HTTPStatusCode: res.StatusCode,
 24668  		},
 24669  	}
 24670  	target := &ret
 24671  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24672  		return nil, err
 24673  	}
 24674  	return ret, nil
 24675  }
 24676  
 24677  type OrganizationsEndpointAttachmentsCreateCall struct {
 24678  	s                                     *Service
 24679  	parent                                string
 24680  	googlecloudapigeev1endpointattachment *GoogleCloudApigeeV1EndpointAttachment
 24681  	urlParams_                            gensupport.URLParams
 24682  	ctx_                                  context.Context
 24683  	header_                               http.Header
 24684  }
 24685  
 24686  // Create: Creates an endpoint attachment. **Note:** Not supported for Apigee
 24687  // hybrid.
 24688  //
 24689  // - parent: Organization the endpoint attachment will be created in.
 24690  func (r *OrganizationsEndpointAttachmentsService) Create(parent string, googlecloudapigeev1endpointattachment *GoogleCloudApigeeV1EndpointAttachment) *OrganizationsEndpointAttachmentsCreateCall {
 24691  	c := &OrganizationsEndpointAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24692  	c.parent = parent
 24693  	c.googlecloudapigeev1endpointattachment = googlecloudapigeev1endpointattachment
 24694  	return c
 24695  }
 24696  
 24697  // EndpointAttachmentId sets the optional parameter "endpointAttachmentId": ID
 24698  // to use for the endpoint attachment. ID must start with a lowercase letter
 24699  // followed by up to 31 lowercase letters, numbers, or hyphens, and cannot end
 24700  // with a hyphen. The minimum length is 2.
 24701  func (c *OrganizationsEndpointAttachmentsCreateCall) EndpointAttachmentId(endpointAttachmentId string) *OrganizationsEndpointAttachmentsCreateCall {
 24702  	c.urlParams_.Set("endpointAttachmentId", endpointAttachmentId)
 24703  	return c
 24704  }
 24705  
 24706  // Fields allows partial responses to be retrieved. See
 24707  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24708  // details.
 24709  func (c *OrganizationsEndpointAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsCreateCall {
 24710  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24711  	return c
 24712  }
 24713  
 24714  // Context sets the context to be used in this call's Do method.
 24715  func (c *OrganizationsEndpointAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsCreateCall {
 24716  	c.ctx_ = ctx
 24717  	return c
 24718  }
 24719  
 24720  // Header returns a http.Header that can be modified by the caller to add
 24721  // headers to the request.
 24722  func (c *OrganizationsEndpointAttachmentsCreateCall) Header() http.Header {
 24723  	if c.header_ == nil {
 24724  		c.header_ = make(http.Header)
 24725  	}
 24726  	return c.header_
 24727  }
 24728  
 24729  func (c *OrganizationsEndpointAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 24730  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24731  	var body io.Reader = nil
 24732  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1endpointattachment)
 24733  	if err != nil {
 24734  		return nil, err
 24735  	}
 24736  	c.urlParams_.Set("alt", alt)
 24737  	c.urlParams_.Set("prettyPrint", "false")
 24738  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpointAttachments")
 24739  	urls += "?" + c.urlParams_.Encode()
 24740  	req, err := http.NewRequest("POST", urls, body)
 24741  	if err != nil {
 24742  		return nil, err
 24743  	}
 24744  	req.Header = reqHeaders
 24745  	googleapi.Expand(req.URL, map[string]string{
 24746  		"parent": c.parent,
 24747  	})
 24748  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24749  }
 24750  
 24751  // Do executes the "apigee.organizations.endpointAttachments.create" call.
 24752  // Any non-2xx status code is an error. Response headers are in either
 24753  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24754  // returned at all) in error.(*googleapi.Error).Header. Use
 24755  // googleapi.IsNotModified to check whether the returned error was because
 24756  // http.StatusNotModified was returned.
 24757  func (c *OrganizationsEndpointAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24758  	gensupport.SetOptions(c.urlParams_, opts...)
 24759  	res, err := c.doRequest("json")
 24760  	if res != nil && res.StatusCode == http.StatusNotModified {
 24761  		if res.Body != nil {
 24762  			res.Body.Close()
 24763  		}
 24764  		return nil, gensupport.WrapError(&googleapi.Error{
 24765  			Code:   res.StatusCode,
 24766  			Header: res.Header,
 24767  		})
 24768  	}
 24769  	if err != nil {
 24770  		return nil, err
 24771  	}
 24772  	defer googleapi.CloseBody(res)
 24773  	if err := googleapi.CheckResponse(res); err != nil {
 24774  		return nil, gensupport.WrapError(err)
 24775  	}
 24776  	ret := &GoogleLongrunningOperation{
 24777  		ServerResponse: googleapi.ServerResponse{
 24778  			Header:         res.Header,
 24779  			HTTPStatusCode: res.StatusCode,
 24780  		},
 24781  	}
 24782  	target := &ret
 24783  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24784  		return nil, err
 24785  	}
 24786  	return ret, nil
 24787  }
 24788  
 24789  type OrganizationsEndpointAttachmentsDeleteCall struct {
 24790  	s          *Service
 24791  	name       string
 24792  	urlParams_ gensupport.URLParams
 24793  	ctx_       context.Context
 24794  	header_    http.Header
 24795  }
 24796  
 24797  // Delete: Deletes an endpoint attachment.
 24798  //
 24799  //   - name: Name of the endpoint attachment. Use the following structure in your
 24800  //     request: `organizations/{org}/endpointAttachments/{endpoint_attachment}`.
 24801  func (r *OrganizationsEndpointAttachmentsService) Delete(name string) *OrganizationsEndpointAttachmentsDeleteCall {
 24802  	c := &OrganizationsEndpointAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24803  	c.name = name
 24804  	return c
 24805  }
 24806  
 24807  // Fields allows partial responses to be retrieved. See
 24808  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24809  // details.
 24810  func (c *OrganizationsEndpointAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsDeleteCall {
 24811  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24812  	return c
 24813  }
 24814  
 24815  // Context sets the context to be used in this call's Do method.
 24816  func (c *OrganizationsEndpointAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsDeleteCall {
 24817  	c.ctx_ = ctx
 24818  	return c
 24819  }
 24820  
 24821  // Header returns a http.Header that can be modified by the caller to add
 24822  // headers to the request.
 24823  func (c *OrganizationsEndpointAttachmentsDeleteCall) Header() http.Header {
 24824  	if c.header_ == nil {
 24825  		c.header_ = make(http.Header)
 24826  	}
 24827  	return c.header_
 24828  }
 24829  
 24830  func (c *OrganizationsEndpointAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 24831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24832  	var body io.Reader = nil
 24833  	c.urlParams_.Set("alt", alt)
 24834  	c.urlParams_.Set("prettyPrint", "false")
 24835  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24836  	urls += "?" + c.urlParams_.Encode()
 24837  	req, err := http.NewRequest("DELETE", urls, body)
 24838  	if err != nil {
 24839  		return nil, err
 24840  	}
 24841  	req.Header = reqHeaders
 24842  	googleapi.Expand(req.URL, map[string]string{
 24843  		"name": c.name,
 24844  	})
 24845  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24846  }
 24847  
 24848  // Do executes the "apigee.organizations.endpointAttachments.delete" call.
 24849  // Any non-2xx status code is an error. Response headers are in either
 24850  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24851  // returned at all) in error.(*googleapi.Error).Header. Use
 24852  // googleapi.IsNotModified to check whether the returned error was because
 24853  // http.StatusNotModified was returned.
 24854  func (c *OrganizationsEndpointAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24855  	gensupport.SetOptions(c.urlParams_, opts...)
 24856  	res, err := c.doRequest("json")
 24857  	if res != nil && res.StatusCode == http.StatusNotModified {
 24858  		if res.Body != nil {
 24859  			res.Body.Close()
 24860  		}
 24861  		return nil, gensupport.WrapError(&googleapi.Error{
 24862  			Code:   res.StatusCode,
 24863  			Header: res.Header,
 24864  		})
 24865  	}
 24866  	if err != nil {
 24867  		return nil, err
 24868  	}
 24869  	defer googleapi.CloseBody(res)
 24870  	if err := googleapi.CheckResponse(res); err != nil {
 24871  		return nil, gensupport.WrapError(err)
 24872  	}
 24873  	ret := &GoogleLongrunningOperation{
 24874  		ServerResponse: googleapi.ServerResponse{
 24875  			Header:         res.Header,
 24876  			HTTPStatusCode: res.StatusCode,
 24877  		},
 24878  	}
 24879  	target := &ret
 24880  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24881  		return nil, err
 24882  	}
 24883  	return ret, nil
 24884  }
 24885  
 24886  type OrganizationsEndpointAttachmentsGetCall struct {
 24887  	s            *Service
 24888  	name         string
 24889  	urlParams_   gensupport.URLParams
 24890  	ifNoneMatch_ string
 24891  	ctx_         context.Context
 24892  	header_      http.Header
 24893  }
 24894  
 24895  // Get: Gets the endpoint attachment.
 24896  //
 24897  //   - name: Name of the endpoint attachment. Use the following structure in your
 24898  //     request: `organizations/{org}/endpointAttachments/{endpoint_attachment}`.
 24899  func (r *OrganizationsEndpointAttachmentsService) Get(name string) *OrganizationsEndpointAttachmentsGetCall {
 24900  	c := &OrganizationsEndpointAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24901  	c.name = name
 24902  	return c
 24903  }
 24904  
 24905  // Fields allows partial responses to be retrieved. See
 24906  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24907  // details.
 24908  func (c *OrganizationsEndpointAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsGetCall {
 24909  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24910  	return c
 24911  }
 24912  
 24913  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24914  // object's ETag matches the given value. This is useful for getting updates
 24915  // only after the object has changed since the last request.
 24916  func (c *OrganizationsEndpointAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEndpointAttachmentsGetCall {
 24917  	c.ifNoneMatch_ = entityTag
 24918  	return c
 24919  }
 24920  
 24921  // Context sets the context to be used in this call's Do method.
 24922  func (c *OrganizationsEndpointAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsGetCall {
 24923  	c.ctx_ = ctx
 24924  	return c
 24925  }
 24926  
 24927  // Header returns a http.Header that can be modified by the caller to add
 24928  // headers to the request.
 24929  func (c *OrganizationsEndpointAttachmentsGetCall) Header() http.Header {
 24930  	if c.header_ == nil {
 24931  		c.header_ = make(http.Header)
 24932  	}
 24933  	return c.header_
 24934  }
 24935  
 24936  func (c *OrganizationsEndpointAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
 24937  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24938  	if c.ifNoneMatch_ != "" {
 24939  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24940  	}
 24941  	var body io.Reader = nil
 24942  	c.urlParams_.Set("alt", alt)
 24943  	c.urlParams_.Set("prettyPrint", "false")
 24944  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24945  	urls += "?" + c.urlParams_.Encode()
 24946  	req, err := http.NewRequest("GET", urls, body)
 24947  	if err != nil {
 24948  		return nil, err
 24949  	}
 24950  	req.Header = reqHeaders
 24951  	googleapi.Expand(req.URL, map[string]string{
 24952  		"name": c.name,
 24953  	})
 24954  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24955  }
 24956  
 24957  // Do executes the "apigee.organizations.endpointAttachments.get" call.
 24958  // Any non-2xx status code is an error. Response headers are in either
 24959  // *GoogleCloudApigeeV1EndpointAttachment.ServerResponse.Header or (if a
 24960  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24961  // googleapi.IsNotModified to check whether the returned error was because
 24962  // http.StatusNotModified was returned.
 24963  func (c *OrganizationsEndpointAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EndpointAttachment, error) {
 24964  	gensupport.SetOptions(c.urlParams_, opts...)
 24965  	res, err := c.doRequest("json")
 24966  	if res != nil && res.StatusCode == http.StatusNotModified {
 24967  		if res.Body != nil {
 24968  			res.Body.Close()
 24969  		}
 24970  		return nil, gensupport.WrapError(&googleapi.Error{
 24971  			Code:   res.StatusCode,
 24972  			Header: res.Header,
 24973  		})
 24974  	}
 24975  	if err != nil {
 24976  		return nil, err
 24977  	}
 24978  	defer googleapi.CloseBody(res)
 24979  	if err := googleapi.CheckResponse(res); err != nil {
 24980  		return nil, gensupport.WrapError(err)
 24981  	}
 24982  	ret := &GoogleCloudApigeeV1EndpointAttachment{
 24983  		ServerResponse: googleapi.ServerResponse{
 24984  			Header:         res.Header,
 24985  			HTTPStatusCode: res.StatusCode,
 24986  		},
 24987  	}
 24988  	target := &ret
 24989  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24990  		return nil, err
 24991  	}
 24992  	return ret, nil
 24993  }
 24994  
 24995  type OrganizationsEndpointAttachmentsListCall struct {
 24996  	s            *Service
 24997  	parent       string
 24998  	urlParams_   gensupport.URLParams
 24999  	ifNoneMatch_ string
 25000  	ctx_         context.Context
 25001  	header_      http.Header
 25002  }
 25003  
 25004  // List: Lists the endpoint attachments in an organization.
 25005  //
 25006  //   - parent: Name of the organization for which to list endpoint attachments.
 25007  //     Use the following structure in your request: `organizations/{org}`.
 25008  func (r *OrganizationsEndpointAttachmentsService) List(parent string) *OrganizationsEndpointAttachmentsListCall {
 25009  	c := &OrganizationsEndpointAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25010  	c.parent = parent
 25011  	return c
 25012  }
 25013  
 25014  // PageSize sets the optional parameter "pageSize": Maximum number of endpoint
 25015  // attachments to return. If unspecified, at most 25 attachments will be
 25016  // returned.
 25017  func (c *OrganizationsEndpointAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEndpointAttachmentsListCall {
 25018  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25019  	return c
 25020  }
 25021  
 25022  // PageToken sets the optional parameter "pageToken": Page token, returned from
 25023  // a previous `ListEndpointAttachments` call, that you can use to retrieve the
 25024  // next page.
 25025  func (c *OrganizationsEndpointAttachmentsListCall) PageToken(pageToken string) *OrganizationsEndpointAttachmentsListCall {
 25026  	c.urlParams_.Set("pageToken", pageToken)
 25027  	return c
 25028  }
 25029  
 25030  // Fields allows partial responses to be retrieved. See
 25031  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25032  // details.
 25033  func (c *OrganizationsEndpointAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsListCall {
 25034  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25035  	return c
 25036  }
 25037  
 25038  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25039  // object's ETag matches the given value. This is useful for getting updates
 25040  // only after the object has changed since the last request.
 25041  func (c *OrganizationsEndpointAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEndpointAttachmentsListCall {
 25042  	c.ifNoneMatch_ = entityTag
 25043  	return c
 25044  }
 25045  
 25046  // Context sets the context to be used in this call's Do method.
 25047  func (c *OrganizationsEndpointAttachmentsListCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsListCall {
 25048  	c.ctx_ = ctx
 25049  	return c
 25050  }
 25051  
 25052  // Header returns a http.Header that can be modified by the caller to add
 25053  // headers to the request.
 25054  func (c *OrganizationsEndpointAttachmentsListCall) Header() http.Header {
 25055  	if c.header_ == nil {
 25056  		c.header_ = make(http.Header)
 25057  	}
 25058  	return c.header_
 25059  }
 25060  
 25061  func (c *OrganizationsEndpointAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
 25062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25063  	if c.ifNoneMatch_ != "" {
 25064  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25065  	}
 25066  	var body io.Reader = nil
 25067  	c.urlParams_.Set("alt", alt)
 25068  	c.urlParams_.Set("prettyPrint", "false")
 25069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpointAttachments")
 25070  	urls += "?" + c.urlParams_.Encode()
 25071  	req, err := http.NewRequest("GET", urls, body)
 25072  	if err != nil {
 25073  		return nil, err
 25074  	}
 25075  	req.Header = reqHeaders
 25076  	googleapi.Expand(req.URL, map[string]string{
 25077  		"parent": c.parent,
 25078  	})
 25079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25080  }
 25081  
 25082  // Do executes the "apigee.organizations.endpointAttachments.list" call.
 25083  // Any non-2xx status code is an error. Response headers are in either
 25084  // *GoogleCloudApigeeV1ListEndpointAttachmentsResponse.ServerResponse.Header or
 25085  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25086  // googleapi.IsNotModified to check whether the returned error was because
 25087  // http.StatusNotModified was returned.
 25088  func (c *OrganizationsEndpointAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEndpointAttachmentsResponse, error) {
 25089  	gensupport.SetOptions(c.urlParams_, opts...)
 25090  	res, err := c.doRequest("json")
 25091  	if res != nil && res.StatusCode == http.StatusNotModified {
 25092  		if res.Body != nil {
 25093  			res.Body.Close()
 25094  		}
 25095  		return nil, gensupport.WrapError(&googleapi.Error{
 25096  			Code:   res.StatusCode,
 25097  			Header: res.Header,
 25098  		})
 25099  	}
 25100  	if err != nil {
 25101  		return nil, err
 25102  	}
 25103  	defer googleapi.CloseBody(res)
 25104  	if err := googleapi.CheckResponse(res); err != nil {
 25105  		return nil, gensupport.WrapError(err)
 25106  	}
 25107  	ret := &GoogleCloudApigeeV1ListEndpointAttachmentsResponse{
 25108  		ServerResponse: googleapi.ServerResponse{
 25109  			Header:         res.Header,
 25110  			HTTPStatusCode: res.StatusCode,
 25111  		},
 25112  	}
 25113  	target := &ret
 25114  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25115  		return nil, err
 25116  	}
 25117  	return ret, nil
 25118  }
 25119  
 25120  // Pages invokes f for each page of results.
 25121  // A non-nil error returned from f will halt the iteration.
 25122  // The provided context supersedes any context provided to the Context method.
 25123  func (c *OrganizationsEndpointAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEndpointAttachmentsResponse) error) error {
 25124  	c.ctx_ = ctx
 25125  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25126  	for {
 25127  		x, err := c.Do()
 25128  		if err != nil {
 25129  			return err
 25130  		}
 25131  		if err := f(x); err != nil {
 25132  			return err
 25133  		}
 25134  		if x.NextPageToken == "" {
 25135  			return nil
 25136  		}
 25137  		c.PageToken(x.NextPageToken)
 25138  	}
 25139  }
 25140  
 25141  type OrganizationsEnvgroupsCreateCall struct {
 25142  	s                                   *Service
 25143  	parent                              string
 25144  	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
 25145  	urlParams_                          gensupport.URLParams
 25146  	ctx_                                context.Context
 25147  	header_                             http.Header
 25148  }
 25149  
 25150  // Create: Creates a new environment group.
 25151  //
 25152  //   - parent: Name of the organization in which to create the environment group
 25153  //     in the following format: `organizations/{org}`.
 25154  func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
 25155  	c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25156  	c.parent = parent
 25157  	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
 25158  	return c
 25159  }
 25160  
 25161  // Name sets the optional parameter "name": ID of the environment group.
 25162  // Overrides any ID in the environment_group resource.
 25163  func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
 25164  	c.urlParams_.Set("name", name)
 25165  	return c
 25166  }
 25167  
 25168  // Fields allows partial responses to be retrieved. See
 25169  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25170  // details.
 25171  func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
 25172  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25173  	return c
 25174  }
 25175  
 25176  // Context sets the context to be used in this call's Do method.
 25177  func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
 25178  	c.ctx_ = ctx
 25179  	return c
 25180  }
 25181  
 25182  // Header returns a http.Header that can be modified by the caller to add
 25183  // headers to the request.
 25184  func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
 25185  	if c.header_ == nil {
 25186  		c.header_ = make(http.Header)
 25187  	}
 25188  	return c.header_
 25189  }
 25190  
 25191  func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
 25192  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25193  	var body io.Reader = nil
 25194  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
 25195  	if err != nil {
 25196  		return nil, err
 25197  	}
 25198  	c.urlParams_.Set("alt", alt)
 25199  	c.urlParams_.Set("prettyPrint", "false")
 25200  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
 25201  	urls += "?" + c.urlParams_.Encode()
 25202  	req, err := http.NewRequest("POST", urls, body)
 25203  	if err != nil {
 25204  		return nil, err
 25205  	}
 25206  	req.Header = reqHeaders
 25207  	googleapi.Expand(req.URL, map[string]string{
 25208  		"parent": c.parent,
 25209  	})
 25210  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25211  }
 25212  
 25213  // Do executes the "apigee.organizations.envgroups.create" call.
 25214  // Any non-2xx status code is an error. Response headers are in either
 25215  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25216  // returned at all) in error.(*googleapi.Error).Header. Use
 25217  // googleapi.IsNotModified to check whether the returned error was because
 25218  // http.StatusNotModified was returned.
 25219  func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25220  	gensupport.SetOptions(c.urlParams_, opts...)
 25221  	res, err := c.doRequest("json")
 25222  	if res != nil && res.StatusCode == http.StatusNotModified {
 25223  		if res.Body != nil {
 25224  			res.Body.Close()
 25225  		}
 25226  		return nil, gensupport.WrapError(&googleapi.Error{
 25227  			Code:   res.StatusCode,
 25228  			Header: res.Header,
 25229  		})
 25230  	}
 25231  	if err != nil {
 25232  		return nil, err
 25233  	}
 25234  	defer googleapi.CloseBody(res)
 25235  	if err := googleapi.CheckResponse(res); err != nil {
 25236  		return nil, gensupport.WrapError(err)
 25237  	}
 25238  	ret := &GoogleLongrunningOperation{
 25239  		ServerResponse: googleapi.ServerResponse{
 25240  			Header:         res.Header,
 25241  			HTTPStatusCode: res.StatusCode,
 25242  		},
 25243  	}
 25244  	target := &ret
 25245  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25246  		return nil, err
 25247  	}
 25248  	return ret, nil
 25249  }
 25250  
 25251  type OrganizationsEnvgroupsDeleteCall struct {
 25252  	s          *Service
 25253  	name       string
 25254  	urlParams_ gensupport.URLParams
 25255  	ctx_       context.Context
 25256  	header_    http.Header
 25257  }
 25258  
 25259  // Delete: Deletes an environment group.
 25260  //
 25261  //   - name: Name of the environment group in the following format:
 25262  //     `organizations/{org}/envgroups/{envgroup}`.
 25263  func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
 25264  	c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25265  	c.name = name
 25266  	return c
 25267  }
 25268  
 25269  // Fields allows partial responses to be retrieved. See
 25270  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25271  // details.
 25272  func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
 25273  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25274  	return c
 25275  }
 25276  
 25277  // Context sets the context to be used in this call's Do method.
 25278  func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
 25279  	c.ctx_ = ctx
 25280  	return c
 25281  }
 25282  
 25283  // Header returns a http.Header that can be modified by the caller to add
 25284  // headers to the request.
 25285  func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
 25286  	if c.header_ == nil {
 25287  		c.header_ = make(http.Header)
 25288  	}
 25289  	return c.header_
 25290  }
 25291  
 25292  func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25293  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25294  	var body io.Reader = nil
 25295  	c.urlParams_.Set("alt", alt)
 25296  	c.urlParams_.Set("prettyPrint", "false")
 25297  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25298  	urls += "?" + c.urlParams_.Encode()
 25299  	req, err := http.NewRequest("DELETE", urls, body)
 25300  	if err != nil {
 25301  		return nil, err
 25302  	}
 25303  	req.Header = reqHeaders
 25304  	googleapi.Expand(req.URL, map[string]string{
 25305  		"name": c.name,
 25306  	})
 25307  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25308  }
 25309  
 25310  // Do executes the "apigee.organizations.envgroups.delete" call.
 25311  // Any non-2xx status code is an error. Response headers are in either
 25312  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25313  // returned at all) in error.(*googleapi.Error).Header. Use
 25314  // googleapi.IsNotModified to check whether the returned error was because
 25315  // http.StatusNotModified was returned.
 25316  func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25317  	gensupport.SetOptions(c.urlParams_, opts...)
 25318  	res, err := c.doRequest("json")
 25319  	if res != nil && res.StatusCode == http.StatusNotModified {
 25320  		if res.Body != nil {
 25321  			res.Body.Close()
 25322  		}
 25323  		return nil, gensupport.WrapError(&googleapi.Error{
 25324  			Code:   res.StatusCode,
 25325  			Header: res.Header,
 25326  		})
 25327  	}
 25328  	if err != nil {
 25329  		return nil, err
 25330  	}
 25331  	defer googleapi.CloseBody(res)
 25332  	if err := googleapi.CheckResponse(res); err != nil {
 25333  		return nil, gensupport.WrapError(err)
 25334  	}
 25335  	ret := &GoogleLongrunningOperation{
 25336  		ServerResponse: googleapi.ServerResponse{
 25337  			Header:         res.Header,
 25338  			HTTPStatusCode: res.StatusCode,
 25339  		},
 25340  	}
 25341  	target := &ret
 25342  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25343  		return nil, err
 25344  	}
 25345  	return ret, nil
 25346  }
 25347  
 25348  type OrganizationsEnvgroupsGetCall struct {
 25349  	s            *Service
 25350  	name         string
 25351  	urlParams_   gensupport.URLParams
 25352  	ifNoneMatch_ string
 25353  	ctx_         context.Context
 25354  	header_      http.Header
 25355  }
 25356  
 25357  // Get: Gets an environment group.
 25358  //
 25359  //   - name: Name of the environment group in the following format:
 25360  //     `organizations/{org}/envgroups/{envgroup}`.
 25361  func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
 25362  	c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25363  	c.name = name
 25364  	return c
 25365  }
 25366  
 25367  // Fields allows partial responses to be retrieved. See
 25368  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25369  // details.
 25370  func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
 25371  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25372  	return c
 25373  }
 25374  
 25375  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25376  // object's ETag matches the given value. This is useful for getting updates
 25377  // only after the object has changed since the last request.
 25378  func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
 25379  	c.ifNoneMatch_ = entityTag
 25380  	return c
 25381  }
 25382  
 25383  // Context sets the context to be used in this call's Do method.
 25384  func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
 25385  	c.ctx_ = ctx
 25386  	return c
 25387  }
 25388  
 25389  // Header returns a http.Header that can be modified by the caller to add
 25390  // headers to the request.
 25391  func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
 25392  	if c.header_ == nil {
 25393  		c.header_ = make(http.Header)
 25394  	}
 25395  	return c.header_
 25396  }
 25397  
 25398  func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
 25399  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25400  	if c.ifNoneMatch_ != "" {
 25401  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25402  	}
 25403  	var body io.Reader = nil
 25404  	c.urlParams_.Set("alt", alt)
 25405  	c.urlParams_.Set("prettyPrint", "false")
 25406  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25407  	urls += "?" + c.urlParams_.Encode()
 25408  	req, err := http.NewRequest("GET", urls, body)
 25409  	if err != nil {
 25410  		return nil, err
 25411  	}
 25412  	req.Header = reqHeaders
 25413  	googleapi.Expand(req.URL, map[string]string{
 25414  		"name": c.name,
 25415  	})
 25416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25417  }
 25418  
 25419  // Do executes the "apigee.organizations.envgroups.get" call.
 25420  // Any non-2xx status code is an error. Response headers are in either
 25421  // *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or (if a response
 25422  // was returned at all) in error.(*googleapi.Error).Header. Use
 25423  // googleapi.IsNotModified to check whether the returned error was because
 25424  // http.StatusNotModified was returned.
 25425  func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
 25426  	gensupport.SetOptions(c.urlParams_, opts...)
 25427  	res, err := c.doRequest("json")
 25428  	if res != nil && res.StatusCode == http.StatusNotModified {
 25429  		if res.Body != nil {
 25430  			res.Body.Close()
 25431  		}
 25432  		return nil, gensupport.WrapError(&googleapi.Error{
 25433  			Code:   res.StatusCode,
 25434  			Header: res.Header,
 25435  		})
 25436  	}
 25437  	if err != nil {
 25438  		return nil, err
 25439  	}
 25440  	defer googleapi.CloseBody(res)
 25441  	if err := googleapi.CheckResponse(res); err != nil {
 25442  		return nil, gensupport.WrapError(err)
 25443  	}
 25444  	ret := &GoogleCloudApigeeV1EnvironmentGroup{
 25445  		ServerResponse: googleapi.ServerResponse{
 25446  			Header:         res.Header,
 25447  			HTTPStatusCode: res.StatusCode,
 25448  		},
 25449  	}
 25450  	target := &ret
 25451  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25452  		return nil, err
 25453  	}
 25454  	return ret, nil
 25455  }
 25456  
 25457  type OrganizationsEnvgroupsGetDeployedIngressConfigCall struct {
 25458  	s            *Service
 25459  	name         string
 25460  	urlParams_   gensupport.URLParams
 25461  	ifNoneMatch_ string
 25462  	ctx_         context.Context
 25463  	header_      http.Header
 25464  }
 25465  
 25466  // GetDeployedIngressConfig: Gets the deployed ingress configuration for an
 25467  // environment group.
 25468  //
 25469  //   - name: Name of the deployed configuration for the environment group in the
 25470  //     following format:
 25471  //     'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'.
 25472  func (r *OrganizationsEnvgroupsService) GetDeployedIngressConfig(name string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
 25473  	c := &OrganizationsEnvgroupsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25474  	c.name = name
 25475  	return c
 25476  }
 25477  
 25478  // View sets the optional parameter "view": When set to FULL, additional
 25479  // details about the specific deployments receiving traffic will be included in
 25480  // the IngressConfig response's RoutingRules.
 25481  //
 25482  // Possible values:
 25483  //
 25484  //	"INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The API will
 25485  //
 25486  // default to the BASIC view.
 25487  //
 25488  //	"BASIC" - Include all ingress config data necessary for the runtime to
 25489  //
 25490  // configure ingress, but no more. Routing rules will include only basepath and
 25491  // destination environment. This the default value.
 25492  //
 25493  //	"FULL" - Include all ingress config data, including internal debug info
 25494  //
 25495  // for each routing rule such as the proxy claiming a particular basepath and
 25496  // when the routing rule first appeared in the env group.
 25497  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) View(view string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
 25498  	c.urlParams_.Set("view", view)
 25499  	return c
 25500  }
 25501  
 25502  // Fields allows partial responses to be retrieved. See
 25503  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25504  // details.
 25505  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
 25506  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25507  	return c
 25508  }
 25509  
 25510  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25511  // object's ETag matches the given value. This is useful for getting updates
 25512  // only after the object has changed since the last request.
 25513  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
 25514  	c.ifNoneMatch_ = entityTag
 25515  	return c
 25516  }
 25517  
 25518  // Context sets the context to be used in this call's Do method.
 25519  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
 25520  	c.ctx_ = ctx
 25521  	return c
 25522  }
 25523  
 25524  // Header returns a http.Header that can be modified by the caller to add
 25525  // headers to the request.
 25526  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Header() http.Header {
 25527  	if c.header_ == nil {
 25528  		c.header_ = make(http.Header)
 25529  	}
 25530  	return c.header_
 25531  }
 25532  
 25533  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
 25534  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25535  	if c.ifNoneMatch_ != "" {
 25536  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25537  	}
 25538  	var body io.Reader = nil
 25539  	c.urlParams_.Set("alt", alt)
 25540  	c.urlParams_.Set("prettyPrint", "false")
 25541  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25542  	urls += "?" + c.urlParams_.Encode()
 25543  	req, err := http.NewRequest("GET", urls, body)
 25544  	if err != nil {
 25545  		return nil, err
 25546  	}
 25547  	req.Header = reqHeaders
 25548  	googleapi.Expand(req.URL, map[string]string{
 25549  		"name": c.name,
 25550  	})
 25551  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25552  }
 25553  
 25554  // Do executes the "apigee.organizations.envgroups.getDeployedIngressConfig" call.
 25555  // Any non-2xx status code is an error. Response headers are in either
 25556  // *GoogleCloudApigeeV1EnvironmentGroupConfig.ServerResponse.Header or (if a
 25557  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25558  // googleapi.IsNotModified to check whether the returned error was because
 25559  // http.StatusNotModified was returned.
 25560  func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupConfig, error) {
 25561  	gensupport.SetOptions(c.urlParams_, opts...)
 25562  	res, err := c.doRequest("json")
 25563  	if res != nil && res.StatusCode == http.StatusNotModified {
 25564  		if res.Body != nil {
 25565  			res.Body.Close()
 25566  		}
 25567  		return nil, gensupport.WrapError(&googleapi.Error{
 25568  			Code:   res.StatusCode,
 25569  			Header: res.Header,
 25570  		})
 25571  	}
 25572  	if err != nil {
 25573  		return nil, err
 25574  	}
 25575  	defer googleapi.CloseBody(res)
 25576  	if err := googleapi.CheckResponse(res); err != nil {
 25577  		return nil, gensupport.WrapError(err)
 25578  	}
 25579  	ret := &GoogleCloudApigeeV1EnvironmentGroupConfig{
 25580  		ServerResponse: googleapi.ServerResponse{
 25581  			Header:         res.Header,
 25582  			HTTPStatusCode: res.StatusCode,
 25583  		},
 25584  	}
 25585  	target := &ret
 25586  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25587  		return nil, err
 25588  	}
 25589  	return ret, nil
 25590  }
 25591  
 25592  type OrganizationsEnvgroupsListCall struct {
 25593  	s            *Service
 25594  	parent       string
 25595  	urlParams_   gensupport.URLParams
 25596  	ifNoneMatch_ string
 25597  	ctx_         context.Context
 25598  	header_      http.Header
 25599  }
 25600  
 25601  // List: Lists all environment groups.
 25602  //
 25603  //   - parent: Name of the organization for which to list environment groups in
 25604  //     the following format: `organizations/{org}`.
 25605  func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
 25606  	c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25607  	c.parent = parent
 25608  	return c
 25609  }
 25610  
 25611  // PageSize sets the optional parameter "pageSize": Maximum number of
 25612  // environment groups to return. The page size defaults to 25.
 25613  func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
 25614  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25615  	return c
 25616  }
 25617  
 25618  // PageToken sets the optional parameter "pageToken": Page token, returned from
 25619  // a previous ListEnvironmentGroups call, that you can use to retrieve the next
 25620  // page.
 25621  func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
 25622  	c.urlParams_.Set("pageToken", pageToken)
 25623  	return c
 25624  }
 25625  
 25626  // Fields allows partial responses to be retrieved. See
 25627  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25628  // details.
 25629  func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
 25630  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25631  	return c
 25632  }
 25633  
 25634  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25635  // object's ETag matches the given value. This is useful for getting updates
 25636  // only after the object has changed since the last request.
 25637  func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
 25638  	c.ifNoneMatch_ = entityTag
 25639  	return c
 25640  }
 25641  
 25642  // Context sets the context to be used in this call's Do method.
 25643  func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
 25644  	c.ctx_ = ctx
 25645  	return c
 25646  }
 25647  
 25648  // Header returns a http.Header that can be modified by the caller to add
 25649  // headers to the request.
 25650  func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
 25651  	if c.header_ == nil {
 25652  		c.header_ = make(http.Header)
 25653  	}
 25654  	return c.header_
 25655  }
 25656  
 25657  func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
 25658  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25659  	if c.ifNoneMatch_ != "" {
 25660  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25661  	}
 25662  	var body io.Reader = nil
 25663  	c.urlParams_.Set("alt", alt)
 25664  	c.urlParams_.Set("prettyPrint", "false")
 25665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
 25666  	urls += "?" + c.urlParams_.Encode()
 25667  	req, err := http.NewRequest("GET", urls, body)
 25668  	if err != nil {
 25669  		return nil, err
 25670  	}
 25671  	req.Header = reqHeaders
 25672  	googleapi.Expand(req.URL, map[string]string{
 25673  		"parent": c.parent,
 25674  	})
 25675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25676  }
 25677  
 25678  // Do executes the "apigee.organizations.envgroups.list" call.
 25679  // Any non-2xx status code is an error. Response headers are in either
 25680  // *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Header or
 25681  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25682  // googleapi.IsNotModified to check whether the returned error was because
 25683  // http.StatusNotModified was returned.
 25684  func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
 25685  	gensupport.SetOptions(c.urlParams_, opts...)
 25686  	res, err := c.doRequest("json")
 25687  	if res != nil && res.StatusCode == http.StatusNotModified {
 25688  		if res.Body != nil {
 25689  			res.Body.Close()
 25690  		}
 25691  		return nil, gensupport.WrapError(&googleapi.Error{
 25692  			Code:   res.StatusCode,
 25693  			Header: res.Header,
 25694  		})
 25695  	}
 25696  	if err != nil {
 25697  		return nil, err
 25698  	}
 25699  	defer googleapi.CloseBody(res)
 25700  	if err := googleapi.CheckResponse(res); err != nil {
 25701  		return nil, gensupport.WrapError(err)
 25702  	}
 25703  	ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
 25704  		ServerResponse: googleapi.ServerResponse{
 25705  			Header:         res.Header,
 25706  			HTTPStatusCode: res.StatusCode,
 25707  		},
 25708  	}
 25709  	target := &ret
 25710  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25711  		return nil, err
 25712  	}
 25713  	return ret, nil
 25714  }
 25715  
 25716  // Pages invokes f for each page of results.
 25717  // A non-nil error returned from f will halt the iteration.
 25718  // The provided context supersedes any context provided to the Context method.
 25719  func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
 25720  	c.ctx_ = ctx
 25721  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25722  	for {
 25723  		x, err := c.Do()
 25724  		if err != nil {
 25725  			return err
 25726  		}
 25727  		if err := f(x); err != nil {
 25728  			return err
 25729  		}
 25730  		if x.NextPageToken == "" {
 25731  			return nil
 25732  		}
 25733  		c.PageToken(x.NextPageToken)
 25734  	}
 25735  }
 25736  
 25737  type OrganizationsEnvgroupsPatchCall struct {
 25738  	s                                   *Service
 25739  	name                                string
 25740  	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
 25741  	urlParams_                          gensupport.URLParams
 25742  	ctx_                                context.Context
 25743  	header_                             http.Header
 25744  }
 25745  
 25746  // Patch: Updates an environment group.
 25747  //
 25748  //   - name: Name of the environment group to update in the format:
 25749  //     `organizations/{org}/envgroups/{envgroup}.
 25750  func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
 25751  	c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25752  	c.name = name
 25753  	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
 25754  	return c
 25755  }
 25756  
 25757  // UpdateMask sets the optional parameter "updateMask": List of fields to be
 25758  // updated.
 25759  func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
 25760  	c.urlParams_.Set("updateMask", updateMask)
 25761  	return c
 25762  }
 25763  
 25764  // Fields allows partial responses to be retrieved. See
 25765  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25766  // details.
 25767  func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
 25768  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25769  	return c
 25770  }
 25771  
 25772  // Context sets the context to be used in this call's Do method.
 25773  func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
 25774  	c.ctx_ = ctx
 25775  	return c
 25776  }
 25777  
 25778  // Header returns a http.Header that can be modified by the caller to add
 25779  // headers to the request.
 25780  func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header {
 25781  	if c.header_ == nil {
 25782  		c.header_ = make(http.Header)
 25783  	}
 25784  	return c.header_
 25785  }
 25786  
 25787  func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
 25788  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25789  	var body io.Reader = nil
 25790  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
 25791  	if err != nil {
 25792  		return nil, err
 25793  	}
 25794  	c.urlParams_.Set("alt", alt)
 25795  	c.urlParams_.Set("prettyPrint", "false")
 25796  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25797  	urls += "?" + c.urlParams_.Encode()
 25798  	req, err := http.NewRequest("PATCH", urls, body)
 25799  	if err != nil {
 25800  		return nil, err
 25801  	}
 25802  	req.Header = reqHeaders
 25803  	googleapi.Expand(req.URL, map[string]string{
 25804  		"name": c.name,
 25805  	})
 25806  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25807  }
 25808  
 25809  // Do executes the "apigee.organizations.envgroups.patch" call.
 25810  // Any non-2xx status code is an error. Response headers are in either
 25811  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25812  // returned at all) in error.(*googleapi.Error).Header. Use
 25813  // googleapi.IsNotModified to check whether the returned error was because
 25814  // http.StatusNotModified was returned.
 25815  func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25816  	gensupport.SetOptions(c.urlParams_, opts...)
 25817  	res, err := c.doRequest("json")
 25818  	if res != nil && res.StatusCode == http.StatusNotModified {
 25819  		if res.Body != nil {
 25820  			res.Body.Close()
 25821  		}
 25822  		return nil, gensupport.WrapError(&googleapi.Error{
 25823  			Code:   res.StatusCode,
 25824  			Header: res.Header,
 25825  		})
 25826  	}
 25827  	if err != nil {
 25828  		return nil, err
 25829  	}
 25830  	defer googleapi.CloseBody(res)
 25831  	if err := googleapi.CheckResponse(res); err != nil {
 25832  		return nil, gensupport.WrapError(err)
 25833  	}
 25834  	ret := &GoogleLongrunningOperation{
 25835  		ServerResponse: googleapi.ServerResponse{
 25836  			Header:         res.Header,
 25837  			HTTPStatusCode: res.StatusCode,
 25838  		},
 25839  	}
 25840  	target := &ret
 25841  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25842  		return nil, err
 25843  	}
 25844  	return ret, nil
 25845  }
 25846  
 25847  type OrganizationsEnvgroupsAttachmentsCreateCall struct {
 25848  	s                                             *Service
 25849  	parent                                        string
 25850  	googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
 25851  	urlParams_                                    gensupport.URLParams
 25852  	ctx_                                          context.Context
 25853  	header_                                       http.Header
 25854  }
 25855  
 25856  // Create: Creates a new attachment of an environment to an environment group.
 25857  //
 25858  //   - parent: EnvironmentGroup under which to create the attachment in the
 25859  //     following format: `organizations/{org}/envgroups/{envgroup}`.
 25860  func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
 25861  	c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25862  	c.parent = parent
 25863  	c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
 25864  	return c
 25865  }
 25866  
 25867  // Fields allows partial responses to be retrieved. See
 25868  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25869  // details.
 25870  func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
 25871  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25872  	return c
 25873  }
 25874  
 25875  // Context sets the context to be used in this call's Do method.
 25876  func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
 25877  	c.ctx_ = ctx
 25878  	return c
 25879  }
 25880  
 25881  // Header returns a http.Header that can be modified by the caller to add
 25882  // headers to the request.
 25883  func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
 25884  	if c.header_ == nil {
 25885  		c.header_ = make(http.Header)
 25886  	}
 25887  	return c.header_
 25888  }
 25889  
 25890  func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 25891  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25892  	var body io.Reader = nil
 25893  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
 25894  	if err != nil {
 25895  		return nil, err
 25896  	}
 25897  	c.urlParams_.Set("alt", alt)
 25898  	c.urlParams_.Set("prettyPrint", "false")
 25899  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
 25900  	urls += "?" + c.urlParams_.Encode()
 25901  	req, err := http.NewRequest("POST", urls, body)
 25902  	if err != nil {
 25903  		return nil, err
 25904  	}
 25905  	req.Header = reqHeaders
 25906  	googleapi.Expand(req.URL, map[string]string{
 25907  		"parent": c.parent,
 25908  	})
 25909  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25910  }
 25911  
 25912  // Do executes the "apigee.organizations.envgroups.attachments.create" call.
 25913  // Any non-2xx status code is an error. Response headers are in either
 25914  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25915  // returned at all) in error.(*googleapi.Error).Header. Use
 25916  // googleapi.IsNotModified to check whether the returned error was because
 25917  // http.StatusNotModified was returned.
 25918  func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25919  	gensupport.SetOptions(c.urlParams_, opts...)
 25920  	res, err := c.doRequest("json")
 25921  	if res != nil && res.StatusCode == http.StatusNotModified {
 25922  		if res.Body != nil {
 25923  			res.Body.Close()
 25924  		}
 25925  		return nil, gensupport.WrapError(&googleapi.Error{
 25926  			Code:   res.StatusCode,
 25927  			Header: res.Header,
 25928  		})
 25929  	}
 25930  	if err != nil {
 25931  		return nil, err
 25932  	}
 25933  	defer googleapi.CloseBody(res)
 25934  	if err := googleapi.CheckResponse(res); err != nil {
 25935  		return nil, gensupport.WrapError(err)
 25936  	}
 25937  	ret := &GoogleLongrunningOperation{
 25938  		ServerResponse: googleapi.ServerResponse{
 25939  			Header:         res.Header,
 25940  			HTTPStatusCode: res.StatusCode,
 25941  		},
 25942  	}
 25943  	target := &ret
 25944  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25945  		return nil, err
 25946  	}
 25947  	return ret, nil
 25948  }
 25949  
 25950  type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
 25951  	s          *Service
 25952  	name       string
 25953  	urlParams_ gensupport.URLParams
 25954  	ctx_       context.Context
 25955  	header_    http.Header
 25956  }
 25957  
 25958  // Delete: Deletes an environment group attachment.
 25959  //
 25960  //   - name: Name of the environment group attachment to delete in the following
 25961  //     format:
 25962  //     `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
 25963  func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
 25964  	c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25965  	c.name = name
 25966  	return c
 25967  }
 25968  
 25969  // Fields allows partial responses to be retrieved. See
 25970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25971  // details.
 25972  func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
 25973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25974  	return c
 25975  }
 25976  
 25977  // Context sets the context to be used in this call's Do method.
 25978  func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
 25979  	c.ctx_ = ctx
 25980  	return c
 25981  }
 25982  
 25983  // Header returns a http.Header that can be modified by the caller to add
 25984  // headers to the request.
 25985  func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
 25986  	if c.header_ == nil {
 25987  		c.header_ = make(http.Header)
 25988  	}
 25989  	return c.header_
 25990  }
 25991  
 25992  func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25993  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25994  	var body io.Reader = nil
 25995  	c.urlParams_.Set("alt", alt)
 25996  	c.urlParams_.Set("prettyPrint", "false")
 25997  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25998  	urls += "?" + c.urlParams_.Encode()
 25999  	req, err := http.NewRequest("DELETE", urls, body)
 26000  	if err != nil {
 26001  		return nil, err
 26002  	}
 26003  	req.Header = reqHeaders
 26004  	googleapi.Expand(req.URL, map[string]string{
 26005  		"name": c.name,
 26006  	})
 26007  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26008  }
 26009  
 26010  // Do executes the "apigee.organizations.envgroups.attachments.delete" call.
 26011  // Any non-2xx status code is an error. Response headers are in either
 26012  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26013  // returned at all) in error.(*googleapi.Error).Header. Use
 26014  // googleapi.IsNotModified to check whether the returned error was because
 26015  // http.StatusNotModified was returned.
 26016  func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26017  	gensupport.SetOptions(c.urlParams_, opts...)
 26018  	res, err := c.doRequest("json")
 26019  	if res != nil && res.StatusCode == http.StatusNotModified {
 26020  		if res.Body != nil {
 26021  			res.Body.Close()
 26022  		}
 26023  		return nil, gensupport.WrapError(&googleapi.Error{
 26024  			Code:   res.StatusCode,
 26025  			Header: res.Header,
 26026  		})
 26027  	}
 26028  	if err != nil {
 26029  		return nil, err
 26030  	}
 26031  	defer googleapi.CloseBody(res)
 26032  	if err := googleapi.CheckResponse(res); err != nil {
 26033  		return nil, gensupport.WrapError(err)
 26034  	}
 26035  	ret := &GoogleLongrunningOperation{
 26036  		ServerResponse: googleapi.ServerResponse{
 26037  			Header:         res.Header,
 26038  			HTTPStatusCode: res.StatusCode,
 26039  		},
 26040  	}
 26041  	target := &ret
 26042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26043  		return nil, err
 26044  	}
 26045  	return ret, nil
 26046  }
 26047  
 26048  type OrganizationsEnvgroupsAttachmentsGetCall struct {
 26049  	s            *Service
 26050  	name         string
 26051  	urlParams_   gensupport.URLParams
 26052  	ifNoneMatch_ string
 26053  	ctx_         context.Context
 26054  	header_      http.Header
 26055  }
 26056  
 26057  // Get: Gets an environment group attachment.
 26058  //
 26059  //   - name: Name of the environment group attachment in the following format:
 26060  //     `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
 26061  func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
 26062  	c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26063  	c.name = name
 26064  	return c
 26065  }
 26066  
 26067  // Fields allows partial responses to be retrieved. See
 26068  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26069  // details.
 26070  func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
 26071  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26072  	return c
 26073  }
 26074  
 26075  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26076  // object's ETag matches the given value. This is useful for getting updates
 26077  // only after the object has changed since the last request.
 26078  func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
 26079  	c.ifNoneMatch_ = entityTag
 26080  	return c
 26081  }
 26082  
 26083  // Context sets the context to be used in this call's Do method.
 26084  func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
 26085  	c.ctx_ = ctx
 26086  	return c
 26087  }
 26088  
 26089  // Header returns a http.Header that can be modified by the caller to add
 26090  // headers to the request.
 26091  func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
 26092  	if c.header_ == nil {
 26093  		c.header_ = make(http.Header)
 26094  	}
 26095  	return c.header_
 26096  }
 26097  
 26098  func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
 26099  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26100  	if c.ifNoneMatch_ != "" {
 26101  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26102  	}
 26103  	var body io.Reader = nil
 26104  	c.urlParams_.Set("alt", alt)
 26105  	c.urlParams_.Set("prettyPrint", "false")
 26106  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 26107  	urls += "?" + c.urlParams_.Encode()
 26108  	req, err := http.NewRequest("GET", urls, body)
 26109  	if err != nil {
 26110  		return nil, err
 26111  	}
 26112  	req.Header = reqHeaders
 26113  	googleapi.Expand(req.URL, map[string]string{
 26114  		"name": c.name,
 26115  	})
 26116  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26117  }
 26118  
 26119  // Do executes the "apigee.organizations.envgroups.attachments.get" call.
 26120  // Any non-2xx status code is an error. Response headers are in either
 26121  // *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header or (if
 26122  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 26123  // googleapi.IsNotModified to check whether the returned error was because
 26124  // http.StatusNotModified was returned.
 26125  func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
 26126  	gensupport.SetOptions(c.urlParams_, opts...)
 26127  	res, err := c.doRequest("json")
 26128  	if res != nil && res.StatusCode == http.StatusNotModified {
 26129  		if res.Body != nil {
 26130  			res.Body.Close()
 26131  		}
 26132  		return nil, gensupport.WrapError(&googleapi.Error{
 26133  			Code:   res.StatusCode,
 26134  			Header: res.Header,
 26135  		})
 26136  	}
 26137  	if err != nil {
 26138  		return nil, err
 26139  	}
 26140  	defer googleapi.CloseBody(res)
 26141  	if err := googleapi.CheckResponse(res); err != nil {
 26142  		return nil, gensupport.WrapError(err)
 26143  	}
 26144  	ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
 26145  		ServerResponse: googleapi.ServerResponse{
 26146  			Header:         res.Header,
 26147  			HTTPStatusCode: res.StatusCode,
 26148  		},
 26149  	}
 26150  	target := &ret
 26151  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26152  		return nil, err
 26153  	}
 26154  	return ret, nil
 26155  }
 26156  
 26157  type OrganizationsEnvgroupsAttachmentsListCall struct {
 26158  	s            *Service
 26159  	parent       string
 26160  	urlParams_   gensupport.URLParams
 26161  	ifNoneMatch_ string
 26162  	ctx_         context.Context
 26163  	header_      http.Header
 26164  }
 26165  
 26166  // List: Lists all attachments of an environment group.
 26167  //
 26168  //   - parent: Name of the environment group in the following format:
 26169  //     `organizations/{org}/envgroups/{envgroup}`.
 26170  func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
 26171  	c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26172  	c.parent = parent
 26173  	return c
 26174  }
 26175  
 26176  // PageSize sets the optional parameter "pageSize": Maximum number of
 26177  // environment group attachments to return. The page size defaults to 25.
 26178  func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
 26179  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26180  	return c
 26181  }
 26182  
 26183  // PageToken sets the optional parameter "pageToken": Page token, returned by a
 26184  // previous ListEnvironmentGroupAttachments call, that you can use to retrieve
 26185  // the next page.
 26186  func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
 26187  	c.urlParams_.Set("pageToken", pageToken)
 26188  	return c
 26189  }
 26190  
 26191  // Fields allows partial responses to be retrieved. See
 26192  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26193  // details.
 26194  func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
 26195  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26196  	return c
 26197  }
 26198  
 26199  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26200  // object's ETag matches the given value. This is useful for getting updates
 26201  // only after the object has changed since the last request.
 26202  func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
 26203  	c.ifNoneMatch_ = entityTag
 26204  	return c
 26205  }
 26206  
 26207  // Context sets the context to be used in this call's Do method.
 26208  func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
 26209  	c.ctx_ = ctx
 26210  	return c
 26211  }
 26212  
 26213  // Header returns a http.Header that can be modified by the caller to add
 26214  // headers to the request.
 26215  func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
 26216  	if c.header_ == nil {
 26217  		c.header_ = make(http.Header)
 26218  	}
 26219  	return c.header_
 26220  }
 26221  
 26222  func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
 26223  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26224  	if c.ifNoneMatch_ != "" {
 26225  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26226  	}
 26227  	var body io.Reader = nil
 26228  	c.urlParams_.Set("alt", alt)
 26229  	c.urlParams_.Set("prettyPrint", "false")
 26230  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
 26231  	urls += "?" + c.urlParams_.Encode()
 26232  	req, err := http.NewRequest("GET", urls, body)
 26233  	if err != nil {
 26234  		return nil, err
 26235  	}
 26236  	req.Header = reqHeaders
 26237  	googleapi.Expand(req.URL, map[string]string{
 26238  		"parent": c.parent,
 26239  	})
 26240  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26241  }
 26242  
 26243  // Do executes the "apigee.organizations.envgroups.attachments.list" call.
 26244  // Any non-2xx status code is an error. Response headers are in either
 26245  // *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResponse.He
 26246  // ader or (if a response was returned at all) in
 26247  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26248  // whether the returned error was because http.StatusNotModified was returned.
 26249  func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
 26250  	gensupport.SetOptions(c.urlParams_, opts...)
 26251  	res, err := c.doRequest("json")
 26252  	if res != nil && res.StatusCode == http.StatusNotModified {
 26253  		if res.Body != nil {
 26254  			res.Body.Close()
 26255  		}
 26256  		return nil, gensupport.WrapError(&googleapi.Error{
 26257  			Code:   res.StatusCode,
 26258  			Header: res.Header,
 26259  		})
 26260  	}
 26261  	if err != nil {
 26262  		return nil, err
 26263  	}
 26264  	defer googleapi.CloseBody(res)
 26265  	if err := googleapi.CheckResponse(res); err != nil {
 26266  		return nil, gensupport.WrapError(err)
 26267  	}
 26268  	ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
 26269  		ServerResponse: googleapi.ServerResponse{
 26270  			Header:         res.Header,
 26271  			HTTPStatusCode: res.StatusCode,
 26272  		},
 26273  	}
 26274  	target := &ret
 26275  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26276  		return nil, err
 26277  	}
 26278  	return ret, nil
 26279  }
 26280  
 26281  // Pages invokes f for each page of results.
 26282  // A non-nil error returned from f will halt the iteration.
 26283  // The provided context supersedes any context provided to the Context method.
 26284  func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
 26285  	c.ctx_ = ctx
 26286  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26287  	for {
 26288  		x, err := c.Do()
 26289  		if err != nil {
 26290  			return err
 26291  		}
 26292  		if err := f(x); err != nil {
 26293  			return err
 26294  		}
 26295  		if x.NextPageToken == "" {
 26296  			return nil
 26297  		}
 26298  		c.PageToken(x.NextPageToken)
 26299  	}
 26300  }
 26301  
 26302  type OrganizationsEnvironmentsCreateCall struct {
 26303  	s                              *Service
 26304  	parent                         string
 26305  	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
 26306  	urlParams_                     gensupport.URLParams
 26307  	ctx_                           context.Context
 26308  	header_                        http.Header
 26309  }
 26310  
 26311  // Create: Creates an environment in an organization.
 26312  //
 26313  //   - parent: Name of the organization in which the environment will be created.
 26314  //     Use the following structure in your request: `organizations/{org}`.
 26315  func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
 26316  	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26317  	c.parent = parent
 26318  	c.googlecloudapigeev1environment = googlecloudapigeev1environment
 26319  	return c
 26320  }
 26321  
 26322  // Name sets the optional parameter "name": Name of the environment.
 26323  func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
 26324  	c.urlParams_.Set("name", name)
 26325  	return c
 26326  }
 26327  
 26328  // Fields allows partial responses to be retrieved. See
 26329  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26330  // details.
 26331  func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
 26332  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26333  	return c
 26334  }
 26335  
 26336  // Context sets the context to be used in this call's Do method.
 26337  func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
 26338  	c.ctx_ = ctx
 26339  	return c
 26340  }
 26341  
 26342  // Header returns a http.Header that can be modified by the caller to add
 26343  // headers to the request.
 26344  func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
 26345  	if c.header_ == nil {
 26346  		c.header_ = make(http.Header)
 26347  	}
 26348  	return c.header_
 26349  }
 26350  
 26351  func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 26352  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26353  	var body io.Reader = nil
 26354  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
 26355  	if err != nil {
 26356  		return nil, err
 26357  	}
 26358  	c.urlParams_.Set("alt", alt)
 26359  	c.urlParams_.Set("prettyPrint", "false")
 26360  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
 26361  	urls += "?" + c.urlParams_.Encode()
 26362  	req, err := http.NewRequest("POST", urls, body)
 26363  	if err != nil {
 26364  		return nil, err
 26365  	}
 26366  	req.Header = reqHeaders
 26367  	googleapi.Expand(req.URL, map[string]string{
 26368  		"parent": c.parent,
 26369  	})
 26370  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26371  }
 26372  
 26373  // Do executes the "apigee.organizations.environments.create" call.
 26374  // Any non-2xx status code is an error. Response headers are in either
 26375  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26376  // returned at all) in error.(*googleapi.Error).Header. Use
 26377  // googleapi.IsNotModified to check whether the returned error was because
 26378  // http.StatusNotModified was returned.
 26379  func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26380  	gensupport.SetOptions(c.urlParams_, opts...)
 26381  	res, err := c.doRequest("json")
 26382  	if res != nil && res.StatusCode == http.StatusNotModified {
 26383  		if res.Body != nil {
 26384  			res.Body.Close()
 26385  		}
 26386  		return nil, gensupport.WrapError(&googleapi.Error{
 26387  			Code:   res.StatusCode,
 26388  			Header: res.Header,
 26389  		})
 26390  	}
 26391  	if err != nil {
 26392  		return nil, err
 26393  	}
 26394  	defer googleapi.CloseBody(res)
 26395  	if err := googleapi.CheckResponse(res); err != nil {
 26396  		return nil, gensupport.WrapError(err)
 26397  	}
 26398  	ret := &GoogleLongrunningOperation{
 26399  		ServerResponse: googleapi.ServerResponse{
 26400  			Header:         res.Header,
 26401  			HTTPStatusCode: res.StatusCode,
 26402  		},
 26403  	}
 26404  	target := &ret
 26405  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26406  		return nil, err
 26407  	}
 26408  	return ret, nil
 26409  }
 26410  
 26411  type OrganizationsEnvironmentsDeleteCall struct {
 26412  	s          *Service
 26413  	name       string
 26414  	urlParams_ gensupport.URLParams
 26415  	ctx_       context.Context
 26416  	header_    http.Header
 26417  }
 26418  
 26419  // Delete: Deletes an environment from an organization. **Warning: You must
 26420  // delete all key value maps and key value entries before you delete an
 26421  // environment.** Otherwise, if you re-create the environment the key value map
 26422  // entry operations will encounter encryption/decryption discrepancies.
 26423  //
 26424  //   - name: Name of the environment. Use the following structure in your
 26425  //     request: `organizations/{org}/environments/{env}`.
 26426  func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
 26427  	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26428  	c.name = name
 26429  	return c
 26430  }
 26431  
 26432  // Fields allows partial responses to be retrieved. See
 26433  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26434  // details.
 26435  func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
 26436  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26437  	return c
 26438  }
 26439  
 26440  // Context sets the context to be used in this call's Do method.
 26441  func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
 26442  	c.ctx_ = ctx
 26443  	return c
 26444  }
 26445  
 26446  // Header returns a http.Header that can be modified by the caller to add
 26447  // headers to the request.
 26448  func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
 26449  	if c.header_ == nil {
 26450  		c.header_ = make(http.Header)
 26451  	}
 26452  	return c.header_
 26453  }
 26454  
 26455  func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 26456  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26457  	var body io.Reader = nil
 26458  	c.urlParams_.Set("alt", alt)
 26459  	c.urlParams_.Set("prettyPrint", "false")
 26460  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 26461  	urls += "?" + c.urlParams_.Encode()
 26462  	req, err := http.NewRequest("DELETE", urls, body)
 26463  	if err != nil {
 26464  		return nil, err
 26465  	}
 26466  	req.Header = reqHeaders
 26467  	googleapi.Expand(req.URL, map[string]string{
 26468  		"name": c.name,
 26469  	})
 26470  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26471  }
 26472  
 26473  // Do executes the "apigee.organizations.environments.delete" call.
 26474  // Any non-2xx status code is an error. Response headers are in either
 26475  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26476  // returned at all) in error.(*googleapi.Error).Header. Use
 26477  // googleapi.IsNotModified to check whether the returned error was because
 26478  // http.StatusNotModified was returned.
 26479  func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26480  	gensupport.SetOptions(c.urlParams_, opts...)
 26481  	res, err := c.doRequest("json")
 26482  	if res != nil && res.StatusCode == http.StatusNotModified {
 26483  		if res.Body != nil {
 26484  			res.Body.Close()
 26485  		}
 26486  		return nil, gensupport.WrapError(&googleapi.Error{
 26487  			Code:   res.StatusCode,
 26488  			Header: res.Header,
 26489  		})
 26490  	}
 26491  	if err != nil {
 26492  		return nil, err
 26493  	}
 26494  	defer googleapi.CloseBody(res)
 26495  	if err := googleapi.CheckResponse(res); err != nil {
 26496  		return nil, gensupport.WrapError(err)
 26497  	}
 26498  	ret := &GoogleLongrunningOperation{
 26499  		ServerResponse: googleapi.ServerResponse{
 26500  			Header:         res.Header,
 26501  			HTTPStatusCode: res.StatusCode,
 26502  		},
 26503  	}
 26504  	target := &ret
 26505  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26506  		return nil, err
 26507  	}
 26508  	return ret, nil
 26509  }
 26510  
 26511  type OrganizationsEnvironmentsGetCall struct {
 26512  	s            *Service
 26513  	name         string
 26514  	urlParams_   gensupport.URLParams
 26515  	ifNoneMatch_ string
 26516  	ctx_         context.Context
 26517  	header_      http.Header
 26518  }
 26519  
 26520  // Get: Gets environment details.
 26521  //
 26522  //   - name: Name of the environment. Use the following structure in your
 26523  //     request: `organizations/{org}/environments/{env}`.
 26524  func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
 26525  	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26526  	c.name = name
 26527  	return c
 26528  }
 26529  
 26530  // Fields allows partial responses to be retrieved. See
 26531  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26532  // details.
 26533  func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
 26534  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26535  	return c
 26536  }
 26537  
 26538  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26539  // object's ETag matches the given value. This is useful for getting updates
 26540  // only after the object has changed since the last request.
 26541  func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
 26542  	c.ifNoneMatch_ = entityTag
 26543  	return c
 26544  }
 26545  
 26546  // Context sets the context to be used in this call's Do method.
 26547  func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
 26548  	c.ctx_ = ctx
 26549  	return c
 26550  }
 26551  
 26552  // Header returns a http.Header that can be modified by the caller to add
 26553  // headers to the request.
 26554  func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
 26555  	if c.header_ == nil {
 26556  		c.header_ = make(http.Header)
 26557  	}
 26558  	return c.header_
 26559  }
 26560  
 26561  func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 26562  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26563  	if c.ifNoneMatch_ != "" {
 26564  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26565  	}
 26566  	var body io.Reader = nil
 26567  	c.urlParams_.Set("alt", alt)
 26568  	c.urlParams_.Set("prettyPrint", "false")
 26569  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 26570  	urls += "?" + c.urlParams_.Encode()
 26571  	req, err := http.NewRequest("GET", urls, body)
 26572  	if err != nil {
 26573  		return nil, err
 26574  	}
 26575  	req.Header = reqHeaders
 26576  	googleapi.Expand(req.URL, map[string]string{
 26577  		"name": c.name,
 26578  	})
 26579  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26580  }
 26581  
 26582  // Do executes the "apigee.organizations.environments.get" call.
 26583  // Any non-2xx status code is an error. Response headers are in either
 26584  // *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a response was
 26585  // returned at all) in error.(*googleapi.Error).Header. Use
 26586  // googleapi.IsNotModified to check whether the returned error was because
 26587  // http.StatusNotModified was returned.
 26588  func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
 26589  	gensupport.SetOptions(c.urlParams_, opts...)
 26590  	res, err := c.doRequest("json")
 26591  	if res != nil && res.StatusCode == http.StatusNotModified {
 26592  		if res.Body != nil {
 26593  			res.Body.Close()
 26594  		}
 26595  		return nil, gensupport.WrapError(&googleapi.Error{
 26596  			Code:   res.StatusCode,
 26597  			Header: res.Header,
 26598  		})
 26599  	}
 26600  	if err != nil {
 26601  		return nil, err
 26602  	}
 26603  	defer googleapi.CloseBody(res)
 26604  	if err := googleapi.CheckResponse(res); err != nil {
 26605  		return nil, gensupport.WrapError(err)
 26606  	}
 26607  	ret := &GoogleCloudApigeeV1Environment{
 26608  		ServerResponse: googleapi.ServerResponse{
 26609  			Header:         res.Header,
 26610  			HTTPStatusCode: res.StatusCode,
 26611  		},
 26612  	}
 26613  	target := &ret
 26614  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26615  		return nil, err
 26616  	}
 26617  	return ret, nil
 26618  }
 26619  
 26620  type OrganizationsEnvironmentsGetAddonsConfigCall struct {
 26621  	s            *Service
 26622  	name         string
 26623  	urlParams_   gensupport.URLParams
 26624  	ifNoneMatch_ string
 26625  	ctx_         context.Context
 26626  	header_      http.Header
 26627  }
 26628  
 26629  // GetAddonsConfig: Gets the add-ons config of an environment.
 26630  //
 26631  //   - name: Name of the add-ons config. Must be in the format of
 26632  //     `/organizations/{org}/environments/{env}/addonsConfig`.
 26633  func (r *OrganizationsEnvironmentsService) GetAddonsConfig(name string) *OrganizationsEnvironmentsGetAddonsConfigCall {
 26634  	c := &OrganizationsEnvironmentsGetAddonsConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26635  	c.name = name
 26636  	return c
 26637  }
 26638  
 26639  // Fields allows partial responses to be retrieved. See
 26640  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26641  // details.
 26642  func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetAddonsConfigCall {
 26643  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26644  	return c
 26645  }
 26646  
 26647  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26648  // object's ETag matches the given value. This is useful for getting updates
 26649  // only after the object has changed since the last request.
 26650  func (c *OrganizationsEnvironmentsGetAddonsConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetAddonsConfigCall {
 26651  	c.ifNoneMatch_ = entityTag
 26652  	return c
 26653  }
 26654  
 26655  // Context sets the context to be used in this call's Do method.
 26656  func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetAddonsConfigCall {
 26657  	c.ctx_ = ctx
 26658  	return c
 26659  }
 26660  
 26661  // Header returns a http.Header that can be modified by the caller to add
 26662  // headers to the request.
 26663  func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Header() http.Header {
 26664  	if c.header_ == nil {
 26665  		c.header_ = make(http.Header)
 26666  	}
 26667  	return c.header_
 26668  }
 26669  
 26670  func (c *OrganizationsEnvironmentsGetAddonsConfigCall) doRequest(alt string) (*http.Response, error) {
 26671  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26672  	if c.ifNoneMatch_ != "" {
 26673  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26674  	}
 26675  	var body io.Reader = nil
 26676  	c.urlParams_.Set("alt", alt)
 26677  	c.urlParams_.Set("prettyPrint", "false")
 26678  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 26679  	urls += "?" + c.urlParams_.Encode()
 26680  	req, err := http.NewRequest("GET", urls, body)
 26681  	if err != nil {
 26682  		return nil, err
 26683  	}
 26684  	req.Header = reqHeaders
 26685  	googleapi.Expand(req.URL, map[string]string{
 26686  		"name": c.name,
 26687  	})
 26688  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26689  }
 26690  
 26691  // Do executes the "apigee.organizations.environments.getAddonsConfig" call.
 26692  // Any non-2xx status code is an error. Response headers are in either
 26693  // *GoogleCloudApigeeV1AddonsConfig.ServerResponse.Header or (if a response was
 26694  // returned at all) in error.(*googleapi.Error).Header. Use
 26695  // googleapi.IsNotModified to check whether the returned error was because
 26696  // http.StatusNotModified was returned.
 26697  func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AddonsConfig, error) {
 26698  	gensupport.SetOptions(c.urlParams_, opts...)
 26699  	res, err := c.doRequest("json")
 26700  	if res != nil && res.StatusCode == http.StatusNotModified {
 26701  		if res.Body != nil {
 26702  			res.Body.Close()
 26703  		}
 26704  		return nil, gensupport.WrapError(&googleapi.Error{
 26705  			Code:   res.StatusCode,
 26706  			Header: res.Header,
 26707  		})
 26708  	}
 26709  	if err != nil {
 26710  		return nil, err
 26711  	}
 26712  	defer googleapi.CloseBody(res)
 26713  	if err := googleapi.CheckResponse(res); err != nil {
 26714  		return nil, gensupport.WrapError(err)
 26715  	}
 26716  	ret := &GoogleCloudApigeeV1AddonsConfig{
 26717  		ServerResponse: googleapi.ServerResponse{
 26718  			Header:         res.Header,
 26719  			HTTPStatusCode: res.StatusCode,
 26720  		},
 26721  	}
 26722  	target := &ret
 26723  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26724  		return nil, err
 26725  	}
 26726  	return ret, nil
 26727  }
 26728  
 26729  type OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall struct {
 26730  	s            *Service
 26731  	name         string
 26732  	urlParams_   gensupport.URLParams
 26733  	ifNoneMatch_ string
 26734  	ctx_         context.Context
 26735  	header_      http.Header
 26736  }
 26737  
 26738  // GetApiSecurityRuntimeConfig: Gets the API Security runtime configuration for
 26739  // an environment. This named ApiSecurityRuntimeConfig to prevent conflicts
 26740  // with ApiSecurityConfig from addon config.
 26741  //
 26742  //   - name: Name of the environment API Security Runtime configuration resource.
 26743  //     Use the following structure in your request:
 26744  //     `organizations/{org}/environments/{env}/apiSecurityRuntimeConfig`.
 26745  func (r *OrganizationsEnvironmentsService) GetApiSecurityRuntimeConfig(name string) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
 26746  	c := &OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26747  	c.name = name
 26748  	return c
 26749  }
 26750  
 26751  // Fields allows partial responses to be retrieved. See
 26752  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26753  // details.
 26754  func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
 26755  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26756  	return c
 26757  }
 26758  
 26759  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26760  // object's ETag matches the given value. This is useful for getting updates
 26761  // only after the object has changed since the last request.
 26762  func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
 26763  	c.ifNoneMatch_ = entityTag
 26764  	return c
 26765  }
 26766  
 26767  // Context sets the context to be used in this call's Do method.
 26768  func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
 26769  	c.ctx_ = ctx
 26770  	return c
 26771  }
 26772  
 26773  // Header returns a http.Header that can be modified by the caller to add
 26774  // headers to the request.
 26775  func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Header() http.Header {
 26776  	if c.header_ == nil {
 26777  		c.header_ = make(http.Header)
 26778  	}
 26779  	return c.header_
 26780  }
 26781  
 26782  func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
 26783  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26784  	if c.ifNoneMatch_ != "" {
 26785  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26786  	}
 26787  	var body io.Reader = nil
 26788  	c.urlParams_.Set("alt", alt)
 26789  	c.urlParams_.Set("prettyPrint", "false")
 26790  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 26791  	urls += "?" + c.urlParams_.Encode()
 26792  	req, err := http.NewRequest("GET", urls, body)
 26793  	if err != nil {
 26794  		return nil, err
 26795  	}
 26796  	req.Header = reqHeaders
 26797  	googleapi.Expand(req.URL, map[string]string{
 26798  		"name": c.name,
 26799  	})
 26800  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26801  }
 26802  
 26803  // Do executes the "apigee.organizations.environments.getApiSecurityRuntimeConfig" call.
 26804  // Any non-2xx status code is an error. Response headers are in either
 26805  // *GoogleCloudApigeeV1ApiSecurityRuntimeConfig.ServerResponse.Header or (if a
 26806  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26807  // googleapi.IsNotModified to check whether the returned error was because
 26808  // http.StatusNotModified was returned.
 26809  func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiSecurityRuntimeConfig, error) {
 26810  	gensupport.SetOptions(c.urlParams_, opts...)
 26811  	res, err := c.doRequest("json")
 26812  	if res != nil && res.StatusCode == http.StatusNotModified {
 26813  		if res.Body != nil {
 26814  			res.Body.Close()
 26815  		}
 26816  		return nil, gensupport.WrapError(&googleapi.Error{
 26817  			Code:   res.StatusCode,
 26818  			Header: res.Header,
 26819  		})
 26820  	}
 26821  	if err != nil {
 26822  		return nil, err
 26823  	}
 26824  	defer googleapi.CloseBody(res)
 26825  	if err := googleapi.CheckResponse(res); err != nil {
 26826  		return nil, gensupport.WrapError(err)
 26827  	}
 26828  	ret := &GoogleCloudApigeeV1ApiSecurityRuntimeConfig{
 26829  		ServerResponse: googleapi.ServerResponse{
 26830  			Header:         res.Header,
 26831  			HTTPStatusCode: res.StatusCode,
 26832  		},
 26833  	}
 26834  	target := &ret
 26835  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26836  		return nil, err
 26837  	}
 26838  	return ret, nil
 26839  }
 26840  
 26841  type OrganizationsEnvironmentsGetDebugmaskCall struct {
 26842  	s            *Service
 26843  	name         string
 26844  	urlParams_   gensupport.URLParams
 26845  	ifNoneMatch_ string
 26846  	ctx_         context.Context
 26847  	header_      http.Header
 26848  }
 26849  
 26850  // GetDebugmask: Gets the debug mask singleton resource for an environment.
 26851  //
 26852  //   - name: Name of the debug mask. Use the following structure in your request:
 26853  //     `organizations/{org}/environments/{env}/debugmask`.
 26854  func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
 26855  	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26856  	c.name = name
 26857  	return c
 26858  }
 26859  
 26860  // Fields allows partial responses to be retrieved. See
 26861  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26862  // details.
 26863  func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
 26864  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26865  	return c
 26866  }
 26867  
 26868  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26869  // object's ETag matches the given value. This is useful for getting updates
 26870  // only after the object has changed since the last request.
 26871  func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
 26872  	c.ifNoneMatch_ = entityTag
 26873  	return c
 26874  }
 26875  
 26876  // Context sets the context to be used in this call's Do method.
 26877  func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
 26878  	c.ctx_ = ctx
 26879  	return c
 26880  }
 26881  
 26882  // Header returns a http.Header that can be modified by the caller to add
 26883  // headers to the request.
 26884  func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
 26885  	if c.header_ == nil {
 26886  		c.header_ = make(http.Header)
 26887  	}
 26888  	return c.header_
 26889  }
 26890  
 26891  func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
 26892  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26893  	if c.ifNoneMatch_ != "" {
 26894  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26895  	}
 26896  	var body io.Reader = nil
 26897  	c.urlParams_.Set("alt", alt)
 26898  	c.urlParams_.Set("prettyPrint", "false")
 26899  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 26900  	urls += "?" + c.urlParams_.Encode()
 26901  	req, err := http.NewRequest("GET", urls, body)
 26902  	if err != nil {
 26903  		return nil, err
 26904  	}
 26905  	req.Header = reqHeaders
 26906  	googleapi.Expand(req.URL, map[string]string{
 26907  		"name": c.name,
 26908  	})
 26909  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26910  }
 26911  
 26912  // Do executes the "apigee.organizations.environments.getDebugmask" call.
 26913  // Any non-2xx status code is an error. Response headers are in either
 26914  // *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a response was
 26915  // returned at all) in error.(*googleapi.Error).Header. Use
 26916  // googleapi.IsNotModified to check whether the returned error was because
 26917  // http.StatusNotModified was returned.
 26918  func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
 26919  	gensupport.SetOptions(c.urlParams_, opts...)
 26920  	res, err := c.doRequest("json")
 26921  	if res != nil && res.StatusCode == http.StatusNotModified {
 26922  		if res.Body != nil {
 26923  			res.Body.Close()
 26924  		}
 26925  		return nil, gensupport.WrapError(&googleapi.Error{
 26926  			Code:   res.StatusCode,
 26927  			Header: res.Header,
 26928  		})
 26929  	}
 26930  	if err != nil {
 26931  		return nil, err
 26932  	}
 26933  	defer googleapi.CloseBody(res)
 26934  	if err := googleapi.CheckResponse(res); err != nil {
 26935  		return nil, gensupport.WrapError(err)
 26936  	}
 26937  	ret := &GoogleCloudApigeeV1DebugMask{
 26938  		ServerResponse: googleapi.ServerResponse{
 26939  			Header:         res.Header,
 26940  			HTTPStatusCode: res.StatusCode,
 26941  		},
 26942  	}
 26943  	target := &ret
 26944  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26945  		return nil, err
 26946  	}
 26947  	return ret, nil
 26948  }
 26949  
 26950  type OrganizationsEnvironmentsGetDeployedConfigCall struct {
 26951  	s            *Service
 26952  	name         string
 26953  	urlParams_   gensupport.URLParams
 26954  	ifNoneMatch_ string
 26955  	ctx_         context.Context
 26956  	header_      http.Header
 26957  }
 26958  
 26959  // GetDeployedConfig: Gets the deployed configuration for an environment.
 26960  //
 26961  //   - name: Name of the environment deployed configuration resource. Use the
 26962  //     following structure in your request:
 26963  //     `organizations/{org}/environments/{env}/deployedConfig`.
 26964  func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
 26965  	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26966  	c.name = name
 26967  	return c
 26968  }
 26969  
 26970  // Fields allows partial responses to be retrieved. See
 26971  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26972  // details.
 26973  func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
 26974  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26975  	return c
 26976  }
 26977  
 26978  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26979  // object's ETag matches the given value. This is useful for getting updates
 26980  // only after the object has changed since the last request.
 26981  func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
 26982  	c.ifNoneMatch_ = entityTag
 26983  	return c
 26984  }
 26985  
 26986  // Context sets the context to be used in this call's Do method.
 26987  func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
 26988  	c.ctx_ = ctx
 26989  	return c
 26990  }
 26991  
 26992  // Header returns a http.Header that can be modified by the caller to add
 26993  // headers to the request.
 26994  func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
 26995  	if c.header_ == nil {
 26996  		c.header_ = make(http.Header)
 26997  	}
 26998  	return c.header_
 26999  }
 27000  
 27001  func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
 27002  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27003  	if c.ifNoneMatch_ != "" {
 27004  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27005  	}
 27006  	var body io.Reader = nil
 27007  	c.urlParams_.Set("alt", alt)
 27008  	c.urlParams_.Set("prettyPrint", "false")
 27009  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 27010  	urls += "?" + c.urlParams_.Encode()
 27011  	req, err := http.NewRequest("GET", urls, body)
 27012  	if err != nil {
 27013  		return nil, err
 27014  	}
 27015  	req.Header = reqHeaders
 27016  	googleapi.Expand(req.URL, map[string]string{
 27017  		"name": c.name,
 27018  	})
 27019  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27020  }
 27021  
 27022  // Do executes the "apigee.organizations.environments.getDeployedConfig" call.
 27023  // Any non-2xx status code is an error. Response headers are in either
 27024  // *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or (if a
 27025  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27026  // googleapi.IsNotModified to check whether the returned error was because
 27027  // http.StatusNotModified was returned.
 27028  func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
 27029  	gensupport.SetOptions(c.urlParams_, opts...)
 27030  	res, err := c.doRequest("json")
 27031  	if res != nil && res.StatusCode == http.StatusNotModified {
 27032  		if res.Body != nil {
 27033  			res.Body.Close()
 27034  		}
 27035  		return nil, gensupport.WrapError(&googleapi.Error{
 27036  			Code:   res.StatusCode,
 27037  			Header: res.Header,
 27038  		})
 27039  	}
 27040  	if err != nil {
 27041  		return nil, err
 27042  	}
 27043  	defer googleapi.CloseBody(res)
 27044  	if err := googleapi.CheckResponse(res); err != nil {
 27045  		return nil, gensupport.WrapError(err)
 27046  	}
 27047  	ret := &GoogleCloudApigeeV1EnvironmentConfig{
 27048  		ServerResponse: googleapi.ServerResponse{
 27049  			Header:         res.Header,
 27050  			HTTPStatusCode: res.StatusCode,
 27051  		},
 27052  	}
 27053  	target := &ret
 27054  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27055  		return nil, err
 27056  	}
 27057  	return ret, nil
 27058  }
 27059  
 27060  type OrganizationsEnvironmentsGetIamPolicyCall struct {
 27061  	s            *Service
 27062  	resource     string
 27063  	urlParams_   gensupport.URLParams
 27064  	ifNoneMatch_ string
 27065  	ctx_         context.Context
 27066  	header_      http.Header
 27067  }
 27068  
 27069  // GetIamPolicy: Gets the IAM policy on an environment. For more information,
 27070  // see Manage users, roles, and permissions using the API
 27071  // (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
 27072  // You must have the `apigee.environments.getIamPolicy` permission to call this
 27073  // API.
 27074  //
 27075  //   - resource: REQUIRED: The resource for which the policy is being requested.
 27076  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 27077  //     for the appropriate value for this field.
 27078  func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
 27079  	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27080  	c.resource = resource
 27081  	return c
 27082  }
 27083  
 27084  // OptionsRequestedPolicyVersion sets the optional parameter
 27085  // "options.requestedPolicyVersion": The maximum policy version that will be
 27086  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 27087  // an invalid value will be rejected. Requests for policies with any
 27088  // conditional role bindings must specify version 3. Policies with no
 27089  // conditional role bindings may specify any valid value or leave the field
 27090  // unset. The policy in the response might use the policy version that you
 27091  // specified, or it might use a lower policy version. For example, if you
 27092  // specify version 3, but the policy has no conditional role bindings, the
 27093  // response uses version 1. To learn which resources support conditions in
 27094  // their IAM policies, see the IAM documentation
 27095  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 27096  func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
 27097  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 27098  	return c
 27099  }
 27100  
 27101  // Fields allows partial responses to be retrieved. See
 27102  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27103  // details.
 27104  func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
 27105  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27106  	return c
 27107  }
 27108  
 27109  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27110  // object's ETag matches the given value. This is useful for getting updates
 27111  // only after the object has changed since the last request.
 27112  func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
 27113  	c.ifNoneMatch_ = entityTag
 27114  	return c
 27115  }
 27116  
 27117  // Context sets the context to be used in this call's Do method.
 27118  func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
 27119  	c.ctx_ = ctx
 27120  	return c
 27121  }
 27122  
 27123  // Header returns a http.Header that can be modified by the caller to add
 27124  // headers to the request.
 27125  func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
 27126  	if c.header_ == nil {
 27127  		c.header_ = make(http.Header)
 27128  	}
 27129  	return c.header_
 27130  }
 27131  
 27132  func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 27133  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27134  	if c.ifNoneMatch_ != "" {
 27135  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27136  	}
 27137  	var body io.Reader = nil
 27138  	c.urlParams_.Set("alt", alt)
 27139  	c.urlParams_.Set("prettyPrint", "false")
 27140  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 27141  	urls += "?" + c.urlParams_.Encode()
 27142  	req, err := http.NewRequest("GET", urls, body)
 27143  	if err != nil {
 27144  		return nil, err
 27145  	}
 27146  	req.Header = reqHeaders
 27147  	googleapi.Expand(req.URL, map[string]string{
 27148  		"resource": c.resource,
 27149  	})
 27150  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27151  }
 27152  
 27153  // Do executes the "apigee.organizations.environments.getIamPolicy" call.
 27154  // Any non-2xx status code is an error. Response headers are in either
 27155  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 27156  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27157  // check whether the returned error was because http.StatusNotModified was
 27158  // returned.
 27159  func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 27160  	gensupport.SetOptions(c.urlParams_, opts...)
 27161  	res, err := c.doRequest("json")
 27162  	if res != nil && res.StatusCode == http.StatusNotModified {
 27163  		if res.Body != nil {
 27164  			res.Body.Close()
 27165  		}
 27166  		return nil, gensupport.WrapError(&googleapi.Error{
 27167  			Code:   res.StatusCode,
 27168  			Header: res.Header,
 27169  		})
 27170  	}
 27171  	if err != nil {
 27172  		return nil, err
 27173  	}
 27174  	defer googleapi.CloseBody(res)
 27175  	if err := googleapi.CheckResponse(res); err != nil {
 27176  		return nil, gensupport.WrapError(err)
 27177  	}
 27178  	ret := &GoogleIamV1Policy{
 27179  		ServerResponse: googleapi.ServerResponse{
 27180  			Header:         res.Header,
 27181  			HTTPStatusCode: res.StatusCode,
 27182  		},
 27183  	}
 27184  	target := &ret
 27185  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27186  		return nil, err
 27187  	}
 27188  	return ret, nil
 27189  }
 27190  
 27191  type OrganizationsEnvironmentsGetSecurityActionsConfigCall struct {
 27192  	s            *Service
 27193  	name         string
 27194  	urlParams_   gensupport.URLParams
 27195  	ifNoneMatch_ string
 27196  	ctx_         context.Context
 27197  	header_      http.Header
 27198  }
 27199  
 27200  // GetSecurityActionsConfig: GetSecurityActionConfig returns the current
 27201  // SecurityActions configuration.
 27202  //
 27203  //   - name: The name of the SecurityActionsConfig to retrieve. This will always
 27204  //     be: `organizations/{org}/environments/{env}/security_actions_config`.
 27205  func (r *OrganizationsEnvironmentsService) GetSecurityActionsConfig(name string) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
 27206  	c := &OrganizationsEnvironmentsGetSecurityActionsConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27207  	c.name = name
 27208  	return c
 27209  }
 27210  
 27211  // Fields allows partial responses to be retrieved. See
 27212  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27213  // details.
 27214  func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
 27215  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27216  	return c
 27217  }
 27218  
 27219  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27220  // object's ETag matches the given value. This is useful for getting updates
 27221  // only after the object has changed since the last request.
 27222  func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
 27223  	c.ifNoneMatch_ = entityTag
 27224  	return c
 27225  }
 27226  
 27227  // Context sets the context to be used in this call's Do method.
 27228  func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
 27229  	c.ctx_ = ctx
 27230  	return c
 27231  }
 27232  
 27233  // Header returns a http.Header that can be modified by the caller to add
 27234  // headers to the request.
 27235  func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Header() http.Header {
 27236  	if c.header_ == nil {
 27237  		c.header_ = make(http.Header)
 27238  	}
 27239  	return c.header_
 27240  }
 27241  
 27242  func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) doRequest(alt string) (*http.Response, error) {
 27243  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27244  	if c.ifNoneMatch_ != "" {
 27245  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27246  	}
 27247  	var body io.Reader = nil
 27248  	c.urlParams_.Set("alt", alt)
 27249  	c.urlParams_.Set("prettyPrint", "false")
 27250  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 27251  	urls += "?" + c.urlParams_.Encode()
 27252  	req, err := http.NewRequest("GET", urls, body)
 27253  	if err != nil {
 27254  		return nil, err
 27255  	}
 27256  	req.Header = reqHeaders
 27257  	googleapi.Expand(req.URL, map[string]string{
 27258  		"name": c.name,
 27259  	})
 27260  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27261  }
 27262  
 27263  // Do executes the "apigee.organizations.environments.getSecurityActionsConfig" call.
 27264  // Any non-2xx status code is an error. Response headers are in either
 27265  // *GoogleCloudApigeeV1SecurityActionsConfig.ServerResponse.Header or (if a
 27266  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27267  // googleapi.IsNotModified to check whether the returned error was because
 27268  // http.StatusNotModified was returned.
 27269  func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityActionsConfig, error) {
 27270  	gensupport.SetOptions(c.urlParams_, opts...)
 27271  	res, err := c.doRequest("json")
 27272  	if res != nil && res.StatusCode == http.StatusNotModified {
 27273  		if res.Body != nil {
 27274  			res.Body.Close()
 27275  		}
 27276  		return nil, gensupport.WrapError(&googleapi.Error{
 27277  			Code:   res.StatusCode,
 27278  			Header: res.Header,
 27279  		})
 27280  	}
 27281  	if err != nil {
 27282  		return nil, err
 27283  	}
 27284  	defer googleapi.CloseBody(res)
 27285  	if err := googleapi.CheckResponse(res); err != nil {
 27286  		return nil, gensupport.WrapError(err)
 27287  	}
 27288  	ret := &GoogleCloudApigeeV1SecurityActionsConfig{
 27289  		ServerResponse: googleapi.ServerResponse{
 27290  			Header:         res.Header,
 27291  			HTTPStatusCode: res.StatusCode,
 27292  		},
 27293  	}
 27294  	target := &ret
 27295  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27296  		return nil, err
 27297  	}
 27298  	return ret, nil
 27299  }
 27300  
 27301  type OrganizationsEnvironmentsGetTraceConfigCall struct {
 27302  	s            *Service
 27303  	name         string
 27304  	urlParams_   gensupport.URLParams
 27305  	ifNoneMatch_ string
 27306  	ctx_         context.Context
 27307  	header_      http.Header
 27308  }
 27309  
 27310  // GetTraceConfig: Get distributed trace configuration in an environment.
 27311  //
 27312  //   - name: Name of the trace configuration. Use the following structure in your
 27313  //     request: "organizations/*/environments/*/traceConfig".
 27314  func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
 27315  	c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27316  	c.name = name
 27317  	return c
 27318  }
 27319  
 27320  // Fields allows partial responses to be retrieved. See
 27321  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27322  // details.
 27323  func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
 27324  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27325  	return c
 27326  }
 27327  
 27328  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27329  // object's ETag matches the given value. This is useful for getting updates
 27330  // only after the object has changed since the last request.
 27331  func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
 27332  	c.ifNoneMatch_ = entityTag
 27333  	return c
 27334  }
 27335  
 27336  // Context sets the context to be used in this call's Do method.
 27337  func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
 27338  	c.ctx_ = ctx
 27339  	return c
 27340  }
 27341  
 27342  // Header returns a http.Header that can be modified by the caller to add
 27343  // headers to the request.
 27344  func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
 27345  	if c.header_ == nil {
 27346  		c.header_ = make(http.Header)
 27347  	}
 27348  	return c.header_
 27349  }
 27350  
 27351  func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
 27352  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27353  	if c.ifNoneMatch_ != "" {
 27354  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27355  	}
 27356  	var body io.Reader = nil
 27357  	c.urlParams_.Set("alt", alt)
 27358  	c.urlParams_.Set("prettyPrint", "false")
 27359  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 27360  	urls += "?" + c.urlParams_.Encode()
 27361  	req, err := http.NewRequest("GET", urls, body)
 27362  	if err != nil {
 27363  		return nil, err
 27364  	}
 27365  	req.Header = reqHeaders
 27366  	googleapi.Expand(req.URL, map[string]string{
 27367  		"name": c.name,
 27368  	})
 27369  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27370  }
 27371  
 27372  // Do executes the "apigee.organizations.environments.getTraceConfig" call.
 27373  // Any non-2xx status code is an error. Response headers are in either
 27374  // *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a response was
 27375  // returned at all) in error.(*googleapi.Error).Header. Use
 27376  // googleapi.IsNotModified to check whether the returned error was because
 27377  // http.StatusNotModified was returned.
 27378  func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
 27379  	gensupport.SetOptions(c.urlParams_, opts...)
 27380  	res, err := c.doRequest("json")
 27381  	if res != nil && res.StatusCode == http.StatusNotModified {
 27382  		if res.Body != nil {
 27383  			res.Body.Close()
 27384  		}
 27385  		return nil, gensupport.WrapError(&googleapi.Error{
 27386  			Code:   res.StatusCode,
 27387  			Header: res.Header,
 27388  		})
 27389  	}
 27390  	if err != nil {
 27391  		return nil, err
 27392  	}
 27393  	defer googleapi.CloseBody(res)
 27394  	if err := googleapi.CheckResponse(res); err != nil {
 27395  		return nil, gensupport.WrapError(err)
 27396  	}
 27397  	ret := &GoogleCloudApigeeV1TraceConfig{
 27398  		ServerResponse: googleapi.ServerResponse{
 27399  			Header:         res.Header,
 27400  			HTTPStatusCode: res.StatusCode,
 27401  		},
 27402  	}
 27403  	target := &ret
 27404  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27405  		return nil, err
 27406  	}
 27407  	return ret, nil
 27408  }
 27409  
 27410  type OrganizationsEnvironmentsModifyEnvironmentCall struct {
 27411  	s                              *Service
 27412  	name                           string
 27413  	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
 27414  	urlParams_                     gensupport.URLParams
 27415  	ctx_                           context.Context
 27416  	header_                        http.Header
 27417  }
 27418  
 27419  // ModifyEnvironment: Updates properties for an Apigee environment with patch
 27420  // semantics using a field mask. **Note:** Not supported for Apigee hybrid.
 27421  //
 27422  //   - name: Name of the environment. Use the following structure in your
 27423  //     request: `organizations/{org}/environments/{environment}`.
 27424  func (r *OrganizationsEnvironmentsService) ModifyEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsModifyEnvironmentCall {
 27425  	c := &OrganizationsEnvironmentsModifyEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27426  	c.name = name
 27427  	c.googlecloudapigeev1environment = googlecloudapigeev1environment
 27428  	return c
 27429  }
 27430  
 27431  // UpdateMask sets the optional parameter "updateMask": List of fields to be
 27432  // updated. Fields that can be updated: node_config.
 27433  func (c *OrganizationsEnvironmentsModifyEnvironmentCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsModifyEnvironmentCall {
 27434  	c.urlParams_.Set("updateMask", updateMask)
 27435  	return c
 27436  }
 27437  
 27438  // Fields allows partial responses to be retrieved. See
 27439  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27440  // details.
 27441  func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsModifyEnvironmentCall {
 27442  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27443  	return c
 27444  }
 27445  
 27446  // Context sets the context to be used in this call's Do method.
 27447  func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsModifyEnvironmentCall {
 27448  	c.ctx_ = ctx
 27449  	return c
 27450  }
 27451  
 27452  // Header returns a http.Header that can be modified by the caller to add
 27453  // headers to the request.
 27454  func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Header() http.Header {
 27455  	if c.header_ == nil {
 27456  		c.header_ = make(http.Header)
 27457  	}
 27458  	return c.header_
 27459  }
 27460  
 27461  func (c *OrganizationsEnvironmentsModifyEnvironmentCall) doRequest(alt string) (*http.Response, error) {
 27462  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27463  	var body io.Reader = nil
 27464  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
 27465  	if err != nil {
 27466  		return nil, err
 27467  	}
 27468  	c.urlParams_.Set("alt", alt)
 27469  	c.urlParams_.Set("prettyPrint", "false")
 27470  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 27471  	urls += "?" + c.urlParams_.Encode()
 27472  	req, err := http.NewRequest("PATCH", urls, body)
 27473  	if err != nil {
 27474  		return nil, err
 27475  	}
 27476  	req.Header = reqHeaders
 27477  	googleapi.Expand(req.URL, map[string]string{
 27478  		"name": c.name,
 27479  	})
 27480  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27481  }
 27482  
 27483  // Do executes the "apigee.organizations.environments.modifyEnvironment" call.
 27484  // Any non-2xx status code is an error. Response headers are in either
 27485  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27486  // returned at all) in error.(*googleapi.Error).Header. Use
 27487  // googleapi.IsNotModified to check whether the returned error was because
 27488  // http.StatusNotModified was returned.
 27489  func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27490  	gensupport.SetOptions(c.urlParams_, opts...)
 27491  	res, err := c.doRequest("json")
 27492  	if res != nil && res.StatusCode == http.StatusNotModified {
 27493  		if res.Body != nil {
 27494  			res.Body.Close()
 27495  		}
 27496  		return nil, gensupport.WrapError(&googleapi.Error{
 27497  			Code:   res.StatusCode,
 27498  			Header: res.Header,
 27499  		})
 27500  	}
 27501  	if err != nil {
 27502  		return nil, err
 27503  	}
 27504  	defer googleapi.CloseBody(res)
 27505  	if err := googleapi.CheckResponse(res); err != nil {
 27506  		return nil, gensupport.WrapError(err)
 27507  	}
 27508  	ret := &GoogleLongrunningOperation{
 27509  		ServerResponse: googleapi.ServerResponse{
 27510  			Header:         res.Header,
 27511  			HTTPStatusCode: res.StatusCode,
 27512  		},
 27513  	}
 27514  	target := &ret
 27515  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27516  		return nil, err
 27517  	}
 27518  	return ret, nil
 27519  }
 27520  
 27521  type OrganizationsEnvironmentsSetIamPolicyCall struct {
 27522  	s                              *Service
 27523  	resource                       string
 27524  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 27525  	urlParams_                     gensupport.URLParams
 27526  	ctx_                           context.Context
 27527  	header_                        http.Header
 27528  }
 27529  
 27530  // SetIamPolicy: Sets the IAM policy on an environment, if the policy already
 27531  // exists it will be replaced. For more information, see Manage users, roles,
 27532  // and permissions using the API
 27533  // (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
 27534  // You must have the `apigee.environments.setIamPolicy` permission to call this
 27535  // API.
 27536  //
 27537  //   - resource: REQUIRED: The resource for which the policy is being specified.
 27538  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 27539  //     for the appropriate value for this field.
 27540  func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
 27541  	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27542  	c.resource = resource
 27543  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 27544  	return c
 27545  }
 27546  
 27547  // Fields allows partial responses to be retrieved. See
 27548  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27549  // details.
 27550  func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
 27551  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27552  	return c
 27553  }
 27554  
 27555  // Context sets the context to be used in this call's Do method.
 27556  func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
 27557  	c.ctx_ = ctx
 27558  	return c
 27559  }
 27560  
 27561  // Header returns a http.Header that can be modified by the caller to add
 27562  // headers to the request.
 27563  func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
 27564  	if c.header_ == nil {
 27565  		c.header_ = make(http.Header)
 27566  	}
 27567  	return c.header_
 27568  }
 27569  
 27570  func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 27571  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27572  	var body io.Reader = nil
 27573  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 27574  	if err != nil {
 27575  		return nil, err
 27576  	}
 27577  	c.urlParams_.Set("alt", alt)
 27578  	c.urlParams_.Set("prettyPrint", "false")
 27579  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 27580  	urls += "?" + c.urlParams_.Encode()
 27581  	req, err := http.NewRequest("POST", urls, body)
 27582  	if err != nil {
 27583  		return nil, err
 27584  	}
 27585  	req.Header = reqHeaders
 27586  	googleapi.Expand(req.URL, map[string]string{
 27587  		"resource": c.resource,
 27588  	})
 27589  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27590  }
 27591  
 27592  // Do executes the "apigee.organizations.environments.setIamPolicy" call.
 27593  // Any non-2xx status code is an error. Response headers are in either
 27594  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 27595  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27596  // check whether the returned error was because http.StatusNotModified was
 27597  // returned.
 27598  func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 27599  	gensupport.SetOptions(c.urlParams_, opts...)
 27600  	res, err := c.doRequest("json")
 27601  	if res != nil && res.StatusCode == http.StatusNotModified {
 27602  		if res.Body != nil {
 27603  			res.Body.Close()
 27604  		}
 27605  		return nil, gensupport.WrapError(&googleapi.Error{
 27606  			Code:   res.StatusCode,
 27607  			Header: res.Header,
 27608  		})
 27609  	}
 27610  	if err != nil {
 27611  		return nil, err
 27612  	}
 27613  	defer googleapi.CloseBody(res)
 27614  	if err := googleapi.CheckResponse(res); err != nil {
 27615  		return nil, gensupport.WrapError(err)
 27616  	}
 27617  	ret := &GoogleIamV1Policy{
 27618  		ServerResponse: googleapi.ServerResponse{
 27619  			Header:         res.Header,
 27620  			HTTPStatusCode: res.StatusCode,
 27621  		},
 27622  	}
 27623  	target := &ret
 27624  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27625  		return nil, err
 27626  	}
 27627  	return ret, nil
 27628  }
 27629  
 27630  type OrganizationsEnvironmentsSubscribeCall struct {
 27631  	s          *Service
 27632  	parent     string
 27633  	urlParams_ gensupport.URLParams
 27634  	ctx_       context.Context
 27635  	header_    http.Header
 27636  }
 27637  
 27638  // Subscribe: Creates a subscription for the environment's Pub/Sub topic. The
 27639  // server will assign a random name for this subscription. The "name" and
 27640  // "push_config" must *not* be specified.
 27641  //
 27642  //   - parent: Name of the environment. Use the following structure in your
 27643  //     request: `organizations/{org}/environments/{env}`.
 27644  func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
 27645  	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27646  	c.parent = parent
 27647  	return c
 27648  }
 27649  
 27650  // Fields allows partial responses to be retrieved. See
 27651  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27652  // details.
 27653  func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
 27654  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27655  	return c
 27656  }
 27657  
 27658  // Context sets the context to be used in this call's Do method.
 27659  func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
 27660  	c.ctx_ = ctx
 27661  	return c
 27662  }
 27663  
 27664  // Header returns a http.Header that can be modified by the caller to add
 27665  // headers to the request.
 27666  func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
 27667  	if c.header_ == nil {
 27668  		c.header_ = make(http.Header)
 27669  	}
 27670  	return c.header_
 27671  }
 27672  
 27673  func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
 27674  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27675  	var body io.Reader = nil
 27676  	c.urlParams_.Set("alt", alt)
 27677  	c.urlParams_.Set("prettyPrint", "false")
 27678  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
 27679  	urls += "?" + c.urlParams_.Encode()
 27680  	req, err := http.NewRequest("POST", urls, body)
 27681  	if err != nil {
 27682  		return nil, err
 27683  	}
 27684  	req.Header = reqHeaders
 27685  	googleapi.Expand(req.URL, map[string]string{
 27686  		"parent": c.parent,
 27687  	})
 27688  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27689  }
 27690  
 27691  // Do executes the "apigee.organizations.environments.subscribe" call.
 27692  // Any non-2xx status code is an error. Response headers are in either
 27693  // *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if a response was
 27694  // returned at all) in error.(*googleapi.Error).Header. Use
 27695  // googleapi.IsNotModified to check whether the returned error was because
 27696  // http.StatusNotModified was returned.
 27697  func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
 27698  	gensupport.SetOptions(c.urlParams_, opts...)
 27699  	res, err := c.doRequest("json")
 27700  	if res != nil && res.StatusCode == http.StatusNotModified {
 27701  		if res.Body != nil {
 27702  			res.Body.Close()
 27703  		}
 27704  		return nil, gensupport.WrapError(&googleapi.Error{
 27705  			Code:   res.StatusCode,
 27706  			Header: res.Header,
 27707  		})
 27708  	}
 27709  	if err != nil {
 27710  		return nil, err
 27711  	}
 27712  	defer googleapi.CloseBody(res)
 27713  	if err := googleapi.CheckResponse(res); err != nil {
 27714  		return nil, gensupport.WrapError(err)
 27715  	}
 27716  	ret := &GoogleCloudApigeeV1Subscription{
 27717  		ServerResponse: googleapi.ServerResponse{
 27718  			Header:         res.Header,
 27719  			HTTPStatusCode: res.StatusCode,
 27720  		},
 27721  	}
 27722  	target := &ret
 27723  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27724  		return nil, err
 27725  	}
 27726  	return ret, nil
 27727  }
 27728  
 27729  type OrganizationsEnvironmentsTestIamPermissionsCall struct {
 27730  	s                                    *Service
 27731  	resource                             string
 27732  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 27733  	urlParams_                           gensupport.URLParams
 27734  	ctx_                                 context.Context
 27735  	header_                              http.Header
 27736  }
 27737  
 27738  // TestIamPermissions: Tests the permissions of a user on an environment, and
 27739  // returns a subset of permissions that the user has on the environment. If the
 27740  // environment does not exist, an empty permission set is returned (a NOT_FOUND
 27741  // error is not returned).
 27742  //
 27743  //   - resource: REQUIRED: The resource for which the policy detail is being
 27744  //     requested. See Resource names
 27745  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 27746  //     value for this field.
 27747  func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
 27748  	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27749  	c.resource = resource
 27750  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 27751  	return c
 27752  }
 27753  
 27754  // Fields allows partial responses to be retrieved. See
 27755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27756  // details.
 27757  func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
 27758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27759  	return c
 27760  }
 27761  
 27762  // Context sets the context to be used in this call's Do method.
 27763  func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
 27764  	c.ctx_ = ctx
 27765  	return c
 27766  }
 27767  
 27768  // Header returns a http.Header that can be modified by the caller to add
 27769  // headers to the request.
 27770  func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
 27771  	if c.header_ == nil {
 27772  		c.header_ = make(http.Header)
 27773  	}
 27774  	return c.header_
 27775  }
 27776  
 27777  func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 27778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27779  	var body io.Reader = nil
 27780  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 27781  	if err != nil {
 27782  		return nil, err
 27783  	}
 27784  	c.urlParams_.Set("alt", alt)
 27785  	c.urlParams_.Set("prettyPrint", "false")
 27786  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 27787  	urls += "?" + c.urlParams_.Encode()
 27788  	req, err := http.NewRequest("POST", urls, body)
 27789  	if err != nil {
 27790  		return nil, err
 27791  	}
 27792  	req.Header = reqHeaders
 27793  	googleapi.Expand(req.URL, map[string]string{
 27794  		"resource": c.resource,
 27795  	})
 27796  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27797  }
 27798  
 27799  // Do executes the "apigee.organizations.environments.testIamPermissions" call.
 27800  // Any non-2xx status code is an error. Response headers are in either
 27801  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 27802  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27803  // googleapi.IsNotModified to check whether the returned error was because
 27804  // http.StatusNotModified was returned.
 27805  func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 27806  	gensupport.SetOptions(c.urlParams_, opts...)
 27807  	res, err := c.doRequest("json")
 27808  	if res != nil && res.StatusCode == http.StatusNotModified {
 27809  		if res.Body != nil {
 27810  			res.Body.Close()
 27811  		}
 27812  		return nil, gensupport.WrapError(&googleapi.Error{
 27813  			Code:   res.StatusCode,
 27814  			Header: res.Header,
 27815  		})
 27816  	}
 27817  	if err != nil {
 27818  		return nil, err
 27819  	}
 27820  	defer googleapi.CloseBody(res)
 27821  	if err := googleapi.CheckResponse(res); err != nil {
 27822  		return nil, gensupport.WrapError(err)
 27823  	}
 27824  	ret := &GoogleIamV1TestIamPermissionsResponse{
 27825  		ServerResponse: googleapi.ServerResponse{
 27826  			Header:         res.Header,
 27827  			HTTPStatusCode: res.StatusCode,
 27828  		},
 27829  	}
 27830  	target := &ret
 27831  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27832  		return nil, err
 27833  	}
 27834  	return ret, nil
 27835  }
 27836  
 27837  type OrganizationsEnvironmentsUnsubscribeCall struct {
 27838  	s                               *Service
 27839  	parent                          string
 27840  	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
 27841  	urlParams_                      gensupport.URLParams
 27842  	ctx_                            context.Context
 27843  	header_                         http.Header
 27844  }
 27845  
 27846  // Unsubscribe: Deletes a subscription for the environment's Pub/Sub topic.
 27847  //
 27848  //   - parent: Name of the environment. Use the following structure in your
 27849  //     request: `organizations/{org}/environments/{env}`.
 27850  func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
 27851  	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27852  	c.parent = parent
 27853  	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
 27854  	return c
 27855  }
 27856  
 27857  // Fields allows partial responses to be retrieved. See
 27858  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27859  // details.
 27860  func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
 27861  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27862  	return c
 27863  }
 27864  
 27865  // Context sets the context to be used in this call's Do method.
 27866  func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
 27867  	c.ctx_ = ctx
 27868  	return c
 27869  }
 27870  
 27871  // Header returns a http.Header that can be modified by the caller to add
 27872  // headers to the request.
 27873  func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
 27874  	if c.header_ == nil {
 27875  		c.header_ = make(http.Header)
 27876  	}
 27877  	return c.header_
 27878  }
 27879  
 27880  func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
 27881  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27882  	var body io.Reader = nil
 27883  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
 27884  	if err != nil {
 27885  		return nil, err
 27886  	}
 27887  	c.urlParams_.Set("alt", alt)
 27888  	c.urlParams_.Set("prettyPrint", "false")
 27889  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
 27890  	urls += "?" + c.urlParams_.Encode()
 27891  	req, err := http.NewRequest("POST", urls, body)
 27892  	if err != nil {
 27893  		return nil, err
 27894  	}
 27895  	req.Header = reqHeaders
 27896  	googleapi.Expand(req.URL, map[string]string{
 27897  		"parent": c.parent,
 27898  	})
 27899  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27900  }
 27901  
 27902  // Do executes the "apigee.organizations.environments.unsubscribe" call.
 27903  // Any non-2xx status code is an error. Response headers are in either
 27904  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27905  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27906  // check whether the returned error was because http.StatusNotModified was
 27907  // returned.
 27908  func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27909  	gensupport.SetOptions(c.urlParams_, opts...)
 27910  	res, err := c.doRequest("json")
 27911  	if res != nil && res.StatusCode == http.StatusNotModified {
 27912  		if res.Body != nil {
 27913  			res.Body.Close()
 27914  		}
 27915  		return nil, gensupport.WrapError(&googleapi.Error{
 27916  			Code:   res.StatusCode,
 27917  			Header: res.Header,
 27918  		})
 27919  	}
 27920  	if err != nil {
 27921  		return nil, err
 27922  	}
 27923  	defer googleapi.CloseBody(res)
 27924  	if err := googleapi.CheckResponse(res); err != nil {
 27925  		return nil, gensupport.WrapError(err)
 27926  	}
 27927  	ret := &GoogleProtobufEmpty{
 27928  		ServerResponse: googleapi.ServerResponse{
 27929  			Header:         res.Header,
 27930  			HTTPStatusCode: res.StatusCode,
 27931  		},
 27932  	}
 27933  	target := &ret
 27934  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27935  		return nil, err
 27936  	}
 27937  	return ret, nil
 27938  }
 27939  
 27940  type OrganizationsEnvironmentsUpdateCall struct {
 27941  	s                              *Service
 27942  	name                           string
 27943  	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
 27944  	urlParams_                     gensupport.URLParams
 27945  	ctx_                           context.Context
 27946  	header_                        http.Header
 27947  }
 27948  
 27949  // Update: Updates an existing environment. When updating properties, you must
 27950  // pass all existing properties to the API, even if they are not being changed.
 27951  // If you omit properties from the payload, the properties are removed. To get
 27952  // the current list of properties for the environment, use the Get Environment
 27953  // API (get). **Note**: Both `PUT` and `POST` methods are supported for
 27954  // updating an existing environment.
 27955  //
 27956  //   - name: Name of the environment. Use the following structure in your
 27957  //     request: `organizations/{org}/environments/{env}`.
 27958  func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
 27959  	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27960  	c.name = name
 27961  	c.googlecloudapigeev1environment = googlecloudapigeev1environment
 27962  	return c
 27963  }
 27964  
 27965  // Fields allows partial responses to be retrieved. See
 27966  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27967  // details.
 27968  func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
 27969  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27970  	return c
 27971  }
 27972  
 27973  // Context sets the context to be used in this call's Do method.
 27974  func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
 27975  	c.ctx_ = ctx
 27976  	return c
 27977  }
 27978  
 27979  // Header returns a http.Header that can be modified by the caller to add
 27980  // headers to the request.
 27981  func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
 27982  	if c.header_ == nil {
 27983  		c.header_ = make(http.Header)
 27984  	}
 27985  	return c.header_
 27986  }
 27987  
 27988  func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
 27989  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27990  	var body io.Reader = nil
 27991  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
 27992  	if err != nil {
 27993  		return nil, err
 27994  	}
 27995  	c.urlParams_.Set("alt", alt)
 27996  	c.urlParams_.Set("prettyPrint", "false")
 27997  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 27998  	urls += "?" + c.urlParams_.Encode()
 27999  	req, err := http.NewRequest("PUT", urls, body)
 28000  	if err != nil {
 28001  		return nil, err
 28002  	}
 28003  	req.Header = reqHeaders
 28004  	googleapi.Expand(req.URL, map[string]string{
 28005  		"name": c.name,
 28006  	})
 28007  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28008  }
 28009  
 28010  // Do executes the "apigee.organizations.environments.update" call.
 28011  // Any non-2xx status code is an error. Response headers are in either
 28012  // *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a response was
 28013  // returned at all) in error.(*googleapi.Error).Header. Use
 28014  // googleapi.IsNotModified to check whether the returned error was because
 28015  // http.StatusNotModified was returned.
 28016  func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
 28017  	gensupport.SetOptions(c.urlParams_, opts...)
 28018  	res, err := c.doRequest("json")
 28019  	if res != nil && res.StatusCode == http.StatusNotModified {
 28020  		if res.Body != nil {
 28021  			res.Body.Close()
 28022  		}
 28023  		return nil, gensupport.WrapError(&googleapi.Error{
 28024  			Code:   res.StatusCode,
 28025  			Header: res.Header,
 28026  		})
 28027  	}
 28028  	if err != nil {
 28029  		return nil, err
 28030  	}
 28031  	defer googleapi.CloseBody(res)
 28032  	if err := googleapi.CheckResponse(res); err != nil {
 28033  		return nil, gensupport.WrapError(err)
 28034  	}
 28035  	ret := &GoogleCloudApigeeV1Environment{
 28036  		ServerResponse: googleapi.ServerResponse{
 28037  			Header:         res.Header,
 28038  			HTTPStatusCode: res.StatusCode,
 28039  		},
 28040  	}
 28041  	target := &ret
 28042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28043  		return nil, err
 28044  	}
 28045  	return ret, nil
 28046  }
 28047  
 28048  type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
 28049  	s                            *Service
 28050  	name                         string
 28051  	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
 28052  	urlParams_                   gensupport.URLParams
 28053  	ctx_                         context.Context
 28054  	header_                      http.Header
 28055  }
 28056  
 28057  // UpdateDebugmask: Updates the debug mask singleton resource for an
 28058  // environment.
 28059  //
 28060  // - name: Name of the debug mask.
 28061  func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
 28062  	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28063  	c.name = name
 28064  	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
 28065  	return c
 28066  }
 28067  
 28068  // ReplaceRepeatedFields sets the optional parameter "replaceRepeatedFields":
 28069  // Boolean flag that specifies whether to replace existing values in the debug
 28070  // mask when doing an update. Set to true to replace existing values. The
 28071  // default behavior is to append the values (false).
 28072  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
 28073  	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
 28074  	return c
 28075  }
 28076  
 28077  // UpdateMask sets the optional parameter "updateMask": Field debug mask to
 28078  // support partial updates.
 28079  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
 28080  	c.urlParams_.Set("updateMask", updateMask)
 28081  	return c
 28082  }
 28083  
 28084  // Fields allows partial responses to be retrieved. See
 28085  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28086  // details.
 28087  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
 28088  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28089  	return c
 28090  }
 28091  
 28092  // Context sets the context to be used in this call's Do method.
 28093  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
 28094  	c.ctx_ = ctx
 28095  	return c
 28096  }
 28097  
 28098  // Header returns a http.Header that can be modified by the caller to add
 28099  // headers to the request.
 28100  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
 28101  	if c.header_ == nil {
 28102  		c.header_ = make(http.Header)
 28103  	}
 28104  	return c.header_
 28105  }
 28106  
 28107  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
 28108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28109  	var body io.Reader = nil
 28110  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
 28111  	if err != nil {
 28112  		return nil, err
 28113  	}
 28114  	c.urlParams_.Set("alt", alt)
 28115  	c.urlParams_.Set("prettyPrint", "false")
 28116  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 28117  	urls += "?" + c.urlParams_.Encode()
 28118  	req, err := http.NewRequest("PATCH", urls, body)
 28119  	if err != nil {
 28120  		return nil, err
 28121  	}
 28122  	req.Header = reqHeaders
 28123  	googleapi.Expand(req.URL, map[string]string{
 28124  		"name": c.name,
 28125  	})
 28126  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28127  }
 28128  
 28129  // Do executes the "apigee.organizations.environments.updateDebugmask" call.
 28130  // Any non-2xx status code is an error. Response headers are in either
 28131  // *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a response was
 28132  // returned at all) in error.(*googleapi.Error).Header. Use
 28133  // googleapi.IsNotModified to check whether the returned error was because
 28134  // http.StatusNotModified was returned.
 28135  func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
 28136  	gensupport.SetOptions(c.urlParams_, opts...)
 28137  	res, err := c.doRequest("json")
 28138  	if res != nil && res.StatusCode == http.StatusNotModified {
 28139  		if res.Body != nil {
 28140  			res.Body.Close()
 28141  		}
 28142  		return nil, gensupport.WrapError(&googleapi.Error{
 28143  			Code:   res.StatusCode,
 28144  			Header: res.Header,
 28145  		})
 28146  	}
 28147  	if err != nil {
 28148  		return nil, err
 28149  	}
 28150  	defer googleapi.CloseBody(res)
 28151  	if err := googleapi.CheckResponse(res); err != nil {
 28152  		return nil, gensupport.WrapError(err)
 28153  	}
 28154  	ret := &GoogleCloudApigeeV1DebugMask{
 28155  		ServerResponse: googleapi.ServerResponse{
 28156  			Header:         res.Header,
 28157  			HTTPStatusCode: res.StatusCode,
 28158  		},
 28159  	}
 28160  	target := &ret
 28161  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28162  		return nil, err
 28163  	}
 28164  	return ret, nil
 28165  }
 28166  
 28167  type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
 28168  	s                              *Service
 28169  	name                           string
 28170  	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
 28171  	urlParams_                     gensupport.URLParams
 28172  	ctx_                           context.Context
 28173  	header_                        http.Header
 28174  }
 28175  
 28176  // UpdateEnvironment: Updates an existing environment. When updating
 28177  // properties, you must pass all existing properties to the API, even if they
 28178  // are not being changed. If you omit properties from the payload, the
 28179  // properties are removed. To get the current list of properties for the
 28180  // environment, use the Get Environment API (get). **Note**: Both `PUT` and
 28181  // `POST` methods are supported for updating an existing environment.
 28182  //
 28183  //   - name: Name of the environment. Use the following structure in your
 28184  //     request: `organizations/{org}/environments/{env}`.
 28185  func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
 28186  	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28187  	c.name = name
 28188  	c.googlecloudapigeev1environment = googlecloudapigeev1environment
 28189  	return c
 28190  }
 28191  
 28192  // Fields allows partial responses to be retrieved. See
 28193  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28194  // details.
 28195  func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
 28196  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28197  	return c
 28198  }
 28199  
 28200  // Context sets the context to be used in this call's Do method.
 28201  func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
 28202  	c.ctx_ = ctx
 28203  	return c
 28204  }
 28205  
 28206  // Header returns a http.Header that can be modified by the caller to add
 28207  // headers to the request.
 28208  func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
 28209  	if c.header_ == nil {
 28210  		c.header_ = make(http.Header)
 28211  	}
 28212  	return c.header_
 28213  }
 28214  
 28215  func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
 28216  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28217  	var body io.Reader = nil
 28218  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
 28219  	if err != nil {
 28220  		return nil, err
 28221  	}
 28222  	c.urlParams_.Set("alt", alt)
 28223  	c.urlParams_.Set("prettyPrint", "false")
 28224  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 28225  	urls += "?" + c.urlParams_.Encode()
 28226  	req, err := http.NewRequest("POST", urls, body)
 28227  	if err != nil {
 28228  		return nil, err
 28229  	}
 28230  	req.Header = reqHeaders
 28231  	googleapi.Expand(req.URL, map[string]string{
 28232  		"name": c.name,
 28233  	})
 28234  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28235  }
 28236  
 28237  // Do executes the "apigee.organizations.environments.updateEnvironment" call.
 28238  // Any non-2xx status code is an error. Response headers are in either
 28239  // *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a response was
 28240  // returned at all) in error.(*googleapi.Error).Header. Use
 28241  // googleapi.IsNotModified to check whether the returned error was because
 28242  // http.StatusNotModified was returned.
 28243  func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
 28244  	gensupport.SetOptions(c.urlParams_, opts...)
 28245  	res, err := c.doRequest("json")
 28246  	if res != nil && res.StatusCode == http.StatusNotModified {
 28247  		if res.Body != nil {
 28248  			res.Body.Close()
 28249  		}
 28250  		return nil, gensupport.WrapError(&googleapi.Error{
 28251  			Code:   res.StatusCode,
 28252  			Header: res.Header,
 28253  		})
 28254  	}
 28255  	if err != nil {
 28256  		return nil, err
 28257  	}
 28258  	defer googleapi.CloseBody(res)
 28259  	if err := googleapi.CheckResponse(res); err != nil {
 28260  		return nil, gensupport.WrapError(err)
 28261  	}
 28262  	ret := &GoogleCloudApigeeV1Environment{
 28263  		ServerResponse: googleapi.ServerResponse{
 28264  			Header:         res.Header,
 28265  			HTTPStatusCode: res.StatusCode,
 28266  		},
 28267  	}
 28268  	target := &ret
 28269  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28270  		return nil, err
 28271  	}
 28272  	return ret, nil
 28273  }
 28274  
 28275  type OrganizationsEnvironmentsUpdateSecurityActionsConfigCall struct {
 28276  	s                                        *Service
 28277  	name                                     string
 28278  	googlecloudapigeev1securityactionsconfig *GoogleCloudApigeeV1SecurityActionsConfig
 28279  	urlParams_                               gensupport.URLParams
 28280  	ctx_                                     context.Context
 28281  	header_                                  http.Header
 28282  }
 28283  
 28284  // UpdateSecurityActionsConfig: UpdateSecurityActionConfig updates the current
 28285  // SecurityActions configuration. This method is used to enable/disable the
 28286  // feature at the environment level.
 28287  //
 28288  //   - name: This is a singleton resource, the name will always be set by
 28289  //     SecurityActions and any user input will be ignored. The name is always:
 28290  //     `organizations/{org}/environments/{env}/security_actions_config`.
 28291  func (r *OrganizationsEnvironmentsService) UpdateSecurityActionsConfig(name string, googlecloudapigeev1securityactionsconfig *GoogleCloudApigeeV1SecurityActionsConfig) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
 28292  	c := &OrganizationsEnvironmentsUpdateSecurityActionsConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28293  	c.name = name
 28294  	c.googlecloudapigeev1securityactionsconfig = googlecloudapigeev1securityactionsconfig
 28295  	return c
 28296  }
 28297  
 28298  // UpdateMask sets the optional parameter "updateMask": The list of fields to
 28299  // update.
 28300  func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
 28301  	c.urlParams_.Set("updateMask", updateMask)
 28302  	return c
 28303  }
 28304  
 28305  // Fields allows partial responses to be retrieved. See
 28306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28307  // details.
 28308  func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
 28309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28310  	return c
 28311  }
 28312  
 28313  // Context sets the context to be used in this call's Do method.
 28314  func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
 28315  	c.ctx_ = ctx
 28316  	return c
 28317  }
 28318  
 28319  // Header returns a http.Header that can be modified by the caller to add
 28320  // headers to the request.
 28321  func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Header() http.Header {
 28322  	if c.header_ == nil {
 28323  		c.header_ = make(http.Header)
 28324  	}
 28325  	return c.header_
 28326  }
 28327  
 28328  func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) doRequest(alt string) (*http.Response, error) {
 28329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28330  	var body io.Reader = nil
 28331  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityactionsconfig)
 28332  	if err != nil {
 28333  		return nil, err
 28334  	}
 28335  	c.urlParams_.Set("alt", alt)
 28336  	c.urlParams_.Set("prettyPrint", "false")
 28337  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 28338  	urls += "?" + c.urlParams_.Encode()
 28339  	req, err := http.NewRequest("PATCH", urls, body)
 28340  	if err != nil {
 28341  		return nil, err
 28342  	}
 28343  	req.Header = reqHeaders
 28344  	googleapi.Expand(req.URL, map[string]string{
 28345  		"name": c.name,
 28346  	})
 28347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28348  }
 28349  
 28350  // Do executes the "apigee.organizations.environments.updateSecurityActionsConfig" call.
 28351  // Any non-2xx status code is an error. Response headers are in either
 28352  // *GoogleCloudApigeeV1SecurityActionsConfig.ServerResponse.Header or (if a
 28353  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28354  // googleapi.IsNotModified to check whether the returned error was because
 28355  // http.StatusNotModified was returned.
 28356  func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityActionsConfig, error) {
 28357  	gensupport.SetOptions(c.urlParams_, opts...)
 28358  	res, err := c.doRequest("json")
 28359  	if res != nil && res.StatusCode == http.StatusNotModified {
 28360  		if res.Body != nil {
 28361  			res.Body.Close()
 28362  		}
 28363  		return nil, gensupport.WrapError(&googleapi.Error{
 28364  			Code:   res.StatusCode,
 28365  			Header: res.Header,
 28366  		})
 28367  	}
 28368  	if err != nil {
 28369  		return nil, err
 28370  	}
 28371  	defer googleapi.CloseBody(res)
 28372  	if err := googleapi.CheckResponse(res); err != nil {
 28373  		return nil, gensupport.WrapError(err)
 28374  	}
 28375  	ret := &GoogleCloudApigeeV1SecurityActionsConfig{
 28376  		ServerResponse: googleapi.ServerResponse{
 28377  			Header:         res.Header,
 28378  			HTTPStatusCode: res.StatusCode,
 28379  		},
 28380  	}
 28381  	target := &ret
 28382  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28383  		return nil, err
 28384  	}
 28385  	return ret, nil
 28386  }
 28387  
 28388  type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
 28389  	s                              *Service
 28390  	name                           string
 28391  	googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
 28392  	urlParams_                     gensupport.URLParams
 28393  	ctx_                           context.Context
 28394  	header_                        http.Header
 28395  }
 28396  
 28397  // UpdateTraceConfig: Updates the trace configurations in an environment. Note
 28398  // that the repeated fields have replace semantics when included in the field
 28399  // mask and that they will be overwritten by the value of the fields in the
 28400  // request body.
 28401  //
 28402  //   - name: Name of the trace configuration. Use the following structure in your
 28403  //     request: "organizations/*/environments/*/traceConfig".
 28404  func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
 28405  	c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28406  	c.name = name
 28407  	c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
 28408  	return c
 28409  }
 28410  
 28411  // UpdateMask sets the optional parameter "updateMask": List of fields to be
 28412  // updated.
 28413  func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
 28414  	c.urlParams_.Set("updateMask", updateMask)
 28415  	return c
 28416  }
 28417  
 28418  // Fields allows partial responses to be retrieved. See
 28419  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28420  // details.
 28421  func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
 28422  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28423  	return c
 28424  }
 28425  
 28426  // Context sets the context to be used in this call's Do method.
 28427  func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
 28428  	c.ctx_ = ctx
 28429  	return c
 28430  }
 28431  
 28432  // Header returns a http.Header that can be modified by the caller to add
 28433  // headers to the request.
 28434  func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
 28435  	if c.header_ == nil {
 28436  		c.header_ = make(http.Header)
 28437  	}
 28438  	return c.header_
 28439  }
 28440  
 28441  func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
 28442  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28443  	var body io.Reader = nil
 28444  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
 28445  	if err != nil {
 28446  		return nil, err
 28447  	}
 28448  	c.urlParams_.Set("alt", alt)
 28449  	c.urlParams_.Set("prettyPrint", "false")
 28450  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 28451  	urls += "?" + c.urlParams_.Encode()
 28452  	req, err := http.NewRequest("PATCH", urls, body)
 28453  	if err != nil {
 28454  		return nil, err
 28455  	}
 28456  	req.Header = reqHeaders
 28457  	googleapi.Expand(req.URL, map[string]string{
 28458  		"name": c.name,
 28459  	})
 28460  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28461  }
 28462  
 28463  // Do executes the "apigee.organizations.environments.updateTraceConfig" call.
 28464  // Any non-2xx status code is an error. Response headers are in either
 28465  // *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a response was
 28466  // returned at all) in error.(*googleapi.Error).Header. Use
 28467  // googleapi.IsNotModified to check whether the returned error was because
 28468  // http.StatusNotModified was returned.
 28469  func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
 28470  	gensupport.SetOptions(c.urlParams_, opts...)
 28471  	res, err := c.doRequest("json")
 28472  	if res != nil && res.StatusCode == http.StatusNotModified {
 28473  		if res.Body != nil {
 28474  			res.Body.Close()
 28475  		}
 28476  		return nil, gensupport.WrapError(&googleapi.Error{
 28477  			Code:   res.StatusCode,
 28478  			Header: res.Header,
 28479  		})
 28480  	}
 28481  	if err != nil {
 28482  		return nil, err
 28483  	}
 28484  	defer googleapi.CloseBody(res)
 28485  	if err := googleapi.CheckResponse(res); err != nil {
 28486  		return nil, gensupport.WrapError(err)
 28487  	}
 28488  	ret := &GoogleCloudApigeeV1TraceConfig{
 28489  		ServerResponse: googleapi.ServerResponse{
 28490  			Header:         res.Header,
 28491  			HTTPStatusCode: res.StatusCode,
 28492  		},
 28493  	}
 28494  	target := &ret
 28495  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28496  		return nil, err
 28497  	}
 28498  	return ret, nil
 28499  }
 28500  
 28501  type OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall struct {
 28502  	s                                            *Service
 28503  	name                                         string
 28504  	googlecloudapigeev1setaddonenablementrequest *GoogleCloudApigeeV1SetAddonEnablementRequest
 28505  	urlParams_                                   gensupport.URLParams
 28506  	ctx_                                         context.Context
 28507  	header_                                      http.Header
 28508  }
 28509  
 28510  // SetAddonEnablement: Updates an add-on enablement status of an environment.
 28511  //
 28512  //   - name: Name of the add-ons config. Must be in the format of
 28513  //     `/organizations/{org}/environments/{env}/addonsConfig`.
 28514  func (r *OrganizationsEnvironmentsAddonsConfigService) SetAddonEnablement(name string, googlecloudapigeev1setaddonenablementrequest *GoogleCloudApigeeV1SetAddonEnablementRequest) *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall {
 28515  	c := &OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28516  	c.name = name
 28517  	c.googlecloudapigeev1setaddonenablementrequest = googlecloudapigeev1setaddonenablementrequest
 28518  	return c
 28519  }
 28520  
 28521  // Fields allows partial responses to be retrieved. See
 28522  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28523  // details.
 28524  func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall {
 28525  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28526  	return c
 28527  }
 28528  
 28529  // Context sets the context to be used in this call's Do method.
 28530  func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Context(ctx context.Context) *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall {
 28531  	c.ctx_ = ctx
 28532  	return c
 28533  }
 28534  
 28535  // Header returns a http.Header that can be modified by the caller to add
 28536  // headers to the request.
 28537  func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Header() http.Header {
 28538  	if c.header_ == nil {
 28539  		c.header_ = make(http.Header)
 28540  	}
 28541  	return c.header_
 28542  }
 28543  
 28544  func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) doRequest(alt string) (*http.Response, error) {
 28545  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28546  	var body io.Reader = nil
 28547  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonenablementrequest)
 28548  	if err != nil {
 28549  		return nil, err
 28550  	}
 28551  	c.urlParams_.Set("alt", alt)
 28552  	c.urlParams_.Set("prettyPrint", "false")
 28553  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setAddonEnablement")
 28554  	urls += "?" + c.urlParams_.Encode()
 28555  	req, err := http.NewRequest("POST", urls, body)
 28556  	if err != nil {
 28557  		return nil, err
 28558  	}
 28559  	req.Header = reqHeaders
 28560  	googleapi.Expand(req.URL, map[string]string{
 28561  		"name": c.name,
 28562  	})
 28563  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28564  }
 28565  
 28566  // Do executes the "apigee.organizations.environments.addonsConfig.setAddonEnablement" call.
 28567  // Any non-2xx status code is an error. Response headers are in either
 28568  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28569  // returned at all) in error.(*googleapi.Error).Header. Use
 28570  // googleapi.IsNotModified to check whether the returned error was because
 28571  // http.StatusNotModified was returned.
 28572  func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28573  	gensupport.SetOptions(c.urlParams_, opts...)
 28574  	res, err := c.doRequest("json")
 28575  	if res != nil && res.StatusCode == http.StatusNotModified {
 28576  		if res.Body != nil {
 28577  			res.Body.Close()
 28578  		}
 28579  		return nil, gensupport.WrapError(&googleapi.Error{
 28580  			Code:   res.StatusCode,
 28581  			Header: res.Header,
 28582  		})
 28583  	}
 28584  	if err != nil {
 28585  		return nil, err
 28586  	}
 28587  	defer googleapi.CloseBody(res)
 28588  	if err := googleapi.CheckResponse(res); err != nil {
 28589  		return nil, gensupport.WrapError(err)
 28590  	}
 28591  	ret := &GoogleLongrunningOperation{
 28592  		ServerResponse: googleapi.ServerResponse{
 28593  			Header:         res.Header,
 28594  			HTTPStatusCode: res.StatusCode,
 28595  		},
 28596  	}
 28597  	target := &ret
 28598  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28599  		return nil, err
 28600  	}
 28601  	return ret, nil
 28602  }
 28603  
 28604  type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
 28605  	s            *Service
 28606  	name         string
 28607  	urlParams_   gensupport.URLParams
 28608  	ifNoneMatch_ string
 28609  	ctx_         context.Context
 28610  	header_      http.Header
 28611  }
 28612  
 28613  // GetSchemav2: Gets a list of metrics and dimensions that can be used to
 28614  // create analytics queries and reports. Each schema element contains the name
 28615  // of the field, its associated type, and a flag indicating whether it is a
 28616  // standard or custom field.
 28617  //
 28618  //   - name: Path to the schema. Use the following structure in your request:
 28619  //     `organizations/{org}/environments/{env}/analytics/admin/schemav2`.
 28620  func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
 28621  	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
 28622  	c.name = name
 28623  	return c
 28624  }
 28625  
 28626  // DisableCache sets the optional parameter "disableCache": Flag that specifies
 28627  // whether the schema is be read from the database or cache. Set to `true` to
 28628  // read the schema from the database. Defaults to cache.
 28629  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) DisableCache(disableCache bool) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
 28630  	c.urlParams_.Set("disableCache", fmt.Sprint(disableCache))
 28631  	return c
 28632  }
 28633  
 28634  // Type sets the optional parameter "type": Required. Name of the dataset for
 28635  // which you want to retrieve the schema. For example: `fact` or `agg_cus1`
 28636  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
 28637  	c.urlParams_.Set("type", type_)
 28638  	return c
 28639  }
 28640  
 28641  // Fields allows partial responses to be retrieved. See
 28642  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28643  // details.
 28644  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
 28645  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28646  	return c
 28647  }
 28648  
 28649  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28650  // object's ETag matches the given value. This is useful for getting updates
 28651  // only after the object has changed since the last request.
 28652  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
 28653  	c.ifNoneMatch_ = entityTag
 28654  	return c
 28655  }
 28656  
 28657  // Context sets the context to be used in this call's Do method.
 28658  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
 28659  	c.ctx_ = ctx
 28660  	return c
 28661  }
 28662  
 28663  // Header returns a http.Header that can be modified by the caller to add
 28664  // headers to the request.
 28665  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
 28666  	if c.header_ == nil {
 28667  		c.header_ = make(http.Header)
 28668  	}
 28669  	return c.header_
 28670  }
 28671  
 28672  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
 28673  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28674  	if c.ifNoneMatch_ != "" {
 28675  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28676  	}
 28677  	var body io.Reader = nil
 28678  	c.urlParams_.Set("alt", alt)
 28679  	c.urlParams_.Set("prettyPrint", "false")
 28680  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 28681  	urls += "?" + c.urlParams_.Encode()
 28682  	req, err := http.NewRequest("GET", urls, body)
 28683  	if err != nil {
 28684  		return nil, err
 28685  	}
 28686  	req.Header = reqHeaders
 28687  	googleapi.Expand(req.URL, map[string]string{
 28688  		"name": c.name,
 28689  	})
 28690  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28691  }
 28692  
 28693  // Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
 28694  // Any non-2xx status code is an error. Response headers are in either
 28695  // *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response was
 28696  // returned at all) in error.(*googleapi.Error).Header. Use
 28697  // googleapi.IsNotModified to check whether the returned error was because
 28698  // http.StatusNotModified was returned.
 28699  func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
 28700  	gensupport.SetOptions(c.urlParams_, opts...)
 28701  	res, err := c.doRequest("json")
 28702  	if res != nil && res.StatusCode == http.StatusNotModified {
 28703  		if res.Body != nil {
 28704  			res.Body.Close()
 28705  		}
 28706  		return nil, gensupport.WrapError(&googleapi.Error{
 28707  			Code:   res.StatusCode,
 28708  			Header: res.Header,
 28709  		})
 28710  	}
 28711  	if err != nil {
 28712  		return nil, err
 28713  	}
 28714  	defer googleapi.CloseBody(res)
 28715  	if err := googleapi.CheckResponse(res); err != nil {
 28716  		return nil, gensupport.WrapError(err)
 28717  	}
 28718  	ret := &GoogleCloudApigeeV1Schema{
 28719  		ServerResponse: googleapi.ServerResponse{
 28720  			Header:         res.Header,
 28721  			HTTPStatusCode: res.StatusCode,
 28722  		},
 28723  	}
 28724  	target := &ret
 28725  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28726  		return nil, err
 28727  	}
 28728  	return ret, nil
 28729  }
 28730  
 28731  type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
 28732  	s                                *Service
 28733  	parent                           string
 28734  	googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
 28735  	urlParams_                       gensupport.URLParams
 28736  	ctx_                             context.Context
 28737  	header_                          http.Header
 28738  }
 28739  
 28740  // Create: Submit a data export job to be processed in the background. If the
 28741  // request is successful, the API returns a 201 status, a URI that can be used
 28742  // to retrieve the status of the export job, and the `state` value of
 28743  // "enqueued".
 28744  //
 28745  //   - parent: Names of the parent organization and environment. Must be of the
 28746  //     form `organizations/{org}/environments/{env}`.
 28747  func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
 28748  	c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28749  	c.parent = parent
 28750  	c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
 28751  	return c
 28752  }
 28753  
 28754  // Fields allows partial responses to be retrieved. See
 28755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28756  // details.
 28757  func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
 28758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28759  	return c
 28760  }
 28761  
 28762  // Context sets the context to be used in this call's Do method.
 28763  func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
 28764  	c.ctx_ = ctx
 28765  	return c
 28766  }
 28767  
 28768  // Header returns a http.Header that can be modified by the caller to add
 28769  // headers to the request.
 28770  func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
 28771  	if c.header_ == nil {
 28772  		c.header_ = make(http.Header)
 28773  	}
 28774  	return c.header_
 28775  }
 28776  
 28777  func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
 28778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28779  	var body io.Reader = nil
 28780  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
 28781  	if err != nil {
 28782  		return nil, err
 28783  	}
 28784  	c.urlParams_.Set("alt", alt)
 28785  	c.urlParams_.Set("prettyPrint", "false")
 28786  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
 28787  	urls += "?" + c.urlParams_.Encode()
 28788  	req, err := http.NewRequest("POST", urls, body)
 28789  	if err != nil {
 28790  		return nil, err
 28791  	}
 28792  	req.Header = reqHeaders
 28793  	googleapi.Expand(req.URL, map[string]string{
 28794  		"parent": c.parent,
 28795  	})
 28796  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28797  }
 28798  
 28799  // Do executes the "apigee.organizations.environments.analytics.exports.create" call.
 28800  // Any non-2xx status code is an error. Response headers are in either
 28801  // *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response was
 28802  // returned at all) in error.(*googleapi.Error).Header. Use
 28803  // googleapi.IsNotModified to check whether the returned error was because
 28804  // http.StatusNotModified was returned.
 28805  func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
 28806  	gensupport.SetOptions(c.urlParams_, opts...)
 28807  	res, err := c.doRequest("json")
 28808  	if res != nil && res.StatusCode == http.StatusNotModified {
 28809  		if res.Body != nil {
 28810  			res.Body.Close()
 28811  		}
 28812  		return nil, gensupport.WrapError(&googleapi.Error{
 28813  			Code:   res.StatusCode,
 28814  			Header: res.Header,
 28815  		})
 28816  	}
 28817  	if err != nil {
 28818  		return nil, err
 28819  	}
 28820  	defer googleapi.CloseBody(res)
 28821  	if err := googleapi.CheckResponse(res); err != nil {
 28822  		return nil, gensupport.WrapError(err)
 28823  	}
 28824  	ret := &GoogleCloudApigeeV1Export{
 28825  		ServerResponse: googleapi.ServerResponse{
 28826  			Header:         res.Header,
 28827  			HTTPStatusCode: res.StatusCode,
 28828  		},
 28829  	}
 28830  	target := &ret
 28831  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28832  		return nil, err
 28833  	}
 28834  	return ret, nil
 28835  }
 28836  
 28837  type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
 28838  	s            *Service
 28839  	name         string
 28840  	urlParams_   gensupport.URLParams
 28841  	ifNoneMatch_ string
 28842  	ctx_         context.Context
 28843  	header_      http.Header
 28844  }
 28845  
 28846  // Get: Gets the details and status of an analytics export job. If the export
 28847  // job is still in progress, its `state` is set to "running". After the export
 28848  // job has completed successfully, its `state` is set to "completed". If the
 28849  // export job fails, its `state` is set to `failed`.
 28850  //
 28851  // - name: Resource name of the export to get.
 28852  func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
 28853  	c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28854  	c.name = name
 28855  	return c
 28856  }
 28857  
 28858  // Fields allows partial responses to be retrieved. See
 28859  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28860  // details.
 28861  func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
 28862  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28863  	return c
 28864  }
 28865  
 28866  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28867  // object's ETag matches the given value. This is useful for getting updates
 28868  // only after the object has changed since the last request.
 28869  func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
 28870  	c.ifNoneMatch_ = entityTag
 28871  	return c
 28872  }
 28873  
 28874  // Context sets the context to be used in this call's Do method.
 28875  func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
 28876  	c.ctx_ = ctx
 28877  	return c
 28878  }
 28879  
 28880  // Header returns a http.Header that can be modified by the caller to add
 28881  // headers to the request.
 28882  func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
 28883  	if c.header_ == nil {
 28884  		c.header_ = make(http.Header)
 28885  	}
 28886  	return c.header_
 28887  }
 28888  
 28889  func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
 28890  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28891  	if c.ifNoneMatch_ != "" {
 28892  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28893  	}
 28894  	var body io.Reader = nil
 28895  	c.urlParams_.Set("alt", alt)
 28896  	c.urlParams_.Set("prettyPrint", "false")
 28897  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 28898  	urls += "?" + c.urlParams_.Encode()
 28899  	req, err := http.NewRequest("GET", urls, body)
 28900  	if err != nil {
 28901  		return nil, err
 28902  	}
 28903  	req.Header = reqHeaders
 28904  	googleapi.Expand(req.URL, map[string]string{
 28905  		"name": c.name,
 28906  	})
 28907  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28908  }
 28909  
 28910  // Do executes the "apigee.organizations.environments.analytics.exports.get" call.
 28911  // Any non-2xx status code is an error. Response headers are in either
 28912  // *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response was
 28913  // returned at all) in error.(*googleapi.Error).Header. Use
 28914  // googleapi.IsNotModified to check whether the returned error was because
 28915  // http.StatusNotModified was returned.
 28916  func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
 28917  	gensupport.SetOptions(c.urlParams_, opts...)
 28918  	res, err := c.doRequest("json")
 28919  	if res != nil && res.StatusCode == http.StatusNotModified {
 28920  		if res.Body != nil {
 28921  			res.Body.Close()
 28922  		}
 28923  		return nil, gensupport.WrapError(&googleapi.Error{
 28924  			Code:   res.StatusCode,
 28925  			Header: res.Header,
 28926  		})
 28927  	}
 28928  	if err != nil {
 28929  		return nil, err
 28930  	}
 28931  	defer googleapi.CloseBody(res)
 28932  	if err := googleapi.CheckResponse(res); err != nil {
 28933  		return nil, gensupport.WrapError(err)
 28934  	}
 28935  	ret := &GoogleCloudApigeeV1Export{
 28936  		ServerResponse: googleapi.ServerResponse{
 28937  			Header:         res.Header,
 28938  			HTTPStatusCode: res.StatusCode,
 28939  		},
 28940  	}
 28941  	target := &ret
 28942  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28943  		return nil, err
 28944  	}
 28945  	return ret, nil
 28946  }
 28947  
 28948  type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
 28949  	s            *Service
 28950  	parent       string
 28951  	urlParams_   gensupport.URLParams
 28952  	ifNoneMatch_ string
 28953  	ctx_         context.Context
 28954  	header_      http.Header
 28955  }
 28956  
 28957  // List: Lists the details and status of all analytics export jobs belonging to
 28958  // the parent organization and environment.
 28959  //
 28960  //   - parent: Names of the parent organization and environment. Must be of the
 28961  //     form `organizations/{org}/environments/{env}`.
 28962  func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
 28963  	c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28964  	c.parent = parent
 28965  	return c
 28966  }
 28967  
 28968  // Fields allows partial responses to be retrieved. See
 28969  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28970  // details.
 28971  func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
 28972  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28973  	return c
 28974  }
 28975  
 28976  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28977  // object's ETag matches the given value. This is useful for getting updates
 28978  // only after the object has changed since the last request.
 28979  func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
 28980  	c.ifNoneMatch_ = entityTag
 28981  	return c
 28982  }
 28983  
 28984  // Context sets the context to be used in this call's Do method.
 28985  func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
 28986  	c.ctx_ = ctx
 28987  	return c
 28988  }
 28989  
 28990  // Header returns a http.Header that can be modified by the caller to add
 28991  // headers to the request.
 28992  func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
 28993  	if c.header_ == nil {
 28994  		c.header_ = make(http.Header)
 28995  	}
 28996  	return c.header_
 28997  }
 28998  
 28999  func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
 29000  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29001  	if c.ifNoneMatch_ != "" {
 29002  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29003  	}
 29004  	var body io.Reader = nil
 29005  	c.urlParams_.Set("alt", alt)
 29006  	c.urlParams_.Set("prettyPrint", "false")
 29007  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
 29008  	urls += "?" + c.urlParams_.Encode()
 29009  	req, err := http.NewRequest("GET", urls, body)
 29010  	if err != nil {
 29011  		return nil, err
 29012  	}
 29013  	req.Header = reqHeaders
 29014  	googleapi.Expand(req.URL, map[string]string{
 29015  		"parent": c.parent,
 29016  	})
 29017  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29018  }
 29019  
 29020  // Do executes the "apigee.organizations.environments.analytics.exports.list" call.
 29021  // Any non-2xx status code is an error. Response headers are in either
 29022  // *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if a
 29023  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29024  // googleapi.IsNotModified to check whether the returned error was because
 29025  // http.StatusNotModified was returned.
 29026  func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
 29027  	gensupport.SetOptions(c.urlParams_, opts...)
 29028  	res, err := c.doRequest("json")
 29029  	if res != nil && res.StatusCode == http.StatusNotModified {
 29030  		if res.Body != nil {
 29031  			res.Body.Close()
 29032  		}
 29033  		return nil, gensupport.WrapError(&googleapi.Error{
 29034  			Code:   res.StatusCode,
 29035  			Header: res.Header,
 29036  		})
 29037  	}
 29038  	if err != nil {
 29039  		return nil, err
 29040  	}
 29041  	defer googleapi.CloseBody(res)
 29042  	if err := googleapi.CheckResponse(res); err != nil {
 29043  		return nil, gensupport.WrapError(err)
 29044  	}
 29045  	ret := &GoogleCloudApigeeV1ListExportsResponse{
 29046  		ServerResponse: googleapi.ServerResponse{
 29047  			Header:         res.Header,
 29048  			HTTPStatusCode: res.StatusCode,
 29049  		},
 29050  	}
 29051  	target := &ret
 29052  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29053  		return nil, err
 29054  	}
 29055  	return ret, nil
 29056  }
 29057  
 29058  type OrganizationsEnvironmentsApisDeploymentsListCall struct {
 29059  	s            *Service
 29060  	parent       string
 29061  	urlParams_   gensupport.URLParams
 29062  	ifNoneMatch_ string
 29063  	ctx_         context.Context
 29064  	header_      http.Header
 29065  }
 29066  
 29067  // List: Lists all deployments of an API proxy in an environment.
 29068  //
 29069  //   - parent: Name representing an API proxy in an environment in the following
 29070  //     format: `organizations/{org}/environments/{env}/apis/{api}`.
 29071  func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
 29072  	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29073  	c.parent = parent
 29074  	return c
 29075  }
 29076  
 29077  // Fields allows partial responses to be retrieved. See
 29078  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29079  // details.
 29080  func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
 29081  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29082  	return c
 29083  }
 29084  
 29085  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29086  // object's ETag matches the given value. This is useful for getting updates
 29087  // only after the object has changed since the last request.
 29088  func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
 29089  	c.ifNoneMatch_ = entityTag
 29090  	return c
 29091  }
 29092  
 29093  // Context sets the context to be used in this call's Do method.
 29094  func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
 29095  	c.ctx_ = ctx
 29096  	return c
 29097  }
 29098  
 29099  // Header returns a http.Header that can be modified by the caller to add
 29100  // headers to the request.
 29101  func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
 29102  	if c.header_ == nil {
 29103  		c.header_ = make(http.Header)
 29104  	}
 29105  	return c.header_
 29106  }
 29107  
 29108  func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 29109  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29110  	if c.ifNoneMatch_ != "" {
 29111  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29112  	}
 29113  	var body io.Reader = nil
 29114  	c.urlParams_.Set("alt", alt)
 29115  	c.urlParams_.Set("prettyPrint", "false")
 29116  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 29117  	urls += "?" + c.urlParams_.Encode()
 29118  	req, err := http.NewRequest("GET", urls, body)
 29119  	if err != nil {
 29120  		return nil, err
 29121  	}
 29122  	req.Header = reqHeaders
 29123  	googleapi.Expand(req.URL, map[string]string{
 29124  		"parent": c.parent,
 29125  	})
 29126  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29127  }
 29128  
 29129  // Do executes the "apigee.organizations.environments.apis.deployments.list" call.
 29130  // Any non-2xx status code is an error. Response headers are in either
 29131  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 29132  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29133  // googleapi.IsNotModified to check whether the returned error was because
 29134  // http.StatusNotModified was returned.
 29135  func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 29136  	gensupport.SetOptions(c.urlParams_, opts...)
 29137  	res, err := c.doRequest("json")
 29138  	if res != nil && res.StatusCode == http.StatusNotModified {
 29139  		if res.Body != nil {
 29140  			res.Body.Close()
 29141  		}
 29142  		return nil, gensupport.WrapError(&googleapi.Error{
 29143  			Code:   res.StatusCode,
 29144  			Header: res.Header,
 29145  		})
 29146  	}
 29147  	if err != nil {
 29148  		return nil, err
 29149  	}
 29150  	defer googleapi.CloseBody(res)
 29151  	if err := googleapi.CheckResponse(res); err != nil {
 29152  		return nil, gensupport.WrapError(err)
 29153  	}
 29154  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 29155  		ServerResponse: googleapi.ServerResponse{
 29156  			Header:         res.Header,
 29157  			HTTPStatusCode: res.StatusCode,
 29158  		},
 29159  	}
 29160  	target := &ret
 29161  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29162  		return nil, err
 29163  	}
 29164  	return ret, nil
 29165  }
 29166  
 29167  type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
 29168  	s          *Service
 29169  	name       string
 29170  	urlParams_ gensupport.URLParams
 29171  	ctx_       context.Context
 29172  	header_    http.Header
 29173  }
 29174  
 29175  // Deploy: Deploys a revision of an API proxy. If another revision of the same
 29176  // API proxy revision is currently deployed, set the `override` parameter to
 29177  // `true` to have this revision replace the currently deployed revision. You
 29178  // cannot invoke an API proxy until it has been deployed to an environment.
 29179  // After you deploy an API proxy revision, you cannot edit it. To edit the API
 29180  // proxy, you must create and deploy a new revision. For a request path
 29181  // `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployment
 29182  // s`, two permissions are required: * `apigee.deployments.create` on the
 29183  // resource `organizations/{org}/environments/{env}` *
 29184  // `apigee.proxyrevisions.deploy` on the resource
 29185  // `organizations/{org}/apis/{api}/revisions/{rev}`
 29186  //
 29187  //   - name: Name of the API proxy revision deployment in the following format:
 29188  //     `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
 29189  func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
 29190  	c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29191  	c.name = name
 29192  	return c
 29193  }
 29194  
 29195  // Override sets the optional parameter "override": Flag that specifies whether
 29196  // the new deployment replaces other deployed revisions of the API proxy in the
 29197  // environment. Set `override` to `true` to replace other deployed revisions.
 29198  // By default, `override` is `false` and the deployment is rejected if other
 29199  // revisions of the API proxy are deployed in the environment.
 29200  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
 29201  	c.urlParams_.Set("override", fmt.Sprint(override))
 29202  	return c
 29203  }
 29204  
 29205  // SequencedRollout sets the optional parameter "sequencedRollout": Flag that
 29206  // specifies whether to enable sequenced rollout. If set to `true`, the routing
 29207  // rules for this deployment and the environment changes to add the deployment
 29208  // will be rolled out in a safe order. This reduces the risk of downtime that
 29209  // could be caused by changing the environment group's routing before the new
 29210  // destination for the affected traffic is ready to receive it. This should
 29211  // only be necessary if the new deployment will be capturing traffic from
 29212  // another environment under a shared environment group or if traffic will be
 29213  // rerouted to a different environment due to a base path removal. The
 29214  // generateDeployChangeReport API may be used to examine routing changes before
 29215  // issuing the deployment request, and its response will indicate if a
 29216  // sequenced rollout is recommended for the deployment.
 29217  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
 29218  	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
 29219  	return c
 29220  }
 29221  
 29222  // ServiceAccount sets the optional parameter "serviceAccount": Google Cloud
 29223  // IAM service account. The service account represents the identity of the
 29224  // deployed proxy, and determines what permissions it has. The format must be
 29225  // `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.
 29226  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
 29227  	c.urlParams_.Set("serviceAccount", serviceAccount)
 29228  	return c
 29229  }
 29230  
 29231  // Fields allows partial responses to be retrieved. See
 29232  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29233  // details.
 29234  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
 29235  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29236  	return c
 29237  }
 29238  
 29239  // Context sets the context to be used in this call's Do method.
 29240  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
 29241  	c.ctx_ = ctx
 29242  	return c
 29243  }
 29244  
 29245  // Header returns a http.Header that can be modified by the caller to add
 29246  // headers to the request.
 29247  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
 29248  	if c.header_ == nil {
 29249  		c.header_ = make(http.Header)
 29250  	}
 29251  	return c.header_
 29252  }
 29253  
 29254  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
 29255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29256  	var body io.Reader = nil
 29257  	c.urlParams_.Set("alt", alt)
 29258  	c.urlParams_.Set("prettyPrint", "false")
 29259  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
 29260  	urls += "?" + c.urlParams_.Encode()
 29261  	req, err := http.NewRequest("POST", urls, body)
 29262  	if err != nil {
 29263  		return nil, err
 29264  	}
 29265  	req.Header = reqHeaders
 29266  	googleapi.Expand(req.URL, map[string]string{
 29267  		"name": c.name,
 29268  	})
 29269  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29270  }
 29271  
 29272  // Do executes the "apigee.organizations.environments.apis.revisions.deploy" call.
 29273  // Any non-2xx status code is an error. Response headers are in either
 29274  // *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a response was
 29275  // returned at all) in error.(*googleapi.Error).Header. Use
 29276  // googleapi.IsNotModified to check whether the returned error was because
 29277  // http.StatusNotModified was returned.
 29278  func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
 29279  	gensupport.SetOptions(c.urlParams_, opts...)
 29280  	res, err := c.doRequest("json")
 29281  	if res != nil && res.StatusCode == http.StatusNotModified {
 29282  		if res.Body != nil {
 29283  			res.Body.Close()
 29284  		}
 29285  		return nil, gensupport.WrapError(&googleapi.Error{
 29286  			Code:   res.StatusCode,
 29287  			Header: res.Header,
 29288  		})
 29289  	}
 29290  	if err != nil {
 29291  		return nil, err
 29292  	}
 29293  	defer googleapi.CloseBody(res)
 29294  	if err := googleapi.CheckResponse(res); err != nil {
 29295  		return nil, gensupport.WrapError(err)
 29296  	}
 29297  	ret := &GoogleCloudApigeeV1Deployment{
 29298  		ServerResponse: googleapi.ServerResponse{
 29299  			Header:         res.Header,
 29300  			HTTPStatusCode: res.StatusCode,
 29301  		},
 29302  	}
 29303  	target := &ret
 29304  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29305  		return nil, err
 29306  	}
 29307  	return ret, nil
 29308  }
 29309  
 29310  type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
 29311  	s            *Service
 29312  	name         string
 29313  	urlParams_   gensupport.URLParams
 29314  	ifNoneMatch_ string
 29315  	ctx_         context.Context
 29316  	header_      http.Header
 29317  }
 29318  
 29319  // GetDeployments: Gets the deployment of an API proxy revision and actual
 29320  // state reported by runtime pods.
 29321  //
 29322  //   - name: Name representing an API proxy revision in an environment in the
 29323  //     following format:
 29324  //     `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
 29325  func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
 29326  	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29327  	c.name = name
 29328  	return c
 29329  }
 29330  
 29331  // Fields allows partial responses to be retrieved. See
 29332  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29333  // details.
 29334  func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
 29335  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29336  	return c
 29337  }
 29338  
 29339  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29340  // object's ETag matches the given value. This is useful for getting updates
 29341  // only after the object has changed since the last request.
 29342  func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
 29343  	c.ifNoneMatch_ = entityTag
 29344  	return c
 29345  }
 29346  
 29347  // Context sets the context to be used in this call's Do method.
 29348  func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
 29349  	c.ctx_ = ctx
 29350  	return c
 29351  }
 29352  
 29353  // Header returns a http.Header that can be modified by the caller to add
 29354  // headers to the request.
 29355  func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
 29356  	if c.header_ == nil {
 29357  		c.header_ = make(http.Header)
 29358  	}
 29359  	return c.header_
 29360  }
 29361  
 29362  func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
 29363  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29364  	if c.ifNoneMatch_ != "" {
 29365  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29366  	}
 29367  	var body io.Reader = nil
 29368  	c.urlParams_.Set("alt", alt)
 29369  	c.urlParams_.Set("prettyPrint", "false")
 29370  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
 29371  	urls += "?" + c.urlParams_.Encode()
 29372  	req, err := http.NewRequest("GET", urls, body)
 29373  	if err != nil {
 29374  		return nil, err
 29375  	}
 29376  	req.Header = reqHeaders
 29377  	googleapi.Expand(req.URL, map[string]string{
 29378  		"name": c.name,
 29379  	})
 29380  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29381  }
 29382  
 29383  // Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
 29384  // Any non-2xx status code is an error. Response headers are in either
 29385  // *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a response was
 29386  // returned at all) in error.(*googleapi.Error).Header. Use
 29387  // googleapi.IsNotModified to check whether the returned error was because
 29388  // http.StatusNotModified was returned.
 29389  func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
 29390  	gensupport.SetOptions(c.urlParams_, opts...)
 29391  	res, err := c.doRequest("json")
 29392  	if res != nil && res.StatusCode == http.StatusNotModified {
 29393  		if res.Body != nil {
 29394  			res.Body.Close()
 29395  		}
 29396  		return nil, gensupport.WrapError(&googleapi.Error{
 29397  			Code:   res.StatusCode,
 29398  			Header: res.Header,
 29399  		})
 29400  	}
 29401  	if err != nil {
 29402  		return nil, err
 29403  	}
 29404  	defer googleapi.CloseBody(res)
 29405  	if err := googleapi.CheckResponse(res); err != nil {
 29406  		return nil, gensupport.WrapError(err)
 29407  	}
 29408  	ret := &GoogleCloudApigeeV1Deployment{
 29409  		ServerResponse: googleapi.ServerResponse{
 29410  			Header:         res.Header,
 29411  			HTTPStatusCode: res.StatusCode,
 29412  		},
 29413  	}
 29414  	target := &ret
 29415  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29416  		return nil, err
 29417  	}
 29418  	return ret, nil
 29419  }
 29420  
 29421  type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
 29422  	s          *Service
 29423  	name       string
 29424  	urlParams_ gensupport.URLParams
 29425  	ctx_       context.Context
 29426  	header_    http.Header
 29427  }
 29428  
 29429  // Undeploy: Undeploys an API proxy revision from an environment. For a request
 29430  // path
 29431  // `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployment
 29432  // s`, two permissions are required: * `apigee.deployments.delete` on the
 29433  // resource `organizations/{org}/environments/{env}` *
 29434  // `apigee.proxyrevisions.undeploy` on the resource
 29435  // `organizations/{org}/apis/{api}/revisions/{rev}`
 29436  //
 29437  //   - name: Name of the API proxy revision deployment in the following format:
 29438  //     `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
 29439  func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
 29440  	c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29441  	c.name = name
 29442  	return c
 29443  }
 29444  
 29445  // SequencedRollout sets the optional parameter "sequencedRollout": Flag that
 29446  // specifies whether to enable sequenced rollout. If set to `true`, the
 29447  // environment group routing rules corresponding to this deployment will be
 29448  // removed before removing the deployment from the runtime. This is likely to
 29449  // be a rare use case; it is only needed when the intended effect of
 29450  // undeploying this proxy is to cause the traffic it currently handles to be
 29451  // rerouted to some other existing proxy in the environment group. The
 29452  // GenerateUndeployChangeReport API may be used to examine routing changes
 29453  // before issuing the undeployment request, and its response will indicate if a
 29454  // sequenced rollout is recommended for the undeployment.
 29455  func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
 29456  	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
 29457  	return c
 29458  }
 29459  
 29460  // Fields allows partial responses to be retrieved. See
 29461  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29462  // details.
 29463  func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
 29464  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29465  	return c
 29466  }
 29467  
 29468  // Context sets the context to be used in this call's Do method.
 29469  func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
 29470  	c.ctx_ = ctx
 29471  	return c
 29472  }
 29473  
 29474  // Header returns a http.Header that can be modified by the caller to add
 29475  // headers to the request.
 29476  func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
 29477  	if c.header_ == nil {
 29478  		c.header_ = make(http.Header)
 29479  	}
 29480  	return c.header_
 29481  }
 29482  
 29483  func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
 29484  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29485  	var body io.Reader = nil
 29486  	c.urlParams_.Set("alt", alt)
 29487  	c.urlParams_.Set("prettyPrint", "false")
 29488  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
 29489  	urls += "?" + c.urlParams_.Encode()
 29490  	req, err := http.NewRequest("DELETE", urls, body)
 29491  	if err != nil {
 29492  		return nil, err
 29493  	}
 29494  	req.Header = reqHeaders
 29495  	googleapi.Expand(req.URL, map[string]string{
 29496  		"name": c.name,
 29497  	})
 29498  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29499  }
 29500  
 29501  // Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call.
 29502  // Any non-2xx status code is an error. Response headers are in either
 29503  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 29504  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 29505  // check whether the returned error was because http.StatusNotModified was
 29506  // returned.
 29507  func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 29508  	gensupport.SetOptions(c.urlParams_, opts...)
 29509  	res, err := c.doRequest("json")
 29510  	if res != nil && res.StatusCode == http.StatusNotModified {
 29511  		if res.Body != nil {
 29512  			res.Body.Close()
 29513  		}
 29514  		return nil, gensupport.WrapError(&googleapi.Error{
 29515  			Code:   res.StatusCode,
 29516  			Header: res.Header,
 29517  		})
 29518  	}
 29519  	if err != nil {
 29520  		return nil, err
 29521  	}
 29522  	defer googleapi.CloseBody(res)
 29523  	if err := googleapi.CheckResponse(res); err != nil {
 29524  		return nil, gensupport.WrapError(err)
 29525  	}
 29526  	ret := &GoogleProtobufEmpty{
 29527  		ServerResponse: googleapi.ServerResponse{
 29528  			Header:         res.Header,
 29529  			HTTPStatusCode: res.StatusCode,
 29530  		},
 29531  	}
 29532  	target := &ret
 29533  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29534  		return nil, err
 29535  	}
 29536  	return ret, nil
 29537  }
 29538  
 29539  type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
 29540  	s                               *Service
 29541  	parent                          string
 29542  	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
 29543  	urlParams_                      gensupport.URLParams
 29544  	ctx_                            context.Context
 29545  	header_                         http.Header
 29546  }
 29547  
 29548  // Create: Creates a debug session for a deployed API Proxy revision.
 29549  //
 29550  //   - parent: The resource name of the API Proxy revision deployment for which
 29551  //     to create the DebugSession. Must be of the form
 29552  //     `organizations/{organization}/environments/{environment}/apis/{api}/revisio
 29553  //     ns/{revision}`.
 29554  func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
 29555  	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29556  	c.parent = parent
 29557  	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
 29558  	return c
 29559  }
 29560  
 29561  // Timeout sets the optional parameter "timeout": The time in seconds after
 29562  // which this DebugSession should end. A timeout specified in DebugSession will
 29563  // overwrite this value.
 29564  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
 29565  	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
 29566  	return c
 29567  }
 29568  
 29569  // Fields allows partial responses to be retrieved. See
 29570  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29571  // details.
 29572  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
 29573  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29574  	return c
 29575  }
 29576  
 29577  // Context sets the context to be used in this call's Do method.
 29578  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
 29579  	c.ctx_ = ctx
 29580  	return c
 29581  }
 29582  
 29583  // Header returns a http.Header that can be modified by the caller to add
 29584  // headers to the request.
 29585  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
 29586  	if c.header_ == nil {
 29587  		c.header_ = make(http.Header)
 29588  	}
 29589  	return c.header_
 29590  }
 29591  
 29592  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 29593  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29594  	var body io.Reader = nil
 29595  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
 29596  	if err != nil {
 29597  		return nil, err
 29598  	}
 29599  	c.urlParams_.Set("alt", alt)
 29600  	c.urlParams_.Set("prettyPrint", "false")
 29601  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
 29602  	urls += "?" + c.urlParams_.Encode()
 29603  	req, err := http.NewRequest("POST", urls, body)
 29604  	if err != nil {
 29605  		return nil, err
 29606  	}
 29607  	req.Header = reqHeaders
 29608  	googleapi.Expand(req.URL, map[string]string{
 29609  		"parent": c.parent,
 29610  	})
 29611  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29612  }
 29613  
 29614  // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
 29615  // Any non-2xx status code is an error. Response headers are in either
 29616  // *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if a response was
 29617  // returned at all) in error.(*googleapi.Error).Header. Use
 29618  // googleapi.IsNotModified to check whether the returned error was because
 29619  // http.StatusNotModified was returned.
 29620  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
 29621  	gensupport.SetOptions(c.urlParams_, opts...)
 29622  	res, err := c.doRequest("json")
 29623  	if res != nil && res.StatusCode == http.StatusNotModified {
 29624  		if res.Body != nil {
 29625  			res.Body.Close()
 29626  		}
 29627  		return nil, gensupport.WrapError(&googleapi.Error{
 29628  			Code:   res.StatusCode,
 29629  			Header: res.Header,
 29630  		})
 29631  	}
 29632  	if err != nil {
 29633  		return nil, err
 29634  	}
 29635  	defer googleapi.CloseBody(res)
 29636  	if err := googleapi.CheckResponse(res); err != nil {
 29637  		return nil, gensupport.WrapError(err)
 29638  	}
 29639  	ret := &GoogleCloudApigeeV1DebugSession{
 29640  		ServerResponse: googleapi.ServerResponse{
 29641  			Header:         res.Header,
 29642  			HTTPStatusCode: res.StatusCode,
 29643  		},
 29644  	}
 29645  	target := &ret
 29646  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29647  		return nil, err
 29648  	}
 29649  	return ret, nil
 29650  }
 29651  
 29652  type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
 29653  	s          *Service
 29654  	name       string
 29655  	urlParams_ gensupport.URLParams
 29656  	ctx_       context.Context
 29657  	header_    http.Header
 29658  }
 29659  
 29660  // DeleteData: Deletes the data from a debug session. This does not cancel the
 29661  // debug session or prevent further data from being collected if the session is
 29662  // still active in runtime pods.
 29663  //
 29664  //   - name: The name of the debug session to delete. Must be of the form:
 29665  //     `organizations/{organization}/environments/{environment}/apis/{api}/revisio
 29666  //     ns/{revision}/debugsessions/{debugsession}`.
 29667  func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
 29668  	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29669  	c.name = name
 29670  	return c
 29671  }
 29672  
 29673  // Fields allows partial responses to be retrieved. See
 29674  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29675  // details.
 29676  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
 29677  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29678  	return c
 29679  }
 29680  
 29681  // Context sets the context to be used in this call's Do method.
 29682  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
 29683  	c.ctx_ = ctx
 29684  	return c
 29685  }
 29686  
 29687  // Header returns a http.Header that can be modified by the caller to add
 29688  // headers to the request.
 29689  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
 29690  	if c.header_ == nil {
 29691  		c.header_ = make(http.Header)
 29692  	}
 29693  	return c.header_
 29694  }
 29695  
 29696  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
 29697  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29698  	var body io.Reader = nil
 29699  	c.urlParams_.Set("alt", alt)
 29700  	c.urlParams_.Set("prettyPrint", "false")
 29701  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
 29702  	urls += "?" + c.urlParams_.Encode()
 29703  	req, err := http.NewRequest("DELETE", urls, body)
 29704  	if err != nil {
 29705  		return nil, err
 29706  	}
 29707  	req.Header = reqHeaders
 29708  	googleapi.Expand(req.URL, map[string]string{
 29709  		"name": c.name,
 29710  	})
 29711  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29712  }
 29713  
 29714  // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
 29715  // Any non-2xx status code is an error. Response headers are in either
 29716  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 29717  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 29718  // check whether the returned error was because http.StatusNotModified was
 29719  // returned.
 29720  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 29721  	gensupport.SetOptions(c.urlParams_, opts...)
 29722  	res, err := c.doRequest("json")
 29723  	if res != nil && res.StatusCode == http.StatusNotModified {
 29724  		if res.Body != nil {
 29725  			res.Body.Close()
 29726  		}
 29727  		return nil, gensupport.WrapError(&googleapi.Error{
 29728  			Code:   res.StatusCode,
 29729  			Header: res.Header,
 29730  		})
 29731  	}
 29732  	if err != nil {
 29733  		return nil, err
 29734  	}
 29735  	defer googleapi.CloseBody(res)
 29736  	if err := googleapi.CheckResponse(res); err != nil {
 29737  		return nil, gensupport.WrapError(err)
 29738  	}
 29739  	ret := &GoogleProtobufEmpty{
 29740  		ServerResponse: googleapi.ServerResponse{
 29741  			Header:         res.Header,
 29742  			HTTPStatusCode: res.StatusCode,
 29743  		},
 29744  	}
 29745  	target := &ret
 29746  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29747  		return nil, err
 29748  	}
 29749  	return ret, nil
 29750  }
 29751  
 29752  type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
 29753  	s            *Service
 29754  	name         string
 29755  	urlParams_   gensupport.URLParams
 29756  	ifNoneMatch_ string
 29757  	ctx_         context.Context
 29758  	header_      http.Header
 29759  }
 29760  
 29761  // Get: Retrieves a debug session.
 29762  //
 29763  //   - name: The name of the debug session to retrieve. Must be of the form:
 29764  //     `organizations/{organization}/environments/{environment}/apis/{api}/revisio
 29765  //     ns/{revision}/debugsessions/{session}`.
 29766  func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
 29767  	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29768  	c.name = name
 29769  	return c
 29770  }
 29771  
 29772  // Fields allows partial responses to be retrieved. See
 29773  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29774  // details.
 29775  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
 29776  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29777  	return c
 29778  }
 29779  
 29780  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29781  // object's ETag matches the given value. This is useful for getting updates
 29782  // only after the object has changed since the last request.
 29783  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
 29784  	c.ifNoneMatch_ = entityTag
 29785  	return c
 29786  }
 29787  
 29788  // Context sets the context to be used in this call's Do method.
 29789  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
 29790  	c.ctx_ = ctx
 29791  	return c
 29792  }
 29793  
 29794  // Header returns a http.Header that can be modified by the caller to add
 29795  // headers to the request.
 29796  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
 29797  	if c.header_ == nil {
 29798  		c.header_ = make(http.Header)
 29799  	}
 29800  	return c.header_
 29801  }
 29802  
 29803  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
 29804  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29805  	if c.ifNoneMatch_ != "" {
 29806  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29807  	}
 29808  	var body io.Reader = nil
 29809  	c.urlParams_.Set("alt", alt)
 29810  	c.urlParams_.Set("prettyPrint", "false")
 29811  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 29812  	urls += "?" + c.urlParams_.Encode()
 29813  	req, err := http.NewRequest("GET", urls, body)
 29814  	if err != nil {
 29815  		return nil, err
 29816  	}
 29817  	req.Header = reqHeaders
 29818  	googleapi.Expand(req.URL, map[string]string{
 29819  		"name": c.name,
 29820  	})
 29821  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29822  }
 29823  
 29824  // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call.
 29825  // Any non-2xx status code is an error. Response headers are in either
 29826  // *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if a response was
 29827  // returned at all) in error.(*googleapi.Error).Header. Use
 29828  // googleapi.IsNotModified to check whether the returned error was because
 29829  // http.StatusNotModified was returned.
 29830  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
 29831  	gensupport.SetOptions(c.urlParams_, opts...)
 29832  	res, err := c.doRequest("json")
 29833  	if res != nil && res.StatusCode == http.StatusNotModified {
 29834  		if res.Body != nil {
 29835  			res.Body.Close()
 29836  		}
 29837  		return nil, gensupport.WrapError(&googleapi.Error{
 29838  			Code:   res.StatusCode,
 29839  			Header: res.Header,
 29840  		})
 29841  	}
 29842  	if err != nil {
 29843  		return nil, err
 29844  	}
 29845  	defer googleapi.CloseBody(res)
 29846  	if err := googleapi.CheckResponse(res); err != nil {
 29847  		return nil, gensupport.WrapError(err)
 29848  	}
 29849  	ret := &GoogleCloudApigeeV1DebugSession{
 29850  		ServerResponse: googleapi.ServerResponse{
 29851  			Header:         res.Header,
 29852  			HTTPStatusCode: res.StatusCode,
 29853  		},
 29854  	}
 29855  	target := &ret
 29856  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29857  		return nil, err
 29858  	}
 29859  	return ret, nil
 29860  }
 29861  
 29862  type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
 29863  	s            *Service
 29864  	parent       string
 29865  	urlParams_   gensupport.URLParams
 29866  	ifNoneMatch_ string
 29867  	ctx_         context.Context
 29868  	header_      http.Header
 29869  }
 29870  
 29871  // List: Lists debug sessions that are currently active in the given API Proxy
 29872  // revision.
 29873  //
 29874  //   - parent: The name of the API Proxy revision deployment for which to list
 29875  //     debug sessions. Must be of the form:
 29876  //     `organizations/{organization}/environments/{environment}/apis/{api}/revisio
 29877  //     ns/{revision}`.
 29878  func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
 29879  	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29880  	c.parent = parent
 29881  	return c
 29882  }
 29883  
 29884  // PageSize sets the optional parameter "pageSize": Maximum number of debug
 29885  // sessions to return. The page size defaults to 25.
 29886  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
 29887  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29888  	return c
 29889  }
 29890  
 29891  // PageToken sets the optional parameter "pageToken": Page token, returned from
 29892  // a previous ListDebugSessions call, that you can use to retrieve the next
 29893  // page.
 29894  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
 29895  	c.urlParams_.Set("pageToken", pageToken)
 29896  	return c
 29897  }
 29898  
 29899  // Fields allows partial responses to be retrieved. See
 29900  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29901  // details.
 29902  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
 29903  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29904  	return c
 29905  }
 29906  
 29907  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29908  // object's ETag matches the given value. This is useful for getting updates
 29909  // only after the object has changed since the last request.
 29910  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
 29911  	c.ifNoneMatch_ = entityTag
 29912  	return c
 29913  }
 29914  
 29915  // Context sets the context to be used in this call's Do method.
 29916  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
 29917  	c.ctx_ = ctx
 29918  	return c
 29919  }
 29920  
 29921  // Header returns a http.Header that can be modified by the caller to add
 29922  // headers to the request.
 29923  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
 29924  	if c.header_ == nil {
 29925  		c.header_ = make(http.Header)
 29926  	}
 29927  	return c.header_
 29928  }
 29929  
 29930  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
 29931  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29932  	if c.ifNoneMatch_ != "" {
 29933  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29934  	}
 29935  	var body io.Reader = nil
 29936  	c.urlParams_.Set("alt", alt)
 29937  	c.urlParams_.Set("prettyPrint", "false")
 29938  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
 29939  	urls += "?" + c.urlParams_.Encode()
 29940  	req, err := http.NewRequest("GET", urls, body)
 29941  	if err != nil {
 29942  		return nil, err
 29943  	}
 29944  	req.Header = reqHeaders
 29945  	googleapi.Expand(req.URL, map[string]string{
 29946  		"parent": c.parent,
 29947  	})
 29948  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29949  }
 29950  
 29951  // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
 29952  // Any non-2xx status code is an error. Response headers are in either
 29953  // *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header or (if a
 29954  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29955  // googleapi.IsNotModified to check whether the returned error was because
 29956  // http.StatusNotModified was returned.
 29957  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
 29958  	gensupport.SetOptions(c.urlParams_, opts...)
 29959  	res, err := c.doRequest("json")
 29960  	if res != nil && res.StatusCode == http.StatusNotModified {
 29961  		if res.Body != nil {
 29962  			res.Body.Close()
 29963  		}
 29964  		return nil, gensupport.WrapError(&googleapi.Error{
 29965  			Code:   res.StatusCode,
 29966  			Header: res.Header,
 29967  		})
 29968  	}
 29969  	if err != nil {
 29970  		return nil, err
 29971  	}
 29972  	defer googleapi.CloseBody(res)
 29973  	if err := googleapi.CheckResponse(res); err != nil {
 29974  		return nil, gensupport.WrapError(err)
 29975  	}
 29976  	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
 29977  		ServerResponse: googleapi.ServerResponse{
 29978  			Header:         res.Header,
 29979  			HTTPStatusCode: res.StatusCode,
 29980  		},
 29981  	}
 29982  	target := &ret
 29983  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29984  		return nil, err
 29985  	}
 29986  	return ret, nil
 29987  }
 29988  
 29989  // Pages invokes f for each page of results.
 29990  // A non-nil error returned from f will halt the iteration.
 29991  // The provided context supersedes any context provided to the Context method.
 29992  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
 29993  	c.ctx_ = ctx
 29994  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29995  	for {
 29996  		x, err := c.Do()
 29997  		if err != nil {
 29998  			return err
 29999  		}
 30000  		if err := f(x); err != nil {
 30001  			return err
 30002  		}
 30003  		if x.NextPageToken == "" {
 30004  			return nil
 30005  		}
 30006  		c.PageToken(x.NextPageToken)
 30007  	}
 30008  }
 30009  
 30010  type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
 30011  	s            *Service
 30012  	name         string
 30013  	urlParams_   gensupport.URLParams
 30014  	ifNoneMatch_ string
 30015  	ctx_         context.Context
 30016  	header_      http.Header
 30017  }
 30018  
 30019  // Get: Gets the debug data from a transaction.
 30020  //
 30021  //   - name: The name of the debug session transaction. Must be of the form:
 30022  //     `organizations/{organization}/environments/{environment}/apis/{api}/revisio
 30023  //     ns/{revision}/debugsessions/{session}/data/{transaction}`.
 30024  func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
 30025  	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30026  	c.name = name
 30027  	return c
 30028  }
 30029  
 30030  // Fields allows partial responses to be retrieved. See
 30031  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30032  // details.
 30033  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
 30034  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30035  	return c
 30036  }
 30037  
 30038  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30039  // object's ETag matches the given value. This is useful for getting updates
 30040  // only after the object has changed since the last request.
 30041  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
 30042  	c.ifNoneMatch_ = entityTag
 30043  	return c
 30044  }
 30045  
 30046  // Context sets the context to be used in this call's Do method.
 30047  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
 30048  	c.ctx_ = ctx
 30049  	return c
 30050  }
 30051  
 30052  // Header returns a http.Header that can be modified by the caller to add
 30053  // headers to the request.
 30054  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
 30055  	if c.header_ == nil {
 30056  		c.header_ = make(http.Header)
 30057  	}
 30058  	return c.header_
 30059  }
 30060  
 30061  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
 30062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30063  	if c.ifNoneMatch_ != "" {
 30064  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30065  	}
 30066  	var body io.Reader = nil
 30067  	c.urlParams_.Set("alt", alt)
 30068  	c.urlParams_.Set("prettyPrint", "false")
 30069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 30070  	urls += "?" + c.urlParams_.Encode()
 30071  	req, err := http.NewRequest("GET", urls, body)
 30072  	if err != nil {
 30073  		return nil, err
 30074  	}
 30075  	req.Header = reqHeaders
 30076  	googleapi.Expand(req.URL, map[string]string{
 30077  		"name": c.name,
 30078  	})
 30079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30080  }
 30081  
 30082  // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
 30083  // Any non-2xx status code is an error. Response headers are in either
 30084  // *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or (if a
 30085  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30086  // googleapi.IsNotModified to check whether the returned error was because
 30087  // http.StatusNotModified was returned.
 30088  func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
 30089  	gensupport.SetOptions(c.urlParams_, opts...)
 30090  	res, err := c.doRequest("json")
 30091  	if res != nil && res.StatusCode == http.StatusNotModified {
 30092  		if res.Body != nil {
 30093  			res.Body.Close()
 30094  		}
 30095  		return nil, gensupport.WrapError(&googleapi.Error{
 30096  			Code:   res.StatusCode,
 30097  			Header: res.Header,
 30098  		})
 30099  	}
 30100  	if err != nil {
 30101  		return nil, err
 30102  	}
 30103  	defer googleapi.CloseBody(res)
 30104  	if err := googleapi.CheckResponse(res); err != nil {
 30105  		return nil, gensupport.WrapError(err)
 30106  	}
 30107  	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
 30108  		ServerResponse: googleapi.ServerResponse{
 30109  			Header:         res.Header,
 30110  			HTTPStatusCode: res.StatusCode,
 30111  		},
 30112  	}
 30113  	target := &ret
 30114  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30115  		return nil, err
 30116  	}
 30117  	return ret, nil
 30118  }
 30119  
 30120  type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
 30121  	s          *Service
 30122  	name       string
 30123  	urlParams_ gensupport.URLParams
 30124  	ctx_       context.Context
 30125  	header_    http.Header
 30126  }
 30127  
 30128  // GenerateDeployChangeReport: Generates a report for a dry run analysis of a
 30129  // DeployApiProxy request without committing the deployment. In addition to the
 30130  // standard validations performed when adding deployments, additional analysis
 30131  // will be done to detect possible traffic routing changes that would result
 30132  // from this deployment being created. Any potential routing conflicts or
 30133  // unsafe changes will be reported in the response. This routing analysis is
 30134  // not performed for a non-dry-run DeployApiProxy request. For a request path
 30135  // `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployment
 30136  // s:generateDeployChangeReport`, two permissions are required: *
 30137  // `apigee.deployments.create` on the resource
 30138  // `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on
 30139  // the resource `organizations/{org}/apis/{api}/revisions/{rev}`
 30140  //
 30141  //   - name: Name of the API proxy revision deployment in the following format:
 30142  //     `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
 30143  func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
 30144  	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30145  	c.name = name
 30146  	return c
 30147  }
 30148  
 30149  // Override sets the optional parameter "override": Flag that specifies whether
 30150  // to force the deployment of the new revision over the currently deployed
 30151  // revision by overriding conflict checks.
 30152  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
 30153  	c.urlParams_.Set("override", fmt.Sprint(override))
 30154  	return c
 30155  }
 30156  
 30157  // Fields allows partial responses to be retrieved. See
 30158  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30159  // details.
 30160  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
 30161  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30162  	return c
 30163  }
 30164  
 30165  // Context sets the context to be used in this call's Do method.
 30166  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
 30167  	c.ctx_ = ctx
 30168  	return c
 30169  }
 30170  
 30171  // Header returns a http.Header that can be modified by the caller to add
 30172  // headers to the request.
 30173  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
 30174  	if c.header_ == nil {
 30175  		c.header_ = make(http.Header)
 30176  	}
 30177  	return c.header_
 30178  }
 30179  
 30180  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
 30181  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30182  	var body io.Reader = nil
 30183  	c.urlParams_.Set("alt", alt)
 30184  	c.urlParams_.Set("prettyPrint", "false")
 30185  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
 30186  	urls += "?" + c.urlParams_.Encode()
 30187  	req, err := http.NewRequest("POST", urls, body)
 30188  	if err != nil {
 30189  		return nil, err
 30190  	}
 30191  	req.Header = reqHeaders
 30192  	googleapi.Expand(req.URL, map[string]string{
 30193  		"name": c.name,
 30194  	})
 30195  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30196  }
 30197  
 30198  // Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call.
 30199  // Any non-2xx status code is an error. Response headers are in either
 30200  // *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or (if a
 30201  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30202  // googleapi.IsNotModified to check whether the returned error was because
 30203  // http.StatusNotModified was returned.
 30204  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
 30205  	gensupport.SetOptions(c.urlParams_, opts...)
 30206  	res, err := c.doRequest("json")
 30207  	if res != nil && res.StatusCode == http.StatusNotModified {
 30208  		if res.Body != nil {
 30209  			res.Body.Close()
 30210  		}
 30211  		return nil, gensupport.WrapError(&googleapi.Error{
 30212  			Code:   res.StatusCode,
 30213  			Header: res.Header,
 30214  		})
 30215  	}
 30216  	if err != nil {
 30217  		return nil, err
 30218  	}
 30219  	defer googleapi.CloseBody(res)
 30220  	if err := googleapi.CheckResponse(res); err != nil {
 30221  		return nil, gensupport.WrapError(err)
 30222  	}
 30223  	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
 30224  		ServerResponse: googleapi.ServerResponse{
 30225  			Header:         res.Header,
 30226  			HTTPStatusCode: res.StatusCode,
 30227  		},
 30228  	}
 30229  	target := &ret
 30230  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30231  		return nil, err
 30232  	}
 30233  	return ret, nil
 30234  }
 30235  
 30236  type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
 30237  	s          *Service
 30238  	name       string
 30239  	urlParams_ gensupport.URLParams
 30240  	ctx_       context.Context
 30241  	header_    http.Header
 30242  }
 30243  
 30244  // GenerateUndeployChangeReport: Generates a report for a dry run analysis of
 30245  // an UndeployApiProxy request without committing the undeploy. In addition to
 30246  // the standard validations performed when removing deployments, additional
 30247  // analysis will be done to detect possible traffic routing changes that would
 30248  // result from this deployment being removed. Any potential routing conflicts
 30249  // or unsafe changes will be reported in the response. This routing analysis is
 30250  // not performed for a non-dry-run UndeployApiProxy request. For a request path
 30251  // `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployment
 30252  // s:generateUndeployChangeReport`, two permissions are required: *
 30253  // `apigee.deployments.delete` on the resource
 30254  // `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy`
 30255  // on the resource `organizations/{org}/apis/{api}/revisions/{rev}`
 30256  //
 30257  //   - name: Name of the API proxy revision deployment in the following format:
 30258  //     `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
 30259  func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
 30260  	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30261  	c.name = name
 30262  	return c
 30263  }
 30264  
 30265  // Fields allows partial responses to be retrieved. See
 30266  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30267  // details.
 30268  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
 30269  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30270  	return c
 30271  }
 30272  
 30273  // Context sets the context to be used in this call's Do method.
 30274  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
 30275  	c.ctx_ = ctx
 30276  	return c
 30277  }
 30278  
 30279  // Header returns a http.Header that can be modified by the caller to add
 30280  // headers to the request.
 30281  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
 30282  	if c.header_ == nil {
 30283  		c.header_ = make(http.Header)
 30284  	}
 30285  	return c.header_
 30286  }
 30287  
 30288  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
 30289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30290  	var body io.Reader = nil
 30291  	c.urlParams_.Set("alt", alt)
 30292  	c.urlParams_.Set("prettyPrint", "false")
 30293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
 30294  	urls += "?" + c.urlParams_.Encode()
 30295  	req, err := http.NewRequest("POST", urls, body)
 30296  	if err != nil {
 30297  		return nil, err
 30298  	}
 30299  	req.Header = reqHeaders
 30300  	googleapi.Expand(req.URL, map[string]string{
 30301  		"name": c.name,
 30302  	})
 30303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30304  }
 30305  
 30306  // Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call.
 30307  // Any non-2xx status code is an error. Response headers are in either
 30308  // *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or (if a
 30309  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30310  // googleapi.IsNotModified to check whether the returned error was because
 30311  // http.StatusNotModified was returned.
 30312  func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
 30313  	gensupport.SetOptions(c.urlParams_, opts...)
 30314  	res, err := c.doRequest("json")
 30315  	if res != nil && res.StatusCode == http.StatusNotModified {
 30316  		if res.Body != nil {
 30317  			res.Body.Close()
 30318  		}
 30319  		return nil, gensupport.WrapError(&googleapi.Error{
 30320  			Code:   res.StatusCode,
 30321  			Header: res.Header,
 30322  		})
 30323  	}
 30324  	if err != nil {
 30325  		return nil, err
 30326  	}
 30327  	defer googleapi.CloseBody(res)
 30328  	if err := googleapi.CheckResponse(res); err != nil {
 30329  		return nil, gensupport.WrapError(err)
 30330  	}
 30331  	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
 30332  		ServerResponse: googleapi.ServerResponse{
 30333  			Header:         res.Header,
 30334  			HTTPStatusCode: res.StatusCode,
 30335  		},
 30336  	}
 30337  	target := &ret
 30338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30339  		return nil, err
 30340  	}
 30341  	return ret, nil
 30342  }
 30343  
 30344  type OrganizationsEnvironmentsArchiveDeploymentsCreateCall struct {
 30345  	s                                    *Service
 30346  	parent                               string
 30347  	googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
 30348  	urlParams_                           gensupport.URLParams
 30349  	ctx_                                 context.Context
 30350  	header_                              http.Header
 30351  }
 30352  
 30353  // Create: Creates a new ArchiveDeployment.
 30354  //
 30355  // - parent: The Environment this Archive Deployment will be created in.
 30356  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Create(parent string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
 30357  	c := &OrganizationsEnvironmentsArchiveDeploymentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30358  	c.parent = parent
 30359  	c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
 30360  	return c
 30361  }
 30362  
 30363  // Fields allows partial responses to be retrieved. See
 30364  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30365  // details.
 30366  func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
 30367  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30368  	return c
 30369  }
 30370  
 30371  // Context sets the context to be used in this call's Do method.
 30372  func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
 30373  	c.ctx_ = ctx
 30374  	return c
 30375  }
 30376  
 30377  // Header returns a http.Header that can be modified by the caller to add
 30378  // headers to the request.
 30379  func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Header() http.Header {
 30380  	if c.header_ == nil {
 30381  		c.header_ = make(http.Header)
 30382  	}
 30383  	return c.header_
 30384  }
 30385  
 30386  func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) {
 30387  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30388  	var body io.Reader = nil
 30389  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
 30390  	if err != nil {
 30391  		return nil, err
 30392  	}
 30393  	c.urlParams_.Set("alt", alt)
 30394  	c.urlParams_.Set("prettyPrint", "false")
 30395  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
 30396  	urls += "?" + c.urlParams_.Encode()
 30397  	req, err := http.NewRequest("POST", urls, body)
 30398  	if err != nil {
 30399  		return nil, err
 30400  	}
 30401  	req.Header = reqHeaders
 30402  	googleapi.Expand(req.URL, map[string]string{
 30403  		"parent": c.parent,
 30404  	})
 30405  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30406  }
 30407  
 30408  // Do executes the "apigee.organizations.environments.archiveDeployments.create" call.
 30409  // Any non-2xx status code is an error. Response headers are in either
 30410  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30411  // returned at all) in error.(*googleapi.Error).Header. Use
 30412  // googleapi.IsNotModified to check whether the returned error was because
 30413  // http.StatusNotModified was returned.
 30414  func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30415  	gensupport.SetOptions(c.urlParams_, opts...)
 30416  	res, err := c.doRequest("json")
 30417  	if res != nil && res.StatusCode == http.StatusNotModified {
 30418  		if res.Body != nil {
 30419  			res.Body.Close()
 30420  		}
 30421  		return nil, gensupport.WrapError(&googleapi.Error{
 30422  			Code:   res.StatusCode,
 30423  			Header: res.Header,
 30424  		})
 30425  	}
 30426  	if err != nil {
 30427  		return nil, err
 30428  	}
 30429  	defer googleapi.CloseBody(res)
 30430  	if err := googleapi.CheckResponse(res); err != nil {
 30431  		return nil, gensupport.WrapError(err)
 30432  	}
 30433  	ret := &GoogleLongrunningOperation{
 30434  		ServerResponse: googleapi.ServerResponse{
 30435  			Header:         res.Header,
 30436  			HTTPStatusCode: res.StatusCode,
 30437  		},
 30438  	}
 30439  	target := &ret
 30440  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30441  		return nil, err
 30442  	}
 30443  	return ret, nil
 30444  }
 30445  
 30446  type OrganizationsEnvironmentsArchiveDeploymentsDeleteCall struct {
 30447  	s          *Service
 30448  	name       string
 30449  	urlParams_ gensupport.URLParams
 30450  	ctx_       context.Context
 30451  	header_    http.Header
 30452  }
 30453  
 30454  // Delete: Deletes an archive deployment.
 30455  //
 30456  //   - name: Name of the Archive Deployment in the following format:
 30457  //     `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
 30458  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Delete(name string) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
 30459  	c := &OrganizationsEnvironmentsArchiveDeploymentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30460  	c.name = name
 30461  	return c
 30462  }
 30463  
 30464  // Fields allows partial responses to be retrieved. See
 30465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30466  // details.
 30467  func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
 30468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30469  	return c
 30470  }
 30471  
 30472  // Context sets the context to be used in this call's Do method.
 30473  func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
 30474  	c.ctx_ = ctx
 30475  	return c
 30476  }
 30477  
 30478  // Header returns a http.Header that can be modified by the caller to add
 30479  // headers to the request.
 30480  func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Header() http.Header {
 30481  	if c.header_ == nil {
 30482  		c.header_ = make(http.Header)
 30483  	}
 30484  	return c.header_
 30485  }
 30486  
 30487  func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 30488  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30489  	var body io.Reader = nil
 30490  	c.urlParams_.Set("alt", alt)
 30491  	c.urlParams_.Set("prettyPrint", "false")
 30492  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 30493  	urls += "?" + c.urlParams_.Encode()
 30494  	req, err := http.NewRequest("DELETE", urls, body)
 30495  	if err != nil {
 30496  		return nil, err
 30497  	}
 30498  	req.Header = reqHeaders
 30499  	googleapi.Expand(req.URL, map[string]string{
 30500  		"name": c.name,
 30501  	})
 30502  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30503  }
 30504  
 30505  // Do executes the "apigee.organizations.environments.archiveDeployments.delete" call.
 30506  // Any non-2xx status code is an error. Response headers are in either
 30507  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 30508  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30509  // check whether the returned error was because http.StatusNotModified was
 30510  // returned.
 30511  func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 30512  	gensupport.SetOptions(c.urlParams_, opts...)
 30513  	res, err := c.doRequest("json")
 30514  	if res != nil && res.StatusCode == http.StatusNotModified {
 30515  		if res.Body != nil {
 30516  			res.Body.Close()
 30517  		}
 30518  		return nil, gensupport.WrapError(&googleapi.Error{
 30519  			Code:   res.StatusCode,
 30520  			Header: res.Header,
 30521  		})
 30522  	}
 30523  	if err != nil {
 30524  		return nil, err
 30525  	}
 30526  	defer googleapi.CloseBody(res)
 30527  	if err := googleapi.CheckResponse(res); err != nil {
 30528  		return nil, gensupport.WrapError(err)
 30529  	}
 30530  	ret := &GoogleProtobufEmpty{
 30531  		ServerResponse: googleapi.ServerResponse{
 30532  			Header:         res.Header,
 30533  			HTTPStatusCode: res.StatusCode,
 30534  		},
 30535  	}
 30536  	target := &ret
 30537  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30538  		return nil, err
 30539  	}
 30540  	return ret, nil
 30541  }
 30542  
 30543  type OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall struct {
 30544  	s                                             *Service
 30545  	name                                          string
 30546  	googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest
 30547  	urlParams_                                    gensupport.URLParams
 30548  	ctx_                                          context.Context
 30549  	header_                                       http.Header
 30550  }
 30551  
 30552  // GenerateDownloadUrl: Generates a signed URL for downloading the original zip
 30553  // file used to create an Archive Deployment. The URL is only valid for a
 30554  // limited period and should be used within minutes after generation. Each call
 30555  // returns a new upload URL.
 30556  //
 30557  // - name: The name of the Archive Deployment you want to download.
 30558  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateDownloadUrl(name string, googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
 30559  	c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30560  	c.name = name
 30561  	c.googlecloudapigeev1generatedownloadurlrequest = googlecloudapigeev1generatedownloadurlrequest
 30562  	return c
 30563  }
 30564  
 30565  // Fields allows partial responses to be retrieved. See
 30566  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30567  // details.
 30568  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
 30569  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30570  	return c
 30571  }
 30572  
 30573  // Context sets the context to be used in this call's Do method.
 30574  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
 30575  	c.ctx_ = ctx
 30576  	return c
 30577  }
 30578  
 30579  // Header returns a http.Header that can be modified by the caller to add
 30580  // headers to the request.
 30581  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Header() http.Header {
 30582  	if c.header_ == nil {
 30583  		c.header_ = make(http.Header)
 30584  	}
 30585  	return c.header_
 30586  }
 30587  
 30588  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) {
 30589  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30590  	var body io.Reader = nil
 30591  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generatedownloadurlrequest)
 30592  	if err != nil {
 30593  		return nil, err
 30594  	}
 30595  	c.urlParams_.Set("alt", alt)
 30596  	c.urlParams_.Set("prettyPrint", "false")
 30597  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDownloadUrl")
 30598  	urls += "?" + c.urlParams_.Encode()
 30599  	req, err := http.NewRequest("POST", urls, body)
 30600  	if err != nil {
 30601  		return nil, err
 30602  	}
 30603  	req.Header = reqHeaders
 30604  	googleapi.Expand(req.URL, map[string]string{
 30605  		"name": c.name,
 30606  	})
 30607  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30608  }
 30609  
 30610  // Do executes the "apigee.organizations.environments.archiveDeployments.generateDownloadUrl" call.
 30611  // Any non-2xx status code is an error. Response headers are in either
 30612  // *GoogleCloudApigeeV1GenerateDownloadUrlResponse.ServerResponse.Header or (if
 30613  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 30614  // googleapi.IsNotModified to check whether the returned error was because
 30615  // http.StatusNotModified was returned.
 30616  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateDownloadUrlResponse, error) {
 30617  	gensupport.SetOptions(c.urlParams_, opts...)
 30618  	res, err := c.doRequest("json")
 30619  	if res != nil && res.StatusCode == http.StatusNotModified {
 30620  		if res.Body != nil {
 30621  			res.Body.Close()
 30622  		}
 30623  		return nil, gensupport.WrapError(&googleapi.Error{
 30624  			Code:   res.StatusCode,
 30625  			Header: res.Header,
 30626  		})
 30627  	}
 30628  	if err != nil {
 30629  		return nil, err
 30630  	}
 30631  	defer googleapi.CloseBody(res)
 30632  	if err := googleapi.CheckResponse(res); err != nil {
 30633  		return nil, gensupport.WrapError(err)
 30634  	}
 30635  	ret := &GoogleCloudApigeeV1GenerateDownloadUrlResponse{
 30636  		ServerResponse: googleapi.ServerResponse{
 30637  			Header:         res.Header,
 30638  			HTTPStatusCode: res.StatusCode,
 30639  		},
 30640  	}
 30641  	target := &ret
 30642  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30643  		return nil, err
 30644  	}
 30645  	return ret, nil
 30646  }
 30647  
 30648  type OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall struct {
 30649  	s                                           *Service
 30650  	parent                                      string
 30651  	googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest
 30652  	urlParams_                                  gensupport.URLParams
 30653  	ctx_                                        context.Context
 30654  	header_                                     http.Header
 30655  }
 30656  
 30657  // GenerateUploadUrl: Generates a signed URL for uploading an Archive zip file
 30658  // to Google Cloud Storage. Once the upload is complete, the signed URL should
 30659  // be passed to CreateArchiveDeployment. When uploading to the generated signed
 30660  // URL, please follow these restrictions: * Source file type should be a zip
 30661  // file. * Source file size should not exceed 1GB limit. * No credentials
 30662  // should be attached - the signed URLs provide access to the target bucket
 30663  // using internal service identity; if credentials were attached, the identity
 30664  // from the credentials would be used, but that identity does not have
 30665  // permissions to upload files to the URL. When making a HTTP PUT request,
 30666  // these two headers need to be specified: * `content-type: application/zip` *
 30667  // `x-goog-content-length-range: 0,1073741824` And this header SHOULD NOT be
 30668  // specified: * `Authorization: Bearer YOUR_TOKEN`
 30669  //
 30670  // - parent: The organization and environment to upload to.
 30671  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateUploadUrl(parent string, googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
 30672  	c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30673  	c.parent = parent
 30674  	c.googlecloudapigeev1generateuploadurlrequest = googlecloudapigeev1generateuploadurlrequest
 30675  	return c
 30676  }
 30677  
 30678  // Fields allows partial responses to be retrieved. See
 30679  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30680  // details.
 30681  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
 30682  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30683  	return c
 30684  }
 30685  
 30686  // Context sets the context to be used in this call's Do method.
 30687  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
 30688  	c.ctx_ = ctx
 30689  	return c
 30690  }
 30691  
 30692  // Header returns a http.Header that can be modified by the caller to add
 30693  // headers to the request.
 30694  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Header() http.Header {
 30695  	if c.header_ == nil {
 30696  		c.header_ = make(http.Header)
 30697  	}
 30698  	return c.header_
 30699  }
 30700  
 30701  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) {
 30702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30703  	var body io.Reader = nil
 30704  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generateuploadurlrequest)
 30705  	if err != nil {
 30706  		return nil, err
 30707  	}
 30708  	c.urlParams_.Set("alt", alt)
 30709  	c.urlParams_.Set("prettyPrint", "false")
 30710  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments:generateUploadUrl")
 30711  	urls += "?" + c.urlParams_.Encode()
 30712  	req, err := http.NewRequest("POST", urls, body)
 30713  	if err != nil {
 30714  		return nil, err
 30715  	}
 30716  	req.Header = reqHeaders
 30717  	googleapi.Expand(req.URL, map[string]string{
 30718  		"parent": c.parent,
 30719  	})
 30720  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30721  }
 30722  
 30723  // Do executes the "apigee.organizations.environments.archiveDeployments.generateUploadUrl" call.
 30724  // Any non-2xx status code is an error. Response headers are in either
 30725  // *GoogleCloudApigeeV1GenerateUploadUrlResponse.ServerResponse.Header or (if a
 30726  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30727  // googleapi.IsNotModified to check whether the returned error was because
 30728  // http.StatusNotModified was returned.
 30729  func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateUploadUrlResponse, error) {
 30730  	gensupport.SetOptions(c.urlParams_, opts...)
 30731  	res, err := c.doRequest("json")
 30732  	if res != nil && res.StatusCode == http.StatusNotModified {
 30733  		if res.Body != nil {
 30734  			res.Body.Close()
 30735  		}
 30736  		return nil, gensupport.WrapError(&googleapi.Error{
 30737  			Code:   res.StatusCode,
 30738  			Header: res.Header,
 30739  		})
 30740  	}
 30741  	if err != nil {
 30742  		return nil, err
 30743  	}
 30744  	defer googleapi.CloseBody(res)
 30745  	if err := googleapi.CheckResponse(res); err != nil {
 30746  		return nil, gensupport.WrapError(err)
 30747  	}
 30748  	ret := &GoogleCloudApigeeV1GenerateUploadUrlResponse{
 30749  		ServerResponse: googleapi.ServerResponse{
 30750  			Header:         res.Header,
 30751  			HTTPStatusCode: res.StatusCode,
 30752  		},
 30753  	}
 30754  	target := &ret
 30755  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30756  		return nil, err
 30757  	}
 30758  	return ret, nil
 30759  }
 30760  
 30761  type OrganizationsEnvironmentsArchiveDeploymentsGetCall struct {
 30762  	s            *Service
 30763  	name         string
 30764  	urlParams_   gensupport.URLParams
 30765  	ifNoneMatch_ string
 30766  	ctx_         context.Context
 30767  	header_      http.Header
 30768  }
 30769  
 30770  // Get: Gets the specified ArchiveDeployment.
 30771  //
 30772  //   - name: Name of the Archive Deployment in the following format:
 30773  //     `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
 30774  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Get(name string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
 30775  	c := &OrganizationsEnvironmentsArchiveDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30776  	c.name = name
 30777  	return c
 30778  }
 30779  
 30780  // Fields allows partial responses to be retrieved. See
 30781  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30782  // details.
 30783  func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
 30784  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30785  	return c
 30786  }
 30787  
 30788  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30789  // object's ETag matches the given value. This is useful for getting updates
 30790  // only after the object has changed since the last request.
 30791  func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
 30792  	c.ifNoneMatch_ = entityTag
 30793  	return c
 30794  }
 30795  
 30796  // Context sets the context to be used in this call's Do method.
 30797  func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
 30798  	c.ctx_ = ctx
 30799  	return c
 30800  }
 30801  
 30802  // Header returns a http.Header that can be modified by the caller to add
 30803  // headers to the request.
 30804  func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Header() http.Header {
 30805  	if c.header_ == nil {
 30806  		c.header_ = make(http.Header)
 30807  	}
 30808  	return c.header_
 30809  }
 30810  
 30811  func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
 30812  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30813  	if c.ifNoneMatch_ != "" {
 30814  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30815  	}
 30816  	var body io.Reader = nil
 30817  	c.urlParams_.Set("alt", alt)
 30818  	c.urlParams_.Set("prettyPrint", "false")
 30819  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 30820  	urls += "?" + c.urlParams_.Encode()
 30821  	req, err := http.NewRequest("GET", urls, body)
 30822  	if err != nil {
 30823  		return nil, err
 30824  	}
 30825  	req.Header = reqHeaders
 30826  	googleapi.Expand(req.URL, map[string]string{
 30827  		"name": c.name,
 30828  	})
 30829  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30830  }
 30831  
 30832  // Do executes the "apigee.organizations.environments.archiveDeployments.get" call.
 30833  // Any non-2xx status code is an error. Response headers are in either
 30834  // *GoogleCloudApigeeV1ArchiveDeployment.ServerResponse.Header or (if a
 30835  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30836  // googleapi.IsNotModified to check whether the returned error was because
 30837  // http.StatusNotModified was returned.
 30838  func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
 30839  	gensupport.SetOptions(c.urlParams_, opts...)
 30840  	res, err := c.doRequest("json")
 30841  	if res != nil && res.StatusCode == http.StatusNotModified {
 30842  		if res.Body != nil {
 30843  			res.Body.Close()
 30844  		}
 30845  		return nil, gensupport.WrapError(&googleapi.Error{
 30846  			Code:   res.StatusCode,
 30847  			Header: res.Header,
 30848  		})
 30849  	}
 30850  	if err != nil {
 30851  		return nil, err
 30852  	}
 30853  	defer googleapi.CloseBody(res)
 30854  	if err := googleapi.CheckResponse(res); err != nil {
 30855  		return nil, gensupport.WrapError(err)
 30856  	}
 30857  	ret := &GoogleCloudApigeeV1ArchiveDeployment{
 30858  		ServerResponse: googleapi.ServerResponse{
 30859  			Header:         res.Header,
 30860  			HTTPStatusCode: res.StatusCode,
 30861  		},
 30862  	}
 30863  	target := &ret
 30864  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30865  		return nil, err
 30866  	}
 30867  	return ret, nil
 30868  }
 30869  
 30870  type OrganizationsEnvironmentsArchiveDeploymentsListCall struct {
 30871  	s            *Service
 30872  	parent       string
 30873  	urlParams_   gensupport.URLParams
 30874  	ifNoneMatch_ string
 30875  	ctx_         context.Context
 30876  	header_      http.Header
 30877  }
 30878  
 30879  // List: Lists the ArchiveDeployments in the specified Environment.
 30880  //
 30881  //   - parent: Name of the Environment for which to list Archive Deployments in
 30882  //     the format: `organizations/{org}/environments/{env}`.
 30883  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) List(parent string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30884  	c := &OrganizationsEnvironmentsArchiveDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30885  	c.parent = parent
 30886  	return c
 30887  }
 30888  
 30889  // Filter sets the optional parameter "filter": An optional query used to
 30890  // return a subset of Archive Deployments using the semantics defined in
 30891  // https://google.aip.dev/160.
 30892  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Filter(filter string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30893  	c.urlParams_.Set("filter", filter)
 30894  	return c
 30895  }
 30896  
 30897  // PageSize sets the optional parameter "pageSize": Maximum number of Archive
 30898  // Deployments to return. If unspecified, at most 25 deployments will be
 30899  // returned.
 30900  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30901  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30902  	return c
 30903  }
 30904  
 30905  // PageToken sets the optional parameter "pageToken": Page token, returned from
 30906  // a previous ListArchiveDeployments call, that you can use to retrieve the
 30907  // next page.
 30908  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30909  	c.urlParams_.Set("pageToken", pageToken)
 30910  	return c
 30911  }
 30912  
 30913  // Fields allows partial responses to be retrieved. See
 30914  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30915  // details.
 30916  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30917  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30918  	return c
 30919  }
 30920  
 30921  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30922  // object's ETag matches the given value. This is useful for getting updates
 30923  // only after the object has changed since the last request.
 30924  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30925  	c.ifNoneMatch_ = entityTag
 30926  	return c
 30927  }
 30928  
 30929  // Context sets the context to be used in this call's Do method.
 30930  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
 30931  	c.ctx_ = ctx
 30932  	return c
 30933  }
 30934  
 30935  // Header returns a http.Header that can be modified by the caller to add
 30936  // headers to the request.
 30937  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Header() http.Header {
 30938  	if c.header_ == nil {
 30939  		c.header_ = make(http.Header)
 30940  	}
 30941  	return c.header_
 30942  }
 30943  
 30944  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 30945  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30946  	if c.ifNoneMatch_ != "" {
 30947  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30948  	}
 30949  	var body io.Reader = nil
 30950  	c.urlParams_.Set("alt", alt)
 30951  	c.urlParams_.Set("prettyPrint", "false")
 30952  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
 30953  	urls += "?" + c.urlParams_.Encode()
 30954  	req, err := http.NewRequest("GET", urls, body)
 30955  	if err != nil {
 30956  		return nil, err
 30957  	}
 30958  	req.Header = reqHeaders
 30959  	googleapi.Expand(req.URL, map[string]string{
 30960  		"parent": c.parent,
 30961  	})
 30962  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30963  }
 30964  
 30965  // Do executes the "apigee.organizations.environments.archiveDeployments.list" call.
 30966  // Any non-2xx status code is an error. Response headers are in either
 30967  // *GoogleCloudApigeeV1ListArchiveDeploymentsResponse.ServerResponse.Header or
 30968  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30969  // googleapi.IsNotModified to check whether the returned error was because
 30970  // http.StatusNotModified was returned.
 30971  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListArchiveDeploymentsResponse, error) {
 30972  	gensupport.SetOptions(c.urlParams_, opts...)
 30973  	res, err := c.doRequest("json")
 30974  	if res != nil && res.StatusCode == http.StatusNotModified {
 30975  		if res.Body != nil {
 30976  			res.Body.Close()
 30977  		}
 30978  		return nil, gensupport.WrapError(&googleapi.Error{
 30979  			Code:   res.StatusCode,
 30980  			Header: res.Header,
 30981  		})
 30982  	}
 30983  	if err != nil {
 30984  		return nil, err
 30985  	}
 30986  	defer googleapi.CloseBody(res)
 30987  	if err := googleapi.CheckResponse(res); err != nil {
 30988  		return nil, gensupport.WrapError(err)
 30989  	}
 30990  	ret := &GoogleCloudApigeeV1ListArchiveDeploymentsResponse{
 30991  		ServerResponse: googleapi.ServerResponse{
 30992  			Header:         res.Header,
 30993  			HTTPStatusCode: res.StatusCode,
 30994  		},
 30995  	}
 30996  	target := &ret
 30997  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30998  		return nil, err
 30999  	}
 31000  	return ret, nil
 31001  }
 31002  
 31003  // Pages invokes f for each page of results.
 31004  // A non-nil error returned from f will halt the iteration.
 31005  // The provided context supersedes any context provided to the Context method.
 31006  func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListArchiveDeploymentsResponse) error) error {
 31007  	c.ctx_ = ctx
 31008  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31009  	for {
 31010  		x, err := c.Do()
 31011  		if err != nil {
 31012  			return err
 31013  		}
 31014  		if err := f(x); err != nil {
 31015  			return err
 31016  		}
 31017  		if x.NextPageToken == "" {
 31018  			return nil
 31019  		}
 31020  		c.PageToken(x.NextPageToken)
 31021  	}
 31022  }
 31023  
 31024  type OrganizationsEnvironmentsArchiveDeploymentsPatchCall struct {
 31025  	s                                    *Service
 31026  	name                                 string
 31027  	googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
 31028  	urlParams_                           gensupport.URLParams
 31029  	ctx_                                 context.Context
 31030  	header_                              http.Header
 31031  }
 31032  
 31033  // Patch: Updates an existing ArchiveDeployment. Labels can modified but most
 31034  // of the other fields are not modifiable.
 31035  //
 31036  //   - name: Name of the Archive Deployment in the following format:
 31037  //     `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
 31038  func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Patch(name string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
 31039  	c := &OrganizationsEnvironmentsArchiveDeploymentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31040  	c.name = name
 31041  	c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
 31042  	return c
 31043  }
 31044  
 31045  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 31046  // fields to be updated.
 31047  func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
 31048  	c.urlParams_.Set("updateMask", updateMask)
 31049  	return c
 31050  }
 31051  
 31052  // Fields allows partial responses to be retrieved. See
 31053  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31054  // details.
 31055  func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
 31056  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31057  	return c
 31058  }
 31059  
 31060  // Context sets the context to be used in this call's Do method.
 31061  func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
 31062  	c.ctx_ = ctx
 31063  	return c
 31064  }
 31065  
 31066  // Header returns a http.Header that can be modified by the caller to add
 31067  // headers to the request.
 31068  func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Header() http.Header {
 31069  	if c.header_ == nil {
 31070  		c.header_ = make(http.Header)
 31071  	}
 31072  	return c.header_
 31073  }
 31074  
 31075  func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) {
 31076  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31077  	var body io.Reader = nil
 31078  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
 31079  	if err != nil {
 31080  		return nil, err
 31081  	}
 31082  	c.urlParams_.Set("alt", alt)
 31083  	c.urlParams_.Set("prettyPrint", "false")
 31084  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31085  	urls += "?" + c.urlParams_.Encode()
 31086  	req, err := http.NewRequest("PATCH", urls, body)
 31087  	if err != nil {
 31088  		return nil, err
 31089  	}
 31090  	req.Header = reqHeaders
 31091  	googleapi.Expand(req.URL, map[string]string{
 31092  		"name": c.name,
 31093  	})
 31094  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31095  }
 31096  
 31097  // Do executes the "apigee.organizations.environments.archiveDeployments.patch" call.
 31098  // Any non-2xx status code is an error. Response headers are in either
 31099  // *GoogleCloudApigeeV1ArchiveDeployment.ServerResponse.Header or (if a
 31100  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31101  // googleapi.IsNotModified to check whether the returned error was because
 31102  // http.StatusNotModified was returned.
 31103  func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
 31104  	gensupport.SetOptions(c.urlParams_, opts...)
 31105  	res, err := c.doRequest("json")
 31106  	if res != nil && res.StatusCode == http.StatusNotModified {
 31107  		if res.Body != nil {
 31108  			res.Body.Close()
 31109  		}
 31110  		return nil, gensupport.WrapError(&googleapi.Error{
 31111  			Code:   res.StatusCode,
 31112  			Header: res.Header,
 31113  		})
 31114  	}
 31115  	if err != nil {
 31116  		return nil, err
 31117  	}
 31118  	defer googleapi.CloseBody(res)
 31119  	if err := googleapi.CheckResponse(res); err != nil {
 31120  		return nil, gensupport.WrapError(err)
 31121  	}
 31122  	ret := &GoogleCloudApigeeV1ArchiveDeployment{
 31123  		ServerResponse: googleapi.ServerResponse{
 31124  			Header:         res.Header,
 31125  			HTTPStatusCode: res.StatusCode,
 31126  		},
 31127  	}
 31128  	target := &ret
 31129  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31130  		return nil, err
 31131  	}
 31132  	return ret, nil
 31133  }
 31134  
 31135  type OrganizationsEnvironmentsCachesDeleteCall struct {
 31136  	s          *Service
 31137  	name       string
 31138  	urlParams_ gensupport.URLParams
 31139  	ctx_       context.Context
 31140  	header_    http.Header
 31141  }
 31142  
 31143  // Delete: Deletes a cache.
 31144  //
 31145  //   - name: Cache resource name of the form:
 31146  //     `organizations/{organization_id}/environments/{environment_id}/caches/{cach
 31147  //     e_id}`.
 31148  func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
 31149  	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31150  	c.name = name
 31151  	return c
 31152  }
 31153  
 31154  // Fields allows partial responses to be retrieved. See
 31155  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31156  // details.
 31157  func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
 31158  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31159  	return c
 31160  }
 31161  
 31162  // Context sets the context to be used in this call's Do method.
 31163  func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
 31164  	c.ctx_ = ctx
 31165  	return c
 31166  }
 31167  
 31168  // Header returns a http.Header that can be modified by the caller to add
 31169  // headers to the request.
 31170  func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
 31171  	if c.header_ == nil {
 31172  		c.header_ = make(http.Header)
 31173  	}
 31174  	return c.header_
 31175  }
 31176  
 31177  func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
 31178  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31179  	var body io.Reader = nil
 31180  	c.urlParams_.Set("alt", alt)
 31181  	c.urlParams_.Set("prettyPrint", "false")
 31182  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31183  	urls += "?" + c.urlParams_.Encode()
 31184  	req, err := http.NewRequest("DELETE", urls, body)
 31185  	if err != nil {
 31186  		return nil, err
 31187  	}
 31188  	req.Header = reqHeaders
 31189  	googleapi.Expand(req.URL, map[string]string{
 31190  		"name": c.name,
 31191  	})
 31192  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31193  }
 31194  
 31195  // Do executes the "apigee.organizations.environments.caches.delete" call.
 31196  // Any non-2xx status code is an error. Response headers are in either
 31197  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 31198  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 31199  // check whether the returned error was because http.StatusNotModified was
 31200  // returned.
 31201  func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 31202  	gensupport.SetOptions(c.urlParams_, opts...)
 31203  	res, err := c.doRequest("json")
 31204  	if res != nil && res.StatusCode == http.StatusNotModified {
 31205  		if res.Body != nil {
 31206  			res.Body.Close()
 31207  		}
 31208  		return nil, gensupport.WrapError(&googleapi.Error{
 31209  			Code:   res.StatusCode,
 31210  			Header: res.Header,
 31211  		})
 31212  	}
 31213  	if err != nil {
 31214  		return nil, err
 31215  	}
 31216  	defer googleapi.CloseBody(res)
 31217  	if err := googleapi.CheckResponse(res); err != nil {
 31218  		return nil, gensupport.WrapError(err)
 31219  	}
 31220  	ret := &GoogleProtobufEmpty{
 31221  		ServerResponse: googleapi.ServerResponse{
 31222  			Header:         res.Header,
 31223  			HTTPStatusCode: res.StatusCode,
 31224  		},
 31225  	}
 31226  	target := &ret
 31227  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31228  		return nil, err
 31229  	}
 31230  	return ret, nil
 31231  }
 31232  
 31233  type OrganizationsEnvironmentsDeploymentsListCall struct {
 31234  	s            *Service
 31235  	parent       string
 31236  	urlParams_   gensupport.URLParams
 31237  	ifNoneMatch_ string
 31238  	ctx_         context.Context
 31239  	header_      http.Header
 31240  }
 31241  
 31242  // List: Lists all deployments of API proxies or shared flows in an
 31243  // environment.
 31244  //
 31245  //   - parent: Name of the environment for which to return deployment information
 31246  //     in the following format: `organizations/{org}/environments/{env}`.
 31247  func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
 31248  	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31249  	c.parent = parent
 31250  	return c
 31251  }
 31252  
 31253  // SharedFlows sets the optional parameter "sharedFlows": Flag that specifies
 31254  // whether to return shared flow or API proxy deployments. Set to `true` to
 31255  // return shared flow deployments; set to `false` to return API proxy
 31256  // deployments. Defaults to `false`.
 31257  func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
 31258  	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
 31259  	return c
 31260  }
 31261  
 31262  // Fields allows partial responses to be retrieved. See
 31263  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31264  // details.
 31265  func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
 31266  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31267  	return c
 31268  }
 31269  
 31270  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31271  // object's ETag matches the given value. This is useful for getting updates
 31272  // only after the object has changed since the last request.
 31273  func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
 31274  	c.ifNoneMatch_ = entityTag
 31275  	return c
 31276  }
 31277  
 31278  // Context sets the context to be used in this call's Do method.
 31279  func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
 31280  	c.ctx_ = ctx
 31281  	return c
 31282  }
 31283  
 31284  // Header returns a http.Header that can be modified by the caller to add
 31285  // headers to the request.
 31286  func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
 31287  	if c.header_ == nil {
 31288  		c.header_ = make(http.Header)
 31289  	}
 31290  	return c.header_
 31291  }
 31292  
 31293  func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 31294  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31295  	if c.ifNoneMatch_ != "" {
 31296  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31297  	}
 31298  	var body io.Reader = nil
 31299  	c.urlParams_.Set("alt", alt)
 31300  	c.urlParams_.Set("prettyPrint", "false")
 31301  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 31302  	urls += "?" + c.urlParams_.Encode()
 31303  	req, err := http.NewRequest("GET", urls, body)
 31304  	if err != nil {
 31305  		return nil, err
 31306  	}
 31307  	req.Header = reqHeaders
 31308  	googleapi.Expand(req.URL, map[string]string{
 31309  		"parent": c.parent,
 31310  	})
 31311  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31312  }
 31313  
 31314  // Do executes the "apigee.organizations.environments.deployments.list" call.
 31315  // Any non-2xx status code is an error. Response headers are in either
 31316  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 31317  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31318  // googleapi.IsNotModified to check whether the returned error was because
 31319  // http.StatusNotModified was returned.
 31320  func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 31321  	gensupport.SetOptions(c.urlParams_, opts...)
 31322  	res, err := c.doRequest("json")
 31323  	if res != nil && res.StatusCode == http.StatusNotModified {
 31324  		if res.Body != nil {
 31325  			res.Body.Close()
 31326  		}
 31327  		return nil, gensupport.WrapError(&googleapi.Error{
 31328  			Code:   res.StatusCode,
 31329  			Header: res.Header,
 31330  		})
 31331  	}
 31332  	if err != nil {
 31333  		return nil, err
 31334  	}
 31335  	defer googleapi.CloseBody(res)
 31336  	if err := googleapi.CheckResponse(res); err != nil {
 31337  		return nil, gensupport.WrapError(err)
 31338  	}
 31339  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 31340  		ServerResponse: googleapi.ServerResponse{
 31341  			Header:         res.Header,
 31342  			HTTPStatusCode: res.StatusCode,
 31343  		},
 31344  	}
 31345  	target := &ret
 31346  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31347  		return nil, err
 31348  	}
 31349  	return ret, nil
 31350  }
 31351  
 31352  type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
 31353  	s                           *Service
 31354  	name                        string
 31355  	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
 31356  	urlParams_                  gensupport.URLParams
 31357  	ctx_                        context.Context
 31358  	header_                     http.Header
 31359  }
 31360  
 31361  // AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
 31362  //
 31363  //   - name: Name of the flow hook to which the shared flow should be attached in
 31364  //     the following format:
 31365  //     `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
 31366  func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
 31367  	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31368  	c.name = name
 31369  	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
 31370  	return c
 31371  }
 31372  
 31373  // Fields allows partial responses to be retrieved. See
 31374  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31375  // details.
 31376  func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
 31377  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31378  	return c
 31379  }
 31380  
 31381  // Context sets the context to be used in this call's Do method.
 31382  func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
 31383  	c.ctx_ = ctx
 31384  	return c
 31385  }
 31386  
 31387  // Header returns a http.Header that can be modified by the caller to add
 31388  // headers to the request.
 31389  func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
 31390  	if c.header_ == nil {
 31391  		c.header_ = make(http.Header)
 31392  	}
 31393  	return c.header_
 31394  }
 31395  
 31396  func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
 31397  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31398  	var body io.Reader = nil
 31399  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
 31400  	if err != nil {
 31401  		return nil, err
 31402  	}
 31403  	c.urlParams_.Set("alt", alt)
 31404  	c.urlParams_.Set("prettyPrint", "false")
 31405  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31406  	urls += "?" + c.urlParams_.Encode()
 31407  	req, err := http.NewRequest("PUT", urls, body)
 31408  	if err != nil {
 31409  		return nil, err
 31410  	}
 31411  	req.Header = reqHeaders
 31412  	googleapi.Expand(req.URL, map[string]string{
 31413  		"name": c.name,
 31414  	})
 31415  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31416  }
 31417  
 31418  // Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
 31419  // Any non-2xx status code is an error. Response headers are in either
 31420  // *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response was
 31421  // returned at all) in error.(*googleapi.Error).Header. Use
 31422  // googleapi.IsNotModified to check whether the returned error was because
 31423  // http.StatusNotModified was returned.
 31424  func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
 31425  	gensupport.SetOptions(c.urlParams_, opts...)
 31426  	res, err := c.doRequest("json")
 31427  	if res != nil && res.StatusCode == http.StatusNotModified {
 31428  		if res.Body != nil {
 31429  			res.Body.Close()
 31430  		}
 31431  		return nil, gensupport.WrapError(&googleapi.Error{
 31432  			Code:   res.StatusCode,
 31433  			Header: res.Header,
 31434  		})
 31435  	}
 31436  	if err != nil {
 31437  		return nil, err
 31438  	}
 31439  	defer googleapi.CloseBody(res)
 31440  	if err := googleapi.CheckResponse(res); err != nil {
 31441  		return nil, gensupport.WrapError(err)
 31442  	}
 31443  	ret := &GoogleCloudApigeeV1FlowHook{
 31444  		ServerResponse: googleapi.ServerResponse{
 31445  			Header:         res.Header,
 31446  			HTTPStatusCode: res.StatusCode,
 31447  		},
 31448  	}
 31449  	target := &ret
 31450  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31451  		return nil, err
 31452  	}
 31453  	return ret, nil
 31454  }
 31455  
 31456  type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
 31457  	s          *Service
 31458  	name       string
 31459  	urlParams_ gensupport.URLParams
 31460  	ctx_       context.Context
 31461  	header_    http.Header
 31462  }
 31463  
 31464  // DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow hook.
 31465  //
 31466  //   - name: Name of the flow hook to detach in the following format:
 31467  //     `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
 31468  func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
 31469  	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31470  	c.name = name
 31471  	return c
 31472  }
 31473  
 31474  // Fields allows partial responses to be retrieved. See
 31475  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31476  // details.
 31477  func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
 31478  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31479  	return c
 31480  }
 31481  
 31482  // Context sets the context to be used in this call's Do method.
 31483  func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
 31484  	c.ctx_ = ctx
 31485  	return c
 31486  }
 31487  
 31488  // Header returns a http.Header that can be modified by the caller to add
 31489  // headers to the request.
 31490  func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
 31491  	if c.header_ == nil {
 31492  		c.header_ = make(http.Header)
 31493  	}
 31494  	return c.header_
 31495  }
 31496  
 31497  func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
 31498  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31499  	var body io.Reader = nil
 31500  	c.urlParams_.Set("alt", alt)
 31501  	c.urlParams_.Set("prettyPrint", "false")
 31502  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31503  	urls += "?" + c.urlParams_.Encode()
 31504  	req, err := http.NewRequest("DELETE", urls, body)
 31505  	if err != nil {
 31506  		return nil, err
 31507  	}
 31508  	req.Header = reqHeaders
 31509  	googleapi.Expand(req.URL, map[string]string{
 31510  		"name": c.name,
 31511  	})
 31512  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31513  }
 31514  
 31515  // Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
 31516  // Any non-2xx status code is an error. Response headers are in either
 31517  // *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response was
 31518  // returned at all) in error.(*googleapi.Error).Header. Use
 31519  // googleapi.IsNotModified to check whether the returned error was because
 31520  // http.StatusNotModified was returned.
 31521  func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
 31522  	gensupport.SetOptions(c.urlParams_, opts...)
 31523  	res, err := c.doRequest("json")
 31524  	if res != nil && res.StatusCode == http.StatusNotModified {
 31525  		if res.Body != nil {
 31526  			res.Body.Close()
 31527  		}
 31528  		return nil, gensupport.WrapError(&googleapi.Error{
 31529  			Code:   res.StatusCode,
 31530  			Header: res.Header,
 31531  		})
 31532  	}
 31533  	if err != nil {
 31534  		return nil, err
 31535  	}
 31536  	defer googleapi.CloseBody(res)
 31537  	if err := googleapi.CheckResponse(res); err != nil {
 31538  		return nil, gensupport.WrapError(err)
 31539  	}
 31540  	ret := &GoogleCloudApigeeV1FlowHook{
 31541  		ServerResponse: googleapi.ServerResponse{
 31542  			Header:         res.Header,
 31543  			HTTPStatusCode: res.StatusCode,
 31544  		},
 31545  	}
 31546  	target := &ret
 31547  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31548  		return nil, err
 31549  	}
 31550  	return ret, nil
 31551  }
 31552  
 31553  type OrganizationsEnvironmentsFlowhooksGetCall struct {
 31554  	s            *Service
 31555  	name         string
 31556  	urlParams_   gensupport.URLParams
 31557  	ifNoneMatch_ string
 31558  	ctx_         context.Context
 31559  	header_      http.Header
 31560  }
 31561  
 31562  // Get: Returns the name of the shared flow attached to the specified flow
 31563  // hook. If there's no shared flow attached to the flow hook, the API does not
 31564  // return an error; it simply does not return a name in the response.
 31565  //
 31566  //   - name: Name of the flow hook in the following format:
 31567  //     `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
 31568  func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
 31569  	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31570  	c.name = name
 31571  	return c
 31572  }
 31573  
 31574  // Fields allows partial responses to be retrieved. See
 31575  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31576  // details.
 31577  func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
 31578  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31579  	return c
 31580  }
 31581  
 31582  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31583  // object's ETag matches the given value. This is useful for getting updates
 31584  // only after the object has changed since the last request.
 31585  func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
 31586  	c.ifNoneMatch_ = entityTag
 31587  	return c
 31588  }
 31589  
 31590  // Context sets the context to be used in this call's Do method.
 31591  func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
 31592  	c.ctx_ = ctx
 31593  	return c
 31594  }
 31595  
 31596  // Header returns a http.Header that can be modified by the caller to add
 31597  // headers to the request.
 31598  func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
 31599  	if c.header_ == nil {
 31600  		c.header_ = make(http.Header)
 31601  	}
 31602  	return c.header_
 31603  }
 31604  
 31605  func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
 31606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31607  	if c.ifNoneMatch_ != "" {
 31608  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31609  	}
 31610  	var body io.Reader = nil
 31611  	c.urlParams_.Set("alt", alt)
 31612  	c.urlParams_.Set("prettyPrint", "false")
 31613  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31614  	urls += "?" + c.urlParams_.Encode()
 31615  	req, err := http.NewRequest("GET", urls, body)
 31616  	if err != nil {
 31617  		return nil, err
 31618  	}
 31619  	req.Header = reqHeaders
 31620  	googleapi.Expand(req.URL, map[string]string{
 31621  		"name": c.name,
 31622  	})
 31623  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31624  }
 31625  
 31626  // Do executes the "apigee.organizations.environments.flowhooks.get" call.
 31627  // Any non-2xx status code is an error. Response headers are in either
 31628  // *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response was
 31629  // returned at all) in error.(*googleapi.Error).Header. Use
 31630  // googleapi.IsNotModified to check whether the returned error was because
 31631  // http.StatusNotModified was returned.
 31632  func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
 31633  	gensupport.SetOptions(c.urlParams_, opts...)
 31634  	res, err := c.doRequest("json")
 31635  	if res != nil && res.StatusCode == http.StatusNotModified {
 31636  		if res.Body != nil {
 31637  			res.Body.Close()
 31638  		}
 31639  		return nil, gensupport.WrapError(&googleapi.Error{
 31640  			Code:   res.StatusCode,
 31641  			Header: res.Header,
 31642  		})
 31643  	}
 31644  	if err != nil {
 31645  		return nil, err
 31646  	}
 31647  	defer googleapi.CloseBody(res)
 31648  	if err := googleapi.CheckResponse(res); err != nil {
 31649  		return nil, gensupport.WrapError(err)
 31650  	}
 31651  	ret := &GoogleCloudApigeeV1FlowHook{
 31652  		ServerResponse: googleapi.ServerResponse{
 31653  			Header:         res.Header,
 31654  			HTTPStatusCode: res.StatusCode,
 31655  		},
 31656  	}
 31657  	target := &ret
 31658  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31659  		return nil, err
 31660  	}
 31661  	return ret, nil
 31662  }
 31663  
 31664  type OrganizationsEnvironmentsKeystoresCreateCall struct {
 31665  	s                           *Service
 31666  	parent                      string
 31667  	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
 31668  	urlParams_                  gensupport.URLParams
 31669  	ctx_                        context.Context
 31670  	header_                     http.Header
 31671  }
 31672  
 31673  // Create: Creates a keystore or truststore. - Keystore: Contains certificates
 31674  // and their associated keys. - Truststore: Contains trusted certificates used
 31675  // to validate a server's certificate. These certificates are typically
 31676  // self-signed certificates or certificates that are not signed by a trusted
 31677  // CA.
 31678  //
 31679  //   - parent: Name of the environment in which to create the keystore. Use the
 31680  //     following format in your request: `organizations/{org}/environments/{env}`.
 31681  func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
 31682  	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31683  	c.parent = parent
 31684  	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
 31685  	return c
 31686  }
 31687  
 31688  // Name sets the optional parameter "name": Name of the keystore. Overrides the
 31689  // value in Keystore.
 31690  func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
 31691  	c.urlParams_.Set("name", name)
 31692  	return c
 31693  }
 31694  
 31695  // Fields allows partial responses to be retrieved. See
 31696  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31697  // details.
 31698  func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
 31699  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31700  	return c
 31701  }
 31702  
 31703  // Context sets the context to be used in this call's Do method.
 31704  func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
 31705  	c.ctx_ = ctx
 31706  	return c
 31707  }
 31708  
 31709  // Header returns a http.Header that can be modified by the caller to add
 31710  // headers to the request.
 31711  func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
 31712  	if c.header_ == nil {
 31713  		c.header_ = make(http.Header)
 31714  	}
 31715  	return c.header_
 31716  }
 31717  
 31718  func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
 31719  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31720  	var body io.Reader = nil
 31721  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
 31722  	if err != nil {
 31723  		return nil, err
 31724  	}
 31725  	c.urlParams_.Set("alt", alt)
 31726  	c.urlParams_.Set("prettyPrint", "false")
 31727  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
 31728  	urls += "?" + c.urlParams_.Encode()
 31729  	req, err := http.NewRequest("POST", urls, body)
 31730  	if err != nil {
 31731  		return nil, err
 31732  	}
 31733  	req.Header = reqHeaders
 31734  	googleapi.Expand(req.URL, map[string]string{
 31735  		"parent": c.parent,
 31736  	})
 31737  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31738  }
 31739  
 31740  // Do executes the "apigee.organizations.environments.keystores.create" call.
 31741  // Any non-2xx status code is an error. Response headers are in either
 31742  // *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response was
 31743  // returned at all) in error.(*googleapi.Error).Header. Use
 31744  // googleapi.IsNotModified to check whether the returned error was because
 31745  // http.StatusNotModified was returned.
 31746  func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
 31747  	gensupport.SetOptions(c.urlParams_, opts...)
 31748  	res, err := c.doRequest("json")
 31749  	if res != nil && res.StatusCode == http.StatusNotModified {
 31750  		if res.Body != nil {
 31751  			res.Body.Close()
 31752  		}
 31753  		return nil, gensupport.WrapError(&googleapi.Error{
 31754  			Code:   res.StatusCode,
 31755  			Header: res.Header,
 31756  		})
 31757  	}
 31758  	if err != nil {
 31759  		return nil, err
 31760  	}
 31761  	defer googleapi.CloseBody(res)
 31762  	if err := googleapi.CheckResponse(res); err != nil {
 31763  		return nil, gensupport.WrapError(err)
 31764  	}
 31765  	ret := &GoogleCloudApigeeV1Keystore{
 31766  		ServerResponse: googleapi.ServerResponse{
 31767  			Header:         res.Header,
 31768  			HTTPStatusCode: res.StatusCode,
 31769  		},
 31770  	}
 31771  	target := &ret
 31772  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31773  		return nil, err
 31774  	}
 31775  	return ret, nil
 31776  }
 31777  
 31778  type OrganizationsEnvironmentsKeystoresDeleteCall struct {
 31779  	s          *Service
 31780  	name       string
 31781  	urlParams_ gensupport.URLParams
 31782  	ctx_       context.Context
 31783  	header_    http.Header
 31784  }
 31785  
 31786  // Delete: Deletes a keystore or truststore.
 31787  //
 31788  //   - name: Name of the keystore. Use the following format in your request:
 31789  //     `organizations/{org}/environments/{env}/keystores/{keystore}`.
 31790  func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
 31791  	c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31792  	c.name = name
 31793  	return c
 31794  }
 31795  
 31796  // Fields allows partial responses to be retrieved. See
 31797  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31798  // details.
 31799  func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
 31800  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31801  	return c
 31802  }
 31803  
 31804  // Context sets the context to be used in this call's Do method.
 31805  func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
 31806  	c.ctx_ = ctx
 31807  	return c
 31808  }
 31809  
 31810  // Header returns a http.Header that can be modified by the caller to add
 31811  // headers to the request.
 31812  func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
 31813  	if c.header_ == nil {
 31814  		c.header_ = make(http.Header)
 31815  	}
 31816  	return c.header_
 31817  }
 31818  
 31819  func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 31820  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31821  	var body io.Reader = nil
 31822  	c.urlParams_.Set("alt", alt)
 31823  	c.urlParams_.Set("prettyPrint", "false")
 31824  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31825  	urls += "?" + c.urlParams_.Encode()
 31826  	req, err := http.NewRequest("DELETE", urls, body)
 31827  	if err != nil {
 31828  		return nil, err
 31829  	}
 31830  	req.Header = reqHeaders
 31831  	googleapi.Expand(req.URL, map[string]string{
 31832  		"name": c.name,
 31833  	})
 31834  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31835  }
 31836  
 31837  // Do executes the "apigee.organizations.environments.keystores.delete" call.
 31838  // Any non-2xx status code is an error. Response headers are in either
 31839  // *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response was
 31840  // returned at all) in error.(*googleapi.Error).Header. Use
 31841  // googleapi.IsNotModified to check whether the returned error was because
 31842  // http.StatusNotModified was returned.
 31843  func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
 31844  	gensupport.SetOptions(c.urlParams_, opts...)
 31845  	res, err := c.doRequest("json")
 31846  	if res != nil && res.StatusCode == http.StatusNotModified {
 31847  		if res.Body != nil {
 31848  			res.Body.Close()
 31849  		}
 31850  		return nil, gensupport.WrapError(&googleapi.Error{
 31851  			Code:   res.StatusCode,
 31852  			Header: res.Header,
 31853  		})
 31854  	}
 31855  	if err != nil {
 31856  		return nil, err
 31857  	}
 31858  	defer googleapi.CloseBody(res)
 31859  	if err := googleapi.CheckResponse(res); err != nil {
 31860  		return nil, gensupport.WrapError(err)
 31861  	}
 31862  	ret := &GoogleCloudApigeeV1Keystore{
 31863  		ServerResponse: googleapi.ServerResponse{
 31864  			Header:         res.Header,
 31865  			HTTPStatusCode: res.StatusCode,
 31866  		},
 31867  	}
 31868  	target := &ret
 31869  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31870  		return nil, err
 31871  	}
 31872  	return ret, nil
 31873  }
 31874  
 31875  type OrganizationsEnvironmentsKeystoresGetCall struct {
 31876  	s            *Service
 31877  	name         string
 31878  	urlParams_   gensupport.URLParams
 31879  	ifNoneMatch_ string
 31880  	ctx_         context.Context
 31881  	header_      http.Header
 31882  }
 31883  
 31884  // Get: Gets a keystore or truststore.
 31885  //
 31886  //   - name: Name of the keystore. Use the following format in your request:
 31887  //     `organizations/{org}/environments/{env}/keystores/{keystore}`.
 31888  func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
 31889  	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31890  	c.name = name
 31891  	return c
 31892  }
 31893  
 31894  // Fields allows partial responses to be retrieved. See
 31895  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31896  // details.
 31897  func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
 31898  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31899  	return c
 31900  }
 31901  
 31902  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31903  // object's ETag matches the given value. This is useful for getting updates
 31904  // only after the object has changed since the last request.
 31905  func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
 31906  	c.ifNoneMatch_ = entityTag
 31907  	return c
 31908  }
 31909  
 31910  // Context sets the context to be used in this call's Do method.
 31911  func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
 31912  	c.ctx_ = ctx
 31913  	return c
 31914  }
 31915  
 31916  // Header returns a http.Header that can be modified by the caller to add
 31917  // headers to the request.
 31918  func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
 31919  	if c.header_ == nil {
 31920  		c.header_ = make(http.Header)
 31921  	}
 31922  	return c.header_
 31923  }
 31924  
 31925  func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
 31926  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31927  	if c.ifNoneMatch_ != "" {
 31928  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31929  	}
 31930  	var body io.Reader = nil
 31931  	c.urlParams_.Set("alt", alt)
 31932  	c.urlParams_.Set("prettyPrint", "false")
 31933  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 31934  	urls += "?" + c.urlParams_.Encode()
 31935  	req, err := http.NewRequest("GET", urls, body)
 31936  	if err != nil {
 31937  		return nil, err
 31938  	}
 31939  	req.Header = reqHeaders
 31940  	googleapi.Expand(req.URL, map[string]string{
 31941  		"name": c.name,
 31942  	})
 31943  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31944  }
 31945  
 31946  // Do executes the "apigee.organizations.environments.keystores.get" call.
 31947  // Any non-2xx status code is an error. Response headers are in either
 31948  // *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response was
 31949  // returned at all) in error.(*googleapi.Error).Header. Use
 31950  // googleapi.IsNotModified to check whether the returned error was because
 31951  // http.StatusNotModified was returned.
 31952  func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
 31953  	gensupport.SetOptions(c.urlParams_, opts...)
 31954  	res, err := c.doRequest("json")
 31955  	if res != nil && res.StatusCode == http.StatusNotModified {
 31956  		if res.Body != nil {
 31957  			res.Body.Close()
 31958  		}
 31959  		return nil, gensupport.WrapError(&googleapi.Error{
 31960  			Code:   res.StatusCode,
 31961  			Header: res.Header,
 31962  		})
 31963  	}
 31964  	if err != nil {
 31965  		return nil, err
 31966  	}
 31967  	defer googleapi.CloseBody(res)
 31968  	if err := googleapi.CheckResponse(res); err != nil {
 31969  		return nil, gensupport.WrapError(err)
 31970  	}
 31971  	ret := &GoogleCloudApigeeV1Keystore{
 31972  		ServerResponse: googleapi.ServerResponse{
 31973  			Header:         res.Header,
 31974  			HTTPStatusCode: res.StatusCode,
 31975  		},
 31976  	}
 31977  	target := &ret
 31978  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31979  		return nil, err
 31980  	}
 31981  	return ret, nil
 31982  }
 31983  
 31984  type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
 31985  	s                 *Service
 31986  	parent            string
 31987  	googleapihttpbody *GoogleApiHttpBody
 31988  	urlParams_        gensupport.URLParams
 31989  	ctx_              context.Context
 31990  	header_           http.Header
 31991  }
 31992  
 31993  // Create: Creates an alias from a key/certificate pair. The structure of the
 31994  // request is controlled by the `format` query parameter: - `keycertfile` -
 31995  // Separate PEM-encoded key and certificate files are uploaded. Set
 31996  // `Content-Type: multipart/form-data` and include the `keyFile`, `certFile`,
 31997  // and `password` (if keys are encrypted) fields in the request body. If
 31998  // uploading to a truststore, omit `keyFile`. - `pkcs12` - A PKCS12 file is
 31999  // uploaded. Set `Content-Type: multipart/form-data`, provide the file in the
 32000  // `file` field, and include the `password` field if the file is encrypted in
 32001  // the request body. - `selfsignedcert` - A new private key and certificate are
 32002  // generated. Set `Content-Type: application/json` and include
 32003  // CertificateGenerationSpec in the request body.
 32004  //
 32005  //   - parent: Name of the keystore. Use the following format in your request:
 32006  //     `organizations/{org}/environments/{env}/keystores/{keystore}`.
 32007  func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32008  	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32009  	c.parent = parent
 32010  	c.googleapihttpbody = googleapihttpbody
 32011  	return c
 32012  }
 32013  
 32014  // Password sets the optional parameter "_password": DEPRECATED: For improved
 32015  // security, specify the password in the request body instead of using the
 32016  // query parameter. To specify the password in the request body, set
 32017  // `Content-type: multipart/form-data` part with name `password`. Password for
 32018  // the private key file, if required.
 32019  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32020  	c.urlParams_.Set("_password", Password)
 32021  	return c
 32022  }
 32023  
 32024  // Alias sets the optional parameter "alias": Alias for the key/certificate
 32025  // pair. Values must match the regular expression `[\w\s-.]{1,255}`. This must
 32026  // be provided for all formats except `selfsignedcert`; self-signed certs may
 32027  // specify the alias in either this parameter or the JSON body.
 32028  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32029  	c.urlParams_.Set("alias", alias)
 32030  	return c
 32031  }
 32032  
 32033  // Format sets the optional parameter "format": Required. Format of the data.
 32034  // Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12`
 32035  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32036  	c.urlParams_.Set("format", format)
 32037  	return c
 32038  }
 32039  
 32040  // IgnoreExpiryValidation sets the optional parameter "ignoreExpiryValidation":
 32041  // Flag that specifies whether to ignore expiry validation. If set to `true`,
 32042  // no expiry validation will be performed.
 32043  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32044  	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
 32045  	return c
 32046  }
 32047  
 32048  // IgnoreNewlineValidation sets the optional parameter
 32049  // "ignoreNewlineValidation": Flag that specifies whether to ignore newline
 32050  // validation. If set to `true`, no error is thrown when the file contains a
 32051  // certificate chain with no newline between each certificate. Defaults to
 32052  // `false`.
 32053  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32054  	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
 32055  	return c
 32056  }
 32057  
 32058  // Fields allows partial responses to be retrieved. See
 32059  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32060  // details.
 32061  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32062  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32063  	return c
 32064  }
 32065  
 32066  // Context sets the context to be used in this call's Do method.
 32067  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
 32068  	c.ctx_ = ctx
 32069  	return c
 32070  }
 32071  
 32072  // Header returns a http.Header that can be modified by the caller to add
 32073  // headers to the request.
 32074  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
 32075  	if c.header_ == nil {
 32076  		c.header_ = make(http.Header)
 32077  	}
 32078  	return c.header_
 32079  }
 32080  
 32081  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
 32082  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32083  	var body io.Reader = nil
 32084  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 32085  	if err != nil {
 32086  		return nil, err
 32087  	}
 32088  	c.urlParams_.Set("alt", alt)
 32089  	c.urlParams_.Set("prettyPrint", "false")
 32090  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
 32091  	urls += "?" + c.urlParams_.Encode()
 32092  	req, err := http.NewRequest("POST", urls, body)
 32093  	if err != nil {
 32094  		return nil, err
 32095  	}
 32096  	req.Header = reqHeaders
 32097  	googleapi.Expand(req.URL, map[string]string{
 32098  		"parent": c.parent,
 32099  	})
 32100  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32101  }
 32102  
 32103  // Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
 32104  // Any non-2xx status code is an error. Response headers are in either
 32105  // *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
 32106  // returned at all) in error.(*googleapi.Error).Header. Use
 32107  // googleapi.IsNotModified to check whether the returned error was because
 32108  // http.StatusNotModified was returned.
 32109  func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
 32110  	gensupport.SetOptions(c.urlParams_, opts...)
 32111  	res, err := c.doRequest("json")
 32112  	if res != nil && res.StatusCode == http.StatusNotModified {
 32113  		if res.Body != nil {
 32114  			res.Body.Close()
 32115  		}
 32116  		return nil, gensupport.WrapError(&googleapi.Error{
 32117  			Code:   res.StatusCode,
 32118  			Header: res.Header,
 32119  		})
 32120  	}
 32121  	if err != nil {
 32122  		return nil, err
 32123  	}
 32124  	defer googleapi.CloseBody(res)
 32125  	if err := googleapi.CheckResponse(res); err != nil {
 32126  		return nil, gensupport.WrapError(err)
 32127  	}
 32128  	ret := &GoogleCloudApigeeV1Alias{
 32129  		ServerResponse: googleapi.ServerResponse{
 32130  			Header:         res.Header,
 32131  			HTTPStatusCode: res.StatusCode,
 32132  		},
 32133  	}
 32134  	target := &ret
 32135  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32136  		return nil, err
 32137  	}
 32138  	return ret, nil
 32139  }
 32140  
 32141  type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
 32142  	s            *Service
 32143  	name         string
 32144  	urlParams_   gensupport.URLParams
 32145  	ifNoneMatch_ string
 32146  	ctx_         context.Context
 32147  	header_      http.Header
 32148  }
 32149  
 32150  // Csr: Generates a PKCS #10 Certificate Signing Request for the private key in
 32151  // an alias.
 32152  //
 32153  //   - name: Name of the alias. Use the following format in your request:
 32154  //     `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias
 32155  //     }`.
 32156  func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
 32157  	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32158  	c.name = name
 32159  	return c
 32160  }
 32161  
 32162  // Fields allows partial responses to be retrieved. See
 32163  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32164  // details.
 32165  func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
 32166  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32167  	return c
 32168  }
 32169  
 32170  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32171  // object's ETag matches the given value. This is useful for getting updates
 32172  // only after the object has changed since the last request.
 32173  func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
 32174  	c.ifNoneMatch_ = entityTag
 32175  	return c
 32176  }
 32177  
 32178  // Context sets the context to be used in this call's Do method.
 32179  func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
 32180  	c.ctx_ = ctx
 32181  	return c
 32182  }
 32183  
 32184  // Header returns a http.Header that can be modified by the caller to add
 32185  // headers to the request.
 32186  func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
 32187  	if c.header_ == nil {
 32188  		c.header_ = make(http.Header)
 32189  	}
 32190  	return c.header_
 32191  }
 32192  
 32193  func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
 32194  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32195  	if c.ifNoneMatch_ != "" {
 32196  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32197  	}
 32198  	var body io.Reader = nil
 32199  	c.urlParams_.Set("alt", alt)
 32200  	c.urlParams_.Set("prettyPrint", "false")
 32201  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
 32202  	urls += "?" + c.urlParams_.Encode()
 32203  	req, err := http.NewRequest("GET", urls, body)
 32204  	if err != nil {
 32205  		return nil, err
 32206  	}
 32207  	req.Header = reqHeaders
 32208  	googleapi.Expand(req.URL, map[string]string{
 32209  		"name": c.name,
 32210  	})
 32211  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32212  }
 32213  
 32214  // Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
 32215  // Any non-2xx status code is an error. Response headers are in either
 32216  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 32217  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 32218  // check whether the returned error was because http.StatusNotModified was
 32219  // returned.
 32220  func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 32221  	gensupport.SetOptions(c.urlParams_, opts...)
 32222  	res, err := c.doRequest("json")
 32223  	if res != nil && res.StatusCode == http.StatusNotModified {
 32224  		if res.Body != nil {
 32225  			res.Body.Close()
 32226  		}
 32227  		return nil, gensupport.WrapError(&googleapi.Error{
 32228  			Code:   res.StatusCode,
 32229  			Header: res.Header,
 32230  		})
 32231  	}
 32232  	if err != nil {
 32233  		return nil, err
 32234  	}
 32235  	defer googleapi.CloseBody(res)
 32236  	if err := googleapi.CheckResponse(res); err != nil {
 32237  		return nil, gensupport.WrapError(err)
 32238  	}
 32239  	ret := &GoogleApiHttpBody{
 32240  		ServerResponse: googleapi.ServerResponse{
 32241  			Header:         res.Header,
 32242  			HTTPStatusCode: res.StatusCode,
 32243  		},
 32244  	}
 32245  	target := &ret
 32246  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32247  		return nil, err
 32248  	}
 32249  	return ret, nil
 32250  }
 32251  
 32252  type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
 32253  	s          *Service
 32254  	name       string
 32255  	urlParams_ gensupport.URLParams
 32256  	ctx_       context.Context
 32257  	header_    http.Header
 32258  }
 32259  
 32260  // Delete: Deletes an alias.
 32261  //
 32262  //   - name: Name of the alias. Use the following format in your request:
 32263  //     `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias
 32264  //     }`.
 32265  func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
 32266  	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32267  	c.name = name
 32268  	return c
 32269  }
 32270  
 32271  // Fields allows partial responses to be retrieved. See
 32272  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32273  // details.
 32274  func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
 32275  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32276  	return c
 32277  }
 32278  
 32279  // Context sets the context to be used in this call's Do method.
 32280  func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
 32281  	c.ctx_ = ctx
 32282  	return c
 32283  }
 32284  
 32285  // Header returns a http.Header that can be modified by the caller to add
 32286  // headers to the request.
 32287  func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
 32288  	if c.header_ == nil {
 32289  		c.header_ = make(http.Header)
 32290  	}
 32291  	return c.header_
 32292  }
 32293  
 32294  func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 32295  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32296  	var body io.Reader = nil
 32297  	c.urlParams_.Set("alt", alt)
 32298  	c.urlParams_.Set("prettyPrint", "false")
 32299  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 32300  	urls += "?" + c.urlParams_.Encode()
 32301  	req, err := http.NewRequest("DELETE", urls, body)
 32302  	if err != nil {
 32303  		return nil, err
 32304  	}
 32305  	req.Header = reqHeaders
 32306  	googleapi.Expand(req.URL, map[string]string{
 32307  		"name": c.name,
 32308  	})
 32309  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32310  }
 32311  
 32312  // Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
 32313  // Any non-2xx status code is an error. Response headers are in either
 32314  // *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
 32315  // returned at all) in error.(*googleapi.Error).Header. Use
 32316  // googleapi.IsNotModified to check whether the returned error was because
 32317  // http.StatusNotModified was returned.
 32318  func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
 32319  	gensupport.SetOptions(c.urlParams_, opts...)
 32320  	res, err := c.doRequest("json")
 32321  	if res != nil && res.StatusCode == http.StatusNotModified {
 32322  		if res.Body != nil {
 32323  			res.Body.Close()
 32324  		}
 32325  		return nil, gensupport.WrapError(&googleapi.Error{
 32326  			Code:   res.StatusCode,
 32327  			Header: res.Header,
 32328  		})
 32329  	}
 32330  	if err != nil {
 32331  		return nil, err
 32332  	}
 32333  	defer googleapi.CloseBody(res)
 32334  	if err := googleapi.CheckResponse(res); err != nil {
 32335  		return nil, gensupport.WrapError(err)
 32336  	}
 32337  	ret := &GoogleCloudApigeeV1Alias{
 32338  		ServerResponse: googleapi.ServerResponse{
 32339  			Header:         res.Header,
 32340  			HTTPStatusCode: res.StatusCode,
 32341  		},
 32342  	}
 32343  	target := &ret
 32344  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32345  		return nil, err
 32346  	}
 32347  	return ret, nil
 32348  }
 32349  
 32350  type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
 32351  	s            *Service
 32352  	name         string
 32353  	urlParams_   gensupport.URLParams
 32354  	ifNoneMatch_ string
 32355  	ctx_         context.Context
 32356  	header_      http.Header
 32357  }
 32358  
 32359  // Get: Gets an alias.
 32360  //
 32361  //   - name: Name of the alias. Use the following format in your request:
 32362  //     `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias
 32363  //     }`.
 32364  func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
 32365  	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32366  	c.name = name
 32367  	return c
 32368  }
 32369  
 32370  // Fields allows partial responses to be retrieved. See
 32371  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32372  // details.
 32373  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
 32374  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32375  	return c
 32376  }
 32377  
 32378  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32379  // object's ETag matches the given value. This is useful for getting updates
 32380  // only after the object has changed since the last request.
 32381  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
 32382  	c.ifNoneMatch_ = entityTag
 32383  	return c
 32384  }
 32385  
 32386  // Context sets the context to be used in this call's Do method.
 32387  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
 32388  	c.ctx_ = ctx
 32389  	return c
 32390  }
 32391  
 32392  // Header returns a http.Header that can be modified by the caller to add
 32393  // headers to the request.
 32394  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
 32395  	if c.header_ == nil {
 32396  		c.header_ = make(http.Header)
 32397  	}
 32398  	return c.header_
 32399  }
 32400  
 32401  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
 32402  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32403  	if c.ifNoneMatch_ != "" {
 32404  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32405  	}
 32406  	var body io.Reader = nil
 32407  	c.urlParams_.Set("alt", alt)
 32408  	c.urlParams_.Set("prettyPrint", "false")
 32409  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 32410  	urls += "?" + c.urlParams_.Encode()
 32411  	req, err := http.NewRequest("GET", urls, body)
 32412  	if err != nil {
 32413  		return nil, err
 32414  	}
 32415  	req.Header = reqHeaders
 32416  	googleapi.Expand(req.URL, map[string]string{
 32417  		"name": c.name,
 32418  	})
 32419  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32420  }
 32421  
 32422  // Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
 32423  // Any non-2xx status code is an error. Response headers are in either
 32424  // *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
 32425  // returned at all) in error.(*googleapi.Error).Header. Use
 32426  // googleapi.IsNotModified to check whether the returned error was because
 32427  // http.StatusNotModified was returned.
 32428  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
 32429  	gensupport.SetOptions(c.urlParams_, opts...)
 32430  	res, err := c.doRequest("json")
 32431  	if res != nil && res.StatusCode == http.StatusNotModified {
 32432  		if res.Body != nil {
 32433  			res.Body.Close()
 32434  		}
 32435  		return nil, gensupport.WrapError(&googleapi.Error{
 32436  			Code:   res.StatusCode,
 32437  			Header: res.Header,
 32438  		})
 32439  	}
 32440  	if err != nil {
 32441  		return nil, err
 32442  	}
 32443  	defer googleapi.CloseBody(res)
 32444  	if err := googleapi.CheckResponse(res); err != nil {
 32445  		return nil, gensupport.WrapError(err)
 32446  	}
 32447  	ret := &GoogleCloudApigeeV1Alias{
 32448  		ServerResponse: googleapi.ServerResponse{
 32449  			Header:         res.Header,
 32450  			HTTPStatusCode: res.StatusCode,
 32451  		},
 32452  	}
 32453  	target := &ret
 32454  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32455  		return nil, err
 32456  	}
 32457  	return ret, nil
 32458  }
 32459  
 32460  type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
 32461  	s            *Service
 32462  	name         string
 32463  	urlParams_   gensupport.URLParams
 32464  	ifNoneMatch_ string
 32465  	ctx_         context.Context
 32466  	header_      http.Header
 32467  }
 32468  
 32469  // GetCertificate: Gets the certificate from an alias in PEM-encoded form.
 32470  //
 32471  //   - name: Name of the alias. Use the following format in your request:
 32472  //     `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias
 32473  //     }`.
 32474  func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
 32475  	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32476  	c.name = name
 32477  	return c
 32478  }
 32479  
 32480  // Fields allows partial responses to be retrieved. See
 32481  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32482  // details.
 32483  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
 32484  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32485  	return c
 32486  }
 32487  
 32488  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32489  // object's ETag matches the given value. This is useful for getting updates
 32490  // only after the object has changed since the last request.
 32491  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
 32492  	c.ifNoneMatch_ = entityTag
 32493  	return c
 32494  }
 32495  
 32496  // Context sets the context to be used in this call's Do method.
 32497  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
 32498  	c.ctx_ = ctx
 32499  	return c
 32500  }
 32501  
 32502  // Header returns a http.Header that can be modified by the caller to add
 32503  // headers to the request.
 32504  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
 32505  	if c.header_ == nil {
 32506  		c.header_ = make(http.Header)
 32507  	}
 32508  	return c.header_
 32509  }
 32510  
 32511  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
 32512  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32513  	if c.ifNoneMatch_ != "" {
 32514  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32515  	}
 32516  	var body io.Reader = nil
 32517  	c.urlParams_.Set("alt", alt)
 32518  	c.urlParams_.Set("prettyPrint", "false")
 32519  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
 32520  	urls += "?" + c.urlParams_.Encode()
 32521  	req, err := http.NewRequest("GET", urls, body)
 32522  	if err != nil {
 32523  		return nil, err
 32524  	}
 32525  	req.Header = reqHeaders
 32526  	googleapi.Expand(req.URL, map[string]string{
 32527  		"name": c.name,
 32528  	})
 32529  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32530  }
 32531  
 32532  // Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
 32533  // Any non-2xx status code is an error. Response headers are in either
 32534  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 32535  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 32536  // check whether the returned error was because http.StatusNotModified was
 32537  // returned.
 32538  func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 32539  	gensupport.SetOptions(c.urlParams_, opts...)
 32540  	res, err := c.doRequest("json")
 32541  	if res != nil && res.StatusCode == http.StatusNotModified {
 32542  		if res.Body != nil {
 32543  			res.Body.Close()
 32544  		}
 32545  		return nil, gensupport.WrapError(&googleapi.Error{
 32546  			Code:   res.StatusCode,
 32547  			Header: res.Header,
 32548  		})
 32549  	}
 32550  	if err != nil {
 32551  		return nil, err
 32552  	}
 32553  	defer googleapi.CloseBody(res)
 32554  	if err := googleapi.CheckResponse(res); err != nil {
 32555  		return nil, gensupport.WrapError(err)
 32556  	}
 32557  	ret := &GoogleApiHttpBody{
 32558  		ServerResponse: googleapi.ServerResponse{
 32559  			Header:         res.Header,
 32560  			HTTPStatusCode: res.StatusCode,
 32561  		},
 32562  	}
 32563  	target := &ret
 32564  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32565  		return nil, err
 32566  	}
 32567  	return ret, nil
 32568  }
 32569  
 32570  type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
 32571  	s                 *Service
 32572  	name              string
 32573  	googleapihttpbody *GoogleApiHttpBody
 32574  	urlParams_        gensupport.URLParams
 32575  	ctx_              context.Context
 32576  	header_           http.Header
 32577  }
 32578  
 32579  // Update: Updates the certificate in an alias.
 32580  //
 32581  //   - name: Name of the alias. Use the following format in your request:
 32582  //     `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias
 32583  //     }`.
 32584  func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
 32585  	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32586  	c.name = name
 32587  	c.googleapihttpbody = googleapihttpbody
 32588  	return c
 32589  }
 32590  
 32591  // IgnoreExpiryValidation sets the optional parameter "ignoreExpiryValidation":
 32592  // Required. Flag that specifies whether to ignore expiry validation. If set to
 32593  // `true`, no expiry validation will be performed.
 32594  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
 32595  	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
 32596  	return c
 32597  }
 32598  
 32599  // IgnoreNewlineValidation sets the optional parameter
 32600  // "ignoreNewlineValidation": Flag that specifies whether to ignore newline
 32601  // validation. If set to `true`, no error is thrown when the file contains a
 32602  // certificate chain with no newline between each certificate. Defaults to
 32603  // `false`.
 32604  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
 32605  	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
 32606  	return c
 32607  }
 32608  
 32609  // Fields allows partial responses to be retrieved. See
 32610  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32611  // details.
 32612  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
 32613  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32614  	return c
 32615  }
 32616  
 32617  // Context sets the context to be used in this call's Do method.
 32618  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
 32619  	c.ctx_ = ctx
 32620  	return c
 32621  }
 32622  
 32623  // Header returns a http.Header that can be modified by the caller to add
 32624  // headers to the request.
 32625  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
 32626  	if c.header_ == nil {
 32627  		c.header_ = make(http.Header)
 32628  	}
 32629  	return c.header_
 32630  }
 32631  
 32632  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
 32633  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32634  	var body io.Reader = nil
 32635  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 32636  	if err != nil {
 32637  		return nil, err
 32638  	}
 32639  	c.urlParams_.Set("alt", alt)
 32640  	c.urlParams_.Set("prettyPrint", "false")
 32641  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 32642  	urls += "?" + c.urlParams_.Encode()
 32643  	req, err := http.NewRequest("PUT", urls, body)
 32644  	if err != nil {
 32645  		return nil, err
 32646  	}
 32647  	req.Header = reqHeaders
 32648  	googleapi.Expand(req.URL, map[string]string{
 32649  		"name": c.name,
 32650  	})
 32651  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32652  }
 32653  
 32654  // Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
 32655  // Any non-2xx status code is an error. Response headers are in either
 32656  // *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
 32657  // returned at all) in error.(*googleapi.Error).Header. Use
 32658  // googleapi.IsNotModified to check whether the returned error was because
 32659  // http.StatusNotModified was returned.
 32660  func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
 32661  	gensupport.SetOptions(c.urlParams_, opts...)
 32662  	res, err := c.doRequest("json")
 32663  	if res != nil && res.StatusCode == http.StatusNotModified {
 32664  		if res.Body != nil {
 32665  			res.Body.Close()
 32666  		}
 32667  		return nil, gensupport.WrapError(&googleapi.Error{
 32668  			Code:   res.StatusCode,
 32669  			Header: res.Header,
 32670  		})
 32671  	}
 32672  	if err != nil {
 32673  		return nil, err
 32674  	}
 32675  	defer googleapi.CloseBody(res)
 32676  	if err := googleapi.CheckResponse(res); err != nil {
 32677  		return nil, gensupport.WrapError(err)
 32678  	}
 32679  	ret := &GoogleCloudApigeeV1Alias{
 32680  		ServerResponse: googleapi.ServerResponse{
 32681  			Header:         res.Header,
 32682  			HTTPStatusCode: res.StatusCode,
 32683  		},
 32684  	}
 32685  	target := &ret
 32686  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32687  		return nil, err
 32688  	}
 32689  	return ret, nil
 32690  }
 32691  
 32692  type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
 32693  	s                              *Service
 32694  	parent                         string
 32695  	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
 32696  	urlParams_                     gensupport.URLParams
 32697  	ctx_                           context.Context
 32698  	header_                        http.Header
 32699  }
 32700  
 32701  // Create: Creates a key value map in an environment.
 32702  //
 32703  //   - parent: Name of the environment in which to create the key value map. Use
 32704  //     the following structure in your request:
 32705  //     `organizations/{org}/environments/{env}`.
 32706  func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
 32707  	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32708  	c.parent = parent
 32709  	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
 32710  	return c
 32711  }
 32712  
 32713  // Fields allows partial responses to be retrieved. See
 32714  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32715  // details.
 32716  func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
 32717  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32718  	return c
 32719  }
 32720  
 32721  // Context sets the context to be used in this call's Do method.
 32722  func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
 32723  	c.ctx_ = ctx
 32724  	return c
 32725  }
 32726  
 32727  // Header returns a http.Header that can be modified by the caller to add
 32728  // headers to the request.
 32729  func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
 32730  	if c.header_ == nil {
 32731  		c.header_ = make(http.Header)
 32732  	}
 32733  	return c.header_
 32734  }
 32735  
 32736  func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
 32737  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32738  	var body io.Reader = nil
 32739  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
 32740  	if err != nil {
 32741  		return nil, err
 32742  	}
 32743  	c.urlParams_.Set("alt", alt)
 32744  	c.urlParams_.Set("prettyPrint", "false")
 32745  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
 32746  	urls += "?" + c.urlParams_.Encode()
 32747  	req, err := http.NewRequest("POST", urls, body)
 32748  	if err != nil {
 32749  		return nil, err
 32750  	}
 32751  	req.Header = reqHeaders
 32752  	googleapi.Expand(req.URL, map[string]string{
 32753  		"parent": c.parent,
 32754  	})
 32755  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32756  }
 32757  
 32758  // Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
 32759  // Any non-2xx status code is an error. Response headers are in either
 32760  // *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a response was
 32761  // returned at all) in error.(*googleapi.Error).Header. Use
 32762  // googleapi.IsNotModified to check whether the returned error was because
 32763  // http.StatusNotModified was returned.
 32764  func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
 32765  	gensupport.SetOptions(c.urlParams_, opts...)
 32766  	res, err := c.doRequest("json")
 32767  	if res != nil && res.StatusCode == http.StatusNotModified {
 32768  		if res.Body != nil {
 32769  			res.Body.Close()
 32770  		}
 32771  		return nil, gensupport.WrapError(&googleapi.Error{
 32772  			Code:   res.StatusCode,
 32773  			Header: res.Header,
 32774  		})
 32775  	}
 32776  	if err != nil {
 32777  		return nil, err
 32778  	}
 32779  	defer googleapi.CloseBody(res)
 32780  	if err := googleapi.CheckResponse(res); err != nil {
 32781  		return nil, gensupport.WrapError(err)
 32782  	}
 32783  	ret := &GoogleCloudApigeeV1KeyValueMap{
 32784  		ServerResponse: googleapi.ServerResponse{
 32785  			Header:         res.Header,
 32786  			HTTPStatusCode: res.StatusCode,
 32787  		},
 32788  	}
 32789  	target := &ret
 32790  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32791  		return nil, err
 32792  	}
 32793  	return ret, nil
 32794  }
 32795  
 32796  type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
 32797  	s          *Service
 32798  	name       string
 32799  	urlParams_ gensupport.URLParams
 32800  	ctx_       context.Context
 32801  	header_    http.Header
 32802  }
 32803  
 32804  // Delete: Deletes a key value map from an environment.
 32805  //
 32806  //   - name: Name of the key value map. Use the following structure in your
 32807  //     request:
 32808  //     `organizations/{org}/environments/{env}/keyvaluemaps/{keyvaluemap}`.
 32809  func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
 32810  	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32811  	c.name = name
 32812  	return c
 32813  }
 32814  
 32815  // Fields allows partial responses to be retrieved. See
 32816  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32817  // details.
 32818  func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
 32819  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32820  	return c
 32821  }
 32822  
 32823  // Context sets the context to be used in this call's Do method.
 32824  func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
 32825  	c.ctx_ = ctx
 32826  	return c
 32827  }
 32828  
 32829  // Header returns a http.Header that can be modified by the caller to add
 32830  // headers to the request.
 32831  func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
 32832  	if c.header_ == nil {
 32833  		c.header_ = make(http.Header)
 32834  	}
 32835  	return c.header_
 32836  }
 32837  
 32838  func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
 32839  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32840  	var body io.Reader = nil
 32841  	c.urlParams_.Set("alt", alt)
 32842  	c.urlParams_.Set("prettyPrint", "false")
 32843  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 32844  	urls += "?" + c.urlParams_.Encode()
 32845  	req, err := http.NewRequest("DELETE", urls, body)
 32846  	if err != nil {
 32847  		return nil, err
 32848  	}
 32849  	req.Header = reqHeaders
 32850  	googleapi.Expand(req.URL, map[string]string{
 32851  		"name": c.name,
 32852  	})
 32853  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32854  }
 32855  
 32856  // Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
 32857  // Any non-2xx status code is an error. Response headers are in either
 32858  // *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a response was
 32859  // returned at all) in error.(*googleapi.Error).Header. Use
 32860  // googleapi.IsNotModified to check whether the returned error was because
 32861  // http.StatusNotModified was returned.
 32862  func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
 32863  	gensupport.SetOptions(c.urlParams_, opts...)
 32864  	res, err := c.doRequest("json")
 32865  	if res != nil && res.StatusCode == http.StatusNotModified {
 32866  		if res.Body != nil {
 32867  			res.Body.Close()
 32868  		}
 32869  		return nil, gensupport.WrapError(&googleapi.Error{
 32870  			Code:   res.StatusCode,
 32871  			Header: res.Header,
 32872  		})
 32873  	}
 32874  	if err != nil {
 32875  		return nil, err
 32876  	}
 32877  	defer googleapi.CloseBody(res)
 32878  	if err := googleapi.CheckResponse(res); err != nil {
 32879  		return nil, gensupport.WrapError(err)
 32880  	}
 32881  	ret := &GoogleCloudApigeeV1KeyValueMap{
 32882  		ServerResponse: googleapi.ServerResponse{
 32883  			Header:         res.Header,
 32884  			HTTPStatusCode: res.StatusCode,
 32885  		},
 32886  	}
 32887  	target := &ret
 32888  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32889  		return nil, err
 32890  	}
 32891  	return ret, nil
 32892  }
 32893  
 32894  type OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall struct {
 32895  	s                                *Service
 32896  	parent                           string
 32897  	googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
 32898  	urlParams_                       gensupport.URLParams
 32899  	ctx_                             context.Context
 32900  	header_                          http.Header
 32901  }
 32902  
 32903  // Create: Creates key value entries in a key value map scoped to an
 32904  // organization, environment, or API proxy. **Note**: Supported for Apigee
 32905  // hybrid 1.8.x and higher.
 32906  //
 32907  //   - parent: Scope as indicated by the URI in which to create the key value map
 32908  //     entry. Use **one** of the following structures in your request: *
 32909  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 32910  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 32911  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 32912  func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Create(parent string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall {
 32913  	c := &OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32914  	c.parent = parent
 32915  	c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
 32916  	return c
 32917  }
 32918  
 32919  // Fields allows partial responses to be retrieved. See
 32920  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32921  // details.
 32922  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall {
 32923  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32924  	return c
 32925  }
 32926  
 32927  // Context sets the context to be used in this call's Do method.
 32928  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall {
 32929  	c.ctx_ = ctx
 32930  	return c
 32931  }
 32932  
 32933  // Header returns a http.Header that can be modified by the caller to add
 32934  // headers to the request.
 32935  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Header() http.Header {
 32936  	if c.header_ == nil {
 32937  		c.header_ = make(http.Header)
 32938  	}
 32939  	return c.header_
 32940  }
 32941  
 32942  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
 32943  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32944  	var body io.Reader = nil
 32945  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
 32946  	if err != nil {
 32947  		return nil, err
 32948  	}
 32949  	c.urlParams_.Set("alt", alt)
 32950  	c.urlParams_.Set("prettyPrint", "false")
 32951  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 32952  	urls += "?" + c.urlParams_.Encode()
 32953  	req, err := http.NewRequest("POST", urls, body)
 32954  	if err != nil {
 32955  		return nil, err
 32956  	}
 32957  	req.Header = reqHeaders
 32958  	googleapi.Expand(req.URL, map[string]string{
 32959  		"parent": c.parent,
 32960  	})
 32961  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32962  }
 32963  
 32964  // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.create" call.
 32965  // Any non-2xx status code is an error. Response headers are in either
 32966  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 32967  // was returned at all) in error.(*googleapi.Error).Header. Use
 32968  // googleapi.IsNotModified to check whether the returned error was because
 32969  // http.StatusNotModified was returned.
 32970  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 32971  	gensupport.SetOptions(c.urlParams_, opts...)
 32972  	res, err := c.doRequest("json")
 32973  	if res != nil && res.StatusCode == http.StatusNotModified {
 32974  		if res.Body != nil {
 32975  			res.Body.Close()
 32976  		}
 32977  		return nil, gensupport.WrapError(&googleapi.Error{
 32978  			Code:   res.StatusCode,
 32979  			Header: res.Header,
 32980  		})
 32981  	}
 32982  	if err != nil {
 32983  		return nil, err
 32984  	}
 32985  	defer googleapi.CloseBody(res)
 32986  	if err := googleapi.CheckResponse(res); err != nil {
 32987  		return nil, gensupport.WrapError(err)
 32988  	}
 32989  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 32990  		ServerResponse: googleapi.ServerResponse{
 32991  			Header:         res.Header,
 32992  			HTTPStatusCode: res.StatusCode,
 32993  		},
 32994  	}
 32995  	target := &ret
 32996  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32997  		return nil, err
 32998  	}
 32999  	return ret, nil
 33000  }
 33001  
 33002  type OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall struct {
 33003  	s          *Service
 33004  	name       string
 33005  	urlParams_ gensupport.URLParams
 33006  	ctx_       context.Context
 33007  	header_    http.Header
 33008  }
 33009  
 33010  // Delete: Deletes a key value entry from a key value map scoped to an
 33011  // organization, environment, or API proxy. **Notes:** * After you delete the
 33012  // key value entry, the policy consuming the entry will continue to function
 33013  // with its cached values for a few minutes. This is expected behavior. *
 33014  // Supported for Apigee hybrid 1.8.x and higher.
 33015  //
 33016  //   - name: Scope as indicated by the URI in which to delete the key value map
 33017  //     entry. Use **one** of the following structures in your request: *
 33018  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}/entries
 33019  //     /{entry}`. *
 33020  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 33021  //     aluemap}/entries/{entry}` *
 33022  //     `organizations/{organization}/keyvaluemaps/{keyvaluemap}/entries/{entry}`.
 33023  func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall {
 33024  	c := &OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33025  	c.name = name
 33026  	return c
 33027  }
 33028  
 33029  // Fields allows partial responses to be retrieved. See
 33030  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33031  // details.
 33032  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall {
 33033  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33034  	return c
 33035  }
 33036  
 33037  // Context sets the context to be used in this call's Do method.
 33038  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall {
 33039  	c.ctx_ = ctx
 33040  	return c
 33041  }
 33042  
 33043  // Header returns a http.Header that can be modified by the caller to add
 33044  // headers to the request.
 33045  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Header() http.Header {
 33046  	if c.header_ == nil {
 33047  		c.header_ = make(http.Header)
 33048  	}
 33049  	return c.header_
 33050  }
 33051  
 33052  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 33053  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33054  	var body io.Reader = nil
 33055  	c.urlParams_.Set("alt", alt)
 33056  	c.urlParams_.Set("prettyPrint", "false")
 33057  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 33058  	urls += "?" + c.urlParams_.Encode()
 33059  	req, err := http.NewRequest("DELETE", urls, body)
 33060  	if err != nil {
 33061  		return nil, err
 33062  	}
 33063  	req.Header = reqHeaders
 33064  	googleapi.Expand(req.URL, map[string]string{
 33065  		"name": c.name,
 33066  	})
 33067  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33068  }
 33069  
 33070  // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.delete" call.
 33071  // Any non-2xx status code is an error. Response headers are in either
 33072  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 33073  // was returned at all) in error.(*googleapi.Error).Header. Use
 33074  // googleapi.IsNotModified to check whether the returned error was because
 33075  // http.StatusNotModified was returned.
 33076  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 33077  	gensupport.SetOptions(c.urlParams_, opts...)
 33078  	res, err := c.doRequest("json")
 33079  	if res != nil && res.StatusCode == http.StatusNotModified {
 33080  		if res.Body != nil {
 33081  			res.Body.Close()
 33082  		}
 33083  		return nil, gensupport.WrapError(&googleapi.Error{
 33084  			Code:   res.StatusCode,
 33085  			Header: res.Header,
 33086  		})
 33087  	}
 33088  	if err != nil {
 33089  		return nil, err
 33090  	}
 33091  	defer googleapi.CloseBody(res)
 33092  	if err := googleapi.CheckResponse(res); err != nil {
 33093  		return nil, gensupport.WrapError(err)
 33094  	}
 33095  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 33096  		ServerResponse: googleapi.ServerResponse{
 33097  			Header:         res.Header,
 33098  			HTTPStatusCode: res.StatusCode,
 33099  		},
 33100  	}
 33101  	target := &ret
 33102  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33103  		return nil, err
 33104  	}
 33105  	return ret, nil
 33106  }
 33107  
 33108  type OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall struct {
 33109  	s            *Service
 33110  	name         string
 33111  	urlParams_   gensupport.URLParams
 33112  	ifNoneMatch_ string
 33113  	ctx_         context.Context
 33114  	header_      http.Header
 33115  }
 33116  
 33117  // Get: Get the key value entry value for a key value map scoped to an
 33118  // organization, environment, or API proxy. **Note**: Supported for Apigee
 33119  // hybrid 1.8.x and higher.
 33120  //
 33121  //   - name: Scope as indicated by the URI in which to fetch the key value map
 33122  //     entry/value. Use **one** of the following structures in your request: *
 33123  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}/entries
 33124  //     /{entry}`. *
 33125  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 33126  //     aluemap}/entries/{entry}` *
 33127  //     `organizations/{organization}/keyvaluemaps/{keyvaluemap}/entries/{entry}`.
 33128  func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Get(name string) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
 33129  	c := &OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33130  	c.name = name
 33131  	return c
 33132  }
 33133  
 33134  // Fields allows partial responses to be retrieved. See
 33135  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33136  // details.
 33137  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
 33138  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33139  	return c
 33140  }
 33141  
 33142  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33143  // object's ETag matches the given value. This is useful for getting updates
 33144  // only after the object has changed since the last request.
 33145  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
 33146  	c.ifNoneMatch_ = entityTag
 33147  	return c
 33148  }
 33149  
 33150  // Context sets the context to be used in this call's Do method.
 33151  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
 33152  	c.ctx_ = ctx
 33153  	return c
 33154  }
 33155  
 33156  // Header returns a http.Header that can be modified by the caller to add
 33157  // headers to the request.
 33158  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Header() http.Header {
 33159  	if c.header_ == nil {
 33160  		c.header_ = make(http.Header)
 33161  	}
 33162  	return c.header_
 33163  }
 33164  
 33165  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
 33166  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33167  	if c.ifNoneMatch_ != "" {
 33168  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33169  	}
 33170  	var body io.Reader = nil
 33171  	c.urlParams_.Set("alt", alt)
 33172  	c.urlParams_.Set("prettyPrint", "false")
 33173  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 33174  	urls += "?" + c.urlParams_.Encode()
 33175  	req, err := http.NewRequest("GET", urls, body)
 33176  	if err != nil {
 33177  		return nil, err
 33178  	}
 33179  	req.Header = reqHeaders
 33180  	googleapi.Expand(req.URL, map[string]string{
 33181  		"name": c.name,
 33182  	})
 33183  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33184  }
 33185  
 33186  // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.get" call.
 33187  // Any non-2xx status code is an error. Response headers are in either
 33188  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 33189  // was returned at all) in error.(*googleapi.Error).Header. Use
 33190  // googleapi.IsNotModified to check whether the returned error was because
 33191  // http.StatusNotModified was returned.
 33192  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 33193  	gensupport.SetOptions(c.urlParams_, opts...)
 33194  	res, err := c.doRequest("json")
 33195  	if res != nil && res.StatusCode == http.StatusNotModified {
 33196  		if res.Body != nil {
 33197  			res.Body.Close()
 33198  		}
 33199  		return nil, gensupport.WrapError(&googleapi.Error{
 33200  			Code:   res.StatusCode,
 33201  			Header: res.Header,
 33202  		})
 33203  	}
 33204  	if err != nil {
 33205  		return nil, err
 33206  	}
 33207  	defer googleapi.CloseBody(res)
 33208  	if err := googleapi.CheckResponse(res); err != nil {
 33209  		return nil, gensupport.WrapError(err)
 33210  	}
 33211  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 33212  		ServerResponse: googleapi.ServerResponse{
 33213  			Header:         res.Header,
 33214  			HTTPStatusCode: res.StatusCode,
 33215  		},
 33216  	}
 33217  	target := &ret
 33218  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33219  		return nil, err
 33220  	}
 33221  	return ret, nil
 33222  }
 33223  
 33224  type OrganizationsEnvironmentsKeyvaluemapsEntriesListCall struct {
 33225  	s            *Service
 33226  	parent       string
 33227  	urlParams_   gensupport.URLParams
 33228  	ifNoneMatch_ string
 33229  	ctx_         context.Context
 33230  	header_      http.Header
 33231  }
 33232  
 33233  // List: Lists key value entries for key values maps scoped to an organization,
 33234  // environment, or API proxy. **Note**: Supported for Apigee hybrid 1.8.x and
 33235  // higher.
 33236  //
 33237  //   - parent: Scope as indicated by the URI in which to list key value maps. Use
 33238  //     **one** of the following structures in your request: *
 33239  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 33240  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 33241  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 33242  func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) List(parent string) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
 33243  	c := &OrganizationsEnvironmentsKeyvaluemapsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33244  	c.parent = parent
 33245  	return c
 33246  }
 33247  
 33248  // PageSize sets the optional parameter "pageSize": Maximum number of key value
 33249  // entries to return. If unspecified, at most 100 entries will be returned.
 33250  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
 33251  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33252  	return c
 33253  }
 33254  
 33255  // PageToken sets the optional parameter "pageToken": Page token. If provides,
 33256  // must be a valid key value entry returned from a previous call that can be
 33257  // used to retrieve the next page.
 33258  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
 33259  	c.urlParams_.Set("pageToken", pageToken)
 33260  	return c
 33261  }
 33262  
 33263  // Fields allows partial responses to be retrieved. See
 33264  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33265  // details.
 33266  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
 33267  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33268  	return c
 33269  }
 33270  
 33271  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33272  // object's ETag matches the given value. This is useful for getting updates
 33273  // only after the object has changed since the last request.
 33274  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
 33275  	c.ifNoneMatch_ = entityTag
 33276  	return c
 33277  }
 33278  
 33279  // Context sets the context to be used in this call's Do method.
 33280  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
 33281  	c.ctx_ = ctx
 33282  	return c
 33283  }
 33284  
 33285  // Header returns a http.Header that can be modified by the caller to add
 33286  // headers to the request.
 33287  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Header() http.Header {
 33288  	if c.header_ == nil {
 33289  		c.header_ = make(http.Header)
 33290  	}
 33291  	return c.header_
 33292  }
 33293  
 33294  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) doRequest(alt string) (*http.Response, error) {
 33295  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33296  	if c.ifNoneMatch_ != "" {
 33297  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33298  	}
 33299  	var body io.Reader = nil
 33300  	c.urlParams_.Set("alt", alt)
 33301  	c.urlParams_.Set("prettyPrint", "false")
 33302  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 33303  	urls += "?" + c.urlParams_.Encode()
 33304  	req, err := http.NewRequest("GET", urls, body)
 33305  	if err != nil {
 33306  		return nil, err
 33307  	}
 33308  	req.Header = reqHeaders
 33309  	googleapi.Expand(req.URL, map[string]string{
 33310  		"parent": c.parent,
 33311  	})
 33312  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33313  }
 33314  
 33315  // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.list" call.
 33316  // Any non-2xx status code is an error. Response headers are in either
 33317  // *GoogleCloudApigeeV1ListKeyValueEntriesResponse.ServerResponse.Header or (if
 33318  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 33319  // googleapi.IsNotModified to check whether the returned error was because
 33320  // http.StatusNotModified was returned.
 33321  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListKeyValueEntriesResponse, error) {
 33322  	gensupport.SetOptions(c.urlParams_, opts...)
 33323  	res, err := c.doRequest("json")
 33324  	if res != nil && res.StatusCode == http.StatusNotModified {
 33325  		if res.Body != nil {
 33326  			res.Body.Close()
 33327  		}
 33328  		return nil, gensupport.WrapError(&googleapi.Error{
 33329  			Code:   res.StatusCode,
 33330  			Header: res.Header,
 33331  		})
 33332  	}
 33333  	if err != nil {
 33334  		return nil, err
 33335  	}
 33336  	defer googleapi.CloseBody(res)
 33337  	if err := googleapi.CheckResponse(res); err != nil {
 33338  		return nil, gensupport.WrapError(err)
 33339  	}
 33340  	ret := &GoogleCloudApigeeV1ListKeyValueEntriesResponse{
 33341  		ServerResponse: googleapi.ServerResponse{
 33342  			Header:         res.Header,
 33343  			HTTPStatusCode: res.StatusCode,
 33344  		},
 33345  	}
 33346  	target := &ret
 33347  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33348  		return nil, err
 33349  	}
 33350  	return ret, nil
 33351  }
 33352  
 33353  // Pages invokes f for each page of results.
 33354  // A non-nil error returned from f will halt the iteration.
 33355  // The provided context supersedes any context provided to the Context method.
 33356  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListKeyValueEntriesResponse) error) error {
 33357  	c.ctx_ = ctx
 33358  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33359  	for {
 33360  		x, err := c.Do()
 33361  		if err != nil {
 33362  			return err
 33363  		}
 33364  		if err := f(x); err != nil {
 33365  			return err
 33366  		}
 33367  		if x.NextPageToken == "" {
 33368  			return nil
 33369  		}
 33370  		c.PageToken(x.NextPageToken)
 33371  	}
 33372  }
 33373  
 33374  type OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall struct {
 33375  	s                                *Service
 33376  	name                             string
 33377  	googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
 33378  	urlParams_                       gensupport.URLParams
 33379  	ctx_                             context.Context
 33380  	header_                          http.Header
 33381  }
 33382  
 33383  // Update: Update key value entry scoped to an organization, environment, or
 33384  // API proxy for an existing key.
 33385  //
 33386  //   - name: Scope as indicated by the URI in which to create the key value map
 33387  //     entry. Use **one** of the following structures in your request: *
 33388  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 33389  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 33390  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 33391  func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Update(name string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall {
 33392  	c := &OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33393  	c.name = name
 33394  	c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
 33395  	return c
 33396  }
 33397  
 33398  // Fields allows partial responses to be retrieved. See
 33399  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33400  // details.
 33401  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall {
 33402  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33403  	return c
 33404  }
 33405  
 33406  // Context sets the context to be used in this call's Do method.
 33407  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall {
 33408  	c.ctx_ = ctx
 33409  	return c
 33410  }
 33411  
 33412  // Header returns a http.Header that can be modified by the caller to add
 33413  // headers to the request.
 33414  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Header() http.Header {
 33415  	if c.header_ == nil {
 33416  		c.header_ = make(http.Header)
 33417  	}
 33418  	return c.header_
 33419  }
 33420  
 33421  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*http.Response, error) {
 33422  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33423  	var body io.Reader = nil
 33424  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
 33425  	if err != nil {
 33426  		return nil, err
 33427  	}
 33428  	c.urlParams_.Set("alt", alt)
 33429  	c.urlParams_.Set("prettyPrint", "false")
 33430  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 33431  	urls += "?" + c.urlParams_.Encode()
 33432  	req, err := http.NewRequest("PUT", urls, body)
 33433  	if err != nil {
 33434  		return nil, err
 33435  	}
 33436  	req.Header = reqHeaders
 33437  	googleapi.Expand(req.URL, map[string]string{
 33438  		"name": c.name,
 33439  	})
 33440  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33441  }
 33442  
 33443  // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.update" call.
 33444  // Any non-2xx status code is an error. Response headers are in either
 33445  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 33446  // was returned at all) in error.(*googleapi.Error).Header. Use
 33447  // googleapi.IsNotModified to check whether the returned error was because
 33448  // http.StatusNotModified was returned.
 33449  func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 33450  	gensupport.SetOptions(c.urlParams_, opts...)
 33451  	res, err := c.doRequest("json")
 33452  	if res != nil && res.StatusCode == http.StatusNotModified {
 33453  		if res.Body != nil {
 33454  			res.Body.Close()
 33455  		}
 33456  		return nil, gensupport.WrapError(&googleapi.Error{
 33457  			Code:   res.StatusCode,
 33458  			Header: res.Header,
 33459  		})
 33460  	}
 33461  	if err != nil {
 33462  		return nil, err
 33463  	}
 33464  	defer googleapi.CloseBody(res)
 33465  	if err := googleapi.CheckResponse(res); err != nil {
 33466  		return nil, gensupport.WrapError(err)
 33467  	}
 33468  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 33469  		ServerResponse: googleapi.ServerResponse{
 33470  			Header:         res.Header,
 33471  			HTTPStatusCode: res.StatusCode,
 33472  		},
 33473  	}
 33474  	target := &ret
 33475  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33476  		return nil, err
 33477  	}
 33478  	return ret, nil
 33479  }
 33480  
 33481  type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
 33482  	s            *Service
 33483  	name         string
 33484  	urlParams_   gensupport.URLParams
 33485  	ifNoneMatch_ string
 33486  	ctx_         context.Context
 33487  	header_      http.Header
 33488  }
 33489  
 33490  // Get: Similar to GetStats except that the response is less verbose.
 33491  //
 33492  //   - name: Resource name for which the interactive query will be executed. Use
 33493  //     the following format in your request:
 33494  //     `organizations/{org}/environments/{env}/optimizedStats/{dimensions}`
 33495  //     Dimensions let you view metrics in meaningful groupings, such as
 33496  //     `apiproxy`, `target_host`. The value of `dimensions` should be a
 33497  //     comma-separated list as shown below:
 33498  //     `organizations/{org}/environments/{env}/optimizedStats/apiproxy,request_ver
 33499  //     b`.
 33500  func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33501  	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33502  	c.name = name
 33503  	return c
 33504  }
 33505  
 33506  // Accuracy sets the optional parameter "accuracy": No longer used by Apigee.
 33507  // Supported for backwards compatibility.
 33508  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33509  	c.urlParams_.Set("accuracy", accuracy)
 33510  	return c
 33511  }
 33512  
 33513  // AggTable sets the optional parameter "aggTable": Table name used to query
 33514  // custom aggregate tables. If this parameter is skipped, then Apigee will try
 33515  // to retrieve the data from fact tables which will be expensive.
 33516  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33517  	c.urlParams_.Set("aggTable", aggTable)
 33518  	return c
 33519  }
 33520  
 33521  // Filter sets the optional parameter "filter": Filter that enables you to
 33522  // drill-down on specific dimension values.
 33523  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33524  	c.urlParams_.Set("filter", filter)
 33525  	return c
 33526  }
 33527  
 33528  // Limit sets the optional parameter "limit": Maximum number of result items to
 33529  // return. The default and maximum value that can be returned is 14400.
 33530  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33531  	c.urlParams_.Set("limit", limit)
 33532  	return c
 33533  }
 33534  
 33535  // Offset sets the optional parameter "offset": Offset value. Use `offset` with
 33536  // `limit` to enable pagination of results. For example, to display results
 33537  // 11-20, set limit to `10` and offset to `10`.
 33538  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33539  	c.urlParams_.Set("offset", offset)
 33540  	return c
 33541  }
 33542  
 33543  // Realtime sets the optional parameter "realtime": No longer used by Apigee.
 33544  // Supported for backwards compatibility.
 33545  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33546  	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
 33547  	return c
 33548  }
 33549  
 33550  // Select sets the optional parameter "select": Required. Comma-separated list
 33551  // of metrics. For example: `sum(message_count),sum(error_count)`
 33552  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33553  	c.urlParams_.Set("select", select_)
 33554  	return c
 33555  }
 33556  
 33557  // Sonar sets the optional parameter "sonar": Routes the query to API
 33558  // Monitoring for the last hour.
 33559  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33560  	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
 33561  	return c
 33562  }
 33563  
 33564  // Sort sets the optional parameter "sort": Flag that specifies whether the
 33565  // sort order should be ascending or descending. Valid values include `DESC`
 33566  // and `ASC`.
 33567  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33568  	c.urlParams_.Set("sort", sort)
 33569  	return c
 33570  }
 33571  
 33572  // Sortby sets the optional parameter "sortby": Comma-separated list of columns
 33573  // to sort the final result.
 33574  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33575  	c.urlParams_.Set("sortby", sortby)
 33576  	return c
 33577  }
 33578  
 33579  // TimeRange sets the optional parameter "timeRange": Required. Time interval
 33580  // for the interactive query. Time range is specified in GMT as `start~end`.
 33581  // For example: `04/15/2017 00:00~05/15/2017 23:59`
 33582  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33583  	c.urlParams_.Set("timeRange", timeRange)
 33584  	return c
 33585  }
 33586  
 33587  // TimeUnit sets the optional parameter "timeUnit": Granularity of metrics
 33588  // returned. Valid values include: `second`, `minute`, `hour`, `day`, `week`,
 33589  // or `month`.
 33590  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33591  	c.urlParams_.Set("timeUnit", timeUnit)
 33592  	return c
 33593  }
 33594  
 33595  // Topk sets the optional parameter "topk": Top number of results to return.
 33596  // For example, to return the top 5 results, set `topk=5`.
 33597  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33598  	c.urlParams_.Set("topk", topk)
 33599  	return c
 33600  }
 33601  
 33602  // TsAscending sets the optional parameter "tsAscending": Flag that specifies
 33603  // whether to list timestamps in ascending (`true`) or descending (`false`)
 33604  // order. Apigee recommends setting this value to `true` if you are using
 33605  // `sortby` with `sort=DESC`.
 33606  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33607  	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
 33608  	return c
 33609  }
 33610  
 33611  // Tzo sets the optional parameter "tzo": Timezone offset value.
 33612  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33613  	c.urlParams_.Set("tzo", tzo)
 33614  	return c
 33615  }
 33616  
 33617  // Fields allows partial responses to be retrieved. See
 33618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33619  // details.
 33620  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33622  	return c
 33623  }
 33624  
 33625  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33626  // object's ETag matches the given value. This is useful for getting updates
 33627  // only after the object has changed since the last request.
 33628  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33629  	c.ifNoneMatch_ = entityTag
 33630  	return c
 33631  }
 33632  
 33633  // Context sets the context to be used in this call's Do method.
 33634  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
 33635  	c.ctx_ = ctx
 33636  	return c
 33637  }
 33638  
 33639  // Header returns a http.Header that can be modified by the caller to add
 33640  // headers to the request.
 33641  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
 33642  	if c.header_ == nil {
 33643  		c.header_ = make(http.Header)
 33644  	}
 33645  	return c.header_
 33646  }
 33647  
 33648  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
 33649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33650  	if c.ifNoneMatch_ != "" {
 33651  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33652  	}
 33653  	var body io.Reader = nil
 33654  	c.urlParams_.Set("alt", alt)
 33655  	c.urlParams_.Set("prettyPrint", "false")
 33656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 33657  	urls += "?" + c.urlParams_.Encode()
 33658  	req, err := http.NewRequest("GET", urls, body)
 33659  	if err != nil {
 33660  		return nil, err
 33661  	}
 33662  	req.Header = reqHeaders
 33663  	googleapi.Expand(req.URL, map[string]string{
 33664  		"name": c.name,
 33665  	})
 33666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33667  }
 33668  
 33669  // Do executes the "apigee.organizations.environments.optimizedStats.get" call.
 33670  // Any non-2xx status code is an error. Response headers are in either
 33671  // *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or (if a response
 33672  // was returned at all) in error.(*googleapi.Error).Header. Use
 33673  // googleapi.IsNotModified to check whether the returned error was because
 33674  // http.StatusNotModified was returned.
 33675  func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
 33676  	gensupport.SetOptions(c.urlParams_, opts...)
 33677  	res, err := c.doRequest("json")
 33678  	if res != nil && res.StatusCode == http.StatusNotModified {
 33679  		if res.Body != nil {
 33680  			res.Body.Close()
 33681  		}
 33682  		return nil, gensupport.WrapError(&googleapi.Error{
 33683  			Code:   res.StatusCode,
 33684  			Header: res.Header,
 33685  		})
 33686  	}
 33687  	if err != nil {
 33688  		return nil, err
 33689  	}
 33690  	defer googleapi.CloseBody(res)
 33691  	if err := googleapi.CheckResponse(res); err != nil {
 33692  		return nil, gensupport.WrapError(err)
 33693  	}
 33694  	ret := &GoogleCloudApigeeV1OptimizedStats{
 33695  		ServerResponse: googleapi.ServerResponse{
 33696  			Header:         res.Header,
 33697  			HTTPStatusCode: res.StatusCode,
 33698  		},
 33699  	}
 33700  	target := &ret
 33701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33702  		return nil, err
 33703  	}
 33704  	return ret, nil
 33705  }
 33706  
 33707  type OrganizationsEnvironmentsQueriesCreateCall struct {
 33708  	s                        *Service
 33709  	parent                   string
 33710  	googlecloudapigeev1query *GoogleCloudApigeeV1Query
 33711  	urlParams_               gensupport.URLParams
 33712  	ctx_                     context.Context
 33713  	header_                  http.Header
 33714  }
 33715  
 33716  // Create: Submit a query to be processed in the background. If the submission
 33717  // of the query succeeds, the API returns a 201 status and an ID that refer to
 33718  // the query. In addition to the HTTP status 201, the `state` of "enqueued"
 33719  // means that the request succeeded.
 33720  //
 33721  //   - parent: The parent resource name. Must be of the form
 33722  //     `organizations/{org}/environments/{env}`.
 33723  func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
 33724  	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33725  	c.parent = parent
 33726  	c.googlecloudapigeev1query = googlecloudapigeev1query
 33727  	return c
 33728  }
 33729  
 33730  // Fields allows partial responses to be retrieved. See
 33731  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33732  // details.
 33733  func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
 33734  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33735  	return c
 33736  }
 33737  
 33738  // Context sets the context to be used in this call's Do method.
 33739  func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
 33740  	c.ctx_ = ctx
 33741  	return c
 33742  }
 33743  
 33744  // Header returns a http.Header that can be modified by the caller to add
 33745  // headers to the request.
 33746  func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
 33747  	if c.header_ == nil {
 33748  		c.header_ = make(http.Header)
 33749  	}
 33750  	return c.header_
 33751  }
 33752  
 33753  func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
 33754  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33755  	var body io.Reader = nil
 33756  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
 33757  	if err != nil {
 33758  		return nil, err
 33759  	}
 33760  	c.urlParams_.Set("alt", alt)
 33761  	c.urlParams_.Set("prettyPrint", "false")
 33762  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
 33763  	urls += "?" + c.urlParams_.Encode()
 33764  	req, err := http.NewRequest("POST", urls, body)
 33765  	if err != nil {
 33766  		return nil, err
 33767  	}
 33768  	req.Header = reqHeaders
 33769  	googleapi.Expand(req.URL, map[string]string{
 33770  		"parent": c.parent,
 33771  	})
 33772  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33773  }
 33774  
 33775  // Do executes the "apigee.organizations.environments.queries.create" call.
 33776  // Any non-2xx status code is an error. Response headers are in either
 33777  // *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a response was
 33778  // returned at all) in error.(*googleapi.Error).Header. Use
 33779  // googleapi.IsNotModified to check whether the returned error was because
 33780  // http.StatusNotModified was returned.
 33781  func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
 33782  	gensupport.SetOptions(c.urlParams_, opts...)
 33783  	res, err := c.doRequest("json")
 33784  	if res != nil && res.StatusCode == http.StatusNotModified {
 33785  		if res.Body != nil {
 33786  			res.Body.Close()
 33787  		}
 33788  		return nil, gensupport.WrapError(&googleapi.Error{
 33789  			Code:   res.StatusCode,
 33790  			Header: res.Header,
 33791  		})
 33792  	}
 33793  	if err != nil {
 33794  		return nil, err
 33795  	}
 33796  	defer googleapi.CloseBody(res)
 33797  	if err := googleapi.CheckResponse(res); err != nil {
 33798  		return nil, gensupport.WrapError(err)
 33799  	}
 33800  	ret := &GoogleCloudApigeeV1AsyncQuery{
 33801  		ServerResponse: googleapi.ServerResponse{
 33802  			Header:         res.Header,
 33803  			HTTPStatusCode: res.StatusCode,
 33804  		},
 33805  	}
 33806  	target := &ret
 33807  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33808  		return nil, err
 33809  	}
 33810  	return ret, nil
 33811  }
 33812  
 33813  type OrganizationsEnvironmentsQueriesGetCall struct {
 33814  	s            *Service
 33815  	name         string
 33816  	urlParams_   gensupport.URLParams
 33817  	ifNoneMatch_ string
 33818  	ctx_         context.Context
 33819  	header_      http.Header
 33820  }
 33821  
 33822  // Get: Get query status If the query is still in progress, the `state` is set
 33823  // to "running" After the query has completed successfully, `state` is set to
 33824  // "completed"
 33825  //
 33826  //   - name: Name of the asynchronous query to get. Must be of the form
 33827  //     `organizations/{org}/environments/{env}/queries/{queryId}`.
 33828  func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
 33829  	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33830  	c.name = name
 33831  	return c
 33832  }
 33833  
 33834  // Fields allows partial responses to be retrieved. See
 33835  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33836  // details.
 33837  func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
 33838  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33839  	return c
 33840  }
 33841  
 33842  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33843  // object's ETag matches the given value. This is useful for getting updates
 33844  // only after the object has changed since the last request.
 33845  func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
 33846  	c.ifNoneMatch_ = entityTag
 33847  	return c
 33848  }
 33849  
 33850  // Context sets the context to be used in this call's Do method.
 33851  func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
 33852  	c.ctx_ = ctx
 33853  	return c
 33854  }
 33855  
 33856  // Header returns a http.Header that can be modified by the caller to add
 33857  // headers to the request.
 33858  func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
 33859  	if c.header_ == nil {
 33860  		c.header_ = make(http.Header)
 33861  	}
 33862  	return c.header_
 33863  }
 33864  
 33865  func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
 33866  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33867  	if c.ifNoneMatch_ != "" {
 33868  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33869  	}
 33870  	var body io.Reader = nil
 33871  	c.urlParams_.Set("alt", alt)
 33872  	c.urlParams_.Set("prettyPrint", "false")
 33873  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 33874  	urls += "?" + c.urlParams_.Encode()
 33875  	req, err := http.NewRequest("GET", urls, body)
 33876  	if err != nil {
 33877  		return nil, err
 33878  	}
 33879  	req.Header = reqHeaders
 33880  	googleapi.Expand(req.URL, map[string]string{
 33881  		"name": c.name,
 33882  	})
 33883  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33884  }
 33885  
 33886  // Do executes the "apigee.organizations.environments.queries.get" call.
 33887  // Any non-2xx status code is an error. Response headers are in either
 33888  // *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a response was
 33889  // returned at all) in error.(*googleapi.Error).Header. Use
 33890  // googleapi.IsNotModified to check whether the returned error was because
 33891  // http.StatusNotModified was returned.
 33892  func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
 33893  	gensupport.SetOptions(c.urlParams_, opts...)
 33894  	res, err := c.doRequest("json")
 33895  	if res != nil && res.StatusCode == http.StatusNotModified {
 33896  		if res.Body != nil {
 33897  			res.Body.Close()
 33898  		}
 33899  		return nil, gensupport.WrapError(&googleapi.Error{
 33900  			Code:   res.StatusCode,
 33901  			Header: res.Header,
 33902  		})
 33903  	}
 33904  	if err != nil {
 33905  		return nil, err
 33906  	}
 33907  	defer googleapi.CloseBody(res)
 33908  	if err := googleapi.CheckResponse(res); err != nil {
 33909  		return nil, gensupport.WrapError(err)
 33910  	}
 33911  	ret := &GoogleCloudApigeeV1AsyncQuery{
 33912  		ServerResponse: googleapi.ServerResponse{
 33913  			Header:         res.Header,
 33914  			HTTPStatusCode: res.StatusCode,
 33915  		},
 33916  	}
 33917  	target := &ret
 33918  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33919  		return nil, err
 33920  	}
 33921  	return ret, nil
 33922  }
 33923  
 33924  type OrganizationsEnvironmentsQueriesGetResultCall struct {
 33925  	s            *Service
 33926  	name         string
 33927  	urlParams_   gensupport.URLParams
 33928  	ifNoneMatch_ string
 33929  	ctx_         context.Context
 33930  	header_      http.Header
 33931  }
 33932  
 33933  // GetResult: After the query is completed, use this API to retrieve the
 33934  // results. If the request succeeds, and there is a non-zero result set, the
 33935  // result is downloaded to the client as a zipped JSON file. The name of the
 33936  // downloaded file will be: OfflineQueryResult-.zip Example:
 33937  // `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
 33938  //
 33939  //   - name: Name of the asynchronous query result to get. Must be of the form
 33940  //     `organizations/{org}/environments/{env}/queries/{queryId}/result`.
 33941  func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
 33942  	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33943  	c.name = name
 33944  	return c
 33945  }
 33946  
 33947  // Fields allows partial responses to be retrieved. See
 33948  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33949  // details.
 33950  func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
 33951  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33952  	return c
 33953  }
 33954  
 33955  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33956  // object's ETag matches the given value. This is useful for getting updates
 33957  // only after the object has changed since the last request.
 33958  func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
 33959  	c.ifNoneMatch_ = entityTag
 33960  	return c
 33961  }
 33962  
 33963  // Context sets the context to be used in this call's Do method.
 33964  func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
 33965  	c.ctx_ = ctx
 33966  	return c
 33967  }
 33968  
 33969  // Header returns a http.Header that can be modified by the caller to add
 33970  // headers to the request.
 33971  func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
 33972  	if c.header_ == nil {
 33973  		c.header_ = make(http.Header)
 33974  	}
 33975  	return c.header_
 33976  }
 33977  
 33978  func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
 33979  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33980  	if c.ifNoneMatch_ != "" {
 33981  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33982  	}
 33983  	var body io.Reader = nil
 33984  	c.urlParams_.Set("alt", alt)
 33985  	c.urlParams_.Set("prettyPrint", "false")
 33986  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 33987  	urls += "?" + c.urlParams_.Encode()
 33988  	req, err := http.NewRequest("GET", urls, body)
 33989  	if err != nil {
 33990  		return nil, err
 33991  	}
 33992  	req.Header = reqHeaders
 33993  	googleapi.Expand(req.URL, map[string]string{
 33994  		"name": c.name,
 33995  	})
 33996  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33997  }
 33998  
 33999  // Do executes the "apigee.organizations.environments.queries.getResult" call.
 34000  // Any non-2xx status code is an error. Response headers are in either
 34001  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 34002  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 34003  // check whether the returned error was because http.StatusNotModified was
 34004  // returned.
 34005  func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 34006  	gensupport.SetOptions(c.urlParams_, opts...)
 34007  	res, err := c.doRequest("json")
 34008  	if res != nil && res.StatusCode == http.StatusNotModified {
 34009  		if res.Body != nil {
 34010  			res.Body.Close()
 34011  		}
 34012  		return nil, gensupport.WrapError(&googleapi.Error{
 34013  			Code:   res.StatusCode,
 34014  			Header: res.Header,
 34015  		})
 34016  	}
 34017  	if err != nil {
 34018  		return nil, err
 34019  	}
 34020  	defer googleapi.CloseBody(res)
 34021  	if err := googleapi.CheckResponse(res); err != nil {
 34022  		return nil, gensupport.WrapError(err)
 34023  	}
 34024  	ret := &GoogleApiHttpBody{
 34025  		ServerResponse: googleapi.ServerResponse{
 34026  			Header:         res.Header,
 34027  			HTTPStatusCode: res.StatusCode,
 34028  		},
 34029  	}
 34030  	target := &ret
 34031  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34032  		return nil, err
 34033  	}
 34034  	return ret, nil
 34035  }
 34036  
 34037  type OrganizationsEnvironmentsQueriesGetResulturlCall struct {
 34038  	s            *Service
 34039  	name         string
 34040  	urlParams_   gensupport.URLParams
 34041  	ifNoneMatch_ string
 34042  	ctx_         context.Context
 34043  	header_      http.Header
 34044  }
 34045  
 34046  // GetResulturl: After the query is completed, use this API to retrieve the
 34047  // results. If the request succeeds, and there is a non-zero result set, the
 34048  // result is sent to the client as a list of urls to JSON files.
 34049  //
 34050  //   - name: Name of the asynchronous query result to get. Must be of the form
 34051  //     `organizations/{org}/environments/{env}/queries/{queryId}/resulturl`.
 34052  func (r *OrganizationsEnvironmentsQueriesService) GetResulturl(name string) *OrganizationsEnvironmentsQueriesGetResulturlCall {
 34053  	c := &OrganizationsEnvironmentsQueriesGetResulturlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34054  	c.name = name
 34055  	return c
 34056  }
 34057  
 34058  // Fields allows partial responses to be retrieved. See
 34059  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34060  // details.
 34061  func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResulturlCall {
 34062  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34063  	return c
 34064  }
 34065  
 34066  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34067  // object's ETag matches the given value. This is useful for getting updates
 34068  // only after the object has changed since the last request.
 34069  func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResulturlCall {
 34070  	c.ifNoneMatch_ = entityTag
 34071  	return c
 34072  }
 34073  
 34074  // Context sets the context to be used in this call's Do method.
 34075  func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResulturlCall {
 34076  	c.ctx_ = ctx
 34077  	return c
 34078  }
 34079  
 34080  // Header returns a http.Header that can be modified by the caller to add
 34081  // headers to the request.
 34082  func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Header() http.Header {
 34083  	if c.header_ == nil {
 34084  		c.header_ = make(http.Header)
 34085  	}
 34086  	return c.header_
 34087  }
 34088  
 34089  func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) doRequest(alt string) (*http.Response, error) {
 34090  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34091  	if c.ifNoneMatch_ != "" {
 34092  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34093  	}
 34094  	var body io.Reader = nil
 34095  	c.urlParams_.Set("alt", alt)
 34096  	c.urlParams_.Set("prettyPrint", "false")
 34097  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 34098  	urls += "?" + c.urlParams_.Encode()
 34099  	req, err := http.NewRequest("GET", urls, body)
 34100  	if err != nil {
 34101  		return nil, err
 34102  	}
 34103  	req.Header = reqHeaders
 34104  	googleapi.Expand(req.URL, map[string]string{
 34105  		"name": c.name,
 34106  	})
 34107  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34108  }
 34109  
 34110  // Do executes the "apigee.organizations.environments.queries.getResulturl" call.
 34111  // Any non-2xx status code is an error. Response headers are in either
 34112  // *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse.ServerResponse.Header or
 34113  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 34114  // googleapi.IsNotModified to check whether the returned error was because
 34115  // http.StatusNotModified was returned.
 34116  func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse, error) {
 34117  	gensupport.SetOptions(c.urlParams_, opts...)
 34118  	res, err := c.doRequest("json")
 34119  	if res != nil && res.StatusCode == http.StatusNotModified {
 34120  		if res.Body != nil {
 34121  			res.Body.Close()
 34122  		}
 34123  		return nil, gensupport.WrapError(&googleapi.Error{
 34124  			Code:   res.StatusCode,
 34125  			Header: res.Header,
 34126  		})
 34127  	}
 34128  	if err != nil {
 34129  		return nil, err
 34130  	}
 34131  	defer googleapi.CloseBody(res)
 34132  	if err := googleapi.CheckResponse(res); err != nil {
 34133  		return nil, gensupport.WrapError(err)
 34134  	}
 34135  	ret := &GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse{
 34136  		ServerResponse: googleapi.ServerResponse{
 34137  			Header:         res.Header,
 34138  			HTTPStatusCode: res.StatusCode,
 34139  		},
 34140  	}
 34141  	target := &ret
 34142  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34143  		return nil, err
 34144  	}
 34145  	return ret, nil
 34146  }
 34147  
 34148  type OrganizationsEnvironmentsQueriesListCall struct {
 34149  	s            *Service
 34150  	parent       string
 34151  	urlParams_   gensupport.URLParams
 34152  	ifNoneMatch_ string
 34153  	ctx_         context.Context
 34154  	header_      http.Header
 34155  }
 34156  
 34157  // List: Return a list of Asynchronous Queries
 34158  //
 34159  //   - parent: The parent resource name. Must be of the form
 34160  //     `organizations/{org}/environments/{env}`.
 34161  func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
 34162  	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34163  	c.parent = parent
 34164  	return c
 34165  }
 34166  
 34167  // Dataset sets the optional parameter "dataset": Filter response list by
 34168  // dataset. Example: `api`, `mint`
 34169  func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
 34170  	c.urlParams_.Set("dataset", dataset)
 34171  	return c
 34172  }
 34173  
 34174  // From sets the optional parameter "from": Filter response list by returning
 34175  // asynchronous queries that created after this date time. Time must be in ISO
 34176  // date-time format like '2011-12-03T10:15:30Z'.
 34177  func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
 34178  	c.urlParams_.Set("from", from)
 34179  	return c
 34180  }
 34181  
 34182  // InclQueriesWithoutReport sets the optional parameter
 34183  // "inclQueriesWithoutReport": Flag to include asynchronous queries that don't
 34184  // have a report denifition.
 34185  func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
 34186  	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
 34187  	return c
 34188  }
 34189  
 34190  // Status sets the optional parameter "status": Filter response list by
 34191  // asynchronous query status.
 34192  func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
 34193  	c.urlParams_.Set("status", status)
 34194  	return c
 34195  }
 34196  
 34197  // SubmittedBy sets the optional parameter "submittedBy": Filter response list
 34198  // by user who submitted queries.
 34199  func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
 34200  	c.urlParams_.Set("submittedBy", submittedBy)
 34201  	return c
 34202  }
 34203  
 34204  // To sets the optional parameter "to": Filter response list by returning
 34205  // asynchronous queries that created before this date time. Time must be in ISO
 34206  // date-time format like '2011-12-03T10:16:30Z'.
 34207  func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
 34208  	c.urlParams_.Set("to", to)
 34209  	return c
 34210  }
 34211  
 34212  // Fields allows partial responses to be retrieved. See
 34213  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34214  // details.
 34215  func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
 34216  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34217  	return c
 34218  }
 34219  
 34220  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34221  // object's ETag matches the given value. This is useful for getting updates
 34222  // only after the object has changed since the last request.
 34223  func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
 34224  	c.ifNoneMatch_ = entityTag
 34225  	return c
 34226  }
 34227  
 34228  // Context sets the context to be used in this call's Do method.
 34229  func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
 34230  	c.ctx_ = ctx
 34231  	return c
 34232  }
 34233  
 34234  // Header returns a http.Header that can be modified by the caller to add
 34235  // headers to the request.
 34236  func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
 34237  	if c.header_ == nil {
 34238  		c.header_ = make(http.Header)
 34239  	}
 34240  	return c.header_
 34241  }
 34242  
 34243  func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
 34244  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34245  	if c.ifNoneMatch_ != "" {
 34246  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34247  	}
 34248  	var body io.Reader = nil
 34249  	c.urlParams_.Set("alt", alt)
 34250  	c.urlParams_.Set("prettyPrint", "false")
 34251  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
 34252  	urls += "?" + c.urlParams_.Encode()
 34253  	req, err := http.NewRequest("GET", urls, body)
 34254  	if err != nil {
 34255  		return nil, err
 34256  	}
 34257  	req.Header = reqHeaders
 34258  	googleapi.Expand(req.URL, map[string]string{
 34259  		"parent": c.parent,
 34260  	})
 34261  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34262  }
 34263  
 34264  // Do executes the "apigee.organizations.environments.queries.list" call.
 34265  // Any non-2xx status code is an error. Response headers are in either
 34266  // *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or (if a
 34267  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34268  // googleapi.IsNotModified to check whether the returned error was because
 34269  // http.StatusNotModified was returned.
 34270  func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
 34271  	gensupport.SetOptions(c.urlParams_, opts...)
 34272  	res, err := c.doRequest("json")
 34273  	if res != nil && res.StatusCode == http.StatusNotModified {
 34274  		if res.Body != nil {
 34275  			res.Body.Close()
 34276  		}
 34277  		return nil, gensupport.WrapError(&googleapi.Error{
 34278  			Code:   res.StatusCode,
 34279  			Header: res.Header,
 34280  		})
 34281  	}
 34282  	if err != nil {
 34283  		return nil, err
 34284  	}
 34285  	defer googleapi.CloseBody(res)
 34286  	if err := googleapi.CheckResponse(res); err != nil {
 34287  		return nil, gensupport.WrapError(err)
 34288  	}
 34289  	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
 34290  		ServerResponse: googleapi.ServerResponse{
 34291  			Header:         res.Header,
 34292  			HTTPStatusCode: res.StatusCode,
 34293  		},
 34294  	}
 34295  	target := &ret
 34296  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34297  		return nil, err
 34298  	}
 34299  	return ret, nil
 34300  }
 34301  
 34302  type OrganizationsEnvironmentsReferencesCreateCall struct {
 34303  	s                            *Service
 34304  	parent                       string
 34305  	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
 34306  	urlParams_                   gensupport.URLParams
 34307  	ctx_                         context.Context
 34308  	header_                      http.Header
 34309  }
 34310  
 34311  // Create: Creates a Reference in the specified environment.
 34312  //
 34313  //   - parent: The parent environment name under which the Reference will be
 34314  //     created. Must be of the form `organizations/{org}/environments/{env}`.
 34315  func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
 34316  	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34317  	c.parent = parent
 34318  	c.googlecloudapigeev1reference = googlecloudapigeev1reference
 34319  	return c
 34320  }
 34321  
 34322  // Fields allows partial responses to be retrieved. See
 34323  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34324  // details.
 34325  func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
 34326  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34327  	return c
 34328  }
 34329  
 34330  // Context sets the context to be used in this call's Do method.
 34331  func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
 34332  	c.ctx_ = ctx
 34333  	return c
 34334  }
 34335  
 34336  // Header returns a http.Header that can be modified by the caller to add
 34337  // headers to the request.
 34338  func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
 34339  	if c.header_ == nil {
 34340  		c.header_ = make(http.Header)
 34341  	}
 34342  	return c.header_
 34343  }
 34344  
 34345  func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
 34346  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34347  	var body io.Reader = nil
 34348  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
 34349  	if err != nil {
 34350  		return nil, err
 34351  	}
 34352  	c.urlParams_.Set("alt", alt)
 34353  	c.urlParams_.Set("prettyPrint", "false")
 34354  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
 34355  	urls += "?" + c.urlParams_.Encode()
 34356  	req, err := http.NewRequest("POST", urls, body)
 34357  	if err != nil {
 34358  		return nil, err
 34359  	}
 34360  	req.Header = reqHeaders
 34361  	googleapi.Expand(req.URL, map[string]string{
 34362  		"parent": c.parent,
 34363  	})
 34364  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34365  }
 34366  
 34367  // Do executes the "apigee.organizations.environments.references.create" call.
 34368  // Any non-2xx status code is an error. Response headers are in either
 34369  // *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a response was
 34370  // returned at all) in error.(*googleapi.Error).Header. Use
 34371  // googleapi.IsNotModified to check whether the returned error was because
 34372  // http.StatusNotModified was returned.
 34373  func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
 34374  	gensupport.SetOptions(c.urlParams_, opts...)
 34375  	res, err := c.doRequest("json")
 34376  	if res != nil && res.StatusCode == http.StatusNotModified {
 34377  		if res.Body != nil {
 34378  			res.Body.Close()
 34379  		}
 34380  		return nil, gensupport.WrapError(&googleapi.Error{
 34381  			Code:   res.StatusCode,
 34382  			Header: res.Header,
 34383  		})
 34384  	}
 34385  	if err != nil {
 34386  		return nil, err
 34387  	}
 34388  	defer googleapi.CloseBody(res)
 34389  	if err := googleapi.CheckResponse(res); err != nil {
 34390  		return nil, gensupport.WrapError(err)
 34391  	}
 34392  	ret := &GoogleCloudApigeeV1Reference{
 34393  		ServerResponse: googleapi.ServerResponse{
 34394  			Header:         res.Header,
 34395  			HTTPStatusCode: res.StatusCode,
 34396  		},
 34397  	}
 34398  	target := &ret
 34399  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34400  		return nil, err
 34401  	}
 34402  	return ret, nil
 34403  }
 34404  
 34405  type OrganizationsEnvironmentsReferencesDeleteCall struct {
 34406  	s          *Service
 34407  	name       string
 34408  	urlParams_ gensupport.URLParams
 34409  	ctx_       context.Context
 34410  	header_    http.Header
 34411  }
 34412  
 34413  // Delete: Deletes a Reference from an environment. Returns the deleted
 34414  // Reference resource.
 34415  //
 34416  //   - name: The name of the Reference to delete. Must be of the form
 34417  //     `organizations/{org}/environments/{env}/references/{ref}`.
 34418  func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
 34419  	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34420  	c.name = name
 34421  	return c
 34422  }
 34423  
 34424  // Fields allows partial responses to be retrieved. See
 34425  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34426  // details.
 34427  func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
 34428  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34429  	return c
 34430  }
 34431  
 34432  // Context sets the context to be used in this call's Do method.
 34433  func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
 34434  	c.ctx_ = ctx
 34435  	return c
 34436  }
 34437  
 34438  // Header returns a http.Header that can be modified by the caller to add
 34439  // headers to the request.
 34440  func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
 34441  	if c.header_ == nil {
 34442  		c.header_ = make(http.Header)
 34443  	}
 34444  	return c.header_
 34445  }
 34446  
 34447  func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
 34448  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34449  	var body io.Reader = nil
 34450  	c.urlParams_.Set("alt", alt)
 34451  	c.urlParams_.Set("prettyPrint", "false")
 34452  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 34453  	urls += "?" + c.urlParams_.Encode()
 34454  	req, err := http.NewRequest("DELETE", urls, body)
 34455  	if err != nil {
 34456  		return nil, err
 34457  	}
 34458  	req.Header = reqHeaders
 34459  	googleapi.Expand(req.URL, map[string]string{
 34460  		"name": c.name,
 34461  	})
 34462  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34463  }
 34464  
 34465  // Do executes the "apigee.organizations.environments.references.delete" call.
 34466  // Any non-2xx status code is an error. Response headers are in either
 34467  // *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a response was
 34468  // returned at all) in error.(*googleapi.Error).Header. Use
 34469  // googleapi.IsNotModified to check whether the returned error was because
 34470  // http.StatusNotModified was returned.
 34471  func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
 34472  	gensupport.SetOptions(c.urlParams_, opts...)
 34473  	res, err := c.doRequest("json")
 34474  	if res != nil && res.StatusCode == http.StatusNotModified {
 34475  		if res.Body != nil {
 34476  			res.Body.Close()
 34477  		}
 34478  		return nil, gensupport.WrapError(&googleapi.Error{
 34479  			Code:   res.StatusCode,
 34480  			Header: res.Header,
 34481  		})
 34482  	}
 34483  	if err != nil {
 34484  		return nil, err
 34485  	}
 34486  	defer googleapi.CloseBody(res)
 34487  	if err := googleapi.CheckResponse(res); err != nil {
 34488  		return nil, gensupport.WrapError(err)
 34489  	}
 34490  	ret := &GoogleCloudApigeeV1Reference{
 34491  		ServerResponse: googleapi.ServerResponse{
 34492  			Header:         res.Header,
 34493  			HTTPStatusCode: res.StatusCode,
 34494  		},
 34495  	}
 34496  	target := &ret
 34497  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34498  		return nil, err
 34499  	}
 34500  	return ret, nil
 34501  }
 34502  
 34503  type OrganizationsEnvironmentsReferencesGetCall struct {
 34504  	s            *Service
 34505  	name         string
 34506  	urlParams_   gensupport.URLParams
 34507  	ifNoneMatch_ string
 34508  	ctx_         context.Context
 34509  	header_      http.Header
 34510  }
 34511  
 34512  // Get: Gets a Reference resource.
 34513  //
 34514  //   - name: The name of the Reference to get. Must be of the form
 34515  //     `organizations/{org}/environments/{env}/references/{ref}`.
 34516  func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
 34517  	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34518  	c.name = name
 34519  	return c
 34520  }
 34521  
 34522  // Fields allows partial responses to be retrieved. See
 34523  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34524  // details.
 34525  func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
 34526  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34527  	return c
 34528  }
 34529  
 34530  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34531  // object's ETag matches the given value. This is useful for getting updates
 34532  // only after the object has changed since the last request.
 34533  func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
 34534  	c.ifNoneMatch_ = entityTag
 34535  	return c
 34536  }
 34537  
 34538  // Context sets the context to be used in this call's Do method.
 34539  func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
 34540  	c.ctx_ = ctx
 34541  	return c
 34542  }
 34543  
 34544  // Header returns a http.Header that can be modified by the caller to add
 34545  // headers to the request.
 34546  func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
 34547  	if c.header_ == nil {
 34548  		c.header_ = make(http.Header)
 34549  	}
 34550  	return c.header_
 34551  }
 34552  
 34553  func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
 34554  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34555  	if c.ifNoneMatch_ != "" {
 34556  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34557  	}
 34558  	var body io.Reader = nil
 34559  	c.urlParams_.Set("alt", alt)
 34560  	c.urlParams_.Set("prettyPrint", "false")
 34561  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 34562  	urls += "?" + c.urlParams_.Encode()
 34563  	req, err := http.NewRequest("GET", urls, body)
 34564  	if err != nil {
 34565  		return nil, err
 34566  	}
 34567  	req.Header = reqHeaders
 34568  	googleapi.Expand(req.URL, map[string]string{
 34569  		"name": c.name,
 34570  	})
 34571  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34572  }
 34573  
 34574  // Do executes the "apigee.organizations.environments.references.get" call.
 34575  // Any non-2xx status code is an error. Response headers are in either
 34576  // *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a response was
 34577  // returned at all) in error.(*googleapi.Error).Header. Use
 34578  // googleapi.IsNotModified to check whether the returned error was because
 34579  // http.StatusNotModified was returned.
 34580  func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
 34581  	gensupport.SetOptions(c.urlParams_, opts...)
 34582  	res, err := c.doRequest("json")
 34583  	if res != nil && res.StatusCode == http.StatusNotModified {
 34584  		if res.Body != nil {
 34585  			res.Body.Close()
 34586  		}
 34587  		return nil, gensupport.WrapError(&googleapi.Error{
 34588  			Code:   res.StatusCode,
 34589  			Header: res.Header,
 34590  		})
 34591  	}
 34592  	if err != nil {
 34593  		return nil, err
 34594  	}
 34595  	defer googleapi.CloseBody(res)
 34596  	if err := googleapi.CheckResponse(res); err != nil {
 34597  		return nil, gensupport.WrapError(err)
 34598  	}
 34599  	ret := &GoogleCloudApigeeV1Reference{
 34600  		ServerResponse: googleapi.ServerResponse{
 34601  			Header:         res.Header,
 34602  			HTTPStatusCode: res.StatusCode,
 34603  		},
 34604  	}
 34605  	target := &ret
 34606  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34607  		return nil, err
 34608  	}
 34609  	return ret, nil
 34610  }
 34611  
 34612  type OrganizationsEnvironmentsReferencesUpdateCall struct {
 34613  	s                            *Service
 34614  	name                         string
 34615  	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
 34616  	urlParams_                   gensupport.URLParams
 34617  	ctx_                         context.Context
 34618  	header_                      http.Header
 34619  }
 34620  
 34621  // Update: Updates an existing Reference. Note that this operation has PUT
 34622  // semantics; it will replace the entirety of the existing Reference with the
 34623  // resource in the request body.
 34624  //
 34625  //   - name: The name of the Reference to update. Must be of the form
 34626  //     `organizations/{org}/environments/{env}/references/{ref}`.
 34627  func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
 34628  	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34629  	c.name = name
 34630  	c.googlecloudapigeev1reference = googlecloudapigeev1reference
 34631  	return c
 34632  }
 34633  
 34634  // Fields allows partial responses to be retrieved. See
 34635  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34636  // details.
 34637  func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
 34638  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34639  	return c
 34640  }
 34641  
 34642  // Context sets the context to be used in this call's Do method.
 34643  func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
 34644  	c.ctx_ = ctx
 34645  	return c
 34646  }
 34647  
 34648  // Header returns a http.Header that can be modified by the caller to add
 34649  // headers to the request.
 34650  func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
 34651  	if c.header_ == nil {
 34652  		c.header_ = make(http.Header)
 34653  	}
 34654  	return c.header_
 34655  }
 34656  
 34657  func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
 34658  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34659  	var body io.Reader = nil
 34660  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
 34661  	if err != nil {
 34662  		return nil, err
 34663  	}
 34664  	c.urlParams_.Set("alt", alt)
 34665  	c.urlParams_.Set("prettyPrint", "false")
 34666  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 34667  	urls += "?" + c.urlParams_.Encode()
 34668  	req, err := http.NewRequest("PUT", urls, body)
 34669  	if err != nil {
 34670  		return nil, err
 34671  	}
 34672  	req.Header = reqHeaders
 34673  	googleapi.Expand(req.URL, map[string]string{
 34674  		"name": c.name,
 34675  	})
 34676  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34677  }
 34678  
 34679  // Do executes the "apigee.organizations.environments.references.update" call.
 34680  // Any non-2xx status code is an error. Response headers are in either
 34681  // *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a response was
 34682  // returned at all) in error.(*googleapi.Error).Header. Use
 34683  // googleapi.IsNotModified to check whether the returned error was because
 34684  // http.StatusNotModified was returned.
 34685  func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
 34686  	gensupport.SetOptions(c.urlParams_, opts...)
 34687  	res, err := c.doRequest("json")
 34688  	if res != nil && res.StatusCode == http.StatusNotModified {
 34689  		if res.Body != nil {
 34690  			res.Body.Close()
 34691  		}
 34692  		return nil, gensupport.WrapError(&googleapi.Error{
 34693  			Code:   res.StatusCode,
 34694  			Header: res.Header,
 34695  		})
 34696  	}
 34697  	if err != nil {
 34698  		return nil, err
 34699  	}
 34700  	defer googleapi.CloseBody(res)
 34701  	if err := googleapi.CheckResponse(res); err != nil {
 34702  		return nil, gensupport.WrapError(err)
 34703  	}
 34704  	ret := &GoogleCloudApigeeV1Reference{
 34705  		ServerResponse: googleapi.ServerResponse{
 34706  			Header:         res.Header,
 34707  			HTTPStatusCode: res.StatusCode,
 34708  		},
 34709  	}
 34710  	target := &ret
 34711  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34712  		return nil, err
 34713  	}
 34714  	return ret, nil
 34715  }
 34716  
 34717  type OrganizationsEnvironmentsResourcefilesCreateCall struct {
 34718  	s                 *Service
 34719  	parent            string
 34720  	googleapihttpbody *GoogleApiHttpBody
 34721  	urlParams_        gensupport.URLParams
 34722  	ctx_              context.Context
 34723  	header_           http.Header
 34724  }
 34725  
 34726  // Create: Creates a resource file. Specify the `Content-Type` as
 34727  // `application/octet-stream` or `multipart/form-data`. For more information
 34728  // about resource files, see Resource files
 34729  // (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
 34730  //
 34731  //   - parent: Name of the environment in which to create the resource file in
 34732  //     the following format: `organizations/{org}/environments/{env}`.
 34733  func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
 34734  	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34735  	c.parent = parent
 34736  	c.googleapihttpbody = googleapihttpbody
 34737  	return c
 34738  }
 34739  
 34740  // Name sets the optional parameter "name": Required. Name of the resource
 34741  // file. Must match the regular expression: [a-zA-Z0-9:/\\!@#$%^&{}\\
 34742  // ()+\-=,.~'` ]{1,255}
 34743  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
 34744  	c.urlParams_.Set("name", name)
 34745  	return c
 34746  }
 34747  
 34748  // Type sets the optional parameter "type": Required. Resource file type. {{
 34749  // resource_file_type }}
 34750  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
 34751  	c.urlParams_.Set("type", type_)
 34752  	return c
 34753  }
 34754  
 34755  // Fields allows partial responses to be retrieved. See
 34756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34757  // details.
 34758  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
 34759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34760  	return c
 34761  }
 34762  
 34763  // Context sets the context to be used in this call's Do method.
 34764  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
 34765  	c.ctx_ = ctx
 34766  	return c
 34767  }
 34768  
 34769  // Header returns a http.Header that can be modified by the caller to add
 34770  // headers to the request.
 34771  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
 34772  	if c.header_ == nil {
 34773  		c.header_ = make(http.Header)
 34774  	}
 34775  	return c.header_
 34776  }
 34777  
 34778  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
 34779  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34780  	var body io.Reader = nil
 34781  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 34782  	if err != nil {
 34783  		return nil, err
 34784  	}
 34785  	c.urlParams_.Set("alt", alt)
 34786  	c.urlParams_.Set("prettyPrint", "false")
 34787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
 34788  	urls += "?" + c.urlParams_.Encode()
 34789  	req, err := http.NewRequest("POST", urls, body)
 34790  	if err != nil {
 34791  		return nil, err
 34792  	}
 34793  	req.Header = reqHeaders
 34794  	googleapi.Expand(req.URL, map[string]string{
 34795  		"parent": c.parent,
 34796  	})
 34797  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34798  }
 34799  
 34800  // Do executes the "apigee.organizations.environments.resourcefiles.create" call.
 34801  // Any non-2xx status code is an error. Response headers are in either
 34802  // *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if a response was
 34803  // returned at all) in error.(*googleapi.Error).Header. Use
 34804  // googleapi.IsNotModified to check whether the returned error was because
 34805  // http.StatusNotModified was returned.
 34806  func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
 34807  	gensupport.SetOptions(c.urlParams_, opts...)
 34808  	res, err := c.doRequest("json")
 34809  	if res != nil && res.StatusCode == http.StatusNotModified {
 34810  		if res.Body != nil {
 34811  			res.Body.Close()
 34812  		}
 34813  		return nil, gensupport.WrapError(&googleapi.Error{
 34814  			Code:   res.StatusCode,
 34815  			Header: res.Header,
 34816  		})
 34817  	}
 34818  	if err != nil {
 34819  		return nil, err
 34820  	}
 34821  	defer googleapi.CloseBody(res)
 34822  	if err := googleapi.CheckResponse(res); err != nil {
 34823  		return nil, gensupport.WrapError(err)
 34824  	}
 34825  	ret := &GoogleCloudApigeeV1ResourceFile{
 34826  		ServerResponse: googleapi.ServerResponse{
 34827  			Header:         res.Header,
 34828  			HTTPStatusCode: res.StatusCode,
 34829  		},
 34830  	}
 34831  	target := &ret
 34832  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34833  		return nil, err
 34834  	}
 34835  	return ret, nil
 34836  }
 34837  
 34838  type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
 34839  	s          *Service
 34840  	parent     string
 34841  	type_      string
 34842  	name       string
 34843  	urlParams_ gensupport.URLParams
 34844  	ctx_       context.Context
 34845  	header_    http.Header
 34846  }
 34847  
 34848  // Delete: Deletes a resource file. For more information about resource files,
 34849  // see Resource files
 34850  // (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
 34851  //
 34852  //   - name: ID of the resource file to delete. Must match the regular
 34853  //     expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
 34854  //   - parent: Name of the environment in the following format:
 34855  //     `organizations/{org}/environments/{env}`.
 34856  //   - type: Resource file type. {{ resource_file_type }}.
 34857  func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
 34858  	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34859  	c.parent = parent
 34860  	c.type_ = type_
 34861  	c.name = name
 34862  	return c
 34863  }
 34864  
 34865  // Fields allows partial responses to be retrieved. See
 34866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34867  // details.
 34868  func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
 34869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34870  	return c
 34871  }
 34872  
 34873  // Context sets the context to be used in this call's Do method.
 34874  func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
 34875  	c.ctx_ = ctx
 34876  	return c
 34877  }
 34878  
 34879  // Header returns a http.Header that can be modified by the caller to add
 34880  // headers to the request.
 34881  func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
 34882  	if c.header_ == nil {
 34883  		c.header_ = make(http.Header)
 34884  	}
 34885  	return c.header_
 34886  }
 34887  
 34888  func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 34889  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34890  	var body io.Reader = nil
 34891  	c.urlParams_.Set("alt", alt)
 34892  	c.urlParams_.Set("prettyPrint", "false")
 34893  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
 34894  	urls += "?" + c.urlParams_.Encode()
 34895  	req, err := http.NewRequest("DELETE", urls, body)
 34896  	if err != nil {
 34897  		return nil, err
 34898  	}
 34899  	req.Header = reqHeaders
 34900  	googleapi.Expand(req.URL, map[string]string{
 34901  		"parent": c.parent,
 34902  		"type":   c.type_,
 34903  		"name":   c.name,
 34904  	})
 34905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34906  }
 34907  
 34908  // Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
 34909  // Any non-2xx status code is an error. Response headers are in either
 34910  // *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if a response was
 34911  // returned at all) in error.(*googleapi.Error).Header. Use
 34912  // googleapi.IsNotModified to check whether the returned error was because
 34913  // http.StatusNotModified was returned.
 34914  func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
 34915  	gensupport.SetOptions(c.urlParams_, opts...)
 34916  	res, err := c.doRequest("json")
 34917  	if res != nil && res.StatusCode == http.StatusNotModified {
 34918  		if res.Body != nil {
 34919  			res.Body.Close()
 34920  		}
 34921  		return nil, gensupport.WrapError(&googleapi.Error{
 34922  			Code:   res.StatusCode,
 34923  			Header: res.Header,
 34924  		})
 34925  	}
 34926  	if err != nil {
 34927  		return nil, err
 34928  	}
 34929  	defer googleapi.CloseBody(res)
 34930  	if err := googleapi.CheckResponse(res); err != nil {
 34931  		return nil, gensupport.WrapError(err)
 34932  	}
 34933  	ret := &GoogleCloudApigeeV1ResourceFile{
 34934  		ServerResponse: googleapi.ServerResponse{
 34935  			Header:         res.Header,
 34936  			HTTPStatusCode: res.StatusCode,
 34937  		},
 34938  	}
 34939  	target := &ret
 34940  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34941  		return nil, err
 34942  	}
 34943  	return ret, nil
 34944  }
 34945  
 34946  type OrganizationsEnvironmentsResourcefilesGetCall struct {
 34947  	s            *Service
 34948  	parent       string
 34949  	type_        string
 34950  	name         string
 34951  	urlParams_   gensupport.URLParams
 34952  	ifNoneMatch_ string
 34953  	ctx_         context.Context
 34954  	header_      http.Header
 34955  }
 34956  
 34957  // Get: Gets the contents of a resource file. For more information about
 34958  // resource files, see Resource files
 34959  // (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
 34960  //
 34961  //   - name: ID of the resource file. Must match the regular expression:
 34962  //     [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
 34963  //   - parent: Name of the environment in the following format:
 34964  //     `organizations/{org}/environments/{env}`.
 34965  //   - type: Resource file type. {{ resource_file_type }}.
 34966  func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
 34967  	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34968  	c.parent = parent
 34969  	c.type_ = type_
 34970  	c.name = name
 34971  	return c
 34972  }
 34973  
 34974  // Fields allows partial responses to be retrieved. See
 34975  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34976  // details.
 34977  func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
 34978  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34979  	return c
 34980  }
 34981  
 34982  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34983  // object's ETag matches the given value. This is useful for getting updates
 34984  // only after the object has changed since the last request.
 34985  func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
 34986  	c.ifNoneMatch_ = entityTag
 34987  	return c
 34988  }
 34989  
 34990  // Context sets the context to be used in this call's Do method.
 34991  func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
 34992  	c.ctx_ = ctx
 34993  	return c
 34994  }
 34995  
 34996  // Header returns a http.Header that can be modified by the caller to add
 34997  // headers to the request.
 34998  func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
 34999  	if c.header_ == nil {
 35000  		c.header_ = make(http.Header)
 35001  	}
 35002  	return c.header_
 35003  }
 35004  
 35005  func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
 35006  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35007  	if c.ifNoneMatch_ != "" {
 35008  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35009  	}
 35010  	var body io.Reader = nil
 35011  	c.urlParams_.Set("alt", alt)
 35012  	c.urlParams_.Set("prettyPrint", "false")
 35013  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
 35014  	urls += "?" + c.urlParams_.Encode()
 35015  	req, err := http.NewRequest("GET", urls, body)
 35016  	if err != nil {
 35017  		return nil, err
 35018  	}
 35019  	req.Header = reqHeaders
 35020  	googleapi.Expand(req.URL, map[string]string{
 35021  		"parent": c.parent,
 35022  		"type":   c.type_,
 35023  		"name":   c.name,
 35024  	})
 35025  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35026  }
 35027  
 35028  // Do executes the "apigee.organizations.environments.resourcefiles.get" call.
 35029  // Any non-2xx status code is an error. Response headers are in either
 35030  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 35031  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35032  // check whether the returned error was because http.StatusNotModified was
 35033  // returned.
 35034  func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 35035  	gensupport.SetOptions(c.urlParams_, opts...)
 35036  	res, err := c.doRequest("json")
 35037  	if res != nil && res.StatusCode == http.StatusNotModified {
 35038  		if res.Body != nil {
 35039  			res.Body.Close()
 35040  		}
 35041  		return nil, gensupport.WrapError(&googleapi.Error{
 35042  			Code:   res.StatusCode,
 35043  			Header: res.Header,
 35044  		})
 35045  	}
 35046  	if err != nil {
 35047  		return nil, err
 35048  	}
 35049  	defer googleapi.CloseBody(res)
 35050  	if err := googleapi.CheckResponse(res); err != nil {
 35051  		return nil, gensupport.WrapError(err)
 35052  	}
 35053  	ret := &GoogleApiHttpBody{
 35054  		ServerResponse: googleapi.ServerResponse{
 35055  			Header:         res.Header,
 35056  			HTTPStatusCode: res.StatusCode,
 35057  		},
 35058  	}
 35059  	target := &ret
 35060  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35061  		return nil, err
 35062  	}
 35063  	return ret, nil
 35064  }
 35065  
 35066  type OrganizationsEnvironmentsResourcefilesListCall struct {
 35067  	s            *Service
 35068  	parent       string
 35069  	urlParams_   gensupport.URLParams
 35070  	ifNoneMatch_ string
 35071  	ctx_         context.Context
 35072  	header_      http.Header
 35073  }
 35074  
 35075  // List: Lists all resource files, optionally filtering by type. For more
 35076  // information about resource files, see Resource files
 35077  // (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
 35078  //
 35079  //   - parent: Name of the environment in which to list resource files in the
 35080  //     following format: `organizations/{org}/environments/{env}`.
 35081  func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
 35082  	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35083  	c.parent = parent
 35084  	return c
 35085  }
 35086  
 35087  // Type sets the optional parameter "type": Type of resource files to list. {{
 35088  // resource_file_type }}
 35089  func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
 35090  	c.urlParams_.Set("type", type_)
 35091  	return c
 35092  }
 35093  
 35094  // Fields allows partial responses to be retrieved. See
 35095  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35096  // details.
 35097  func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
 35098  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35099  	return c
 35100  }
 35101  
 35102  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35103  // object's ETag matches the given value. This is useful for getting updates
 35104  // only after the object has changed since the last request.
 35105  func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
 35106  	c.ifNoneMatch_ = entityTag
 35107  	return c
 35108  }
 35109  
 35110  // Context sets the context to be used in this call's Do method.
 35111  func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
 35112  	c.ctx_ = ctx
 35113  	return c
 35114  }
 35115  
 35116  // Header returns a http.Header that can be modified by the caller to add
 35117  // headers to the request.
 35118  func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
 35119  	if c.header_ == nil {
 35120  		c.header_ = make(http.Header)
 35121  	}
 35122  	return c.header_
 35123  }
 35124  
 35125  func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
 35126  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35127  	if c.ifNoneMatch_ != "" {
 35128  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35129  	}
 35130  	var body io.Reader = nil
 35131  	c.urlParams_.Set("alt", alt)
 35132  	c.urlParams_.Set("prettyPrint", "false")
 35133  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
 35134  	urls += "?" + c.urlParams_.Encode()
 35135  	req, err := http.NewRequest("GET", urls, body)
 35136  	if err != nil {
 35137  		return nil, err
 35138  	}
 35139  	req.Header = reqHeaders
 35140  	googleapi.Expand(req.URL, map[string]string{
 35141  		"parent": c.parent,
 35142  	})
 35143  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35144  }
 35145  
 35146  // Do executes the "apigee.organizations.environments.resourcefiles.list" call.
 35147  // Any non-2xx status code is an error. Response headers are in either
 35148  // *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.Header
 35149  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 35150  // Use googleapi.IsNotModified to check whether the returned error was because
 35151  // http.StatusNotModified was returned.
 35152  func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
 35153  	gensupport.SetOptions(c.urlParams_, opts...)
 35154  	res, err := c.doRequest("json")
 35155  	if res != nil && res.StatusCode == http.StatusNotModified {
 35156  		if res.Body != nil {
 35157  			res.Body.Close()
 35158  		}
 35159  		return nil, gensupport.WrapError(&googleapi.Error{
 35160  			Code:   res.StatusCode,
 35161  			Header: res.Header,
 35162  		})
 35163  	}
 35164  	if err != nil {
 35165  		return nil, err
 35166  	}
 35167  	defer googleapi.CloseBody(res)
 35168  	if err := googleapi.CheckResponse(res); err != nil {
 35169  		return nil, gensupport.WrapError(err)
 35170  	}
 35171  	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
 35172  		ServerResponse: googleapi.ServerResponse{
 35173  			Header:         res.Header,
 35174  			HTTPStatusCode: res.StatusCode,
 35175  		},
 35176  	}
 35177  	target := &ret
 35178  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35179  		return nil, err
 35180  	}
 35181  	return ret, nil
 35182  }
 35183  
 35184  type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
 35185  	s            *Service
 35186  	parent       string
 35187  	type_        string
 35188  	urlParams_   gensupport.URLParams
 35189  	ifNoneMatch_ string
 35190  	ctx_         context.Context
 35191  	header_      http.Header
 35192  }
 35193  
 35194  // ListEnvironmentResources: Lists all resource files, optionally filtering by
 35195  // type. For more information about resource files, see Resource files
 35196  // (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
 35197  //
 35198  //   - parent: Name of the environment in which to list resource files in the
 35199  //     following format: `organizations/{org}/environments/{env}`.
 35200  //   - type: Optional. Type of resource files to list. {{ resource_file_type }}.
 35201  func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
 35202  	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35203  	c.parent = parent
 35204  	c.type_ = type_
 35205  	return c
 35206  }
 35207  
 35208  // Fields allows partial responses to be retrieved. See
 35209  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35210  // details.
 35211  func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
 35212  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35213  	return c
 35214  }
 35215  
 35216  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35217  // object's ETag matches the given value. This is useful for getting updates
 35218  // only after the object has changed since the last request.
 35219  func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
 35220  	c.ifNoneMatch_ = entityTag
 35221  	return c
 35222  }
 35223  
 35224  // Context sets the context to be used in this call's Do method.
 35225  func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
 35226  	c.ctx_ = ctx
 35227  	return c
 35228  }
 35229  
 35230  // Header returns a http.Header that can be modified by the caller to add
 35231  // headers to the request.
 35232  func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
 35233  	if c.header_ == nil {
 35234  		c.header_ = make(http.Header)
 35235  	}
 35236  	return c.header_
 35237  }
 35238  
 35239  func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
 35240  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35241  	if c.ifNoneMatch_ != "" {
 35242  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35243  	}
 35244  	var body io.Reader = nil
 35245  	c.urlParams_.Set("alt", alt)
 35246  	c.urlParams_.Set("prettyPrint", "false")
 35247  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
 35248  	urls += "?" + c.urlParams_.Encode()
 35249  	req, err := http.NewRequest("GET", urls, body)
 35250  	if err != nil {
 35251  		return nil, err
 35252  	}
 35253  	req.Header = reqHeaders
 35254  	googleapi.Expand(req.URL, map[string]string{
 35255  		"parent": c.parent,
 35256  		"type":   c.type_,
 35257  	})
 35258  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35259  }
 35260  
 35261  // Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
 35262  // Any non-2xx status code is an error. Response headers are in either
 35263  // *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.Header
 35264  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 35265  // Use googleapi.IsNotModified to check whether the returned error was because
 35266  // http.StatusNotModified was returned.
 35267  func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
 35268  	gensupport.SetOptions(c.urlParams_, opts...)
 35269  	res, err := c.doRequest("json")
 35270  	if res != nil && res.StatusCode == http.StatusNotModified {
 35271  		if res.Body != nil {
 35272  			res.Body.Close()
 35273  		}
 35274  		return nil, gensupport.WrapError(&googleapi.Error{
 35275  			Code:   res.StatusCode,
 35276  			Header: res.Header,
 35277  		})
 35278  	}
 35279  	if err != nil {
 35280  		return nil, err
 35281  	}
 35282  	defer googleapi.CloseBody(res)
 35283  	if err := googleapi.CheckResponse(res); err != nil {
 35284  		return nil, gensupport.WrapError(err)
 35285  	}
 35286  	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
 35287  		ServerResponse: googleapi.ServerResponse{
 35288  			Header:         res.Header,
 35289  			HTTPStatusCode: res.StatusCode,
 35290  		},
 35291  	}
 35292  	target := &ret
 35293  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35294  		return nil, err
 35295  	}
 35296  	return ret, nil
 35297  }
 35298  
 35299  type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
 35300  	s                 *Service
 35301  	parent            string
 35302  	type_             string
 35303  	name              string
 35304  	googleapihttpbody *GoogleApiHttpBody
 35305  	urlParams_        gensupport.URLParams
 35306  	ctx_              context.Context
 35307  	header_           http.Header
 35308  }
 35309  
 35310  // Update: Updates a resource file. Specify the `Content-Type` as
 35311  // `application/octet-stream` or `multipart/form-data`. For more information
 35312  // about resource files, see Resource files
 35313  // (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
 35314  //
 35315  //   - name: ID of the resource file to update. Must match the regular
 35316  //     expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
 35317  //   - parent: Name of the environment in the following format:
 35318  //     `organizations/{org}/environments/{env}`.
 35319  //   - type: Resource file type. {{ resource_file_type }}.
 35320  func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
 35321  	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35322  	c.parent = parent
 35323  	c.type_ = type_
 35324  	c.name = name
 35325  	c.googleapihttpbody = googleapihttpbody
 35326  	return c
 35327  }
 35328  
 35329  // Fields allows partial responses to be retrieved. See
 35330  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35331  // details.
 35332  func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
 35333  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35334  	return c
 35335  }
 35336  
 35337  // Context sets the context to be used in this call's Do method.
 35338  func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
 35339  	c.ctx_ = ctx
 35340  	return c
 35341  }
 35342  
 35343  // Header returns a http.Header that can be modified by the caller to add
 35344  // headers to the request.
 35345  func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
 35346  	if c.header_ == nil {
 35347  		c.header_ = make(http.Header)
 35348  	}
 35349  	return c.header_
 35350  }
 35351  
 35352  func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
 35353  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35354  	var body io.Reader = nil
 35355  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 35356  	if err != nil {
 35357  		return nil, err
 35358  	}
 35359  	c.urlParams_.Set("alt", alt)
 35360  	c.urlParams_.Set("prettyPrint", "false")
 35361  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
 35362  	urls += "?" + c.urlParams_.Encode()
 35363  	req, err := http.NewRequest("PUT", urls, body)
 35364  	if err != nil {
 35365  		return nil, err
 35366  	}
 35367  	req.Header = reqHeaders
 35368  	googleapi.Expand(req.URL, map[string]string{
 35369  		"parent": c.parent,
 35370  		"type":   c.type_,
 35371  		"name":   c.name,
 35372  	})
 35373  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35374  }
 35375  
 35376  // Do executes the "apigee.organizations.environments.resourcefiles.update" call.
 35377  // Any non-2xx status code is an error. Response headers are in either
 35378  // *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if a response was
 35379  // returned at all) in error.(*googleapi.Error).Header. Use
 35380  // googleapi.IsNotModified to check whether the returned error was because
 35381  // http.StatusNotModified was returned.
 35382  func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
 35383  	gensupport.SetOptions(c.urlParams_, opts...)
 35384  	res, err := c.doRequest("json")
 35385  	if res != nil && res.StatusCode == http.StatusNotModified {
 35386  		if res.Body != nil {
 35387  			res.Body.Close()
 35388  		}
 35389  		return nil, gensupport.WrapError(&googleapi.Error{
 35390  			Code:   res.StatusCode,
 35391  			Header: res.Header,
 35392  		})
 35393  	}
 35394  	if err != nil {
 35395  		return nil, err
 35396  	}
 35397  	defer googleapi.CloseBody(res)
 35398  	if err := googleapi.CheckResponse(res); err != nil {
 35399  		return nil, gensupport.WrapError(err)
 35400  	}
 35401  	ret := &GoogleCloudApigeeV1ResourceFile{
 35402  		ServerResponse: googleapi.ServerResponse{
 35403  			Header:         res.Header,
 35404  			HTTPStatusCode: res.StatusCode,
 35405  		},
 35406  	}
 35407  	target := &ret
 35408  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35409  		return nil, err
 35410  	}
 35411  	return ret, nil
 35412  }
 35413  
 35414  type OrganizationsEnvironmentsSecurityActionsCreateCall struct {
 35415  	s                                 *Service
 35416  	parent                            string
 35417  	googlecloudapigeev1securityaction *GoogleCloudApigeeV1SecurityAction
 35418  	urlParams_                        gensupport.URLParams
 35419  	ctx_                              context.Context
 35420  	header_                           http.Header
 35421  }
 35422  
 35423  // Create: CreateSecurityAction creates a SecurityAction.
 35424  //
 35425  //   - parent: The organization and environment that this SecurityAction applies
 35426  //     to. Format: organizations/{org}/environments/{env}.
 35427  func (r *OrganizationsEnvironmentsSecurityActionsService) Create(parent string, googlecloudapigeev1securityaction *GoogleCloudApigeeV1SecurityAction) *OrganizationsEnvironmentsSecurityActionsCreateCall {
 35428  	c := &OrganizationsEnvironmentsSecurityActionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35429  	c.parent = parent
 35430  	c.googlecloudapigeev1securityaction = googlecloudapigeev1securityaction
 35431  	return c
 35432  }
 35433  
 35434  // SecurityActionId sets the optional parameter "securityActionId": Required.
 35435  // The ID to use for the SecurityAction, which will become the final component
 35436  // of the action's resource name. This value should be 0-61 characters, and
 35437  // valid format is (^a-z ([a-z0-9-]{​0,61}[a-z0-9])?$).
 35438  func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) SecurityActionId(securityActionId string) *OrganizationsEnvironmentsSecurityActionsCreateCall {
 35439  	c.urlParams_.Set("securityActionId", securityActionId)
 35440  	return c
 35441  }
 35442  
 35443  // Fields allows partial responses to be retrieved. See
 35444  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35445  // details.
 35446  func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsCreateCall {
 35447  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35448  	return c
 35449  }
 35450  
 35451  // Context sets the context to be used in this call's Do method.
 35452  func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsCreateCall {
 35453  	c.ctx_ = ctx
 35454  	return c
 35455  }
 35456  
 35457  // Header returns a http.Header that can be modified by the caller to add
 35458  // headers to the request.
 35459  func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Header() http.Header {
 35460  	if c.header_ == nil {
 35461  		c.header_ = make(http.Header)
 35462  	}
 35463  	return c.header_
 35464  }
 35465  
 35466  func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) doRequest(alt string) (*http.Response, error) {
 35467  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35468  	var body io.Reader = nil
 35469  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityaction)
 35470  	if err != nil {
 35471  		return nil, err
 35472  	}
 35473  	c.urlParams_.Set("alt", alt)
 35474  	c.urlParams_.Set("prettyPrint", "false")
 35475  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityActions")
 35476  	urls += "?" + c.urlParams_.Encode()
 35477  	req, err := http.NewRequest("POST", urls, body)
 35478  	if err != nil {
 35479  		return nil, err
 35480  	}
 35481  	req.Header = reqHeaders
 35482  	googleapi.Expand(req.URL, map[string]string{
 35483  		"parent": c.parent,
 35484  	})
 35485  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35486  }
 35487  
 35488  // Do executes the "apigee.organizations.environments.securityActions.create" call.
 35489  // Any non-2xx status code is an error. Response headers are in either
 35490  // *GoogleCloudApigeeV1SecurityAction.ServerResponse.Header or (if a response
 35491  // was returned at all) in error.(*googleapi.Error).Header. Use
 35492  // googleapi.IsNotModified to check whether the returned error was because
 35493  // http.StatusNotModified was returned.
 35494  func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
 35495  	gensupport.SetOptions(c.urlParams_, opts...)
 35496  	res, err := c.doRequest("json")
 35497  	if res != nil && res.StatusCode == http.StatusNotModified {
 35498  		if res.Body != nil {
 35499  			res.Body.Close()
 35500  		}
 35501  		return nil, gensupport.WrapError(&googleapi.Error{
 35502  			Code:   res.StatusCode,
 35503  			Header: res.Header,
 35504  		})
 35505  	}
 35506  	if err != nil {
 35507  		return nil, err
 35508  	}
 35509  	defer googleapi.CloseBody(res)
 35510  	if err := googleapi.CheckResponse(res); err != nil {
 35511  		return nil, gensupport.WrapError(err)
 35512  	}
 35513  	ret := &GoogleCloudApigeeV1SecurityAction{
 35514  		ServerResponse: googleapi.ServerResponse{
 35515  			Header:         res.Header,
 35516  			HTTPStatusCode: res.StatusCode,
 35517  		},
 35518  	}
 35519  	target := &ret
 35520  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35521  		return nil, err
 35522  	}
 35523  	return ret, nil
 35524  }
 35525  
 35526  type OrganizationsEnvironmentsSecurityActionsDisableCall struct {
 35527  	s                                               *Service
 35528  	name                                            string
 35529  	googlecloudapigeev1disablesecurityactionrequest *GoogleCloudApigeeV1DisableSecurityActionRequest
 35530  	urlParams_                                      gensupport.URLParams
 35531  	ctx_                                            context.Context
 35532  	header_                                         http.Header
 35533  }
 35534  
 35535  // Disable: Disable a SecurityAction. The `state` of the SecurityAction after
 35536  // disabling is `DISABLED`. `DisableSecurityAction` can be called on
 35537  // SecurityActions in the state `ENABLED`; SecurityActions in a different state
 35538  // (including `DISABLED`) return an error.
 35539  //
 35540  //   - name: The name of the SecurityAction to disable. Format:
 35541  //     organizations/{org}/environments/{env}/securityActions/{security_action}.
 35542  func (r *OrganizationsEnvironmentsSecurityActionsService) Disable(name string, googlecloudapigeev1disablesecurityactionrequest *GoogleCloudApigeeV1DisableSecurityActionRequest) *OrganizationsEnvironmentsSecurityActionsDisableCall {
 35543  	c := &OrganizationsEnvironmentsSecurityActionsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35544  	c.name = name
 35545  	c.googlecloudapigeev1disablesecurityactionrequest = googlecloudapigeev1disablesecurityactionrequest
 35546  	return c
 35547  }
 35548  
 35549  // Fields allows partial responses to be retrieved. See
 35550  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35551  // details.
 35552  func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsDisableCall {
 35553  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35554  	return c
 35555  }
 35556  
 35557  // Context sets the context to be used in this call's Do method.
 35558  func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsDisableCall {
 35559  	c.ctx_ = ctx
 35560  	return c
 35561  }
 35562  
 35563  // Header returns a http.Header that can be modified by the caller to add
 35564  // headers to the request.
 35565  func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Header() http.Header {
 35566  	if c.header_ == nil {
 35567  		c.header_ = make(http.Header)
 35568  	}
 35569  	return c.header_
 35570  }
 35571  
 35572  func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) doRequest(alt string) (*http.Response, error) {
 35573  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35574  	var body io.Reader = nil
 35575  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1disablesecurityactionrequest)
 35576  	if err != nil {
 35577  		return nil, err
 35578  	}
 35579  	c.urlParams_.Set("alt", alt)
 35580  	c.urlParams_.Set("prettyPrint", "false")
 35581  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:disable")
 35582  	urls += "?" + c.urlParams_.Encode()
 35583  	req, err := http.NewRequest("POST", urls, body)
 35584  	if err != nil {
 35585  		return nil, err
 35586  	}
 35587  	req.Header = reqHeaders
 35588  	googleapi.Expand(req.URL, map[string]string{
 35589  		"name": c.name,
 35590  	})
 35591  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35592  }
 35593  
 35594  // Do executes the "apigee.organizations.environments.securityActions.disable" call.
 35595  // Any non-2xx status code is an error. Response headers are in either
 35596  // *GoogleCloudApigeeV1SecurityAction.ServerResponse.Header or (if a response
 35597  // was returned at all) in error.(*googleapi.Error).Header. Use
 35598  // googleapi.IsNotModified to check whether the returned error was because
 35599  // http.StatusNotModified was returned.
 35600  func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
 35601  	gensupport.SetOptions(c.urlParams_, opts...)
 35602  	res, err := c.doRequest("json")
 35603  	if res != nil && res.StatusCode == http.StatusNotModified {
 35604  		if res.Body != nil {
 35605  			res.Body.Close()
 35606  		}
 35607  		return nil, gensupport.WrapError(&googleapi.Error{
 35608  			Code:   res.StatusCode,
 35609  			Header: res.Header,
 35610  		})
 35611  	}
 35612  	if err != nil {
 35613  		return nil, err
 35614  	}
 35615  	defer googleapi.CloseBody(res)
 35616  	if err := googleapi.CheckResponse(res); err != nil {
 35617  		return nil, gensupport.WrapError(err)
 35618  	}
 35619  	ret := &GoogleCloudApigeeV1SecurityAction{
 35620  		ServerResponse: googleapi.ServerResponse{
 35621  			Header:         res.Header,
 35622  			HTTPStatusCode: res.StatusCode,
 35623  		},
 35624  	}
 35625  	target := &ret
 35626  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35627  		return nil, err
 35628  	}
 35629  	return ret, nil
 35630  }
 35631  
 35632  type OrganizationsEnvironmentsSecurityActionsEnableCall struct {
 35633  	s                                              *Service
 35634  	name                                           string
 35635  	googlecloudapigeev1enablesecurityactionrequest *GoogleCloudApigeeV1EnableSecurityActionRequest
 35636  	urlParams_                                     gensupport.URLParams
 35637  	ctx_                                           context.Context
 35638  	header_                                        http.Header
 35639  }
 35640  
 35641  // Enable: Enable a SecurityAction. The `state` of the SecurityAction after
 35642  // enabling is `ENABLED`. `EnableSecurityAction` can be called on
 35643  // SecurityActions in the state `DISABLED`; SecurityActions in a different
 35644  // state (including `ENABLED) return an error.
 35645  //
 35646  //   - name: The name of the SecurityAction to enable. Format:
 35647  //     organizations/{org}/environments/{env}/securityActions/{security_action}.
 35648  func (r *OrganizationsEnvironmentsSecurityActionsService) Enable(name string, googlecloudapigeev1enablesecurityactionrequest *GoogleCloudApigeeV1EnableSecurityActionRequest) *OrganizationsEnvironmentsSecurityActionsEnableCall {
 35649  	c := &OrganizationsEnvironmentsSecurityActionsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35650  	c.name = name
 35651  	c.googlecloudapigeev1enablesecurityactionrequest = googlecloudapigeev1enablesecurityactionrequest
 35652  	return c
 35653  }
 35654  
 35655  // Fields allows partial responses to be retrieved. See
 35656  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35657  // details.
 35658  func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsEnableCall {
 35659  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35660  	return c
 35661  }
 35662  
 35663  // Context sets the context to be used in this call's Do method.
 35664  func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsEnableCall {
 35665  	c.ctx_ = ctx
 35666  	return c
 35667  }
 35668  
 35669  // Header returns a http.Header that can be modified by the caller to add
 35670  // headers to the request.
 35671  func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Header() http.Header {
 35672  	if c.header_ == nil {
 35673  		c.header_ = make(http.Header)
 35674  	}
 35675  	return c.header_
 35676  }
 35677  
 35678  func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) doRequest(alt string) (*http.Response, error) {
 35679  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35680  	var body io.Reader = nil
 35681  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1enablesecurityactionrequest)
 35682  	if err != nil {
 35683  		return nil, err
 35684  	}
 35685  	c.urlParams_.Set("alt", alt)
 35686  	c.urlParams_.Set("prettyPrint", "false")
 35687  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:enable")
 35688  	urls += "?" + c.urlParams_.Encode()
 35689  	req, err := http.NewRequest("POST", urls, body)
 35690  	if err != nil {
 35691  		return nil, err
 35692  	}
 35693  	req.Header = reqHeaders
 35694  	googleapi.Expand(req.URL, map[string]string{
 35695  		"name": c.name,
 35696  	})
 35697  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35698  }
 35699  
 35700  // Do executes the "apigee.organizations.environments.securityActions.enable" call.
 35701  // Any non-2xx status code is an error. Response headers are in either
 35702  // *GoogleCloudApigeeV1SecurityAction.ServerResponse.Header or (if a response
 35703  // was returned at all) in error.(*googleapi.Error).Header. Use
 35704  // googleapi.IsNotModified to check whether the returned error was because
 35705  // http.StatusNotModified was returned.
 35706  func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
 35707  	gensupport.SetOptions(c.urlParams_, opts...)
 35708  	res, err := c.doRequest("json")
 35709  	if res != nil && res.StatusCode == http.StatusNotModified {
 35710  		if res.Body != nil {
 35711  			res.Body.Close()
 35712  		}
 35713  		return nil, gensupport.WrapError(&googleapi.Error{
 35714  			Code:   res.StatusCode,
 35715  			Header: res.Header,
 35716  		})
 35717  	}
 35718  	if err != nil {
 35719  		return nil, err
 35720  	}
 35721  	defer googleapi.CloseBody(res)
 35722  	if err := googleapi.CheckResponse(res); err != nil {
 35723  		return nil, gensupport.WrapError(err)
 35724  	}
 35725  	ret := &GoogleCloudApigeeV1SecurityAction{
 35726  		ServerResponse: googleapi.ServerResponse{
 35727  			Header:         res.Header,
 35728  			HTTPStatusCode: res.StatusCode,
 35729  		},
 35730  	}
 35731  	target := &ret
 35732  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35733  		return nil, err
 35734  	}
 35735  	return ret, nil
 35736  }
 35737  
 35738  type OrganizationsEnvironmentsSecurityActionsGetCall struct {
 35739  	s            *Service
 35740  	name         string
 35741  	urlParams_   gensupport.URLParams
 35742  	ifNoneMatch_ string
 35743  	ctx_         context.Context
 35744  	header_      http.Header
 35745  }
 35746  
 35747  // Get: Get a SecurityAction by name.
 35748  //
 35749  //   - name: The fully qualified name of the SecurityAction to retrieve. Format:
 35750  //     organizations/{org}/environments/{env}/securityActions/{security_action}.
 35751  func (r *OrganizationsEnvironmentsSecurityActionsService) Get(name string) *OrganizationsEnvironmentsSecurityActionsGetCall {
 35752  	c := &OrganizationsEnvironmentsSecurityActionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35753  	c.name = name
 35754  	return c
 35755  }
 35756  
 35757  // Fields allows partial responses to be retrieved. See
 35758  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35759  // details.
 35760  func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsGetCall {
 35761  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35762  	return c
 35763  }
 35764  
 35765  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35766  // object's ETag matches the given value. This is useful for getting updates
 35767  // only after the object has changed since the last request.
 35768  func (c *OrganizationsEnvironmentsSecurityActionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityActionsGetCall {
 35769  	c.ifNoneMatch_ = entityTag
 35770  	return c
 35771  }
 35772  
 35773  // Context sets the context to be used in this call's Do method.
 35774  func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsGetCall {
 35775  	c.ctx_ = ctx
 35776  	return c
 35777  }
 35778  
 35779  // Header returns a http.Header that can be modified by the caller to add
 35780  // headers to the request.
 35781  func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Header() http.Header {
 35782  	if c.header_ == nil {
 35783  		c.header_ = make(http.Header)
 35784  	}
 35785  	return c.header_
 35786  }
 35787  
 35788  func (c *OrganizationsEnvironmentsSecurityActionsGetCall) doRequest(alt string) (*http.Response, error) {
 35789  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35790  	if c.ifNoneMatch_ != "" {
 35791  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35792  	}
 35793  	var body io.Reader = nil
 35794  	c.urlParams_.Set("alt", alt)
 35795  	c.urlParams_.Set("prettyPrint", "false")
 35796  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 35797  	urls += "?" + c.urlParams_.Encode()
 35798  	req, err := http.NewRequest("GET", urls, body)
 35799  	if err != nil {
 35800  		return nil, err
 35801  	}
 35802  	req.Header = reqHeaders
 35803  	googleapi.Expand(req.URL, map[string]string{
 35804  		"name": c.name,
 35805  	})
 35806  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35807  }
 35808  
 35809  // Do executes the "apigee.organizations.environments.securityActions.get" call.
 35810  // Any non-2xx status code is an error. Response headers are in either
 35811  // *GoogleCloudApigeeV1SecurityAction.ServerResponse.Header or (if a response
 35812  // was returned at all) in error.(*googleapi.Error).Header. Use
 35813  // googleapi.IsNotModified to check whether the returned error was because
 35814  // http.StatusNotModified was returned.
 35815  func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
 35816  	gensupport.SetOptions(c.urlParams_, opts...)
 35817  	res, err := c.doRequest("json")
 35818  	if res != nil && res.StatusCode == http.StatusNotModified {
 35819  		if res.Body != nil {
 35820  			res.Body.Close()
 35821  		}
 35822  		return nil, gensupport.WrapError(&googleapi.Error{
 35823  			Code:   res.StatusCode,
 35824  			Header: res.Header,
 35825  		})
 35826  	}
 35827  	if err != nil {
 35828  		return nil, err
 35829  	}
 35830  	defer googleapi.CloseBody(res)
 35831  	if err := googleapi.CheckResponse(res); err != nil {
 35832  		return nil, gensupport.WrapError(err)
 35833  	}
 35834  	ret := &GoogleCloudApigeeV1SecurityAction{
 35835  		ServerResponse: googleapi.ServerResponse{
 35836  			Header:         res.Header,
 35837  			HTTPStatusCode: res.StatusCode,
 35838  		},
 35839  	}
 35840  	target := &ret
 35841  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35842  		return nil, err
 35843  	}
 35844  	return ret, nil
 35845  }
 35846  
 35847  type OrganizationsEnvironmentsSecurityActionsListCall struct {
 35848  	s            *Service
 35849  	parent       string
 35850  	urlParams_   gensupport.URLParams
 35851  	ifNoneMatch_ string
 35852  	ctx_         context.Context
 35853  	header_      http.Header
 35854  }
 35855  
 35856  // List: Returns a list of SecurityActions. This returns both enabled and
 35857  // disabled actions.
 35858  //
 35859  //   - parent: The parent, which owns this collection of SecurityActions. Format:
 35860  //     organizations/{org}/environments/{env}.
 35861  func (r *OrganizationsEnvironmentsSecurityActionsService) List(parent string) *OrganizationsEnvironmentsSecurityActionsListCall {
 35862  	c := &OrganizationsEnvironmentsSecurityActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35863  	c.parent = parent
 35864  	return c
 35865  }
 35866  
 35867  // Filter sets the optional parameter "filter": The filter expression to filter
 35868  // List results. https://google.aip.dev/160. Allows for filtering over: state
 35869  // and api_proxies. E.g.: state = ACTIVE AND apiProxies:foo. Filtering by
 35870  // action is not supported https://github.com/aip-dev/google.aip.dev/issues/624
 35871  func (c *OrganizationsEnvironmentsSecurityActionsListCall) Filter(filter string) *OrganizationsEnvironmentsSecurityActionsListCall {
 35872  	c.urlParams_.Set("filter", filter)
 35873  	return c
 35874  }
 35875  
 35876  // PageSize sets the optional parameter "pageSize": The maximum number of
 35877  // SecurityActions to return. If unspecified, at most 50 SecurityActions will
 35878  // be returned. The maximum value is 1000; values above 1000 will be coerced to
 35879  // 1000.
 35880  func (c *OrganizationsEnvironmentsSecurityActionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityActionsListCall {
 35881  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 35882  	return c
 35883  }
 35884  
 35885  // PageToken sets the optional parameter "pageToken": A page token, received
 35886  // from a previous `ListSecurityActions` call. Provide this to retrieve the
 35887  // subsequent page. When paginating, all other parameters provided to
 35888  // `ListSecurityActions` must match the call that provided the page token.
 35889  func (c *OrganizationsEnvironmentsSecurityActionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityActionsListCall {
 35890  	c.urlParams_.Set("pageToken", pageToken)
 35891  	return c
 35892  }
 35893  
 35894  // Fields allows partial responses to be retrieved. See
 35895  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35896  // details.
 35897  func (c *OrganizationsEnvironmentsSecurityActionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsListCall {
 35898  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35899  	return c
 35900  }
 35901  
 35902  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35903  // object's ETag matches the given value. This is useful for getting updates
 35904  // only after the object has changed since the last request.
 35905  func (c *OrganizationsEnvironmentsSecurityActionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityActionsListCall {
 35906  	c.ifNoneMatch_ = entityTag
 35907  	return c
 35908  }
 35909  
 35910  // Context sets the context to be used in this call's Do method.
 35911  func (c *OrganizationsEnvironmentsSecurityActionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsListCall {
 35912  	c.ctx_ = ctx
 35913  	return c
 35914  }
 35915  
 35916  // Header returns a http.Header that can be modified by the caller to add
 35917  // headers to the request.
 35918  func (c *OrganizationsEnvironmentsSecurityActionsListCall) Header() http.Header {
 35919  	if c.header_ == nil {
 35920  		c.header_ = make(http.Header)
 35921  	}
 35922  	return c.header_
 35923  }
 35924  
 35925  func (c *OrganizationsEnvironmentsSecurityActionsListCall) doRequest(alt string) (*http.Response, error) {
 35926  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35927  	if c.ifNoneMatch_ != "" {
 35928  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35929  	}
 35930  	var body io.Reader = nil
 35931  	c.urlParams_.Set("alt", alt)
 35932  	c.urlParams_.Set("prettyPrint", "false")
 35933  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityActions")
 35934  	urls += "?" + c.urlParams_.Encode()
 35935  	req, err := http.NewRequest("GET", urls, body)
 35936  	if err != nil {
 35937  		return nil, err
 35938  	}
 35939  	req.Header = reqHeaders
 35940  	googleapi.Expand(req.URL, map[string]string{
 35941  		"parent": c.parent,
 35942  	})
 35943  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35944  }
 35945  
 35946  // Do executes the "apigee.organizations.environments.securityActions.list" call.
 35947  // Any non-2xx status code is an error. Response headers are in either
 35948  // *GoogleCloudApigeeV1ListSecurityActionsResponse.ServerResponse.Header or (if
 35949  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 35950  // googleapi.IsNotModified to check whether the returned error was because
 35951  // http.StatusNotModified was returned.
 35952  func (c *OrganizationsEnvironmentsSecurityActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityActionsResponse, error) {
 35953  	gensupport.SetOptions(c.urlParams_, opts...)
 35954  	res, err := c.doRequest("json")
 35955  	if res != nil && res.StatusCode == http.StatusNotModified {
 35956  		if res.Body != nil {
 35957  			res.Body.Close()
 35958  		}
 35959  		return nil, gensupport.WrapError(&googleapi.Error{
 35960  			Code:   res.StatusCode,
 35961  			Header: res.Header,
 35962  		})
 35963  	}
 35964  	if err != nil {
 35965  		return nil, err
 35966  	}
 35967  	defer googleapi.CloseBody(res)
 35968  	if err := googleapi.CheckResponse(res); err != nil {
 35969  		return nil, gensupport.WrapError(err)
 35970  	}
 35971  	ret := &GoogleCloudApigeeV1ListSecurityActionsResponse{
 35972  		ServerResponse: googleapi.ServerResponse{
 35973  			Header:         res.Header,
 35974  			HTTPStatusCode: res.StatusCode,
 35975  		},
 35976  	}
 35977  	target := &ret
 35978  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35979  		return nil, err
 35980  	}
 35981  	return ret, nil
 35982  }
 35983  
 35984  // Pages invokes f for each page of results.
 35985  // A non-nil error returned from f will halt the iteration.
 35986  // The provided context supersedes any context provided to the Context method.
 35987  func (c *OrganizationsEnvironmentsSecurityActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityActionsResponse) error) error {
 35988  	c.ctx_ = ctx
 35989  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 35990  	for {
 35991  		x, err := c.Do()
 35992  		if err != nil {
 35993  			return err
 35994  		}
 35995  		if err := f(x); err != nil {
 35996  			return err
 35997  		}
 35998  		if x.NextPageToken == "" {
 35999  			return nil
 36000  		}
 36001  		c.PageToken(x.NextPageToken)
 36002  	}
 36003  }
 36004  
 36005  type OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall struct {
 36006  	s                                                      *Service
 36007  	parent                                                 string
 36008  	googlecloudapigeev1batchupdatesecurityincidentsrequest *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest
 36009  	urlParams_                                             gensupport.URLParams
 36010  	ctx_                                                   context.Context
 36011  	header_                                                http.Header
 36012  }
 36013  
 36014  // BatchUpdate: BatchUpdateSecurityIncident updates multiple existing security
 36015  // incidents.
 36016  //
 36017  //   - parent: Optional. The parent resource shared by all security incidents
 36018  //     being updated. If this is set, the parent field in the
 36019  //     UpdateSecurityIncidentRequest messages must either be empty or match this
 36020  //     field.
 36021  func (r *OrganizationsEnvironmentsSecurityIncidentsService) BatchUpdate(parent string, googlecloudapigeev1batchupdatesecurityincidentsrequest *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest) *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall {
 36022  	c := &OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36023  	c.parent = parent
 36024  	c.googlecloudapigeev1batchupdatesecurityincidentsrequest = googlecloudapigeev1batchupdatesecurityincidentsrequest
 36025  	return c
 36026  }
 36027  
 36028  // Fields allows partial responses to be retrieved. See
 36029  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36030  // details.
 36031  func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall {
 36032  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36033  	return c
 36034  }
 36035  
 36036  // Context sets the context to be used in this call's Do method.
 36037  func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall {
 36038  	c.ctx_ = ctx
 36039  	return c
 36040  }
 36041  
 36042  // Header returns a http.Header that can be modified by the caller to add
 36043  // headers to the request.
 36044  func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Header() http.Header {
 36045  	if c.header_ == nil {
 36046  		c.header_ = make(http.Header)
 36047  	}
 36048  	return c.header_
 36049  }
 36050  
 36051  func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 36052  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36053  	var body io.Reader = nil
 36054  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1batchupdatesecurityincidentsrequest)
 36055  	if err != nil {
 36056  		return nil, err
 36057  	}
 36058  	c.urlParams_.Set("alt", alt)
 36059  	c.urlParams_.Set("prettyPrint", "false")
 36060  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityIncidents:batchUpdate")
 36061  	urls += "?" + c.urlParams_.Encode()
 36062  	req, err := http.NewRequest("POST", urls, body)
 36063  	if err != nil {
 36064  		return nil, err
 36065  	}
 36066  	req.Header = reqHeaders
 36067  	googleapi.Expand(req.URL, map[string]string{
 36068  		"parent": c.parent,
 36069  	})
 36070  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36071  }
 36072  
 36073  // Do executes the "apigee.organizations.environments.securityIncidents.batchUpdate" call.
 36074  // Any non-2xx status code is an error. Response headers are in either
 36075  // *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse.ServerResponse.Heade
 36076  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 36077  // Use googleapi.IsNotModified to check whether the returned error was because
 36078  // http.StatusNotModified was returned.
 36079  func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse, error) {
 36080  	gensupport.SetOptions(c.urlParams_, opts...)
 36081  	res, err := c.doRequest("json")
 36082  	if res != nil && res.StatusCode == http.StatusNotModified {
 36083  		if res.Body != nil {
 36084  			res.Body.Close()
 36085  		}
 36086  		return nil, gensupport.WrapError(&googleapi.Error{
 36087  			Code:   res.StatusCode,
 36088  			Header: res.Header,
 36089  		})
 36090  	}
 36091  	if err != nil {
 36092  		return nil, err
 36093  	}
 36094  	defer googleapi.CloseBody(res)
 36095  	if err := googleapi.CheckResponse(res); err != nil {
 36096  		return nil, gensupport.WrapError(err)
 36097  	}
 36098  	ret := &GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse{
 36099  		ServerResponse: googleapi.ServerResponse{
 36100  			Header:         res.Header,
 36101  			HTTPStatusCode: res.StatusCode,
 36102  		},
 36103  	}
 36104  	target := &ret
 36105  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36106  		return nil, err
 36107  	}
 36108  	return ret, nil
 36109  }
 36110  
 36111  type OrganizationsEnvironmentsSecurityIncidentsGetCall struct {
 36112  	s            *Service
 36113  	name         string
 36114  	urlParams_   gensupport.URLParams
 36115  	ifNoneMatch_ string
 36116  	ctx_         context.Context
 36117  	header_      http.Header
 36118  }
 36119  
 36120  // Get: GetSecurityIncident gets the specified security incident. Returns
 36121  // NOT_FOUND if security incident is not present for the specified organization
 36122  // and environment.
 36123  //
 36124  //   - name: Security incident in the following format:
 36125  //     `organizations/{org}/environments/{environment}/securityIncidents/{incident
 36126  //     }'. Example:
 36127  //     organizations/testOrg/environments/testEnv/securityIncidents/1234-4567-890-
 36128  //     111.
 36129  func (r *OrganizationsEnvironmentsSecurityIncidentsService) Get(name string) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
 36130  	c := &OrganizationsEnvironmentsSecurityIncidentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36131  	c.name = name
 36132  	return c
 36133  }
 36134  
 36135  // Fields allows partial responses to be retrieved. See
 36136  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36137  // details.
 36138  func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
 36139  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36140  	return c
 36141  }
 36142  
 36143  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36144  // object's ETag matches the given value. This is useful for getting updates
 36145  // only after the object has changed since the last request.
 36146  func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
 36147  	c.ifNoneMatch_ = entityTag
 36148  	return c
 36149  }
 36150  
 36151  // Context sets the context to be used in this call's Do method.
 36152  func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
 36153  	c.ctx_ = ctx
 36154  	return c
 36155  }
 36156  
 36157  // Header returns a http.Header that can be modified by the caller to add
 36158  // headers to the request.
 36159  func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Header() http.Header {
 36160  	if c.header_ == nil {
 36161  		c.header_ = make(http.Header)
 36162  	}
 36163  	return c.header_
 36164  }
 36165  
 36166  func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) doRequest(alt string) (*http.Response, error) {
 36167  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36168  	if c.ifNoneMatch_ != "" {
 36169  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36170  	}
 36171  	var body io.Reader = nil
 36172  	c.urlParams_.Set("alt", alt)
 36173  	c.urlParams_.Set("prettyPrint", "false")
 36174  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 36175  	urls += "?" + c.urlParams_.Encode()
 36176  	req, err := http.NewRequest("GET", urls, body)
 36177  	if err != nil {
 36178  		return nil, err
 36179  	}
 36180  	req.Header = reqHeaders
 36181  	googleapi.Expand(req.URL, map[string]string{
 36182  		"name": c.name,
 36183  	})
 36184  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36185  }
 36186  
 36187  // Do executes the "apigee.organizations.environments.securityIncidents.get" call.
 36188  // Any non-2xx status code is an error. Response headers are in either
 36189  // *GoogleCloudApigeeV1SecurityIncident.ServerResponse.Header or (if a response
 36190  // was returned at all) in error.(*googleapi.Error).Header. Use
 36191  // googleapi.IsNotModified to check whether the returned error was because
 36192  // http.StatusNotModified was returned.
 36193  func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityIncident, error) {
 36194  	gensupport.SetOptions(c.urlParams_, opts...)
 36195  	res, err := c.doRequest("json")
 36196  	if res != nil && res.StatusCode == http.StatusNotModified {
 36197  		if res.Body != nil {
 36198  			res.Body.Close()
 36199  		}
 36200  		return nil, gensupport.WrapError(&googleapi.Error{
 36201  			Code:   res.StatusCode,
 36202  			Header: res.Header,
 36203  		})
 36204  	}
 36205  	if err != nil {
 36206  		return nil, err
 36207  	}
 36208  	defer googleapi.CloseBody(res)
 36209  	if err := googleapi.CheckResponse(res); err != nil {
 36210  		return nil, gensupport.WrapError(err)
 36211  	}
 36212  	ret := &GoogleCloudApigeeV1SecurityIncident{
 36213  		ServerResponse: googleapi.ServerResponse{
 36214  			Header:         res.Header,
 36215  			HTTPStatusCode: res.StatusCode,
 36216  		},
 36217  	}
 36218  	target := &ret
 36219  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36220  		return nil, err
 36221  	}
 36222  	return ret, nil
 36223  }
 36224  
 36225  type OrganizationsEnvironmentsSecurityIncidentsListCall struct {
 36226  	s            *Service
 36227  	parent       string
 36228  	urlParams_   gensupport.URLParams
 36229  	ifNoneMatch_ string
 36230  	ctx_         context.Context
 36231  	header_      http.Header
 36232  }
 36233  
 36234  // List: ListSecurityIncidents lists all the security incident associated with
 36235  // the environment.
 36236  //
 36237  //   - parent: For a specific organization, list of all the security incidents.
 36238  //     Format: `organizations/{org}/environments/{environment}`.
 36239  func (r *OrganizationsEnvironmentsSecurityIncidentsService) List(parent string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36240  	c := &OrganizationsEnvironmentsSecurityIncidentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36241  	c.parent = parent
 36242  	return c
 36243  }
 36244  
 36245  // Filter sets the optional parameter "filter": The filter expression to be
 36246  // used to get the list of security incidents, where filtering can be done on
 36247  // API Proxies. Example: filter = "api_proxy = /", "first_detected_time >",
 36248  // "last_detected_time <"
 36249  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Filter(filter string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36250  	c.urlParams_.Set("filter", filter)
 36251  	return c
 36252  }
 36253  
 36254  // PageSize sets the optional parameter "pageSize": The maximum number of
 36255  // incidents to return. The service may return fewer than this value. If
 36256  // unspecified, at most 50 incidents will be returned.
 36257  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36258  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 36259  	return c
 36260  }
 36261  
 36262  // PageToken sets the optional parameter "pageToken": A page token, received
 36263  // from a previous `ListSecurityIncident` call. Provide this to retrieve the
 36264  // subsequent page.
 36265  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36266  	c.urlParams_.Set("pageToken", pageToken)
 36267  	return c
 36268  }
 36269  
 36270  // Fields allows partial responses to be retrieved. See
 36271  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36272  // details.
 36273  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36274  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36275  	return c
 36276  }
 36277  
 36278  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36279  // object's ETag matches the given value. This is useful for getting updates
 36280  // only after the object has changed since the last request.
 36281  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36282  	c.ifNoneMatch_ = entityTag
 36283  	return c
 36284  }
 36285  
 36286  // Context sets the context to be used in this call's Do method.
 36287  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsListCall {
 36288  	c.ctx_ = ctx
 36289  	return c
 36290  }
 36291  
 36292  // Header returns a http.Header that can be modified by the caller to add
 36293  // headers to the request.
 36294  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Header() http.Header {
 36295  	if c.header_ == nil {
 36296  		c.header_ = make(http.Header)
 36297  	}
 36298  	return c.header_
 36299  }
 36300  
 36301  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) doRequest(alt string) (*http.Response, error) {
 36302  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36303  	if c.ifNoneMatch_ != "" {
 36304  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36305  	}
 36306  	var body io.Reader = nil
 36307  	c.urlParams_.Set("alt", alt)
 36308  	c.urlParams_.Set("prettyPrint", "false")
 36309  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityIncidents")
 36310  	urls += "?" + c.urlParams_.Encode()
 36311  	req, err := http.NewRequest("GET", urls, body)
 36312  	if err != nil {
 36313  		return nil, err
 36314  	}
 36315  	req.Header = reqHeaders
 36316  	googleapi.Expand(req.URL, map[string]string{
 36317  		"parent": c.parent,
 36318  	})
 36319  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36320  }
 36321  
 36322  // Do executes the "apigee.organizations.environments.securityIncidents.list" call.
 36323  // Any non-2xx status code is an error. Response headers are in either
 36324  // *GoogleCloudApigeeV1ListSecurityIncidentsResponse.ServerResponse.Header or
 36325  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 36326  // googleapi.IsNotModified to check whether the returned error was because
 36327  // http.StatusNotModified was returned.
 36328  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityIncidentsResponse, error) {
 36329  	gensupport.SetOptions(c.urlParams_, opts...)
 36330  	res, err := c.doRequest("json")
 36331  	if res != nil && res.StatusCode == http.StatusNotModified {
 36332  		if res.Body != nil {
 36333  			res.Body.Close()
 36334  		}
 36335  		return nil, gensupport.WrapError(&googleapi.Error{
 36336  			Code:   res.StatusCode,
 36337  			Header: res.Header,
 36338  		})
 36339  	}
 36340  	if err != nil {
 36341  		return nil, err
 36342  	}
 36343  	defer googleapi.CloseBody(res)
 36344  	if err := googleapi.CheckResponse(res); err != nil {
 36345  		return nil, gensupport.WrapError(err)
 36346  	}
 36347  	ret := &GoogleCloudApigeeV1ListSecurityIncidentsResponse{
 36348  		ServerResponse: googleapi.ServerResponse{
 36349  			Header:         res.Header,
 36350  			HTTPStatusCode: res.StatusCode,
 36351  		},
 36352  	}
 36353  	target := &ret
 36354  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36355  		return nil, err
 36356  	}
 36357  	return ret, nil
 36358  }
 36359  
 36360  // Pages invokes f for each page of results.
 36361  // A non-nil error returned from f will halt the iteration.
 36362  // The provided context supersedes any context provided to the Context method.
 36363  func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityIncidentsResponse) error) error {
 36364  	c.ctx_ = ctx
 36365  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 36366  	for {
 36367  		x, err := c.Do()
 36368  		if err != nil {
 36369  			return err
 36370  		}
 36371  		if err := f(x); err != nil {
 36372  			return err
 36373  		}
 36374  		if x.NextPageToken == "" {
 36375  			return nil
 36376  		}
 36377  		c.PageToken(x.NextPageToken)
 36378  	}
 36379  }
 36380  
 36381  type OrganizationsEnvironmentsSecurityIncidentsPatchCall struct {
 36382  	s                                   *Service
 36383  	name                                string
 36384  	googlecloudapigeev1securityincident *GoogleCloudApigeeV1SecurityIncident
 36385  	urlParams_                          gensupport.URLParams
 36386  	ctx_                                context.Context
 36387  	header_                             http.Header
 36388  }
 36389  
 36390  // Patch: UpdateSecurityIncidents updates an existing security incident.
 36391  //
 36392  //   - name: Immutable. Name of the security incident resource. Format:
 36393  //     organizations/{org}/environments/{environment}/securityIncidents/{incident}
 36394  //     Example:
 36395  //     organizations/apigee-org/environments/dev/securityIncidents/1234-5678-9101-
 36396  //     1111.
 36397  func (r *OrganizationsEnvironmentsSecurityIncidentsService) Patch(name string, googlecloudapigeev1securityincident *GoogleCloudApigeeV1SecurityIncident) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
 36398  	c := &OrganizationsEnvironmentsSecurityIncidentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36399  	c.name = name
 36400  	c.googlecloudapigeev1securityincident = googlecloudapigeev1securityincident
 36401  	return c
 36402  }
 36403  
 36404  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 36405  // fields to update. Allowed fields are:
 36406  // LINT.IfChange(allowed_update_fields_comment) - observability
 36407  // LINT.ThenChange()
 36408  func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
 36409  	c.urlParams_.Set("updateMask", updateMask)
 36410  	return c
 36411  }
 36412  
 36413  // Fields allows partial responses to be retrieved. See
 36414  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36415  // details.
 36416  func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
 36417  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36418  	return c
 36419  }
 36420  
 36421  // Context sets the context to be used in this call's Do method.
 36422  func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
 36423  	c.ctx_ = ctx
 36424  	return c
 36425  }
 36426  
 36427  // Header returns a http.Header that can be modified by the caller to add
 36428  // headers to the request.
 36429  func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Header() http.Header {
 36430  	if c.header_ == nil {
 36431  		c.header_ = make(http.Header)
 36432  	}
 36433  	return c.header_
 36434  }
 36435  
 36436  func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) doRequest(alt string) (*http.Response, error) {
 36437  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36438  	var body io.Reader = nil
 36439  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityincident)
 36440  	if err != nil {
 36441  		return nil, err
 36442  	}
 36443  	c.urlParams_.Set("alt", alt)
 36444  	c.urlParams_.Set("prettyPrint", "false")
 36445  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 36446  	urls += "?" + c.urlParams_.Encode()
 36447  	req, err := http.NewRequest("PATCH", urls, body)
 36448  	if err != nil {
 36449  		return nil, err
 36450  	}
 36451  	req.Header = reqHeaders
 36452  	googleapi.Expand(req.URL, map[string]string{
 36453  		"name": c.name,
 36454  	})
 36455  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36456  }
 36457  
 36458  // Do executes the "apigee.organizations.environments.securityIncidents.patch" call.
 36459  // Any non-2xx status code is an error. Response headers are in either
 36460  // *GoogleCloudApigeeV1SecurityIncident.ServerResponse.Header or (if a response
 36461  // was returned at all) in error.(*googleapi.Error).Header. Use
 36462  // googleapi.IsNotModified to check whether the returned error was because
 36463  // http.StatusNotModified was returned.
 36464  func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityIncident, error) {
 36465  	gensupport.SetOptions(c.urlParams_, opts...)
 36466  	res, err := c.doRequest("json")
 36467  	if res != nil && res.StatusCode == http.StatusNotModified {
 36468  		if res.Body != nil {
 36469  			res.Body.Close()
 36470  		}
 36471  		return nil, gensupport.WrapError(&googleapi.Error{
 36472  			Code:   res.StatusCode,
 36473  			Header: res.Header,
 36474  		})
 36475  	}
 36476  	if err != nil {
 36477  		return nil, err
 36478  	}
 36479  	defer googleapi.CloseBody(res)
 36480  	if err := googleapi.CheckResponse(res); err != nil {
 36481  		return nil, gensupport.WrapError(err)
 36482  	}
 36483  	ret := &GoogleCloudApigeeV1SecurityIncident{
 36484  		ServerResponse: googleapi.ServerResponse{
 36485  			Header:         res.Header,
 36486  			HTTPStatusCode: res.StatusCode,
 36487  		},
 36488  	}
 36489  	target := &ret
 36490  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36491  		return nil, err
 36492  	}
 36493  	return ret, nil
 36494  }
 36495  
 36496  type OrganizationsEnvironmentsSecurityReportsCreateCall struct {
 36497  	s                                      *Service
 36498  	parent                                 string
 36499  	googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery
 36500  	urlParams_                             gensupport.URLParams
 36501  	ctx_                                   context.Context
 36502  	header_                                http.Header
 36503  }
 36504  
 36505  // Create: Submit a report request to be processed in the background. If the
 36506  // submission succeeds, the API returns a 200 status and an ID that refer to
 36507  // the report request. In addition to the HTTP status 200, the `state` of
 36508  // "enqueued" means that the request succeeded.
 36509  //
 36510  //   - parent: The parent resource name. Must be of the form
 36511  //     `organizations/{org}/environments/{env}`.
 36512  func (r *OrganizationsEnvironmentsSecurityReportsService) Create(parent string, googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery) *OrganizationsEnvironmentsSecurityReportsCreateCall {
 36513  	c := &OrganizationsEnvironmentsSecurityReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36514  	c.parent = parent
 36515  	c.googlecloudapigeev1securityreportquery = googlecloudapigeev1securityreportquery
 36516  	return c
 36517  }
 36518  
 36519  // Fields allows partial responses to be retrieved. See
 36520  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36521  // details.
 36522  func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsCreateCall {
 36523  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36524  	return c
 36525  }
 36526  
 36527  // Context sets the context to be used in this call's Do method.
 36528  func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsCreateCall {
 36529  	c.ctx_ = ctx
 36530  	return c
 36531  }
 36532  
 36533  // Header returns a http.Header that can be modified by the caller to add
 36534  // headers to the request.
 36535  func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Header() http.Header {
 36536  	if c.header_ == nil {
 36537  		c.header_ = make(http.Header)
 36538  	}
 36539  	return c.header_
 36540  }
 36541  
 36542  func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) doRequest(alt string) (*http.Response, error) {
 36543  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36544  	var body io.Reader = nil
 36545  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityreportquery)
 36546  	if err != nil {
 36547  		return nil, err
 36548  	}
 36549  	c.urlParams_.Set("alt", alt)
 36550  	c.urlParams_.Set("prettyPrint", "false")
 36551  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityReports")
 36552  	urls += "?" + c.urlParams_.Encode()
 36553  	req, err := http.NewRequest("POST", urls, body)
 36554  	if err != nil {
 36555  		return nil, err
 36556  	}
 36557  	req.Header = reqHeaders
 36558  	googleapi.Expand(req.URL, map[string]string{
 36559  		"parent": c.parent,
 36560  	})
 36561  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36562  }
 36563  
 36564  // Do executes the "apigee.organizations.environments.securityReports.create" call.
 36565  // Any non-2xx status code is an error. Response headers are in either
 36566  // *GoogleCloudApigeeV1SecurityReport.ServerResponse.Header or (if a response
 36567  // was returned at all) in error.(*googleapi.Error).Header. Use
 36568  // googleapi.IsNotModified to check whether the returned error was because
 36569  // http.StatusNotModified was returned.
 36570  func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
 36571  	gensupport.SetOptions(c.urlParams_, opts...)
 36572  	res, err := c.doRequest("json")
 36573  	if res != nil && res.StatusCode == http.StatusNotModified {
 36574  		if res.Body != nil {
 36575  			res.Body.Close()
 36576  		}
 36577  		return nil, gensupport.WrapError(&googleapi.Error{
 36578  			Code:   res.StatusCode,
 36579  			Header: res.Header,
 36580  		})
 36581  	}
 36582  	if err != nil {
 36583  		return nil, err
 36584  	}
 36585  	defer googleapi.CloseBody(res)
 36586  	if err := googleapi.CheckResponse(res); err != nil {
 36587  		return nil, gensupport.WrapError(err)
 36588  	}
 36589  	ret := &GoogleCloudApigeeV1SecurityReport{
 36590  		ServerResponse: googleapi.ServerResponse{
 36591  			Header:         res.Header,
 36592  			HTTPStatusCode: res.StatusCode,
 36593  		},
 36594  	}
 36595  	target := &ret
 36596  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36597  		return nil, err
 36598  	}
 36599  	return ret, nil
 36600  }
 36601  
 36602  type OrganizationsEnvironmentsSecurityReportsGetCall struct {
 36603  	s            *Service
 36604  	name         string
 36605  	urlParams_   gensupport.URLParams
 36606  	ifNoneMatch_ string
 36607  	ctx_         context.Context
 36608  	header_      http.Header
 36609  }
 36610  
 36611  // Get: Get security report status If the query is still in progress, the
 36612  // `state` is set to "running" After the query has completed successfully,
 36613  // `state` is set to "completed"
 36614  //
 36615  //   - name: Name of the security report to get. Must be of the form
 36616  //     `organizations/{org}/environments/{env}/securityReports/{reportId}`.
 36617  func (r *OrganizationsEnvironmentsSecurityReportsService) Get(name string) *OrganizationsEnvironmentsSecurityReportsGetCall {
 36618  	c := &OrganizationsEnvironmentsSecurityReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36619  	c.name = name
 36620  	return c
 36621  }
 36622  
 36623  // Fields allows partial responses to be retrieved. See
 36624  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36625  // details.
 36626  func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsGetCall {
 36627  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36628  	return c
 36629  }
 36630  
 36631  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36632  // object's ETag matches the given value. This is useful for getting updates
 36633  // only after the object has changed since the last request.
 36634  func (c *OrganizationsEnvironmentsSecurityReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsGetCall {
 36635  	c.ifNoneMatch_ = entityTag
 36636  	return c
 36637  }
 36638  
 36639  // Context sets the context to be used in this call's Do method.
 36640  func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsGetCall {
 36641  	c.ctx_ = ctx
 36642  	return c
 36643  }
 36644  
 36645  // Header returns a http.Header that can be modified by the caller to add
 36646  // headers to the request.
 36647  func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Header() http.Header {
 36648  	if c.header_ == nil {
 36649  		c.header_ = make(http.Header)
 36650  	}
 36651  	return c.header_
 36652  }
 36653  
 36654  func (c *OrganizationsEnvironmentsSecurityReportsGetCall) doRequest(alt string) (*http.Response, error) {
 36655  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36656  	if c.ifNoneMatch_ != "" {
 36657  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36658  	}
 36659  	var body io.Reader = nil
 36660  	c.urlParams_.Set("alt", alt)
 36661  	c.urlParams_.Set("prettyPrint", "false")
 36662  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 36663  	urls += "?" + c.urlParams_.Encode()
 36664  	req, err := http.NewRequest("GET", urls, body)
 36665  	if err != nil {
 36666  		return nil, err
 36667  	}
 36668  	req.Header = reqHeaders
 36669  	googleapi.Expand(req.URL, map[string]string{
 36670  		"name": c.name,
 36671  	})
 36672  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36673  }
 36674  
 36675  // Do executes the "apigee.organizations.environments.securityReports.get" call.
 36676  // Any non-2xx status code is an error. Response headers are in either
 36677  // *GoogleCloudApigeeV1SecurityReport.ServerResponse.Header or (if a response
 36678  // was returned at all) in error.(*googleapi.Error).Header. Use
 36679  // googleapi.IsNotModified to check whether the returned error was because
 36680  // http.StatusNotModified was returned.
 36681  func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
 36682  	gensupport.SetOptions(c.urlParams_, opts...)
 36683  	res, err := c.doRequest("json")
 36684  	if res != nil && res.StatusCode == http.StatusNotModified {
 36685  		if res.Body != nil {
 36686  			res.Body.Close()
 36687  		}
 36688  		return nil, gensupport.WrapError(&googleapi.Error{
 36689  			Code:   res.StatusCode,
 36690  			Header: res.Header,
 36691  		})
 36692  	}
 36693  	if err != nil {
 36694  		return nil, err
 36695  	}
 36696  	defer googleapi.CloseBody(res)
 36697  	if err := googleapi.CheckResponse(res); err != nil {
 36698  		return nil, gensupport.WrapError(err)
 36699  	}
 36700  	ret := &GoogleCloudApigeeV1SecurityReport{
 36701  		ServerResponse: googleapi.ServerResponse{
 36702  			Header:         res.Header,
 36703  			HTTPStatusCode: res.StatusCode,
 36704  		},
 36705  	}
 36706  	target := &ret
 36707  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36708  		return nil, err
 36709  	}
 36710  	return ret, nil
 36711  }
 36712  
 36713  type OrganizationsEnvironmentsSecurityReportsGetResultCall struct {
 36714  	s            *Service
 36715  	name         string
 36716  	urlParams_   gensupport.URLParams
 36717  	ifNoneMatch_ string
 36718  	ctx_         context.Context
 36719  	header_      http.Header
 36720  }
 36721  
 36722  // GetResult: After the query is completed, use this API to retrieve the
 36723  // results as file. If the request succeeds, and there is a non-zero result
 36724  // set, the result is downloaded to the client as a zipped JSON file. The name
 36725  // of the downloaded file will be: OfflineQueryResult-.zip Example:
 36726  // `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
 36727  //
 36728  //   - name: Name of the security report result to get. Must be of the form
 36729  //     `organizations/{org}/environments/{env}/securityReports/{reportId}/result`.
 36730  func (r *OrganizationsEnvironmentsSecurityReportsService) GetResult(name string) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
 36731  	c := &OrganizationsEnvironmentsSecurityReportsGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36732  	c.name = name
 36733  	return c
 36734  }
 36735  
 36736  // Fields allows partial responses to be retrieved. See
 36737  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36738  // details.
 36739  func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
 36740  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36741  	return c
 36742  }
 36743  
 36744  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36745  // object's ETag matches the given value. This is useful for getting updates
 36746  // only after the object has changed since the last request.
 36747  func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
 36748  	c.ifNoneMatch_ = entityTag
 36749  	return c
 36750  }
 36751  
 36752  // Context sets the context to be used in this call's Do method.
 36753  func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
 36754  	c.ctx_ = ctx
 36755  	return c
 36756  }
 36757  
 36758  // Header returns a http.Header that can be modified by the caller to add
 36759  // headers to the request.
 36760  func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Header() http.Header {
 36761  	if c.header_ == nil {
 36762  		c.header_ = make(http.Header)
 36763  	}
 36764  	return c.header_
 36765  }
 36766  
 36767  func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) doRequest(alt string) (*http.Response, error) {
 36768  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36769  	if c.ifNoneMatch_ != "" {
 36770  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36771  	}
 36772  	var body io.Reader = nil
 36773  	c.urlParams_.Set("alt", alt)
 36774  	c.urlParams_.Set("prettyPrint", "false")
 36775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 36776  	urls += "?" + c.urlParams_.Encode()
 36777  	req, err := http.NewRequest("GET", urls, body)
 36778  	if err != nil {
 36779  		return nil, err
 36780  	}
 36781  	req.Header = reqHeaders
 36782  	googleapi.Expand(req.URL, map[string]string{
 36783  		"name": c.name,
 36784  	})
 36785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36786  }
 36787  
 36788  // Do executes the "apigee.organizations.environments.securityReports.getResult" call.
 36789  // Any non-2xx status code is an error. Response headers are in either
 36790  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 36791  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 36792  // check whether the returned error was because http.StatusNotModified was
 36793  // returned.
 36794  func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 36795  	gensupport.SetOptions(c.urlParams_, opts...)
 36796  	res, err := c.doRequest("json")
 36797  	if res != nil && res.StatusCode == http.StatusNotModified {
 36798  		if res.Body != nil {
 36799  			res.Body.Close()
 36800  		}
 36801  		return nil, gensupport.WrapError(&googleapi.Error{
 36802  			Code:   res.StatusCode,
 36803  			Header: res.Header,
 36804  		})
 36805  	}
 36806  	if err != nil {
 36807  		return nil, err
 36808  	}
 36809  	defer googleapi.CloseBody(res)
 36810  	if err := googleapi.CheckResponse(res); err != nil {
 36811  		return nil, gensupport.WrapError(err)
 36812  	}
 36813  	ret := &GoogleApiHttpBody{
 36814  		ServerResponse: googleapi.ServerResponse{
 36815  			Header:         res.Header,
 36816  			HTTPStatusCode: res.StatusCode,
 36817  		},
 36818  	}
 36819  	target := &ret
 36820  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36821  		return nil, err
 36822  	}
 36823  	return ret, nil
 36824  }
 36825  
 36826  type OrganizationsEnvironmentsSecurityReportsGetResultViewCall struct {
 36827  	s            *Service
 36828  	name         string
 36829  	urlParams_   gensupport.URLParams
 36830  	ifNoneMatch_ string
 36831  	ctx_         context.Context
 36832  	header_      http.Header
 36833  }
 36834  
 36835  // GetResultView: After the query is completed, use this API to view the query
 36836  // result when result size is small.
 36837  //
 36838  //   - name: Name of the security report result view to get. Must be of the form
 36839  //     `organizations/{org}/environments/{env}/securityReports/{reportId}/resultVi
 36840  //     ew`.
 36841  func (r *OrganizationsEnvironmentsSecurityReportsService) GetResultView(name string) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
 36842  	c := &OrganizationsEnvironmentsSecurityReportsGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36843  	c.name = name
 36844  	return c
 36845  }
 36846  
 36847  // Fields allows partial responses to be retrieved. See
 36848  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36849  // details.
 36850  func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
 36851  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36852  	return c
 36853  }
 36854  
 36855  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36856  // object's ETag matches the given value. This is useful for getting updates
 36857  // only after the object has changed since the last request.
 36858  func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
 36859  	c.ifNoneMatch_ = entityTag
 36860  	return c
 36861  }
 36862  
 36863  // Context sets the context to be used in this call's Do method.
 36864  func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
 36865  	c.ctx_ = ctx
 36866  	return c
 36867  }
 36868  
 36869  // Header returns a http.Header that can be modified by the caller to add
 36870  // headers to the request.
 36871  func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Header() http.Header {
 36872  	if c.header_ == nil {
 36873  		c.header_ = make(http.Header)
 36874  	}
 36875  	return c.header_
 36876  }
 36877  
 36878  func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) doRequest(alt string) (*http.Response, error) {
 36879  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36880  	if c.ifNoneMatch_ != "" {
 36881  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36882  	}
 36883  	var body io.Reader = nil
 36884  	c.urlParams_.Set("alt", alt)
 36885  	c.urlParams_.Set("prettyPrint", "false")
 36886  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 36887  	urls += "?" + c.urlParams_.Encode()
 36888  	req, err := http.NewRequest("GET", urls, body)
 36889  	if err != nil {
 36890  		return nil, err
 36891  	}
 36892  	req.Header = reqHeaders
 36893  	googleapi.Expand(req.URL, map[string]string{
 36894  		"name": c.name,
 36895  	})
 36896  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36897  }
 36898  
 36899  // Do executes the "apigee.organizations.environments.securityReports.getResultView" call.
 36900  // Any non-2xx status code is an error. Response headers are in either
 36901  // *GoogleCloudApigeeV1SecurityReportResultView.ServerResponse.Header or (if a
 36902  // response was returned at all) in error.(*googleapi.Error).Header. Use
 36903  // googleapi.IsNotModified to check whether the returned error was because
 36904  // http.StatusNotModified was returned.
 36905  func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReportResultView, error) {
 36906  	gensupport.SetOptions(c.urlParams_, opts...)
 36907  	res, err := c.doRequest("json")
 36908  	if res != nil && res.StatusCode == http.StatusNotModified {
 36909  		if res.Body != nil {
 36910  			res.Body.Close()
 36911  		}
 36912  		return nil, gensupport.WrapError(&googleapi.Error{
 36913  			Code:   res.StatusCode,
 36914  			Header: res.Header,
 36915  		})
 36916  	}
 36917  	if err != nil {
 36918  		return nil, err
 36919  	}
 36920  	defer googleapi.CloseBody(res)
 36921  	if err := googleapi.CheckResponse(res); err != nil {
 36922  		return nil, gensupport.WrapError(err)
 36923  	}
 36924  	ret := &GoogleCloudApigeeV1SecurityReportResultView{
 36925  		ServerResponse: googleapi.ServerResponse{
 36926  			Header:         res.Header,
 36927  			HTTPStatusCode: res.StatusCode,
 36928  		},
 36929  	}
 36930  	target := &ret
 36931  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36932  		return nil, err
 36933  	}
 36934  	return ret, nil
 36935  }
 36936  
 36937  type OrganizationsEnvironmentsSecurityReportsListCall struct {
 36938  	s            *Service
 36939  	parent       string
 36940  	urlParams_   gensupport.URLParams
 36941  	ifNoneMatch_ string
 36942  	ctx_         context.Context
 36943  	header_      http.Header
 36944  }
 36945  
 36946  // List: Return a list of Security Reports
 36947  //
 36948  //   - parent: The parent resource name. Must be of the form
 36949  //     `organizations/{org}/environments/{env}`.
 36950  func (r *OrganizationsEnvironmentsSecurityReportsService) List(parent string) *OrganizationsEnvironmentsSecurityReportsListCall {
 36951  	c := &OrganizationsEnvironmentsSecurityReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36952  	c.parent = parent
 36953  	return c
 36954  }
 36955  
 36956  // Dataset sets the optional parameter "dataset": Filter response list by
 36957  // dataset. Example: `api`, `mint`
 36958  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Dataset(dataset string) *OrganizationsEnvironmentsSecurityReportsListCall {
 36959  	c.urlParams_.Set("dataset", dataset)
 36960  	return c
 36961  }
 36962  
 36963  // From sets the optional parameter "from": Filter response list by returning
 36964  // security reports that created after this date time. Time must be in ISO
 36965  // date-time format like '2011-12-03T10:15:30Z'.
 36966  func (c *OrganizationsEnvironmentsSecurityReportsListCall) From(from string) *OrganizationsEnvironmentsSecurityReportsListCall {
 36967  	c.urlParams_.Set("from", from)
 36968  	return c
 36969  }
 36970  
 36971  // PageSize sets the optional parameter "pageSize": The maximum number of
 36972  // security report to return in the list response.
 36973  func (c *OrganizationsEnvironmentsSecurityReportsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityReportsListCall {
 36974  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 36975  	return c
 36976  }
 36977  
 36978  // PageToken sets the optional parameter "pageToken": Token returned from the
 36979  // previous list response to fetch the next page.
 36980  func (c *OrganizationsEnvironmentsSecurityReportsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityReportsListCall {
 36981  	c.urlParams_.Set("pageToken", pageToken)
 36982  	return c
 36983  }
 36984  
 36985  // Status sets the optional parameter "status": Filter response list by
 36986  // security reports status.
 36987  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Status(status string) *OrganizationsEnvironmentsSecurityReportsListCall {
 36988  	c.urlParams_.Set("status", status)
 36989  	return c
 36990  }
 36991  
 36992  // SubmittedBy sets the optional parameter "submittedBy": Filter response list
 36993  // by user who submitted queries.
 36994  func (c *OrganizationsEnvironmentsSecurityReportsListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsSecurityReportsListCall {
 36995  	c.urlParams_.Set("submittedBy", submittedBy)
 36996  	return c
 36997  }
 36998  
 36999  // To sets the optional parameter "to": Filter response list by returning
 37000  // security reports that created before this date time. Time must be in ISO
 37001  // date-time format like '2011-12-03T10:16:30Z'.
 37002  func (c *OrganizationsEnvironmentsSecurityReportsListCall) To(to string) *OrganizationsEnvironmentsSecurityReportsListCall {
 37003  	c.urlParams_.Set("to", to)
 37004  	return c
 37005  }
 37006  
 37007  // Fields allows partial responses to be retrieved. See
 37008  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37009  // details.
 37010  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsListCall {
 37011  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37012  	return c
 37013  }
 37014  
 37015  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37016  // object's ETag matches the given value. This is useful for getting updates
 37017  // only after the object has changed since the last request.
 37018  func (c *OrganizationsEnvironmentsSecurityReportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsListCall {
 37019  	c.ifNoneMatch_ = entityTag
 37020  	return c
 37021  }
 37022  
 37023  // Context sets the context to be used in this call's Do method.
 37024  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsListCall {
 37025  	c.ctx_ = ctx
 37026  	return c
 37027  }
 37028  
 37029  // Header returns a http.Header that can be modified by the caller to add
 37030  // headers to the request.
 37031  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Header() http.Header {
 37032  	if c.header_ == nil {
 37033  		c.header_ = make(http.Header)
 37034  	}
 37035  	return c.header_
 37036  }
 37037  
 37038  func (c *OrganizationsEnvironmentsSecurityReportsListCall) doRequest(alt string) (*http.Response, error) {
 37039  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37040  	if c.ifNoneMatch_ != "" {
 37041  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37042  	}
 37043  	var body io.Reader = nil
 37044  	c.urlParams_.Set("alt", alt)
 37045  	c.urlParams_.Set("prettyPrint", "false")
 37046  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityReports")
 37047  	urls += "?" + c.urlParams_.Encode()
 37048  	req, err := http.NewRequest("GET", urls, body)
 37049  	if err != nil {
 37050  		return nil, err
 37051  	}
 37052  	req.Header = reqHeaders
 37053  	googleapi.Expand(req.URL, map[string]string{
 37054  		"parent": c.parent,
 37055  	})
 37056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37057  }
 37058  
 37059  // Do executes the "apigee.organizations.environments.securityReports.list" call.
 37060  // Any non-2xx status code is an error. Response headers are in either
 37061  // *GoogleCloudApigeeV1ListSecurityReportsResponse.ServerResponse.Header or (if
 37062  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 37063  // googleapi.IsNotModified to check whether the returned error was because
 37064  // http.StatusNotModified was returned.
 37065  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityReportsResponse, error) {
 37066  	gensupport.SetOptions(c.urlParams_, opts...)
 37067  	res, err := c.doRequest("json")
 37068  	if res != nil && res.StatusCode == http.StatusNotModified {
 37069  		if res.Body != nil {
 37070  			res.Body.Close()
 37071  		}
 37072  		return nil, gensupport.WrapError(&googleapi.Error{
 37073  			Code:   res.StatusCode,
 37074  			Header: res.Header,
 37075  		})
 37076  	}
 37077  	if err != nil {
 37078  		return nil, err
 37079  	}
 37080  	defer googleapi.CloseBody(res)
 37081  	if err := googleapi.CheckResponse(res); err != nil {
 37082  		return nil, gensupport.WrapError(err)
 37083  	}
 37084  	ret := &GoogleCloudApigeeV1ListSecurityReportsResponse{
 37085  		ServerResponse: googleapi.ServerResponse{
 37086  			Header:         res.Header,
 37087  			HTTPStatusCode: res.StatusCode,
 37088  		},
 37089  	}
 37090  	target := &ret
 37091  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37092  		return nil, err
 37093  	}
 37094  	return ret, nil
 37095  }
 37096  
 37097  // Pages invokes f for each page of results.
 37098  // A non-nil error returned from f will halt the iteration.
 37099  // The provided context supersedes any context provided to the Context method.
 37100  func (c *OrganizationsEnvironmentsSecurityReportsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityReportsResponse) error) error {
 37101  	c.ctx_ = ctx
 37102  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 37103  	for {
 37104  		x, err := c.Do()
 37105  		if err != nil {
 37106  			return err
 37107  		}
 37108  		if err := f(x); err != nil {
 37109  			return err
 37110  		}
 37111  		if x.NextPageToken == "" {
 37112  			return nil
 37113  		}
 37114  		c.PageToken(x.NextPageToken)
 37115  	}
 37116  }
 37117  
 37118  type OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall struct {
 37119  	s                                           *Service
 37120  	orgenv                                      string
 37121  	googlecloudapigeev1querytabularstatsrequest *GoogleCloudApigeeV1QueryTabularStatsRequest
 37122  	urlParams_                                  gensupport.URLParams
 37123  	ctx_                                        context.Context
 37124  	header_                                     http.Header
 37125  }
 37126  
 37127  // QueryTabularStats: Retrieve security statistics as tabular rows.
 37128  //
 37129  // - orgenv: Should be of the form organizations//environments/.
 37130  func (r *OrganizationsEnvironmentsSecurityStatsService) QueryTabularStats(orgenv string, googlecloudapigeev1querytabularstatsrequest *GoogleCloudApigeeV1QueryTabularStatsRequest) *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall {
 37131  	c := &OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37132  	c.orgenv = orgenv
 37133  	c.googlecloudapigeev1querytabularstatsrequest = googlecloudapigeev1querytabularstatsrequest
 37134  	return c
 37135  }
 37136  
 37137  // Fields allows partial responses to be retrieved. See
 37138  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37139  // details.
 37140  func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall {
 37141  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37142  	return c
 37143  }
 37144  
 37145  // Context sets the context to be used in this call's Do method.
 37146  func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall {
 37147  	c.ctx_ = ctx
 37148  	return c
 37149  }
 37150  
 37151  // Header returns a http.Header that can be modified by the caller to add
 37152  // headers to the request.
 37153  func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Header() http.Header {
 37154  	if c.header_ == nil {
 37155  		c.header_ = make(http.Header)
 37156  	}
 37157  	return c.header_
 37158  }
 37159  
 37160  func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) doRequest(alt string) (*http.Response, error) {
 37161  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37162  	var body io.Reader = nil
 37163  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1querytabularstatsrequest)
 37164  	if err != nil {
 37165  		return nil, err
 37166  	}
 37167  	c.urlParams_.Set("alt", alt)
 37168  	c.urlParams_.Set("prettyPrint", "false")
 37169  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+orgenv}/securityStats:queryTabularStats")
 37170  	urls += "?" + c.urlParams_.Encode()
 37171  	req, err := http.NewRequest("POST", urls, body)
 37172  	if err != nil {
 37173  		return nil, err
 37174  	}
 37175  	req.Header = reqHeaders
 37176  	googleapi.Expand(req.URL, map[string]string{
 37177  		"orgenv": c.orgenv,
 37178  	})
 37179  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37180  }
 37181  
 37182  // Do executes the "apigee.organizations.environments.securityStats.queryTabularStats" call.
 37183  // Any non-2xx status code is an error. Response headers are in either
 37184  // *GoogleCloudApigeeV1QueryTabularStatsResponse.ServerResponse.Header or (if a
 37185  // response was returned at all) in error.(*googleapi.Error).Header. Use
 37186  // googleapi.IsNotModified to check whether the returned error was because
 37187  // http.StatusNotModified was returned.
 37188  func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1QueryTabularStatsResponse, error) {
 37189  	gensupport.SetOptions(c.urlParams_, opts...)
 37190  	res, err := c.doRequest("json")
 37191  	if res != nil && res.StatusCode == http.StatusNotModified {
 37192  		if res.Body != nil {
 37193  			res.Body.Close()
 37194  		}
 37195  		return nil, gensupport.WrapError(&googleapi.Error{
 37196  			Code:   res.StatusCode,
 37197  			Header: res.Header,
 37198  		})
 37199  	}
 37200  	if err != nil {
 37201  		return nil, err
 37202  	}
 37203  	defer googleapi.CloseBody(res)
 37204  	if err := googleapi.CheckResponse(res); err != nil {
 37205  		return nil, gensupport.WrapError(err)
 37206  	}
 37207  	ret := &GoogleCloudApigeeV1QueryTabularStatsResponse{
 37208  		ServerResponse: googleapi.ServerResponse{
 37209  			Header:         res.Header,
 37210  			HTTPStatusCode: res.StatusCode,
 37211  		},
 37212  	}
 37213  	target := &ret
 37214  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37215  		return nil, err
 37216  	}
 37217  	return ret, nil
 37218  }
 37219  
 37220  // Pages invokes f for each page of results.
 37221  // A non-nil error returned from f will halt the iteration.
 37222  // The provided context supersedes any context provided to the Context method.
 37223  func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1QueryTabularStatsResponse) error) error {
 37224  	c.ctx_ = ctx
 37225  	defer func(pt string) { c.googlecloudapigeev1querytabularstatsrequest.PageToken = pt }(c.googlecloudapigeev1querytabularstatsrequest.PageToken)
 37226  	for {
 37227  		x, err := c.Do()
 37228  		if err != nil {
 37229  			return err
 37230  		}
 37231  		if err := f(x); err != nil {
 37232  			return err
 37233  		}
 37234  		if x.NextPageToken == "" {
 37235  			return nil
 37236  		}
 37237  		c.googlecloudapigeev1querytabularstatsrequest.PageToken = x.NextPageToken
 37238  	}
 37239  }
 37240  
 37241  type OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall struct {
 37242  	s                                              *Service
 37243  	orgenv                                         string
 37244  	googlecloudapigeev1querytimeseriesstatsrequest *GoogleCloudApigeeV1QueryTimeSeriesStatsRequest
 37245  	urlParams_                                     gensupport.URLParams
 37246  	ctx_                                           context.Context
 37247  	header_                                        http.Header
 37248  }
 37249  
 37250  // QueryTimeSeriesStats: Retrieve security statistics as a collection of time
 37251  // series.
 37252  //
 37253  // - orgenv: Should be of the form organizations//environments/.
 37254  func (r *OrganizationsEnvironmentsSecurityStatsService) QueryTimeSeriesStats(orgenv string, googlecloudapigeev1querytimeseriesstatsrequest *GoogleCloudApigeeV1QueryTimeSeriesStatsRequest) *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall {
 37255  	c := &OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37256  	c.orgenv = orgenv
 37257  	c.googlecloudapigeev1querytimeseriesstatsrequest = googlecloudapigeev1querytimeseriesstatsrequest
 37258  	return c
 37259  }
 37260  
 37261  // Fields allows partial responses to be retrieved. See
 37262  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37263  // details.
 37264  func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall {
 37265  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37266  	return c
 37267  }
 37268  
 37269  // Context sets the context to be used in this call's Do method.
 37270  func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall {
 37271  	c.ctx_ = ctx
 37272  	return c
 37273  }
 37274  
 37275  // Header returns a http.Header that can be modified by the caller to add
 37276  // headers to the request.
 37277  func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Header() http.Header {
 37278  	if c.header_ == nil {
 37279  		c.header_ = make(http.Header)
 37280  	}
 37281  	return c.header_
 37282  }
 37283  
 37284  func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) doRequest(alt string) (*http.Response, error) {
 37285  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37286  	var body io.Reader = nil
 37287  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1querytimeseriesstatsrequest)
 37288  	if err != nil {
 37289  		return nil, err
 37290  	}
 37291  	c.urlParams_.Set("alt", alt)
 37292  	c.urlParams_.Set("prettyPrint", "false")
 37293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+orgenv}/securityStats:queryTimeSeriesStats")
 37294  	urls += "?" + c.urlParams_.Encode()
 37295  	req, err := http.NewRequest("POST", urls, body)
 37296  	if err != nil {
 37297  		return nil, err
 37298  	}
 37299  	req.Header = reqHeaders
 37300  	googleapi.Expand(req.URL, map[string]string{
 37301  		"orgenv": c.orgenv,
 37302  	})
 37303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37304  }
 37305  
 37306  // Do executes the "apigee.organizations.environments.securityStats.queryTimeSeriesStats" call.
 37307  // Any non-2xx status code is an error. Response headers are in either
 37308  // *GoogleCloudApigeeV1QueryTimeSeriesStatsResponse.ServerResponse.Header or
 37309  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 37310  // googleapi.IsNotModified to check whether the returned error was because
 37311  // http.StatusNotModified was returned.
 37312  func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1QueryTimeSeriesStatsResponse, error) {
 37313  	gensupport.SetOptions(c.urlParams_, opts...)
 37314  	res, err := c.doRequest("json")
 37315  	if res != nil && res.StatusCode == http.StatusNotModified {
 37316  		if res.Body != nil {
 37317  			res.Body.Close()
 37318  		}
 37319  		return nil, gensupport.WrapError(&googleapi.Error{
 37320  			Code:   res.StatusCode,
 37321  			Header: res.Header,
 37322  		})
 37323  	}
 37324  	if err != nil {
 37325  		return nil, err
 37326  	}
 37327  	defer googleapi.CloseBody(res)
 37328  	if err := googleapi.CheckResponse(res); err != nil {
 37329  		return nil, gensupport.WrapError(err)
 37330  	}
 37331  	ret := &GoogleCloudApigeeV1QueryTimeSeriesStatsResponse{
 37332  		ServerResponse: googleapi.ServerResponse{
 37333  			Header:         res.Header,
 37334  			HTTPStatusCode: res.StatusCode,
 37335  		},
 37336  	}
 37337  	target := &ret
 37338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37339  		return nil, err
 37340  	}
 37341  	return ret, nil
 37342  }
 37343  
 37344  // Pages invokes f for each page of results.
 37345  // A non-nil error returned from f will halt the iteration.
 37346  // The provided context supersedes any context provided to the Context method.
 37347  func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1QueryTimeSeriesStatsResponse) error) error {
 37348  	c.ctx_ = ctx
 37349  	defer func(pt string) { c.googlecloudapigeev1querytimeseriesstatsrequest.PageToken = pt }(c.googlecloudapigeev1querytimeseriesstatsrequest.PageToken)
 37350  	for {
 37351  		x, err := c.Do()
 37352  		if err != nil {
 37353  			return err
 37354  		}
 37355  		if err := f(x); err != nil {
 37356  			return err
 37357  		}
 37358  		if x.NextPageToken == "" {
 37359  			return nil
 37360  		}
 37361  		c.googlecloudapigeev1querytimeseriesstatsrequest.PageToken = x.NextPageToken
 37362  	}
 37363  }
 37364  
 37365  type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
 37366  	s            *Service
 37367  	parent       string
 37368  	urlParams_   gensupport.URLParams
 37369  	ifNoneMatch_ string
 37370  	ctx_         context.Context
 37371  	header_      http.Header
 37372  }
 37373  
 37374  // List: Lists all deployments of a shared flow in an environment.
 37375  //
 37376  //   - parent: Name representing a shared flow in an environment in the following
 37377  //     format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`.
 37378  func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
 37379  	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37380  	c.parent = parent
 37381  	return c
 37382  }
 37383  
 37384  // Fields allows partial responses to be retrieved. See
 37385  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37386  // details.
 37387  func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
 37388  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37389  	return c
 37390  }
 37391  
 37392  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37393  // object's ETag matches the given value. This is useful for getting updates
 37394  // only after the object has changed since the last request.
 37395  func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
 37396  	c.ifNoneMatch_ = entityTag
 37397  	return c
 37398  }
 37399  
 37400  // Context sets the context to be used in this call's Do method.
 37401  func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
 37402  	c.ctx_ = ctx
 37403  	return c
 37404  }
 37405  
 37406  // Header returns a http.Header that can be modified by the caller to add
 37407  // headers to the request.
 37408  func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
 37409  	if c.header_ == nil {
 37410  		c.header_ = make(http.Header)
 37411  	}
 37412  	return c.header_
 37413  }
 37414  
 37415  func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 37416  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37417  	if c.ifNoneMatch_ != "" {
 37418  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37419  	}
 37420  	var body io.Reader = nil
 37421  	c.urlParams_.Set("alt", alt)
 37422  	c.urlParams_.Set("prettyPrint", "false")
 37423  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 37424  	urls += "?" + c.urlParams_.Encode()
 37425  	req, err := http.NewRequest("GET", urls, body)
 37426  	if err != nil {
 37427  		return nil, err
 37428  	}
 37429  	req.Header = reqHeaders
 37430  	googleapi.Expand(req.URL, map[string]string{
 37431  		"parent": c.parent,
 37432  	})
 37433  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37434  }
 37435  
 37436  // Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
 37437  // Any non-2xx status code is an error. Response headers are in either
 37438  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 37439  // response was returned at all) in error.(*googleapi.Error).Header. Use
 37440  // googleapi.IsNotModified to check whether the returned error was because
 37441  // http.StatusNotModified was returned.
 37442  func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 37443  	gensupport.SetOptions(c.urlParams_, opts...)
 37444  	res, err := c.doRequest("json")
 37445  	if res != nil && res.StatusCode == http.StatusNotModified {
 37446  		if res.Body != nil {
 37447  			res.Body.Close()
 37448  		}
 37449  		return nil, gensupport.WrapError(&googleapi.Error{
 37450  			Code:   res.StatusCode,
 37451  			Header: res.Header,
 37452  		})
 37453  	}
 37454  	if err != nil {
 37455  		return nil, err
 37456  	}
 37457  	defer googleapi.CloseBody(res)
 37458  	if err := googleapi.CheckResponse(res); err != nil {
 37459  		return nil, gensupport.WrapError(err)
 37460  	}
 37461  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 37462  		ServerResponse: googleapi.ServerResponse{
 37463  			Header:         res.Header,
 37464  			HTTPStatusCode: res.StatusCode,
 37465  		},
 37466  	}
 37467  	target := &ret
 37468  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37469  		return nil, err
 37470  	}
 37471  	return ret, nil
 37472  }
 37473  
 37474  type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
 37475  	s          *Service
 37476  	name       string
 37477  	urlParams_ gensupport.URLParams
 37478  	ctx_       context.Context
 37479  	header_    http.Header
 37480  }
 37481  
 37482  // Deploy: Deploys a revision of a shared flow. If another revision of the same
 37483  // shared flow is currently deployed, set the `override` parameter to `true` to
 37484  // have this revision replace the currently deployed revision. You cannot use a
 37485  // shared flow until it has been deployed to an environment. For a request path
 37486  // `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/depl
 37487  // oyments`, two permissions are required: * `apigee.deployments.create` on the
 37488  // resource `organizations/{org}/environments/{env}` *
 37489  // `apigee.sharedflowrevisions.deploy` on the resource
 37490  // `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
 37491  //
 37492  //   - name: Name of the shared flow revision to deploy in the following format:
 37493  //     `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/
 37494  //     {rev}`.
 37495  func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
 37496  	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37497  	c.name = name
 37498  	return c
 37499  }
 37500  
 37501  // Override sets the optional parameter "override": Flag that specifies whether
 37502  // the new deployment replaces other deployed revisions of the shared flow in
 37503  // the environment. Set `override` to `true` to replace other deployed
 37504  // revisions. By default, `override` is `false` and the deployment is rejected
 37505  // if other revisions of the shared flow are deployed in the environment.
 37506  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
 37507  	c.urlParams_.Set("override", fmt.Sprint(override))
 37508  	return c
 37509  }
 37510  
 37511  // ServiceAccount sets the optional parameter "serviceAccount": Google Cloud
 37512  // IAM service account. The service account represents the identity of the
 37513  // deployed proxy, and determines what permissions it has. The format must be
 37514  // `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.
 37515  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
 37516  	c.urlParams_.Set("serviceAccount", serviceAccount)
 37517  	return c
 37518  }
 37519  
 37520  // Fields allows partial responses to be retrieved. See
 37521  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37522  // details.
 37523  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
 37524  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37525  	return c
 37526  }
 37527  
 37528  // Context sets the context to be used in this call's Do method.
 37529  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
 37530  	c.ctx_ = ctx
 37531  	return c
 37532  }
 37533  
 37534  // Header returns a http.Header that can be modified by the caller to add
 37535  // headers to the request.
 37536  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
 37537  	if c.header_ == nil {
 37538  		c.header_ = make(http.Header)
 37539  	}
 37540  	return c.header_
 37541  }
 37542  
 37543  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
 37544  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37545  	var body io.Reader = nil
 37546  	c.urlParams_.Set("alt", alt)
 37547  	c.urlParams_.Set("prettyPrint", "false")
 37548  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
 37549  	urls += "?" + c.urlParams_.Encode()
 37550  	req, err := http.NewRequest("POST", urls, body)
 37551  	if err != nil {
 37552  		return nil, err
 37553  	}
 37554  	req.Header = reqHeaders
 37555  	googleapi.Expand(req.URL, map[string]string{
 37556  		"name": c.name,
 37557  	})
 37558  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37559  }
 37560  
 37561  // Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call.
 37562  // Any non-2xx status code is an error. Response headers are in either
 37563  // *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a response was
 37564  // returned at all) in error.(*googleapi.Error).Header. Use
 37565  // googleapi.IsNotModified to check whether the returned error was because
 37566  // http.StatusNotModified was returned.
 37567  func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
 37568  	gensupport.SetOptions(c.urlParams_, opts...)
 37569  	res, err := c.doRequest("json")
 37570  	if res != nil && res.StatusCode == http.StatusNotModified {
 37571  		if res.Body != nil {
 37572  			res.Body.Close()
 37573  		}
 37574  		return nil, gensupport.WrapError(&googleapi.Error{
 37575  			Code:   res.StatusCode,
 37576  			Header: res.Header,
 37577  		})
 37578  	}
 37579  	if err != nil {
 37580  		return nil, err
 37581  	}
 37582  	defer googleapi.CloseBody(res)
 37583  	if err := googleapi.CheckResponse(res); err != nil {
 37584  		return nil, gensupport.WrapError(err)
 37585  	}
 37586  	ret := &GoogleCloudApigeeV1Deployment{
 37587  		ServerResponse: googleapi.ServerResponse{
 37588  			Header:         res.Header,
 37589  			HTTPStatusCode: res.StatusCode,
 37590  		},
 37591  	}
 37592  	target := &ret
 37593  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37594  		return nil, err
 37595  	}
 37596  	return ret, nil
 37597  }
 37598  
 37599  type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
 37600  	s            *Service
 37601  	name         string
 37602  	urlParams_   gensupport.URLParams
 37603  	ifNoneMatch_ string
 37604  	ctx_         context.Context
 37605  	header_      http.Header
 37606  }
 37607  
 37608  // GetDeployments: Gets the deployment of a shared flow revision and actual
 37609  // state reported by runtime pods.
 37610  //
 37611  //   - name: Name representing a shared flow in an environment in the following
 37612  //     format:
 37613  //     `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/
 37614  //     {rev}`.
 37615  func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
 37616  	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37617  	c.name = name
 37618  	return c
 37619  }
 37620  
 37621  // Fields allows partial responses to be retrieved. See
 37622  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37623  // details.
 37624  func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
 37625  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37626  	return c
 37627  }
 37628  
 37629  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37630  // object's ETag matches the given value. This is useful for getting updates
 37631  // only after the object has changed since the last request.
 37632  func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
 37633  	c.ifNoneMatch_ = entityTag
 37634  	return c
 37635  }
 37636  
 37637  // Context sets the context to be used in this call's Do method.
 37638  func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
 37639  	c.ctx_ = ctx
 37640  	return c
 37641  }
 37642  
 37643  // Header returns a http.Header that can be modified by the caller to add
 37644  // headers to the request.
 37645  func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
 37646  	if c.header_ == nil {
 37647  		c.header_ = make(http.Header)
 37648  	}
 37649  	return c.header_
 37650  }
 37651  
 37652  func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
 37653  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37654  	if c.ifNoneMatch_ != "" {
 37655  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37656  	}
 37657  	var body io.Reader = nil
 37658  	c.urlParams_.Set("alt", alt)
 37659  	c.urlParams_.Set("prettyPrint", "false")
 37660  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
 37661  	urls += "?" + c.urlParams_.Encode()
 37662  	req, err := http.NewRequest("GET", urls, body)
 37663  	if err != nil {
 37664  		return nil, err
 37665  	}
 37666  	req.Header = reqHeaders
 37667  	googleapi.Expand(req.URL, map[string]string{
 37668  		"name": c.name,
 37669  	})
 37670  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37671  }
 37672  
 37673  // Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
 37674  // Any non-2xx status code is an error. Response headers are in either
 37675  // *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a response was
 37676  // returned at all) in error.(*googleapi.Error).Header. Use
 37677  // googleapi.IsNotModified to check whether the returned error was because
 37678  // http.StatusNotModified was returned.
 37679  func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
 37680  	gensupport.SetOptions(c.urlParams_, opts...)
 37681  	res, err := c.doRequest("json")
 37682  	if res != nil && res.StatusCode == http.StatusNotModified {
 37683  		if res.Body != nil {
 37684  			res.Body.Close()
 37685  		}
 37686  		return nil, gensupport.WrapError(&googleapi.Error{
 37687  			Code:   res.StatusCode,
 37688  			Header: res.Header,
 37689  		})
 37690  	}
 37691  	if err != nil {
 37692  		return nil, err
 37693  	}
 37694  	defer googleapi.CloseBody(res)
 37695  	if err := googleapi.CheckResponse(res); err != nil {
 37696  		return nil, gensupport.WrapError(err)
 37697  	}
 37698  	ret := &GoogleCloudApigeeV1Deployment{
 37699  		ServerResponse: googleapi.ServerResponse{
 37700  			Header:         res.Header,
 37701  			HTTPStatusCode: res.StatusCode,
 37702  		},
 37703  	}
 37704  	target := &ret
 37705  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37706  		return nil, err
 37707  	}
 37708  	return ret, nil
 37709  }
 37710  
 37711  type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
 37712  	s          *Service
 37713  	name       string
 37714  	urlParams_ gensupport.URLParams
 37715  	ctx_       context.Context
 37716  	header_    http.Header
 37717  }
 37718  
 37719  // Undeploy: Undeploys a shared flow revision from an environment. For a
 37720  // request path
 37721  // `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/depl
 37722  // oyments`, two permissions are required: * `apigee.deployments.delete` on the
 37723  // resource `organizations/{org}/environments/{env}` *
 37724  // `apigee.sharedflowrevisions.undeploy` on the resource
 37725  // `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
 37726  //
 37727  //   - name: Name of the shared flow revision to undeploy in the following
 37728  //     format:
 37729  //     `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/
 37730  //     {rev}`.
 37731  func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
 37732  	c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37733  	c.name = name
 37734  	return c
 37735  }
 37736  
 37737  // Fields allows partial responses to be retrieved. See
 37738  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37739  // details.
 37740  func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
 37741  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37742  	return c
 37743  }
 37744  
 37745  // Context sets the context to be used in this call's Do method.
 37746  func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
 37747  	c.ctx_ = ctx
 37748  	return c
 37749  }
 37750  
 37751  // Header returns a http.Header that can be modified by the caller to add
 37752  // headers to the request.
 37753  func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
 37754  	if c.header_ == nil {
 37755  		c.header_ = make(http.Header)
 37756  	}
 37757  	return c.header_
 37758  }
 37759  
 37760  func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
 37761  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37762  	var body io.Reader = nil
 37763  	c.urlParams_.Set("alt", alt)
 37764  	c.urlParams_.Set("prettyPrint", "false")
 37765  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
 37766  	urls += "?" + c.urlParams_.Encode()
 37767  	req, err := http.NewRequest("DELETE", urls, body)
 37768  	if err != nil {
 37769  		return nil, err
 37770  	}
 37771  	req.Header = reqHeaders
 37772  	googleapi.Expand(req.URL, map[string]string{
 37773  		"name": c.name,
 37774  	})
 37775  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37776  }
 37777  
 37778  // Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call.
 37779  // Any non-2xx status code is an error. Response headers are in either
 37780  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 37781  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 37782  // check whether the returned error was because http.StatusNotModified was
 37783  // returned.
 37784  func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 37785  	gensupport.SetOptions(c.urlParams_, opts...)
 37786  	res, err := c.doRequest("json")
 37787  	if res != nil && res.StatusCode == http.StatusNotModified {
 37788  		if res.Body != nil {
 37789  			res.Body.Close()
 37790  		}
 37791  		return nil, gensupport.WrapError(&googleapi.Error{
 37792  			Code:   res.StatusCode,
 37793  			Header: res.Header,
 37794  		})
 37795  	}
 37796  	if err != nil {
 37797  		return nil, err
 37798  	}
 37799  	defer googleapi.CloseBody(res)
 37800  	if err := googleapi.CheckResponse(res); err != nil {
 37801  		return nil, gensupport.WrapError(err)
 37802  	}
 37803  	ret := &GoogleProtobufEmpty{
 37804  		ServerResponse: googleapi.ServerResponse{
 37805  			Header:         res.Header,
 37806  			HTTPStatusCode: res.StatusCode,
 37807  		},
 37808  	}
 37809  	target := &ret
 37810  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37811  		return nil, err
 37812  	}
 37813  	return ret, nil
 37814  }
 37815  
 37816  type OrganizationsEnvironmentsStatsGetCall struct {
 37817  	s            *Service
 37818  	name         string
 37819  	urlParams_   gensupport.URLParams
 37820  	ifNoneMatch_ string
 37821  	ctx_         context.Context
 37822  	header_      http.Header
 37823  }
 37824  
 37825  // Get: Retrieve metrics grouped by dimensions. The types of metrics you can
 37826  // retrieve include traffic, message counts, API call latency, response size,
 37827  // and cache hits and counts. Dimensions let you view metrics in meaningful
 37828  // groups. You can optionally pass dimensions as path parameters to the `stats`
 37829  // API. If dimensions are not specified, the metrics are computed on the entire
 37830  // set of data for the given time range.
 37831  //
 37832  //   - name: Resource name for which the interactive query will be executed. Use
 37833  //     the following format in your request:
 37834  //     `organizations/{org}/environments/{env}/stats/{dimensions}` Dimensions let
 37835  //     you view metrics in meaningful groupings, such as `apiproxy` or
 37836  //     `target_host`. The value of dimensions should be a comma-separated list,
 37837  //     as shown below:
 37838  //     `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`.
 37839  func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
 37840  	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37841  	c.name = name
 37842  	return c
 37843  }
 37844  
 37845  // Accuracy sets the optional parameter "accuracy": No longer used by Apigee.
 37846  // Supported for backwards compatibility.
 37847  func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
 37848  	c.urlParams_.Set("accuracy", accuracy)
 37849  	return c
 37850  }
 37851  
 37852  // AggTable sets the optional parameter "aggTable": Table name used to query
 37853  // custom aggregate tables. If this parameter is skipped, then Apigee will try
 37854  // to retrieve the data from fact tables which will be expensive.
 37855  func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
 37856  	c.urlParams_.Set("aggTable", aggTable)
 37857  	return c
 37858  }
 37859  
 37860  // Filter sets the optional parameter "filter": Filter that enables you to
 37861  // drill down on specific dimension values.
 37862  func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
 37863  	c.urlParams_.Set("filter", filter)
 37864  	return c
 37865  }
 37866  
 37867  // Limit sets the optional parameter "limit": Maximum number of result items to
 37868  // return. The default and maximum value that can be returned is 14400.
 37869  func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
 37870  	c.urlParams_.Set("limit", limit)
 37871  	return c
 37872  }
 37873  
 37874  // Offset sets the optional parameter "offset": Offset value. Use `offset` with
 37875  // `limit` to enable pagination of results. For example, to display results
 37876  // 11-20, set limit to `10` and offset to `10`.
 37877  func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
 37878  	c.urlParams_.Set("offset", offset)
 37879  	return c
 37880  }
 37881  
 37882  // Realtime sets the optional parameter "realtime": No longer used by Apigee.
 37883  // Supported for backwards compatibility.
 37884  func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
 37885  	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
 37886  	return c
 37887  }
 37888  
 37889  // Select sets the optional parameter "select": Comma-separated list of
 37890  // metrics. For example: `sum(message_count),sum(error_count)`
 37891  func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
 37892  	c.urlParams_.Set("select", select_)
 37893  	return c
 37894  }
 37895  
 37896  // Sonar sets the optional parameter "sonar": Routes the query to API
 37897  // Monitoring for the last hour.
 37898  func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
 37899  	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
 37900  	return c
 37901  }
 37902  
 37903  // Sort sets the optional parameter "sort": Flag that specifies whether the
 37904  // sort order should be ascending or descending. Valid values include: `DESC`
 37905  // and `ASC`.
 37906  func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
 37907  	c.urlParams_.Set("sort", sort)
 37908  	return c
 37909  }
 37910  
 37911  // Sortby sets the optional parameter "sortby": Comma-separated list of columns
 37912  // to sort the final result.
 37913  func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
 37914  	c.urlParams_.Set("sortby", sortby)
 37915  	return c
 37916  }
 37917  
 37918  // TimeRange sets the optional parameter "timeRange": Time interval for the
 37919  // interactive query. Time range is specified in GMT as `start~end`. For
 37920  // example: `04/15/2017 00:00~05/15/2017 23:59`
 37921  func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
 37922  	c.urlParams_.Set("timeRange", timeRange)
 37923  	return c
 37924  }
 37925  
 37926  // TimeUnit sets the optional parameter "timeUnit": Granularity of metrics
 37927  // returned. Valid values include: `second`, `minute`, `hour`, `day`, `week`,
 37928  // or` month`.
 37929  func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
 37930  	c.urlParams_.Set("timeUnit", timeUnit)
 37931  	return c
 37932  }
 37933  
 37934  // Topk sets the optional parameter "topk": Top number of results to return.
 37935  // For example, to return the top 5 results, set `topk=5`.
 37936  func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
 37937  	c.urlParams_.Set("topk", topk)
 37938  	return c
 37939  }
 37940  
 37941  // TsAscending sets the optional parameter "tsAscending": Flag that specifies
 37942  // whether to list timestamps in ascending (`true`) or descending (`false`)
 37943  // order. Apigee recommends that you set this value to `true` if you are using
 37944  // `sortby` with `sort=DESC`.
 37945  func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
 37946  	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
 37947  	return c
 37948  }
 37949  
 37950  // Tzo sets the optional parameter "tzo": Timezone offset value.
 37951  func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
 37952  	c.urlParams_.Set("tzo", tzo)
 37953  	return c
 37954  }
 37955  
 37956  // Fields allows partial responses to be retrieved. See
 37957  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37958  // details.
 37959  func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
 37960  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37961  	return c
 37962  }
 37963  
 37964  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37965  // object's ETag matches the given value. This is useful for getting updates
 37966  // only after the object has changed since the last request.
 37967  func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
 37968  	c.ifNoneMatch_ = entityTag
 37969  	return c
 37970  }
 37971  
 37972  // Context sets the context to be used in this call's Do method.
 37973  func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
 37974  	c.ctx_ = ctx
 37975  	return c
 37976  }
 37977  
 37978  // Header returns a http.Header that can be modified by the caller to add
 37979  // headers to the request.
 37980  func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
 37981  	if c.header_ == nil {
 37982  		c.header_ = make(http.Header)
 37983  	}
 37984  	return c.header_
 37985  }
 37986  
 37987  func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
 37988  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37989  	if c.ifNoneMatch_ != "" {
 37990  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37991  	}
 37992  	var body io.Reader = nil
 37993  	c.urlParams_.Set("alt", alt)
 37994  	c.urlParams_.Set("prettyPrint", "false")
 37995  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 37996  	urls += "?" + c.urlParams_.Encode()
 37997  	req, err := http.NewRequest("GET", urls, body)
 37998  	if err != nil {
 37999  		return nil, err
 38000  	}
 38001  	req.Header = reqHeaders
 38002  	googleapi.Expand(req.URL, map[string]string{
 38003  		"name": c.name,
 38004  	})
 38005  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38006  }
 38007  
 38008  // Do executes the "apigee.organizations.environments.stats.get" call.
 38009  // Any non-2xx status code is an error. Response headers are in either
 38010  // *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
 38011  // returned at all) in error.(*googleapi.Error).Header. Use
 38012  // googleapi.IsNotModified to check whether the returned error was because
 38013  // http.StatusNotModified was returned.
 38014  func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
 38015  	gensupport.SetOptions(c.urlParams_, opts...)
 38016  	res, err := c.doRequest("json")
 38017  	if res != nil && res.StatusCode == http.StatusNotModified {
 38018  		if res.Body != nil {
 38019  			res.Body.Close()
 38020  		}
 38021  		return nil, gensupport.WrapError(&googleapi.Error{
 38022  			Code:   res.StatusCode,
 38023  			Header: res.Header,
 38024  		})
 38025  	}
 38026  	if err != nil {
 38027  		return nil, err
 38028  	}
 38029  	defer googleapi.CloseBody(res)
 38030  	if err := googleapi.CheckResponse(res); err != nil {
 38031  		return nil, gensupport.WrapError(err)
 38032  	}
 38033  	ret := &GoogleCloudApigeeV1Stats{
 38034  		ServerResponse: googleapi.ServerResponse{
 38035  			Header:         res.Header,
 38036  			HTTPStatusCode: res.StatusCode,
 38037  		},
 38038  	}
 38039  	target := &ret
 38040  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38041  		return nil, err
 38042  	}
 38043  	return ret, nil
 38044  }
 38045  
 38046  type OrganizationsEnvironmentsTargetserversCreateCall struct {
 38047  	s                               *Service
 38048  	parent                          string
 38049  	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
 38050  	urlParams_                      gensupport.URLParams
 38051  	ctx_                            context.Context
 38052  	header_                         http.Header
 38053  }
 38054  
 38055  // Create: Creates a TargetServer in the specified environment.
 38056  //
 38057  //   - parent: The parent environment name under which the TargetServer will be
 38058  //     created. Must be of the form `organizations/{org}/environments/{env}`.
 38059  func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
 38060  	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38061  	c.parent = parent
 38062  	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
 38063  	return c
 38064  }
 38065  
 38066  // Name sets the optional parameter "name": The ID to give the TargetServer.
 38067  // This will overwrite the value in TargetServer.
 38068  func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
 38069  	c.urlParams_.Set("name", name)
 38070  	return c
 38071  }
 38072  
 38073  // Fields allows partial responses to be retrieved. See
 38074  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38075  // details.
 38076  func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
 38077  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38078  	return c
 38079  }
 38080  
 38081  // Context sets the context to be used in this call's Do method.
 38082  func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
 38083  	c.ctx_ = ctx
 38084  	return c
 38085  }
 38086  
 38087  // Header returns a http.Header that can be modified by the caller to add
 38088  // headers to the request.
 38089  func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
 38090  	if c.header_ == nil {
 38091  		c.header_ = make(http.Header)
 38092  	}
 38093  	return c.header_
 38094  }
 38095  
 38096  func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
 38097  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38098  	var body io.Reader = nil
 38099  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
 38100  	if err != nil {
 38101  		return nil, err
 38102  	}
 38103  	c.urlParams_.Set("alt", alt)
 38104  	c.urlParams_.Set("prettyPrint", "false")
 38105  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
 38106  	urls += "?" + c.urlParams_.Encode()
 38107  	req, err := http.NewRequest("POST", urls, body)
 38108  	if err != nil {
 38109  		return nil, err
 38110  	}
 38111  	req.Header = reqHeaders
 38112  	googleapi.Expand(req.URL, map[string]string{
 38113  		"parent": c.parent,
 38114  	})
 38115  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38116  }
 38117  
 38118  // Do executes the "apigee.organizations.environments.targetservers.create" call.
 38119  // Any non-2xx status code is an error. Response headers are in either
 38120  // *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if a response was
 38121  // returned at all) in error.(*googleapi.Error).Header. Use
 38122  // googleapi.IsNotModified to check whether the returned error was because
 38123  // http.StatusNotModified was returned.
 38124  func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
 38125  	gensupport.SetOptions(c.urlParams_, opts...)
 38126  	res, err := c.doRequest("json")
 38127  	if res != nil && res.StatusCode == http.StatusNotModified {
 38128  		if res.Body != nil {
 38129  			res.Body.Close()
 38130  		}
 38131  		return nil, gensupport.WrapError(&googleapi.Error{
 38132  			Code:   res.StatusCode,
 38133  			Header: res.Header,
 38134  		})
 38135  	}
 38136  	if err != nil {
 38137  		return nil, err
 38138  	}
 38139  	defer googleapi.CloseBody(res)
 38140  	if err := googleapi.CheckResponse(res); err != nil {
 38141  		return nil, gensupport.WrapError(err)
 38142  	}
 38143  	ret := &GoogleCloudApigeeV1TargetServer{
 38144  		ServerResponse: googleapi.ServerResponse{
 38145  			Header:         res.Header,
 38146  			HTTPStatusCode: res.StatusCode,
 38147  		},
 38148  	}
 38149  	target := &ret
 38150  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38151  		return nil, err
 38152  	}
 38153  	return ret, nil
 38154  }
 38155  
 38156  type OrganizationsEnvironmentsTargetserversDeleteCall struct {
 38157  	s          *Service
 38158  	name       string
 38159  	urlParams_ gensupport.URLParams
 38160  	ctx_       context.Context
 38161  	header_    http.Header
 38162  }
 38163  
 38164  // Delete: Deletes a TargetServer from an environment. Returns the deleted
 38165  // TargetServer resource.
 38166  //
 38167  //   - name: The name of the TargetServer to delete. Must be of the form
 38168  //     `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.
 38169  func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
 38170  	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38171  	c.name = name
 38172  	return c
 38173  }
 38174  
 38175  // Fields allows partial responses to be retrieved. See
 38176  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38177  // details.
 38178  func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
 38179  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38180  	return c
 38181  }
 38182  
 38183  // Context sets the context to be used in this call's Do method.
 38184  func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
 38185  	c.ctx_ = ctx
 38186  	return c
 38187  }
 38188  
 38189  // Header returns a http.Header that can be modified by the caller to add
 38190  // headers to the request.
 38191  func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
 38192  	if c.header_ == nil {
 38193  		c.header_ = make(http.Header)
 38194  	}
 38195  	return c.header_
 38196  }
 38197  
 38198  func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
 38199  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38200  	var body io.Reader = nil
 38201  	c.urlParams_.Set("alt", alt)
 38202  	c.urlParams_.Set("prettyPrint", "false")
 38203  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 38204  	urls += "?" + c.urlParams_.Encode()
 38205  	req, err := http.NewRequest("DELETE", urls, body)
 38206  	if err != nil {
 38207  		return nil, err
 38208  	}
 38209  	req.Header = reqHeaders
 38210  	googleapi.Expand(req.URL, map[string]string{
 38211  		"name": c.name,
 38212  	})
 38213  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38214  }
 38215  
 38216  // Do executes the "apigee.organizations.environments.targetservers.delete" call.
 38217  // Any non-2xx status code is an error. Response headers are in either
 38218  // *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if a response was
 38219  // returned at all) in error.(*googleapi.Error).Header. Use
 38220  // googleapi.IsNotModified to check whether the returned error was because
 38221  // http.StatusNotModified was returned.
 38222  func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
 38223  	gensupport.SetOptions(c.urlParams_, opts...)
 38224  	res, err := c.doRequest("json")
 38225  	if res != nil && res.StatusCode == http.StatusNotModified {
 38226  		if res.Body != nil {
 38227  			res.Body.Close()
 38228  		}
 38229  		return nil, gensupport.WrapError(&googleapi.Error{
 38230  			Code:   res.StatusCode,
 38231  			Header: res.Header,
 38232  		})
 38233  	}
 38234  	if err != nil {
 38235  		return nil, err
 38236  	}
 38237  	defer googleapi.CloseBody(res)
 38238  	if err := googleapi.CheckResponse(res); err != nil {
 38239  		return nil, gensupport.WrapError(err)
 38240  	}
 38241  	ret := &GoogleCloudApigeeV1TargetServer{
 38242  		ServerResponse: googleapi.ServerResponse{
 38243  			Header:         res.Header,
 38244  			HTTPStatusCode: res.StatusCode,
 38245  		},
 38246  	}
 38247  	target := &ret
 38248  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38249  		return nil, err
 38250  	}
 38251  	return ret, nil
 38252  }
 38253  
 38254  type OrganizationsEnvironmentsTargetserversGetCall struct {
 38255  	s            *Service
 38256  	name         string
 38257  	urlParams_   gensupport.URLParams
 38258  	ifNoneMatch_ string
 38259  	ctx_         context.Context
 38260  	header_      http.Header
 38261  }
 38262  
 38263  // Get: Gets a TargetServer resource.
 38264  //
 38265  //   - name: The name of the TargetServer to get. Must be of the form
 38266  //     `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.
 38267  func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
 38268  	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38269  	c.name = name
 38270  	return c
 38271  }
 38272  
 38273  // Fields allows partial responses to be retrieved. See
 38274  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38275  // details.
 38276  func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
 38277  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38278  	return c
 38279  }
 38280  
 38281  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38282  // object's ETag matches the given value. This is useful for getting updates
 38283  // only after the object has changed since the last request.
 38284  func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
 38285  	c.ifNoneMatch_ = entityTag
 38286  	return c
 38287  }
 38288  
 38289  // Context sets the context to be used in this call's Do method.
 38290  func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
 38291  	c.ctx_ = ctx
 38292  	return c
 38293  }
 38294  
 38295  // Header returns a http.Header that can be modified by the caller to add
 38296  // headers to the request.
 38297  func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
 38298  	if c.header_ == nil {
 38299  		c.header_ = make(http.Header)
 38300  	}
 38301  	return c.header_
 38302  }
 38303  
 38304  func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
 38305  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38306  	if c.ifNoneMatch_ != "" {
 38307  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38308  	}
 38309  	var body io.Reader = nil
 38310  	c.urlParams_.Set("alt", alt)
 38311  	c.urlParams_.Set("prettyPrint", "false")
 38312  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 38313  	urls += "?" + c.urlParams_.Encode()
 38314  	req, err := http.NewRequest("GET", urls, body)
 38315  	if err != nil {
 38316  		return nil, err
 38317  	}
 38318  	req.Header = reqHeaders
 38319  	googleapi.Expand(req.URL, map[string]string{
 38320  		"name": c.name,
 38321  	})
 38322  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38323  }
 38324  
 38325  // Do executes the "apigee.organizations.environments.targetservers.get" call.
 38326  // Any non-2xx status code is an error. Response headers are in either
 38327  // *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if a response was
 38328  // returned at all) in error.(*googleapi.Error).Header. Use
 38329  // googleapi.IsNotModified to check whether the returned error was because
 38330  // http.StatusNotModified was returned.
 38331  func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
 38332  	gensupport.SetOptions(c.urlParams_, opts...)
 38333  	res, err := c.doRequest("json")
 38334  	if res != nil && res.StatusCode == http.StatusNotModified {
 38335  		if res.Body != nil {
 38336  			res.Body.Close()
 38337  		}
 38338  		return nil, gensupport.WrapError(&googleapi.Error{
 38339  			Code:   res.StatusCode,
 38340  			Header: res.Header,
 38341  		})
 38342  	}
 38343  	if err != nil {
 38344  		return nil, err
 38345  	}
 38346  	defer googleapi.CloseBody(res)
 38347  	if err := googleapi.CheckResponse(res); err != nil {
 38348  		return nil, gensupport.WrapError(err)
 38349  	}
 38350  	ret := &GoogleCloudApigeeV1TargetServer{
 38351  		ServerResponse: googleapi.ServerResponse{
 38352  			Header:         res.Header,
 38353  			HTTPStatusCode: res.StatusCode,
 38354  		},
 38355  	}
 38356  	target := &ret
 38357  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38358  		return nil, err
 38359  	}
 38360  	return ret, nil
 38361  }
 38362  
 38363  type OrganizationsEnvironmentsTargetserversUpdateCall struct {
 38364  	s                               *Service
 38365  	name                            string
 38366  	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
 38367  	urlParams_                      gensupport.URLParams
 38368  	ctx_                            context.Context
 38369  	header_                         http.Header
 38370  }
 38371  
 38372  // Update: Updates an existing TargetServer. Note that this operation has PUT
 38373  // semantics; it will replace the entirety of the existing TargetServer with
 38374  // the resource in the request body.
 38375  //
 38376  //   - name: The name of the TargetServer to replace. Must be of the form
 38377  //     `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.
 38378  func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
 38379  	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38380  	c.name = name
 38381  	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
 38382  	return c
 38383  }
 38384  
 38385  // Fields allows partial responses to be retrieved. See
 38386  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38387  // details.
 38388  func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
 38389  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38390  	return c
 38391  }
 38392  
 38393  // Context sets the context to be used in this call's Do method.
 38394  func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
 38395  	c.ctx_ = ctx
 38396  	return c
 38397  }
 38398  
 38399  // Header returns a http.Header that can be modified by the caller to add
 38400  // headers to the request.
 38401  func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
 38402  	if c.header_ == nil {
 38403  		c.header_ = make(http.Header)
 38404  	}
 38405  	return c.header_
 38406  }
 38407  
 38408  func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
 38409  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38410  	var body io.Reader = nil
 38411  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
 38412  	if err != nil {
 38413  		return nil, err
 38414  	}
 38415  	c.urlParams_.Set("alt", alt)
 38416  	c.urlParams_.Set("prettyPrint", "false")
 38417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 38418  	urls += "?" + c.urlParams_.Encode()
 38419  	req, err := http.NewRequest("PUT", urls, body)
 38420  	if err != nil {
 38421  		return nil, err
 38422  	}
 38423  	req.Header = reqHeaders
 38424  	googleapi.Expand(req.URL, map[string]string{
 38425  		"name": c.name,
 38426  	})
 38427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38428  }
 38429  
 38430  // Do executes the "apigee.organizations.environments.targetservers.update" call.
 38431  // Any non-2xx status code is an error. Response headers are in either
 38432  // *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if a response was
 38433  // returned at all) in error.(*googleapi.Error).Header. Use
 38434  // googleapi.IsNotModified to check whether the returned error was because
 38435  // http.StatusNotModified was returned.
 38436  func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
 38437  	gensupport.SetOptions(c.urlParams_, opts...)
 38438  	res, err := c.doRequest("json")
 38439  	if res != nil && res.StatusCode == http.StatusNotModified {
 38440  		if res.Body != nil {
 38441  			res.Body.Close()
 38442  		}
 38443  		return nil, gensupport.WrapError(&googleapi.Error{
 38444  			Code:   res.StatusCode,
 38445  			Header: res.Header,
 38446  		})
 38447  	}
 38448  	if err != nil {
 38449  		return nil, err
 38450  	}
 38451  	defer googleapi.CloseBody(res)
 38452  	if err := googleapi.CheckResponse(res); err != nil {
 38453  		return nil, gensupport.WrapError(err)
 38454  	}
 38455  	ret := &GoogleCloudApigeeV1TargetServer{
 38456  		ServerResponse: googleapi.ServerResponse{
 38457  			Header:         res.Header,
 38458  			HTTPStatusCode: res.StatusCode,
 38459  		},
 38460  	}
 38461  	target := &ret
 38462  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38463  		return nil, err
 38464  	}
 38465  	return ret, nil
 38466  }
 38467  
 38468  type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
 38469  	s                                      *Service
 38470  	parent                                 string
 38471  	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
 38472  	urlParams_                             gensupport.URLParams
 38473  	ctx_                                   context.Context
 38474  	header_                                http.Header
 38475  }
 38476  
 38477  // Create: Creates a trace configuration override. The response contains a
 38478  // system-generated UUID, that can be used to view, update, or delete the
 38479  // configuration override. Use the List API to view the existing trace
 38480  // configuration overrides.
 38481  //
 38482  //   - parent: Parent resource of the trace configuration override. Use the
 38483  //     following structure in your request.
 38484  //     "organizations/*/environments/*/traceConfig".
 38485  func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
 38486  	c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38487  	c.parent = parent
 38488  	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
 38489  	return c
 38490  }
 38491  
 38492  // Fields allows partial responses to be retrieved. See
 38493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38494  // details.
 38495  func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
 38496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38497  	return c
 38498  }
 38499  
 38500  // Context sets the context to be used in this call's Do method.
 38501  func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
 38502  	c.ctx_ = ctx
 38503  	return c
 38504  }
 38505  
 38506  // Header returns a http.Header that can be modified by the caller to add
 38507  // headers to the request.
 38508  func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
 38509  	if c.header_ == nil {
 38510  		c.header_ = make(http.Header)
 38511  	}
 38512  	return c.header_
 38513  }
 38514  
 38515  func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
 38516  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38517  	var body io.Reader = nil
 38518  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
 38519  	if err != nil {
 38520  		return nil, err
 38521  	}
 38522  	c.urlParams_.Set("alt", alt)
 38523  	c.urlParams_.Set("prettyPrint", "false")
 38524  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
 38525  	urls += "?" + c.urlParams_.Encode()
 38526  	req, err := http.NewRequest("POST", urls, body)
 38527  	if err != nil {
 38528  		return nil, err
 38529  	}
 38530  	req.Header = reqHeaders
 38531  	googleapi.Expand(req.URL, map[string]string{
 38532  		"parent": c.parent,
 38533  	})
 38534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38535  }
 38536  
 38537  // Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call.
 38538  // Any non-2xx status code is an error. Response headers are in either
 38539  // *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if a
 38540  // response was returned at all) in error.(*googleapi.Error).Header. Use
 38541  // googleapi.IsNotModified to check whether the returned error was because
 38542  // http.StatusNotModified was returned.
 38543  func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
 38544  	gensupport.SetOptions(c.urlParams_, opts...)
 38545  	res, err := c.doRequest("json")
 38546  	if res != nil && res.StatusCode == http.StatusNotModified {
 38547  		if res.Body != nil {
 38548  			res.Body.Close()
 38549  		}
 38550  		return nil, gensupport.WrapError(&googleapi.Error{
 38551  			Code:   res.StatusCode,
 38552  			Header: res.Header,
 38553  		})
 38554  	}
 38555  	if err != nil {
 38556  		return nil, err
 38557  	}
 38558  	defer googleapi.CloseBody(res)
 38559  	if err := googleapi.CheckResponse(res); err != nil {
 38560  		return nil, gensupport.WrapError(err)
 38561  	}
 38562  	ret := &GoogleCloudApigeeV1TraceConfigOverride{
 38563  		ServerResponse: googleapi.ServerResponse{
 38564  			Header:         res.Header,
 38565  			HTTPStatusCode: res.StatusCode,
 38566  		},
 38567  	}
 38568  	target := &ret
 38569  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38570  		return nil, err
 38571  	}
 38572  	return ret, nil
 38573  }
 38574  
 38575  type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
 38576  	s          *Service
 38577  	name       string
 38578  	urlParams_ gensupport.URLParams
 38579  	ctx_       context.Context
 38580  	header_    http.Header
 38581  }
 38582  
 38583  // Delete: Deletes a distributed trace configuration override.
 38584  //
 38585  //   - name: Name of the trace configuration override. Use the following
 38586  //     structure in your request:
 38587  //     "organizations/*/environments/*/traceConfig/overrides/*".
 38588  func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
 38589  	c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38590  	c.name = name
 38591  	return c
 38592  }
 38593  
 38594  // Fields allows partial responses to be retrieved. See
 38595  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38596  // details.
 38597  func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
 38598  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38599  	return c
 38600  }
 38601  
 38602  // Context sets the context to be used in this call's Do method.
 38603  func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
 38604  	c.ctx_ = ctx
 38605  	return c
 38606  }
 38607  
 38608  // Header returns a http.Header that can be modified by the caller to add
 38609  // headers to the request.
 38610  func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
 38611  	if c.header_ == nil {
 38612  		c.header_ = make(http.Header)
 38613  	}
 38614  	return c.header_
 38615  }
 38616  
 38617  func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
 38618  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38619  	var body io.Reader = nil
 38620  	c.urlParams_.Set("alt", alt)
 38621  	c.urlParams_.Set("prettyPrint", "false")
 38622  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 38623  	urls += "?" + c.urlParams_.Encode()
 38624  	req, err := http.NewRequest("DELETE", urls, body)
 38625  	if err != nil {
 38626  		return nil, err
 38627  	}
 38628  	req.Header = reqHeaders
 38629  	googleapi.Expand(req.URL, map[string]string{
 38630  		"name": c.name,
 38631  	})
 38632  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38633  }
 38634  
 38635  // Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call.
 38636  // Any non-2xx status code is an error. Response headers are in either
 38637  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 38638  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 38639  // check whether the returned error was because http.StatusNotModified was
 38640  // returned.
 38641  func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 38642  	gensupport.SetOptions(c.urlParams_, opts...)
 38643  	res, err := c.doRequest("json")
 38644  	if res != nil && res.StatusCode == http.StatusNotModified {
 38645  		if res.Body != nil {
 38646  			res.Body.Close()
 38647  		}
 38648  		return nil, gensupport.WrapError(&googleapi.Error{
 38649  			Code:   res.StatusCode,
 38650  			Header: res.Header,
 38651  		})
 38652  	}
 38653  	if err != nil {
 38654  		return nil, err
 38655  	}
 38656  	defer googleapi.CloseBody(res)
 38657  	if err := googleapi.CheckResponse(res); err != nil {
 38658  		return nil, gensupport.WrapError(err)
 38659  	}
 38660  	ret := &GoogleProtobufEmpty{
 38661  		ServerResponse: googleapi.ServerResponse{
 38662  			Header:         res.Header,
 38663  			HTTPStatusCode: res.StatusCode,
 38664  		},
 38665  	}
 38666  	target := &ret
 38667  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38668  		return nil, err
 38669  	}
 38670  	return ret, nil
 38671  }
 38672  
 38673  type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
 38674  	s            *Service
 38675  	name         string
 38676  	urlParams_   gensupport.URLParams
 38677  	ifNoneMatch_ string
 38678  	ctx_         context.Context
 38679  	header_      http.Header
 38680  }
 38681  
 38682  // Get: Gets a trace configuration override.
 38683  //
 38684  //   - name: Name of the trace configuration override. Use the following
 38685  //     structure in your request:
 38686  //     "organizations/*/environments/*/traceConfig/overrides/*".
 38687  func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
 38688  	c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38689  	c.name = name
 38690  	return c
 38691  }
 38692  
 38693  // Fields allows partial responses to be retrieved. See
 38694  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38695  // details.
 38696  func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
 38697  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38698  	return c
 38699  }
 38700  
 38701  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38702  // object's ETag matches the given value. This is useful for getting updates
 38703  // only after the object has changed since the last request.
 38704  func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
 38705  	c.ifNoneMatch_ = entityTag
 38706  	return c
 38707  }
 38708  
 38709  // Context sets the context to be used in this call's Do method.
 38710  func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
 38711  	c.ctx_ = ctx
 38712  	return c
 38713  }
 38714  
 38715  // Header returns a http.Header that can be modified by the caller to add
 38716  // headers to the request.
 38717  func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
 38718  	if c.header_ == nil {
 38719  		c.header_ = make(http.Header)
 38720  	}
 38721  	return c.header_
 38722  }
 38723  
 38724  func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
 38725  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38726  	if c.ifNoneMatch_ != "" {
 38727  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38728  	}
 38729  	var body io.Reader = nil
 38730  	c.urlParams_.Set("alt", alt)
 38731  	c.urlParams_.Set("prettyPrint", "false")
 38732  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 38733  	urls += "?" + c.urlParams_.Encode()
 38734  	req, err := http.NewRequest("GET", urls, body)
 38735  	if err != nil {
 38736  		return nil, err
 38737  	}
 38738  	req.Header = reqHeaders
 38739  	googleapi.Expand(req.URL, map[string]string{
 38740  		"name": c.name,
 38741  	})
 38742  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38743  }
 38744  
 38745  // Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call.
 38746  // Any non-2xx status code is an error. Response headers are in either
 38747  // *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if a
 38748  // response was returned at all) in error.(*googleapi.Error).Header. Use
 38749  // googleapi.IsNotModified to check whether the returned error was because
 38750  // http.StatusNotModified was returned.
 38751  func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
 38752  	gensupport.SetOptions(c.urlParams_, opts...)
 38753  	res, err := c.doRequest("json")
 38754  	if res != nil && res.StatusCode == http.StatusNotModified {
 38755  		if res.Body != nil {
 38756  			res.Body.Close()
 38757  		}
 38758  		return nil, gensupport.WrapError(&googleapi.Error{
 38759  			Code:   res.StatusCode,
 38760  			Header: res.Header,
 38761  		})
 38762  	}
 38763  	if err != nil {
 38764  		return nil, err
 38765  	}
 38766  	defer googleapi.CloseBody(res)
 38767  	if err := googleapi.CheckResponse(res); err != nil {
 38768  		return nil, gensupport.WrapError(err)
 38769  	}
 38770  	ret := &GoogleCloudApigeeV1TraceConfigOverride{
 38771  		ServerResponse: googleapi.ServerResponse{
 38772  			Header:         res.Header,
 38773  			HTTPStatusCode: res.StatusCode,
 38774  		},
 38775  	}
 38776  	target := &ret
 38777  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38778  		return nil, err
 38779  	}
 38780  	return ret, nil
 38781  }
 38782  
 38783  type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
 38784  	s            *Service
 38785  	parent       string
 38786  	urlParams_   gensupport.URLParams
 38787  	ifNoneMatch_ string
 38788  	ctx_         context.Context
 38789  	header_      http.Header
 38790  }
 38791  
 38792  // List: Lists all of the distributed trace configuration overrides in an
 38793  // environment.
 38794  //
 38795  //   - parent: Parent resource of the trace configuration override. Use the
 38796  //     following structure in your request:
 38797  //     "organizations/*/environments/*/traceConfig".
 38798  func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
 38799  	c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38800  	c.parent = parent
 38801  	return c
 38802  }
 38803  
 38804  // PageSize sets the optional parameter "pageSize": Maximum number of trace
 38805  // configuration overrides to return. If not specified, the maximum number
 38806  // returned is 25. The maximum number cannot exceed 100.
 38807  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
 38808  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 38809  	return c
 38810  }
 38811  
 38812  // PageToken sets the optional parameter "pageToken": A page token, returned
 38813  // from a previous `ListTraceConfigOverrides` call. Token value that can be
 38814  // used to retrieve the subsequent page. When paginating, all other parameters
 38815  // provided to `ListTraceConfigOverrides` must match those specified in the
 38816  // call to obtain the page token.
 38817  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
 38818  	c.urlParams_.Set("pageToken", pageToken)
 38819  	return c
 38820  }
 38821  
 38822  // Fields allows partial responses to be retrieved. See
 38823  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38824  // details.
 38825  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
 38826  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38827  	return c
 38828  }
 38829  
 38830  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38831  // object's ETag matches the given value. This is useful for getting updates
 38832  // only after the object has changed since the last request.
 38833  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
 38834  	c.ifNoneMatch_ = entityTag
 38835  	return c
 38836  }
 38837  
 38838  // Context sets the context to be used in this call's Do method.
 38839  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
 38840  	c.ctx_ = ctx
 38841  	return c
 38842  }
 38843  
 38844  // Header returns a http.Header that can be modified by the caller to add
 38845  // headers to the request.
 38846  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
 38847  	if c.header_ == nil {
 38848  		c.header_ = make(http.Header)
 38849  	}
 38850  	return c.header_
 38851  }
 38852  
 38853  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
 38854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38855  	if c.ifNoneMatch_ != "" {
 38856  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38857  	}
 38858  	var body io.Reader = nil
 38859  	c.urlParams_.Set("alt", alt)
 38860  	c.urlParams_.Set("prettyPrint", "false")
 38861  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
 38862  	urls += "?" + c.urlParams_.Encode()
 38863  	req, err := http.NewRequest("GET", urls, body)
 38864  	if err != nil {
 38865  		return nil, err
 38866  	}
 38867  	req.Header = reqHeaders
 38868  	googleapi.Expand(req.URL, map[string]string{
 38869  		"parent": c.parent,
 38870  	})
 38871  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38872  }
 38873  
 38874  // Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call.
 38875  // Any non-2xx status code is an error. Response headers are in either
 38876  // *GoogleCloudApigeeV1ListTraceConfigOverridesResponse.ServerResponse.Header
 38877  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 38878  // Use googleapi.IsNotModified to check whether the returned error was because
 38879  // http.StatusNotModified was returned.
 38880  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
 38881  	gensupport.SetOptions(c.urlParams_, opts...)
 38882  	res, err := c.doRequest("json")
 38883  	if res != nil && res.StatusCode == http.StatusNotModified {
 38884  		if res.Body != nil {
 38885  			res.Body.Close()
 38886  		}
 38887  		return nil, gensupport.WrapError(&googleapi.Error{
 38888  			Code:   res.StatusCode,
 38889  			Header: res.Header,
 38890  		})
 38891  	}
 38892  	if err != nil {
 38893  		return nil, err
 38894  	}
 38895  	defer googleapi.CloseBody(res)
 38896  	if err := googleapi.CheckResponse(res); err != nil {
 38897  		return nil, gensupport.WrapError(err)
 38898  	}
 38899  	ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
 38900  		ServerResponse: googleapi.ServerResponse{
 38901  			Header:         res.Header,
 38902  			HTTPStatusCode: res.StatusCode,
 38903  		},
 38904  	}
 38905  	target := &ret
 38906  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38907  		return nil, err
 38908  	}
 38909  	return ret, nil
 38910  }
 38911  
 38912  // Pages invokes f for each page of results.
 38913  // A non-nil error returned from f will halt the iteration.
 38914  // The provided context supersedes any context provided to the Context method.
 38915  func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
 38916  	c.ctx_ = ctx
 38917  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 38918  	for {
 38919  		x, err := c.Do()
 38920  		if err != nil {
 38921  			return err
 38922  		}
 38923  		if err := f(x); err != nil {
 38924  			return err
 38925  		}
 38926  		if x.NextPageToken == "" {
 38927  			return nil
 38928  		}
 38929  		c.PageToken(x.NextPageToken)
 38930  	}
 38931  }
 38932  
 38933  type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
 38934  	s                                      *Service
 38935  	name                                   string
 38936  	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
 38937  	urlParams_                             gensupport.URLParams
 38938  	ctx_                                   context.Context
 38939  	header_                                http.Header
 38940  }
 38941  
 38942  // Patch: Updates a distributed trace configuration override. Note that the
 38943  // repeated fields have replace semantics when included in the field mask and
 38944  // that they will be overwritten by the value of the fields in the request
 38945  // body.
 38946  //
 38947  //   - name: Name of the trace configuration override. Use the following
 38948  //     structure in your request:
 38949  //     "organizations/*/environments/*/traceConfig/overrides/*".
 38950  func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
 38951  	c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38952  	c.name = name
 38953  	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
 38954  	return c
 38955  }
 38956  
 38957  // UpdateMask sets the optional parameter "updateMask": List of fields to be
 38958  // updated.
 38959  func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
 38960  	c.urlParams_.Set("updateMask", updateMask)
 38961  	return c
 38962  }
 38963  
 38964  // Fields allows partial responses to be retrieved. See
 38965  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38966  // details.
 38967  func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
 38968  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38969  	return c
 38970  }
 38971  
 38972  // Context sets the context to be used in this call's Do method.
 38973  func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
 38974  	c.ctx_ = ctx
 38975  	return c
 38976  }
 38977  
 38978  // Header returns a http.Header that can be modified by the caller to add
 38979  // headers to the request.
 38980  func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
 38981  	if c.header_ == nil {
 38982  		c.header_ = make(http.Header)
 38983  	}
 38984  	return c.header_
 38985  }
 38986  
 38987  func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
 38988  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38989  	var body io.Reader = nil
 38990  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
 38991  	if err != nil {
 38992  		return nil, err
 38993  	}
 38994  	c.urlParams_.Set("alt", alt)
 38995  	c.urlParams_.Set("prettyPrint", "false")
 38996  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 38997  	urls += "?" + c.urlParams_.Encode()
 38998  	req, err := http.NewRequest("PATCH", urls, body)
 38999  	if err != nil {
 39000  		return nil, err
 39001  	}
 39002  	req.Header = reqHeaders
 39003  	googleapi.Expand(req.URL, map[string]string{
 39004  		"name": c.name,
 39005  	})
 39006  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39007  }
 39008  
 39009  // Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call.
 39010  // Any non-2xx status code is an error. Response headers are in either
 39011  // *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if a
 39012  // response was returned at all) in error.(*googleapi.Error).Header. Use
 39013  // googleapi.IsNotModified to check whether the returned error was because
 39014  // http.StatusNotModified was returned.
 39015  func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
 39016  	gensupport.SetOptions(c.urlParams_, opts...)
 39017  	res, err := c.doRequest("json")
 39018  	if res != nil && res.StatusCode == http.StatusNotModified {
 39019  		if res.Body != nil {
 39020  			res.Body.Close()
 39021  		}
 39022  		return nil, gensupport.WrapError(&googleapi.Error{
 39023  			Code:   res.StatusCode,
 39024  			Header: res.Header,
 39025  		})
 39026  	}
 39027  	if err != nil {
 39028  		return nil, err
 39029  	}
 39030  	defer googleapi.CloseBody(res)
 39031  	if err := googleapi.CheckResponse(res); err != nil {
 39032  		return nil, gensupport.WrapError(err)
 39033  	}
 39034  	ret := &GoogleCloudApigeeV1TraceConfigOverride{
 39035  		ServerResponse: googleapi.ServerResponse{
 39036  			Header:         res.Header,
 39037  			HTTPStatusCode: res.StatusCode,
 39038  		},
 39039  	}
 39040  	target := &ret
 39041  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39042  		return nil, err
 39043  	}
 39044  	return ret, nil
 39045  }
 39046  
 39047  type OrganizationsHostQueriesCreateCall struct {
 39048  	s                        *Service
 39049  	parent                   string
 39050  	googlecloudapigeev1query *GoogleCloudApigeeV1Query
 39051  	urlParams_               gensupport.URLParams
 39052  	ctx_                     context.Context
 39053  	header_                  http.Header
 39054  }
 39055  
 39056  // Create: Submit a query at host level to be processed in the background. If
 39057  // the submission of the query succeeds, the API returns a 201 status and an ID
 39058  // that refer to the query. In addition to the HTTP status 201, the `state` of
 39059  // "enqueued" means that the request succeeded.
 39060  //
 39061  //   - parent: The parent resource name. Must be of the form
 39062  //     `organizations/{org}`.
 39063  func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
 39064  	c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39065  	c.parent = parent
 39066  	c.googlecloudapigeev1query = googlecloudapigeev1query
 39067  	return c
 39068  }
 39069  
 39070  // Fields allows partial responses to be retrieved. See
 39071  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39072  // details.
 39073  func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
 39074  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39075  	return c
 39076  }
 39077  
 39078  // Context sets the context to be used in this call's Do method.
 39079  func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
 39080  	c.ctx_ = ctx
 39081  	return c
 39082  }
 39083  
 39084  // Header returns a http.Header that can be modified by the caller to add
 39085  // headers to the request.
 39086  func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
 39087  	if c.header_ == nil {
 39088  		c.header_ = make(http.Header)
 39089  	}
 39090  	return c.header_
 39091  }
 39092  
 39093  func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
 39094  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39095  	var body io.Reader = nil
 39096  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
 39097  	if err != nil {
 39098  		return nil, err
 39099  	}
 39100  	c.urlParams_.Set("alt", alt)
 39101  	c.urlParams_.Set("prettyPrint", "false")
 39102  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
 39103  	urls += "?" + c.urlParams_.Encode()
 39104  	req, err := http.NewRequest("POST", urls, body)
 39105  	if err != nil {
 39106  		return nil, err
 39107  	}
 39108  	req.Header = reqHeaders
 39109  	googleapi.Expand(req.URL, map[string]string{
 39110  		"parent": c.parent,
 39111  	})
 39112  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39113  }
 39114  
 39115  // Do executes the "apigee.organizations.hostQueries.create" call.
 39116  // Any non-2xx status code is an error. Response headers are in either
 39117  // *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a response was
 39118  // returned at all) in error.(*googleapi.Error).Header. Use
 39119  // googleapi.IsNotModified to check whether the returned error was because
 39120  // http.StatusNotModified was returned.
 39121  func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
 39122  	gensupport.SetOptions(c.urlParams_, opts...)
 39123  	res, err := c.doRequest("json")
 39124  	if res != nil && res.StatusCode == http.StatusNotModified {
 39125  		if res.Body != nil {
 39126  			res.Body.Close()
 39127  		}
 39128  		return nil, gensupport.WrapError(&googleapi.Error{
 39129  			Code:   res.StatusCode,
 39130  			Header: res.Header,
 39131  		})
 39132  	}
 39133  	if err != nil {
 39134  		return nil, err
 39135  	}
 39136  	defer googleapi.CloseBody(res)
 39137  	if err := googleapi.CheckResponse(res); err != nil {
 39138  		return nil, gensupport.WrapError(err)
 39139  	}
 39140  	ret := &GoogleCloudApigeeV1AsyncQuery{
 39141  		ServerResponse: googleapi.ServerResponse{
 39142  			Header:         res.Header,
 39143  			HTTPStatusCode: res.StatusCode,
 39144  		},
 39145  	}
 39146  	target := &ret
 39147  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39148  		return nil, err
 39149  	}
 39150  	return ret, nil
 39151  }
 39152  
 39153  type OrganizationsHostQueriesGetCall struct {
 39154  	s            *Service
 39155  	name         string
 39156  	urlParams_   gensupport.URLParams
 39157  	ifNoneMatch_ string
 39158  	ctx_         context.Context
 39159  	header_      http.Header
 39160  }
 39161  
 39162  // Get: Get status of a query submitted at host level. If the query is still in
 39163  // progress, the `state` is set to "running" After the query has completed
 39164  // successfully, `state` is set to "completed"
 39165  //
 39166  //   - name: Name of the asynchronous query to get. Must be of the form
 39167  //     `organizations/{org}/queries/{queryId}`.
 39168  func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
 39169  	c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39170  	c.name = name
 39171  	return c
 39172  }
 39173  
 39174  // Fields allows partial responses to be retrieved. See
 39175  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39176  // details.
 39177  func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
 39178  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39179  	return c
 39180  }
 39181  
 39182  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39183  // object's ETag matches the given value. This is useful for getting updates
 39184  // only after the object has changed since the last request.
 39185  func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
 39186  	c.ifNoneMatch_ = entityTag
 39187  	return c
 39188  }
 39189  
 39190  // Context sets the context to be used in this call's Do method.
 39191  func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
 39192  	c.ctx_ = ctx
 39193  	return c
 39194  }
 39195  
 39196  // Header returns a http.Header that can be modified by the caller to add
 39197  // headers to the request.
 39198  func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
 39199  	if c.header_ == nil {
 39200  		c.header_ = make(http.Header)
 39201  	}
 39202  	return c.header_
 39203  }
 39204  
 39205  func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
 39206  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39207  	if c.ifNoneMatch_ != "" {
 39208  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39209  	}
 39210  	var body io.Reader = nil
 39211  	c.urlParams_.Set("alt", alt)
 39212  	c.urlParams_.Set("prettyPrint", "false")
 39213  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 39214  	urls += "?" + c.urlParams_.Encode()
 39215  	req, err := http.NewRequest("GET", urls, body)
 39216  	if err != nil {
 39217  		return nil, err
 39218  	}
 39219  	req.Header = reqHeaders
 39220  	googleapi.Expand(req.URL, map[string]string{
 39221  		"name": c.name,
 39222  	})
 39223  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39224  }
 39225  
 39226  // Do executes the "apigee.organizations.hostQueries.get" call.
 39227  // Any non-2xx status code is an error. Response headers are in either
 39228  // *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a response was
 39229  // returned at all) in error.(*googleapi.Error).Header. Use
 39230  // googleapi.IsNotModified to check whether the returned error was because
 39231  // http.StatusNotModified was returned.
 39232  func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
 39233  	gensupport.SetOptions(c.urlParams_, opts...)
 39234  	res, err := c.doRequest("json")
 39235  	if res != nil && res.StatusCode == http.StatusNotModified {
 39236  		if res.Body != nil {
 39237  			res.Body.Close()
 39238  		}
 39239  		return nil, gensupport.WrapError(&googleapi.Error{
 39240  			Code:   res.StatusCode,
 39241  			Header: res.Header,
 39242  		})
 39243  	}
 39244  	if err != nil {
 39245  		return nil, err
 39246  	}
 39247  	defer googleapi.CloseBody(res)
 39248  	if err := googleapi.CheckResponse(res); err != nil {
 39249  		return nil, gensupport.WrapError(err)
 39250  	}
 39251  	ret := &GoogleCloudApigeeV1AsyncQuery{
 39252  		ServerResponse: googleapi.ServerResponse{
 39253  			Header:         res.Header,
 39254  			HTTPStatusCode: res.StatusCode,
 39255  		},
 39256  	}
 39257  	target := &ret
 39258  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39259  		return nil, err
 39260  	}
 39261  	return ret, nil
 39262  }
 39263  
 39264  type OrganizationsHostQueriesGetResultCall struct {
 39265  	s            *Service
 39266  	name         string
 39267  	urlParams_   gensupport.URLParams
 39268  	ifNoneMatch_ string
 39269  	ctx_         context.Context
 39270  	header_      http.Header
 39271  }
 39272  
 39273  // GetResult: After the query is completed, use this API to retrieve the
 39274  // results. If the request succeeds, and there is a non-zero result set, the
 39275  // result is downloaded to the client as a zipped JSON file. The name of the
 39276  // downloaded file will be: OfflineQueryResult-.zip Example:
 39277  // `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
 39278  //
 39279  //   - name: Name of the asynchronous query result to get. Must be of the form
 39280  //     `organizations/{org}/queries/{queryId}/result`.
 39281  func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
 39282  	c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39283  	c.name = name
 39284  	return c
 39285  }
 39286  
 39287  // Fields allows partial responses to be retrieved. See
 39288  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39289  // details.
 39290  func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
 39291  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39292  	return c
 39293  }
 39294  
 39295  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39296  // object's ETag matches the given value. This is useful for getting updates
 39297  // only after the object has changed since the last request.
 39298  func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
 39299  	c.ifNoneMatch_ = entityTag
 39300  	return c
 39301  }
 39302  
 39303  // Context sets the context to be used in this call's Do method.
 39304  func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
 39305  	c.ctx_ = ctx
 39306  	return c
 39307  }
 39308  
 39309  // Header returns a http.Header that can be modified by the caller to add
 39310  // headers to the request.
 39311  func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
 39312  	if c.header_ == nil {
 39313  		c.header_ = make(http.Header)
 39314  	}
 39315  	return c.header_
 39316  }
 39317  
 39318  func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
 39319  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39320  	if c.ifNoneMatch_ != "" {
 39321  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39322  	}
 39323  	var body io.Reader = nil
 39324  	c.urlParams_.Set("alt", alt)
 39325  	c.urlParams_.Set("prettyPrint", "false")
 39326  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 39327  	urls += "?" + c.urlParams_.Encode()
 39328  	req, err := http.NewRequest("GET", urls, body)
 39329  	if err != nil {
 39330  		return nil, err
 39331  	}
 39332  	req.Header = reqHeaders
 39333  	googleapi.Expand(req.URL, map[string]string{
 39334  		"name": c.name,
 39335  	})
 39336  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39337  }
 39338  
 39339  // Do executes the "apigee.organizations.hostQueries.getResult" call.
 39340  // Any non-2xx status code is an error. Response headers are in either
 39341  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 39342  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 39343  // check whether the returned error was because http.StatusNotModified was
 39344  // returned.
 39345  func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 39346  	gensupport.SetOptions(c.urlParams_, opts...)
 39347  	res, err := c.doRequest("json")
 39348  	if res != nil && res.StatusCode == http.StatusNotModified {
 39349  		if res.Body != nil {
 39350  			res.Body.Close()
 39351  		}
 39352  		return nil, gensupport.WrapError(&googleapi.Error{
 39353  			Code:   res.StatusCode,
 39354  			Header: res.Header,
 39355  		})
 39356  	}
 39357  	if err != nil {
 39358  		return nil, err
 39359  	}
 39360  	defer googleapi.CloseBody(res)
 39361  	if err := googleapi.CheckResponse(res); err != nil {
 39362  		return nil, gensupport.WrapError(err)
 39363  	}
 39364  	ret := &GoogleApiHttpBody{
 39365  		ServerResponse: googleapi.ServerResponse{
 39366  			Header:         res.Header,
 39367  			HTTPStatusCode: res.StatusCode,
 39368  		},
 39369  	}
 39370  	target := &ret
 39371  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39372  		return nil, err
 39373  	}
 39374  	return ret, nil
 39375  }
 39376  
 39377  type OrganizationsHostQueriesGetResultViewCall struct {
 39378  	s            *Service
 39379  	name         string
 39380  	urlParams_   gensupport.URLParams
 39381  	ifNoneMatch_ string
 39382  	ctx_         context.Context
 39383  	header_      http.Header
 39384  }
 39385  
 39386  // GetResultView:
 39387  //
 39388  //   - name: Name of the asynchronous query result view to get. Must be of the
 39389  //     form `organizations/{org}/queries/{queryId}/resultView`.
 39390  func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
 39391  	c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39392  	c.name = name
 39393  	return c
 39394  }
 39395  
 39396  // Fields allows partial responses to be retrieved. See
 39397  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39398  // details.
 39399  func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
 39400  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39401  	return c
 39402  }
 39403  
 39404  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39405  // object's ETag matches the given value. This is useful for getting updates
 39406  // only after the object has changed since the last request.
 39407  func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
 39408  	c.ifNoneMatch_ = entityTag
 39409  	return c
 39410  }
 39411  
 39412  // Context sets the context to be used in this call's Do method.
 39413  func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
 39414  	c.ctx_ = ctx
 39415  	return c
 39416  }
 39417  
 39418  // Header returns a http.Header that can be modified by the caller to add
 39419  // headers to the request.
 39420  func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
 39421  	if c.header_ == nil {
 39422  		c.header_ = make(http.Header)
 39423  	}
 39424  	return c.header_
 39425  }
 39426  
 39427  func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
 39428  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39429  	if c.ifNoneMatch_ != "" {
 39430  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39431  	}
 39432  	var body io.Reader = nil
 39433  	c.urlParams_.Set("alt", alt)
 39434  	c.urlParams_.Set("prettyPrint", "false")
 39435  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 39436  	urls += "?" + c.urlParams_.Encode()
 39437  	req, err := http.NewRequest("GET", urls, body)
 39438  	if err != nil {
 39439  		return nil, err
 39440  	}
 39441  	req.Header = reqHeaders
 39442  	googleapi.Expand(req.URL, map[string]string{
 39443  		"name": c.name,
 39444  	})
 39445  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39446  }
 39447  
 39448  // Do executes the "apigee.organizations.hostQueries.getResultView" call.
 39449  // Any non-2xx status code is an error. Response headers are in either
 39450  // *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if a
 39451  // response was returned at all) in error.(*googleapi.Error).Header. Use
 39452  // googleapi.IsNotModified to check whether the returned error was because
 39453  // http.StatusNotModified was returned.
 39454  func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
 39455  	gensupport.SetOptions(c.urlParams_, opts...)
 39456  	res, err := c.doRequest("json")
 39457  	if res != nil && res.StatusCode == http.StatusNotModified {
 39458  		if res.Body != nil {
 39459  			res.Body.Close()
 39460  		}
 39461  		return nil, gensupport.WrapError(&googleapi.Error{
 39462  			Code:   res.StatusCode,
 39463  			Header: res.Header,
 39464  		})
 39465  	}
 39466  	if err != nil {
 39467  		return nil, err
 39468  	}
 39469  	defer googleapi.CloseBody(res)
 39470  	if err := googleapi.CheckResponse(res); err != nil {
 39471  		return nil, gensupport.WrapError(err)
 39472  	}
 39473  	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
 39474  		ServerResponse: googleapi.ServerResponse{
 39475  			Header:         res.Header,
 39476  			HTTPStatusCode: res.StatusCode,
 39477  		},
 39478  	}
 39479  	target := &ret
 39480  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39481  		return nil, err
 39482  	}
 39483  	return ret, nil
 39484  }
 39485  
 39486  type OrganizationsHostQueriesListCall struct {
 39487  	s            *Service
 39488  	parent       string
 39489  	urlParams_   gensupport.URLParams
 39490  	ifNoneMatch_ string
 39491  	ctx_         context.Context
 39492  	header_      http.Header
 39493  }
 39494  
 39495  // List: Return a list of Asynchronous Queries at host level.
 39496  //
 39497  //   - parent: The parent resource name. Must be of the form
 39498  //     `organizations/{org}`.
 39499  func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
 39500  	c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39501  	c.parent = parent
 39502  	return c
 39503  }
 39504  
 39505  // Dataset sets the optional parameter "dataset": Filter response list by
 39506  // dataset. Example: `api`, `mint`
 39507  func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
 39508  	c.urlParams_.Set("dataset", dataset)
 39509  	return c
 39510  }
 39511  
 39512  // EnvgroupHostname sets the optional parameter "envgroupHostname": Required.
 39513  // Filter response list by hostname.
 39514  func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
 39515  	c.urlParams_.Set("envgroupHostname", envgroupHostname)
 39516  	return c
 39517  }
 39518  
 39519  // From sets the optional parameter "from": Filter response list by returning
 39520  // asynchronous queries that created after this date time. Time must be in ISO
 39521  // date-time format like '2011-12-03T10:15:30Z'.
 39522  func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
 39523  	c.urlParams_.Set("from", from)
 39524  	return c
 39525  }
 39526  
 39527  // InclQueriesWithoutReport sets the optional parameter
 39528  // "inclQueriesWithoutReport": Flag to include asynchronous queries that don't
 39529  // have a report denifition.
 39530  func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
 39531  	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
 39532  	return c
 39533  }
 39534  
 39535  // Status sets the optional parameter "status": Filter response list by
 39536  // asynchronous query status.
 39537  func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
 39538  	c.urlParams_.Set("status", status)
 39539  	return c
 39540  }
 39541  
 39542  // SubmittedBy sets the optional parameter "submittedBy": Filter response list
 39543  // by user who submitted queries.
 39544  func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
 39545  	c.urlParams_.Set("submittedBy", submittedBy)
 39546  	return c
 39547  }
 39548  
 39549  // To sets the optional parameter "to": Filter response list by returning
 39550  // asynchronous queries that created before this date time. Time must be in ISO
 39551  // date-time format like '2011-12-03T10:16:30Z'.
 39552  func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
 39553  	c.urlParams_.Set("to", to)
 39554  	return c
 39555  }
 39556  
 39557  // Fields allows partial responses to be retrieved. See
 39558  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39559  // details.
 39560  func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
 39561  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39562  	return c
 39563  }
 39564  
 39565  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39566  // object's ETag matches the given value. This is useful for getting updates
 39567  // only after the object has changed since the last request.
 39568  func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
 39569  	c.ifNoneMatch_ = entityTag
 39570  	return c
 39571  }
 39572  
 39573  // Context sets the context to be used in this call's Do method.
 39574  func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
 39575  	c.ctx_ = ctx
 39576  	return c
 39577  }
 39578  
 39579  // Header returns a http.Header that can be modified by the caller to add
 39580  // headers to the request.
 39581  func (c *OrganizationsHostQueriesListCall) Header() http.Header {
 39582  	if c.header_ == nil {
 39583  		c.header_ = make(http.Header)
 39584  	}
 39585  	return c.header_
 39586  }
 39587  
 39588  func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
 39589  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39590  	if c.ifNoneMatch_ != "" {
 39591  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39592  	}
 39593  	var body io.Reader = nil
 39594  	c.urlParams_.Set("alt", alt)
 39595  	c.urlParams_.Set("prettyPrint", "false")
 39596  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
 39597  	urls += "?" + c.urlParams_.Encode()
 39598  	req, err := http.NewRequest("GET", urls, body)
 39599  	if err != nil {
 39600  		return nil, err
 39601  	}
 39602  	req.Header = reqHeaders
 39603  	googleapi.Expand(req.URL, map[string]string{
 39604  		"parent": c.parent,
 39605  	})
 39606  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39607  }
 39608  
 39609  // Do executes the "apigee.organizations.hostQueries.list" call.
 39610  // Any non-2xx status code is an error. Response headers are in either
 39611  // *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or (if a
 39612  // response was returned at all) in error.(*googleapi.Error).Header. Use
 39613  // googleapi.IsNotModified to check whether the returned error was because
 39614  // http.StatusNotModified was returned.
 39615  func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
 39616  	gensupport.SetOptions(c.urlParams_, opts...)
 39617  	res, err := c.doRequest("json")
 39618  	if res != nil && res.StatusCode == http.StatusNotModified {
 39619  		if res.Body != nil {
 39620  			res.Body.Close()
 39621  		}
 39622  		return nil, gensupport.WrapError(&googleapi.Error{
 39623  			Code:   res.StatusCode,
 39624  			Header: res.Header,
 39625  		})
 39626  	}
 39627  	if err != nil {
 39628  		return nil, err
 39629  	}
 39630  	defer googleapi.CloseBody(res)
 39631  	if err := googleapi.CheckResponse(res); err != nil {
 39632  		return nil, gensupport.WrapError(err)
 39633  	}
 39634  	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
 39635  		ServerResponse: googleapi.ServerResponse{
 39636  			Header:         res.Header,
 39637  			HTTPStatusCode: res.StatusCode,
 39638  		},
 39639  	}
 39640  	target := &ret
 39641  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39642  		return nil, err
 39643  	}
 39644  	return ret, nil
 39645  }
 39646  
 39647  type OrganizationsHostSecurityReportsCreateCall struct {
 39648  	s                                      *Service
 39649  	parent                                 string
 39650  	googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery
 39651  	urlParams_                             gensupport.URLParams
 39652  	ctx_                                   context.Context
 39653  	header_                                http.Header
 39654  }
 39655  
 39656  // Create: Submit a query at host level to be processed in the background. If
 39657  // the submission of the query succeeds, the API returns a 201 status and an ID
 39658  // that refer to the query. In addition to the HTTP status 201, the `state` of
 39659  // "enqueued" means that the request succeeded.
 39660  //
 39661  //   - parent: The parent resource name. Must be of the form
 39662  //     `organizations/{org}`.
 39663  func (r *OrganizationsHostSecurityReportsService) Create(parent string, googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery) *OrganizationsHostSecurityReportsCreateCall {
 39664  	c := &OrganizationsHostSecurityReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39665  	c.parent = parent
 39666  	c.googlecloudapigeev1securityreportquery = googlecloudapigeev1securityreportquery
 39667  	return c
 39668  }
 39669  
 39670  // Fields allows partial responses to be retrieved. See
 39671  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39672  // details.
 39673  func (c *OrganizationsHostSecurityReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsCreateCall {
 39674  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39675  	return c
 39676  }
 39677  
 39678  // Context sets the context to be used in this call's Do method.
 39679  func (c *OrganizationsHostSecurityReportsCreateCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsCreateCall {
 39680  	c.ctx_ = ctx
 39681  	return c
 39682  }
 39683  
 39684  // Header returns a http.Header that can be modified by the caller to add
 39685  // headers to the request.
 39686  func (c *OrganizationsHostSecurityReportsCreateCall) Header() http.Header {
 39687  	if c.header_ == nil {
 39688  		c.header_ = make(http.Header)
 39689  	}
 39690  	return c.header_
 39691  }
 39692  
 39693  func (c *OrganizationsHostSecurityReportsCreateCall) doRequest(alt string) (*http.Response, error) {
 39694  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39695  	var body io.Reader = nil
 39696  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityreportquery)
 39697  	if err != nil {
 39698  		return nil, err
 39699  	}
 39700  	c.urlParams_.Set("alt", alt)
 39701  	c.urlParams_.Set("prettyPrint", "false")
 39702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostSecurityReports")
 39703  	urls += "?" + c.urlParams_.Encode()
 39704  	req, err := http.NewRequest("POST", urls, body)
 39705  	if err != nil {
 39706  		return nil, err
 39707  	}
 39708  	req.Header = reqHeaders
 39709  	googleapi.Expand(req.URL, map[string]string{
 39710  		"parent": c.parent,
 39711  	})
 39712  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39713  }
 39714  
 39715  // Do executes the "apigee.organizations.hostSecurityReports.create" call.
 39716  // Any non-2xx status code is an error. Response headers are in either
 39717  // *GoogleCloudApigeeV1SecurityReport.ServerResponse.Header or (if a response
 39718  // was returned at all) in error.(*googleapi.Error).Header. Use
 39719  // googleapi.IsNotModified to check whether the returned error was because
 39720  // http.StatusNotModified was returned.
 39721  func (c *OrganizationsHostSecurityReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
 39722  	gensupport.SetOptions(c.urlParams_, opts...)
 39723  	res, err := c.doRequest("json")
 39724  	if res != nil && res.StatusCode == http.StatusNotModified {
 39725  		if res.Body != nil {
 39726  			res.Body.Close()
 39727  		}
 39728  		return nil, gensupport.WrapError(&googleapi.Error{
 39729  			Code:   res.StatusCode,
 39730  			Header: res.Header,
 39731  		})
 39732  	}
 39733  	if err != nil {
 39734  		return nil, err
 39735  	}
 39736  	defer googleapi.CloseBody(res)
 39737  	if err := googleapi.CheckResponse(res); err != nil {
 39738  		return nil, gensupport.WrapError(err)
 39739  	}
 39740  	ret := &GoogleCloudApigeeV1SecurityReport{
 39741  		ServerResponse: googleapi.ServerResponse{
 39742  			Header:         res.Header,
 39743  			HTTPStatusCode: res.StatusCode,
 39744  		},
 39745  	}
 39746  	target := &ret
 39747  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39748  		return nil, err
 39749  	}
 39750  	return ret, nil
 39751  }
 39752  
 39753  type OrganizationsHostSecurityReportsGetCall struct {
 39754  	s            *Service
 39755  	name         string
 39756  	urlParams_   gensupport.URLParams
 39757  	ifNoneMatch_ string
 39758  	ctx_         context.Context
 39759  	header_      http.Header
 39760  }
 39761  
 39762  // Get: Get status of a query submitted at host level. If the query is still in
 39763  // progress, the `state` is set to "running" After the query has completed
 39764  // successfully, `state` is set to "completed"
 39765  //
 39766  //   - name: Name of the security report to get. Must be of the form
 39767  //     `organizations/{org}/securityReports/{reportId}`.
 39768  func (r *OrganizationsHostSecurityReportsService) Get(name string) *OrganizationsHostSecurityReportsGetCall {
 39769  	c := &OrganizationsHostSecurityReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39770  	c.name = name
 39771  	return c
 39772  }
 39773  
 39774  // Fields allows partial responses to be retrieved. See
 39775  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39776  // details.
 39777  func (c *OrganizationsHostSecurityReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsGetCall {
 39778  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39779  	return c
 39780  }
 39781  
 39782  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39783  // object's ETag matches the given value. This is useful for getting updates
 39784  // only after the object has changed since the last request.
 39785  func (c *OrganizationsHostSecurityReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsGetCall {
 39786  	c.ifNoneMatch_ = entityTag
 39787  	return c
 39788  }
 39789  
 39790  // Context sets the context to be used in this call's Do method.
 39791  func (c *OrganizationsHostSecurityReportsGetCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsGetCall {
 39792  	c.ctx_ = ctx
 39793  	return c
 39794  }
 39795  
 39796  // Header returns a http.Header that can be modified by the caller to add
 39797  // headers to the request.
 39798  func (c *OrganizationsHostSecurityReportsGetCall) Header() http.Header {
 39799  	if c.header_ == nil {
 39800  		c.header_ = make(http.Header)
 39801  	}
 39802  	return c.header_
 39803  }
 39804  
 39805  func (c *OrganizationsHostSecurityReportsGetCall) doRequest(alt string) (*http.Response, error) {
 39806  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39807  	if c.ifNoneMatch_ != "" {
 39808  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39809  	}
 39810  	var body io.Reader = nil
 39811  	c.urlParams_.Set("alt", alt)
 39812  	c.urlParams_.Set("prettyPrint", "false")
 39813  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 39814  	urls += "?" + c.urlParams_.Encode()
 39815  	req, err := http.NewRequest("GET", urls, body)
 39816  	if err != nil {
 39817  		return nil, err
 39818  	}
 39819  	req.Header = reqHeaders
 39820  	googleapi.Expand(req.URL, map[string]string{
 39821  		"name": c.name,
 39822  	})
 39823  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39824  }
 39825  
 39826  // Do executes the "apigee.organizations.hostSecurityReports.get" call.
 39827  // Any non-2xx status code is an error. Response headers are in either
 39828  // *GoogleCloudApigeeV1SecurityReport.ServerResponse.Header or (if a response
 39829  // was returned at all) in error.(*googleapi.Error).Header. Use
 39830  // googleapi.IsNotModified to check whether the returned error was because
 39831  // http.StatusNotModified was returned.
 39832  func (c *OrganizationsHostSecurityReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
 39833  	gensupport.SetOptions(c.urlParams_, opts...)
 39834  	res, err := c.doRequest("json")
 39835  	if res != nil && res.StatusCode == http.StatusNotModified {
 39836  		if res.Body != nil {
 39837  			res.Body.Close()
 39838  		}
 39839  		return nil, gensupport.WrapError(&googleapi.Error{
 39840  			Code:   res.StatusCode,
 39841  			Header: res.Header,
 39842  		})
 39843  	}
 39844  	if err != nil {
 39845  		return nil, err
 39846  	}
 39847  	defer googleapi.CloseBody(res)
 39848  	if err := googleapi.CheckResponse(res); err != nil {
 39849  		return nil, gensupport.WrapError(err)
 39850  	}
 39851  	ret := &GoogleCloudApigeeV1SecurityReport{
 39852  		ServerResponse: googleapi.ServerResponse{
 39853  			Header:         res.Header,
 39854  			HTTPStatusCode: res.StatusCode,
 39855  		},
 39856  	}
 39857  	target := &ret
 39858  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39859  		return nil, err
 39860  	}
 39861  	return ret, nil
 39862  }
 39863  
 39864  type OrganizationsHostSecurityReportsGetResultCall struct {
 39865  	s            *Service
 39866  	name         string
 39867  	urlParams_   gensupport.URLParams
 39868  	ifNoneMatch_ string
 39869  	ctx_         context.Context
 39870  	header_      http.Header
 39871  }
 39872  
 39873  // GetResult: After the query is completed, use this API to retrieve the
 39874  // results. If the request succeeds, and there is a non-zero result set, the
 39875  // result is downloaded to the client as a zipped JSON file. The name of the
 39876  // downloaded file will be: OfflineQueryResult-.zip Example:
 39877  // `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
 39878  //
 39879  //   - name: Name of the security report result to get. Must be of the form
 39880  //     `organizations/{org}/securityReports/{reportId}/result`.
 39881  func (r *OrganizationsHostSecurityReportsService) GetResult(name string) *OrganizationsHostSecurityReportsGetResultCall {
 39882  	c := &OrganizationsHostSecurityReportsGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39883  	c.name = name
 39884  	return c
 39885  }
 39886  
 39887  // Fields allows partial responses to be retrieved. See
 39888  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39889  // details.
 39890  func (c *OrganizationsHostSecurityReportsGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsGetResultCall {
 39891  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39892  	return c
 39893  }
 39894  
 39895  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39896  // object's ETag matches the given value. This is useful for getting updates
 39897  // only after the object has changed since the last request.
 39898  func (c *OrganizationsHostSecurityReportsGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsGetResultCall {
 39899  	c.ifNoneMatch_ = entityTag
 39900  	return c
 39901  }
 39902  
 39903  // Context sets the context to be used in this call's Do method.
 39904  func (c *OrganizationsHostSecurityReportsGetResultCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsGetResultCall {
 39905  	c.ctx_ = ctx
 39906  	return c
 39907  }
 39908  
 39909  // Header returns a http.Header that can be modified by the caller to add
 39910  // headers to the request.
 39911  func (c *OrganizationsHostSecurityReportsGetResultCall) Header() http.Header {
 39912  	if c.header_ == nil {
 39913  		c.header_ = make(http.Header)
 39914  	}
 39915  	return c.header_
 39916  }
 39917  
 39918  func (c *OrganizationsHostSecurityReportsGetResultCall) doRequest(alt string) (*http.Response, error) {
 39919  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39920  	if c.ifNoneMatch_ != "" {
 39921  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39922  	}
 39923  	var body io.Reader = nil
 39924  	c.urlParams_.Set("alt", alt)
 39925  	c.urlParams_.Set("prettyPrint", "false")
 39926  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 39927  	urls += "?" + c.urlParams_.Encode()
 39928  	req, err := http.NewRequest("GET", urls, body)
 39929  	if err != nil {
 39930  		return nil, err
 39931  	}
 39932  	req.Header = reqHeaders
 39933  	googleapi.Expand(req.URL, map[string]string{
 39934  		"name": c.name,
 39935  	})
 39936  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39937  }
 39938  
 39939  // Do executes the "apigee.organizations.hostSecurityReports.getResult" call.
 39940  // Any non-2xx status code is an error. Response headers are in either
 39941  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 39942  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 39943  // check whether the returned error was because http.StatusNotModified was
 39944  // returned.
 39945  func (c *OrganizationsHostSecurityReportsGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 39946  	gensupport.SetOptions(c.urlParams_, opts...)
 39947  	res, err := c.doRequest("json")
 39948  	if res != nil && res.StatusCode == http.StatusNotModified {
 39949  		if res.Body != nil {
 39950  			res.Body.Close()
 39951  		}
 39952  		return nil, gensupport.WrapError(&googleapi.Error{
 39953  			Code:   res.StatusCode,
 39954  			Header: res.Header,
 39955  		})
 39956  	}
 39957  	if err != nil {
 39958  		return nil, err
 39959  	}
 39960  	defer googleapi.CloseBody(res)
 39961  	if err := googleapi.CheckResponse(res); err != nil {
 39962  		return nil, gensupport.WrapError(err)
 39963  	}
 39964  	ret := &GoogleApiHttpBody{
 39965  		ServerResponse: googleapi.ServerResponse{
 39966  			Header:         res.Header,
 39967  			HTTPStatusCode: res.StatusCode,
 39968  		},
 39969  	}
 39970  	target := &ret
 39971  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39972  		return nil, err
 39973  	}
 39974  	return ret, nil
 39975  }
 39976  
 39977  type OrganizationsHostSecurityReportsGetResultViewCall struct {
 39978  	s            *Service
 39979  	name         string
 39980  	urlParams_   gensupport.URLParams
 39981  	ifNoneMatch_ string
 39982  	ctx_         context.Context
 39983  	header_      http.Header
 39984  }
 39985  
 39986  // GetResultView: After the query is completed, use this API to view the query
 39987  // result when result size is small.
 39988  //
 39989  //   - name: Name of the security report result view to get. Must be of the form
 39990  //     `organizations/{org}/securityReports/{reportId}/resultView`.
 39991  func (r *OrganizationsHostSecurityReportsService) GetResultView(name string) *OrganizationsHostSecurityReportsGetResultViewCall {
 39992  	c := &OrganizationsHostSecurityReportsGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39993  	c.name = name
 39994  	return c
 39995  }
 39996  
 39997  // Fields allows partial responses to be retrieved. See
 39998  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39999  // details.
 40000  func (c *OrganizationsHostSecurityReportsGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsGetResultViewCall {
 40001  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40002  	return c
 40003  }
 40004  
 40005  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40006  // object's ETag matches the given value. This is useful for getting updates
 40007  // only after the object has changed since the last request.
 40008  func (c *OrganizationsHostSecurityReportsGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsGetResultViewCall {
 40009  	c.ifNoneMatch_ = entityTag
 40010  	return c
 40011  }
 40012  
 40013  // Context sets the context to be used in this call's Do method.
 40014  func (c *OrganizationsHostSecurityReportsGetResultViewCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsGetResultViewCall {
 40015  	c.ctx_ = ctx
 40016  	return c
 40017  }
 40018  
 40019  // Header returns a http.Header that can be modified by the caller to add
 40020  // headers to the request.
 40021  func (c *OrganizationsHostSecurityReportsGetResultViewCall) Header() http.Header {
 40022  	if c.header_ == nil {
 40023  		c.header_ = make(http.Header)
 40024  	}
 40025  	return c.header_
 40026  }
 40027  
 40028  func (c *OrganizationsHostSecurityReportsGetResultViewCall) doRequest(alt string) (*http.Response, error) {
 40029  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40030  	if c.ifNoneMatch_ != "" {
 40031  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40032  	}
 40033  	var body io.Reader = nil
 40034  	c.urlParams_.Set("alt", alt)
 40035  	c.urlParams_.Set("prettyPrint", "false")
 40036  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 40037  	urls += "?" + c.urlParams_.Encode()
 40038  	req, err := http.NewRequest("GET", urls, body)
 40039  	if err != nil {
 40040  		return nil, err
 40041  	}
 40042  	req.Header = reqHeaders
 40043  	googleapi.Expand(req.URL, map[string]string{
 40044  		"name": c.name,
 40045  	})
 40046  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40047  }
 40048  
 40049  // Do executes the "apigee.organizations.hostSecurityReports.getResultView" call.
 40050  // Any non-2xx status code is an error. Response headers are in either
 40051  // *GoogleCloudApigeeV1SecurityReportResultView.ServerResponse.Header or (if a
 40052  // response was returned at all) in error.(*googleapi.Error).Header. Use
 40053  // googleapi.IsNotModified to check whether the returned error was because
 40054  // http.StatusNotModified was returned.
 40055  func (c *OrganizationsHostSecurityReportsGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReportResultView, error) {
 40056  	gensupport.SetOptions(c.urlParams_, opts...)
 40057  	res, err := c.doRequest("json")
 40058  	if res != nil && res.StatusCode == http.StatusNotModified {
 40059  		if res.Body != nil {
 40060  			res.Body.Close()
 40061  		}
 40062  		return nil, gensupport.WrapError(&googleapi.Error{
 40063  			Code:   res.StatusCode,
 40064  			Header: res.Header,
 40065  		})
 40066  	}
 40067  	if err != nil {
 40068  		return nil, err
 40069  	}
 40070  	defer googleapi.CloseBody(res)
 40071  	if err := googleapi.CheckResponse(res); err != nil {
 40072  		return nil, gensupport.WrapError(err)
 40073  	}
 40074  	ret := &GoogleCloudApigeeV1SecurityReportResultView{
 40075  		ServerResponse: googleapi.ServerResponse{
 40076  			Header:         res.Header,
 40077  			HTTPStatusCode: res.StatusCode,
 40078  		},
 40079  	}
 40080  	target := &ret
 40081  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40082  		return nil, err
 40083  	}
 40084  	return ret, nil
 40085  }
 40086  
 40087  type OrganizationsHostSecurityReportsListCall struct {
 40088  	s            *Service
 40089  	parent       string
 40090  	urlParams_   gensupport.URLParams
 40091  	ifNoneMatch_ string
 40092  	ctx_         context.Context
 40093  	header_      http.Header
 40094  }
 40095  
 40096  // List: Return a list of Security Reports at host level.
 40097  //
 40098  //   - parent: The parent resource name. Must be of the form
 40099  //     `organizations/{org}`.
 40100  func (r *OrganizationsHostSecurityReportsService) List(parent string) *OrganizationsHostSecurityReportsListCall {
 40101  	c := &OrganizationsHostSecurityReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40102  	c.parent = parent
 40103  	return c
 40104  }
 40105  
 40106  // Dataset sets the optional parameter "dataset": Filter response list by
 40107  // dataset. Example: `api`, `mint`
 40108  func (c *OrganizationsHostSecurityReportsListCall) Dataset(dataset string) *OrganizationsHostSecurityReportsListCall {
 40109  	c.urlParams_.Set("dataset", dataset)
 40110  	return c
 40111  }
 40112  
 40113  // EnvgroupHostname sets the optional parameter "envgroupHostname": Required.
 40114  // Filter response list by hostname.
 40115  func (c *OrganizationsHostSecurityReportsListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostSecurityReportsListCall {
 40116  	c.urlParams_.Set("envgroupHostname", envgroupHostname)
 40117  	return c
 40118  }
 40119  
 40120  // From sets the optional parameter "from": Filter response list by returning
 40121  // security reports that created after this date time. Time must be in ISO
 40122  // date-time format like '2011-12-03T10:15:30Z'.
 40123  func (c *OrganizationsHostSecurityReportsListCall) From(from string) *OrganizationsHostSecurityReportsListCall {
 40124  	c.urlParams_.Set("from", from)
 40125  	return c
 40126  }
 40127  
 40128  // PageSize sets the optional parameter "pageSize": The maximum number of
 40129  // security report to return in the list response.
 40130  func (c *OrganizationsHostSecurityReportsListCall) PageSize(pageSize int64) *OrganizationsHostSecurityReportsListCall {
 40131  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 40132  	return c
 40133  }
 40134  
 40135  // PageToken sets the optional parameter "pageToken": Token returned from the
 40136  // previous list response to fetch the next page.
 40137  func (c *OrganizationsHostSecurityReportsListCall) PageToken(pageToken string) *OrganizationsHostSecurityReportsListCall {
 40138  	c.urlParams_.Set("pageToken", pageToken)
 40139  	return c
 40140  }
 40141  
 40142  // Status sets the optional parameter "status": Filter response list by
 40143  // security report status.
 40144  func (c *OrganizationsHostSecurityReportsListCall) Status(status string) *OrganizationsHostSecurityReportsListCall {
 40145  	c.urlParams_.Set("status", status)
 40146  	return c
 40147  }
 40148  
 40149  // SubmittedBy sets the optional parameter "submittedBy": Filter response list
 40150  // by user who submitted queries.
 40151  func (c *OrganizationsHostSecurityReportsListCall) SubmittedBy(submittedBy string) *OrganizationsHostSecurityReportsListCall {
 40152  	c.urlParams_.Set("submittedBy", submittedBy)
 40153  	return c
 40154  }
 40155  
 40156  // To sets the optional parameter "to": Filter response list by returning
 40157  // security reports that created before this date time. Time must be in ISO
 40158  // date-time format like '2011-12-03T10:16:30Z'.
 40159  func (c *OrganizationsHostSecurityReportsListCall) To(to string) *OrganizationsHostSecurityReportsListCall {
 40160  	c.urlParams_.Set("to", to)
 40161  	return c
 40162  }
 40163  
 40164  // Fields allows partial responses to be retrieved. See
 40165  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40166  // details.
 40167  func (c *OrganizationsHostSecurityReportsListCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsListCall {
 40168  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40169  	return c
 40170  }
 40171  
 40172  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40173  // object's ETag matches the given value. This is useful for getting updates
 40174  // only after the object has changed since the last request.
 40175  func (c *OrganizationsHostSecurityReportsListCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsListCall {
 40176  	c.ifNoneMatch_ = entityTag
 40177  	return c
 40178  }
 40179  
 40180  // Context sets the context to be used in this call's Do method.
 40181  func (c *OrganizationsHostSecurityReportsListCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsListCall {
 40182  	c.ctx_ = ctx
 40183  	return c
 40184  }
 40185  
 40186  // Header returns a http.Header that can be modified by the caller to add
 40187  // headers to the request.
 40188  func (c *OrganizationsHostSecurityReportsListCall) Header() http.Header {
 40189  	if c.header_ == nil {
 40190  		c.header_ = make(http.Header)
 40191  	}
 40192  	return c.header_
 40193  }
 40194  
 40195  func (c *OrganizationsHostSecurityReportsListCall) doRequest(alt string) (*http.Response, error) {
 40196  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40197  	if c.ifNoneMatch_ != "" {
 40198  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40199  	}
 40200  	var body io.Reader = nil
 40201  	c.urlParams_.Set("alt", alt)
 40202  	c.urlParams_.Set("prettyPrint", "false")
 40203  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostSecurityReports")
 40204  	urls += "?" + c.urlParams_.Encode()
 40205  	req, err := http.NewRequest("GET", urls, body)
 40206  	if err != nil {
 40207  		return nil, err
 40208  	}
 40209  	req.Header = reqHeaders
 40210  	googleapi.Expand(req.URL, map[string]string{
 40211  		"parent": c.parent,
 40212  	})
 40213  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40214  }
 40215  
 40216  // Do executes the "apigee.organizations.hostSecurityReports.list" call.
 40217  // Any non-2xx status code is an error. Response headers are in either
 40218  // *GoogleCloudApigeeV1ListSecurityReportsResponse.ServerResponse.Header or (if
 40219  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 40220  // googleapi.IsNotModified to check whether the returned error was because
 40221  // http.StatusNotModified was returned.
 40222  func (c *OrganizationsHostSecurityReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityReportsResponse, error) {
 40223  	gensupport.SetOptions(c.urlParams_, opts...)
 40224  	res, err := c.doRequest("json")
 40225  	if res != nil && res.StatusCode == http.StatusNotModified {
 40226  		if res.Body != nil {
 40227  			res.Body.Close()
 40228  		}
 40229  		return nil, gensupport.WrapError(&googleapi.Error{
 40230  			Code:   res.StatusCode,
 40231  			Header: res.Header,
 40232  		})
 40233  	}
 40234  	if err != nil {
 40235  		return nil, err
 40236  	}
 40237  	defer googleapi.CloseBody(res)
 40238  	if err := googleapi.CheckResponse(res); err != nil {
 40239  		return nil, gensupport.WrapError(err)
 40240  	}
 40241  	ret := &GoogleCloudApigeeV1ListSecurityReportsResponse{
 40242  		ServerResponse: googleapi.ServerResponse{
 40243  			Header:         res.Header,
 40244  			HTTPStatusCode: res.StatusCode,
 40245  		},
 40246  	}
 40247  	target := &ret
 40248  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40249  		return nil, err
 40250  	}
 40251  	return ret, nil
 40252  }
 40253  
 40254  // Pages invokes f for each page of results.
 40255  // A non-nil error returned from f will halt the iteration.
 40256  // The provided context supersedes any context provided to the Context method.
 40257  func (c *OrganizationsHostSecurityReportsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityReportsResponse) error) error {
 40258  	c.ctx_ = ctx
 40259  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40260  	for {
 40261  		x, err := c.Do()
 40262  		if err != nil {
 40263  			return err
 40264  		}
 40265  		if err := f(x); err != nil {
 40266  			return err
 40267  		}
 40268  		if x.NextPageToken == "" {
 40269  			return nil
 40270  		}
 40271  		c.PageToken(x.NextPageToken)
 40272  	}
 40273  }
 40274  
 40275  type OrganizationsHostStatsGetCall struct {
 40276  	s            *Service
 40277  	name         string
 40278  	urlParams_   gensupport.URLParams
 40279  	ifNoneMatch_ string
 40280  	ctx_         context.Context
 40281  	header_      http.Header
 40282  }
 40283  
 40284  // Get: Retrieve metrics grouped by dimensions in host level. The types of
 40285  // metrics you can retrieve include traffic, message counts, API call latency,
 40286  // response size, and cache hits and counts. Dimensions let you view metrics in
 40287  // meaningful groups. You can optionally pass dimensions as path parameters to
 40288  // the `stats` API. If dimensions are not specified, the metrics are computed
 40289  // on the entire set of data for the given time range.
 40290  //
 40291  //   - name: Resource name for which the interactive query will be executed. Use
 40292  //     the following format in your request:
 40293  //     `organizations/{org}/hostStats/{dimensions}` Dimensions let you view
 40294  //     metrics in meaningful groupings, such as `apiproxy`, `target_host`. The
 40295  //     value of dimensions should be a comma-separated list as shown below
 40296  //     `organizations/{org}/hostStats/apiproxy,request_verb`.
 40297  func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
 40298  	c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40299  	c.name = name
 40300  	return c
 40301  }
 40302  
 40303  // Accuracy sets the optional parameter "accuracy": No longer used by Apigee.
 40304  // Supported for backwards compatibility.
 40305  func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
 40306  	c.urlParams_.Set("accuracy", accuracy)
 40307  	return c
 40308  }
 40309  
 40310  // EnvgroupHostname sets the optional parameter "envgroupHostname": Required.
 40311  // Hostname for which the interactive query will be executed.
 40312  func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
 40313  	c.urlParams_.Set("envgroupHostname", envgroupHostname)
 40314  	return c
 40315  }
 40316  
 40317  // Filter sets the optional parameter "filter": Flag that enables drill-down on
 40318  // specific dimension values.
 40319  func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
 40320  	c.urlParams_.Set("filter", filter)
 40321  	return c
 40322  }
 40323  
 40324  // Limit sets the optional parameter "limit": Maximum number of result items to
 40325  // return. The default and maximum value that can be returned is 14400.
 40326  func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
 40327  	c.urlParams_.Set("limit", limit)
 40328  	return c
 40329  }
 40330  
 40331  // Offset sets the optional parameter "offset": Offset value. Use `offset` with
 40332  // `limit` to enable pagination of results. For example, to display results
 40333  // 11-20, set limit to `10` and offset to `10`.
 40334  func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
 40335  	c.urlParams_.Set("offset", offset)
 40336  	return c
 40337  }
 40338  
 40339  // Realtime sets the optional parameter "realtime": No longer used by Apigee.
 40340  // Supported for backwards compatibility.
 40341  func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
 40342  	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
 40343  	return c
 40344  }
 40345  
 40346  // Select sets the optional parameter "select": Comma-separated list of
 40347  // metrics. For example: `sum(message_count),sum(error_count)`
 40348  func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
 40349  	c.urlParams_.Set("select", select_)
 40350  	return c
 40351  }
 40352  
 40353  // Sort sets the optional parameter "sort": Flag that specifies if the sort
 40354  // order should be ascending or descending. Valid values are `DESC` and `ASC`.
 40355  func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
 40356  	c.urlParams_.Set("sort", sort)
 40357  	return c
 40358  }
 40359  
 40360  // Sortby sets the optional parameter "sortby": Comma-separated list of columns
 40361  // to sort the final result.
 40362  func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
 40363  	c.urlParams_.Set("sortby", sortby)
 40364  	return c
 40365  }
 40366  
 40367  // TimeRange sets the optional parameter "timeRange": Time interval for the
 40368  // interactive query. Time range is specified in GMT as `start~end`. For
 40369  // example: `04/15/2017 00:00~05/15/2017 23:59`
 40370  func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
 40371  	c.urlParams_.Set("timeRange", timeRange)
 40372  	return c
 40373  }
 40374  
 40375  // TimeUnit sets the optional parameter "timeUnit": Granularity of metrics
 40376  // returned. Valid values include: `second`, `minute`, `hour`, `day`, `week`,
 40377  // or `month`.
 40378  func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
 40379  	c.urlParams_.Set("timeUnit", timeUnit)
 40380  	return c
 40381  }
 40382  
 40383  // Topk sets the optional parameter "topk": Top number of results to return.
 40384  // For example, to return the top 5 results, set `topk=5`.
 40385  func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
 40386  	c.urlParams_.Set("topk", topk)
 40387  	return c
 40388  }
 40389  
 40390  // TsAscending sets the optional parameter "tsAscending": Flag that specifies
 40391  // whether to list timestamps in ascending (`true`) or descending (`false`)
 40392  // order. Apigee recommends that you set this value to `true` if you are using
 40393  // `sortby` with `sort=DESC`.
 40394  func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
 40395  	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
 40396  	return c
 40397  }
 40398  
 40399  // Tzo sets the optional parameter "tzo": Timezone offset value.
 40400  func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
 40401  	c.urlParams_.Set("tzo", tzo)
 40402  	return c
 40403  }
 40404  
 40405  // Fields allows partial responses to be retrieved. See
 40406  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40407  // details.
 40408  func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
 40409  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40410  	return c
 40411  }
 40412  
 40413  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40414  // object's ETag matches the given value. This is useful for getting updates
 40415  // only after the object has changed since the last request.
 40416  func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
 40417  	c.ifNoneMatch_ = entityTag
 40418  	return c
 40419  }
 40420  
 40421  // Context sets the context to be used in this call's Do method.
 40422  func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
 40423  	c.ctx_ = ctx
 40424  	return c
 40425  }
 40426  
 40427  // Header returns a http.Header that can be modified by the caller to add
 40428  // headers to the request.
 40429  func (c *OrganizationsHostStatsGetCall) Header() http.Header {
 40430  	if c.header_ == nil {
 40431  		c.header_ = make(http.Header)
 40432  	}
 40433  	return c.header_
 40434  }
 40435  
 40436  func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
 40437  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40438  	if c.ifNoneMatch_ != "" {
 40439  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40440  	}
 40441  	var body io.Reader = nil
 40442  	c.urlParams_.Set("alt", alt)
 40443  	c.urlParams_.Set("prettyPrint", "false")
 40444  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 40445  	urls += "?" + c.urlParams_.Encode()
 40446  	req, err := http.NewRequest("GET", urls, body)
 40447  	if err != nil {
 40448  		return nil, err
 40449  	}
 40450  	req.Header = reqHeaders
 40451  	googleapi.Expand(req.URL, map[string]string{
 40452  		"name": c.name,
 40453  	})
 40454  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40455  }
 40456  
 40457  // Do executes the "apigee.organizations.hostStats.get" call.
 40458  // Any non-2xx status code is an error. Response headers are in either
 40459  // *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
 40460  // returned at all) in error.(*googleapi.Error).Header. Use
 40461  // googleapi.IsNotModified to check whether the returned error was because
 40462  // http.StatusNotModified was returned.
 40463  func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
 40464  	gensupport.SetOptions(c.urlParams_, opts...)
 40465  	res, err := c.doRequest("json")
 40466  	if res != nil && res.StatusCode == http.StatusNotModified {
 40467  		if res.Body != nil {
 40468  			res.Body.Close()
 40469  		}
 40470  		return nil, gensupport.WrapError(&googleapi.Error{
 40471  			Code:   res.StatusCode,
 40472  			Header: res.Header,
 40473  		})
 40474  	}
 40475  	if err != nil {
 40476  		return nil, err
 40477  	}
 40478  	defer googleapi.CloseBody(res)
 40479  	if err := googleapi.CheckResponse(res); err != nil {
 40480  		return nil, gensupport.WrapError(err)
 40481  	}
 40482  	ret := &GoogleCloudApigeeV1Stats{
 40483  		ServerResponse: googleapi.ServerResponse{
 40484  			Header:         res.Header,
 40485  			HTTPStatusCode: res.StatusCode,
 40486  		},
 40487  	}
 40488  	target := &ret
 40489  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40490  		return nil, err
 40491  	}
 40492  	return ret, nil
 40493  }
 40494  
 40495  type OrganizationsInstancesCreateCall struct {
 40496  	s                           *Service
 40497  	parent                      string
 40498  	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
 40499  	urlParams_                  gensupport.URLParams
 40500  	ctx_                        context.Context
 40501  	header_                     http.Header
 40502  }
 40503  
 40504  // Create: Creates an Apigee runtime instance. The instance is accessible from
 40505  // the authorized network configured on the organization. **Note:** Not
 40506  // supported for Apigee hybrid.
 40507  //
 40508  //   - parent: Name of the organization. Use the following structure in your
 40509  //     request: `organizations/{org}`.
 40510  func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
 40511  	c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40512  	c.parent = parent
 40513  	c.googlecloudapigeev1instance = googlecloudapigeev1instance
 40514  	return c
 40515  }
 40516  
 40517  // Fields allows partial responses to be retrieved. See
 40518  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40519  // details.
 40520  func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
 40521  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40522  	return c
 40523  }
 40524  
 40525  // Context sets the context to be used in this call's Do method.
 40526  func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
 40527  	c.ctx_ = ctx
 40528  	return c
 40529  }
 40530  
 40531  // Header returns a http.Header that can be modified by the caller to add
 40532  // headers to the request.
 40533  func (c *OrganizationsInstancesCreateCall) Header() http.Header {
 40534  	if c.header_ == nil {
 40535  		c.header_ = make(http.Header)
 40536  	}
 40537  	return c.header_
 40538  }
 40539  
 40540  func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
 40541  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40542  	var body io.Reader = nil
 40543  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
 40544  	if err != nil {
 40545  		return nil, err
 40546  	}
 40547  	c.urlParams_.Set("alt", alt)
 40548  	c.urlParams_.Set("prettyPrint", "false")
 40549  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
 40550  	urls += "?" + c.urlParams_.Encode()
 40551  	req, err := http.NewRequest("POST", urls, body)
 40552  	if err != nil {
 40553  		return nil, err
 40554  	}
 40555  	req.Header = reqHeaders
 40556  	googleapi.Expand(req.URL, map[string]string{
 40557  		"parent": c.parent,
 40558  	})
 40559  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40560  }
 40561  
 40562  // Do executes the "apigee.organizations.instances.create" call.
 40563  // Any non-2xx status code is an error. Response headers are in either
 40564  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 40565  // returned at all) in error.(*googleapi.Error).Header. Use
 40566  // googleapi.IsNotModified to check whether the returned error was because
 40567  // http.StatusNotModified was returned.
 40568  func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 40569  	gensupport.SetOptions(c.urlParams_, opts...)
 40570  	res, err := c.doRequest("json")
 40571  	if res != nil && res.StatusCode == http.StatusNotModified {
 40572  		if res.Body != nil {
 40573  			res.Body.Close()
 40574  		}
 40575  		return nil, gensupport.WrapError(&googleapi.Error{
 40576  			Code:   res.StatusCode,
 40577  			Header: res.Header,
 40578  		})
 40579  	}
 40580  	if err != nil {
 40581  		return nil, err
 40582  	}
 40583  	defer googleapi.CloseBody(res)
 40584  	if err := googleapi.CheckResponse(res); err != nil {
 40585  		return nil, gensupport.WrapError(err)
 40586  	}
 40587  	ret := &GoogleLongrunningOperation{
 40588  		ServerResponse: googleapi.ServerResponse{
 40589  			Header:         res.Header,
 40590  			HTTPStatusCode: res.StatusCode,
 40591  		},
 40592  	}
 40593  	target := &ret
 40594  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40595  		return nil, err
 40596  	}
 40597  	return ret, nil
 40598  }
 40599  
 40600  type OrganizationsInstancesDeleteCall struct {
 40601  	s          *Service
 40602  	name       string
 40603  	urlParams_ gensupport.URLParams
 40604  	ctx_       context.Context
 40605  	header_    http.Header
 40606  }
 40607  
 40608  // Delete: Deletes an Apigee runtime instance. The instance stops serving
 40609  // requests and the runtime data is deleted. **Note:** Not supported for Apigee
 40610  // hybrid.
 40611  //
 40612  //   - name: Name of the instance. Use the following structure in your request:
 40613  //     `organizations/{org}/instances/{instance}`.
 40614  func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
 40615  	c := &OrganizationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40616  	c.name = name
 40617  	return c
 40618  }
 40619  
 40620  // Fields allows partial responses to be retrieved. See
 40621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40622  // details.
 40623  func (c *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
 40624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40625  	return c
 40626  }
 40627  
 40628  // Context sets the context to be used in this call's Do method.
 40629  func (c *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
 40630  	c.ctx_ = ctx
 40631  	return c
 40632  }
 40633  
 40634  // Header returns a http.Header that can be modified by the caller to add
 40635  // headers to the request.
 40636  func (c *OrganizationsInstancesDeleteCall) Header() http.Header {
 40637  	if c.header_ == nil {
 40638  		c.header_ = make(http.Header)
 40639  	}
 40640  	return c.header_
 40641  }
 40642  
 40643  func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
 40644  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40645  	var body io.Reader = nil
 40646  	c.urlParams_.Set("alt", alt)
 40647  	c.urlParams_.Set("prettyPrint", "false")
 40648  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 40649  	urls += "?" + c.urlParams_.Encode()
 40650  	req, err := http.NewRequest("DELETE", urls, body)
 40651  	if err != nil {
 40652  		return nil, err
 40653  	}
 40654  	req.Header = reqHeaders
 40655  	googleapi.Expand(req.URL, map[string]string{
 40656  		"name": c.name,
 40657  	})
 40658  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40659  }
 40660  
 40661  // Do executes the "apigee.organizations.instances.delete" call.
 40662  // Any non-2xx status code is an error. Response headers are in either
 40663  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 40664  // returned at all) in error.(*googleapi.Error).Header. Use
 40665  // googleapi.IsNotModified to check whether the returned error was because
 40666  // http.StatusNotModified was returned.
 40667  func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 40668  	gensupport.SetOptions(c.urlParams_, opts...)
 40669  	res, err := c.doRequest("json")
 40670  	if res != nil && res.StatusCode == http.StatusNotModified {
 40671  		if res.Body != nil {
 40672  			res.Body.Close()
 40673  		}
 40674  		return nil, gensupport.WrapError(&googleapi.Error{
 40675  			Code:   res.StatusCode,
 40676  			Header: res.Header,
 40677  		})
 40678  	}
 40679  	if err != nil {
 40680  		return nil, err
 40681  	}
 40682  	defer googleapi.CloseBody(res)
 40683  	if err := googleapi.CheckResponse(res); err != nil {
 40684  		return nil, gensupport.WrapError(err)
 40685  	}
 40686  	ret := &GoogleLongrunningOperation{
 40687  		ServerResponse: googleapi.ServerResponse{
 40688  			Header:         res.Header,
 40689  			HTTPStatusCode: res.StatusCode,
 40690  		},
 40691  	}
 40692  	target := &ret
 40693  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40694  		return nil, err
 40695  	}
 40696  	return ret, nil
 40697  }
 40698  
 40699  type OrganizationsInstancesGetCall struct {
 40700  	s            *Service
 40701  	name         string
 40702  	urlParams_   gensupport.URLParams
 40703  	ifNoneMatch_ string
 40704  	ctx_         context.Context
 40705  	header_      http.Header
 40706  }
 40707  
 40708  // Get: Gets the details for an Apigee runtime instance. **Note:** Not
 40709  // supported for Apigee hybrid.
 40710  //
 40711  //   - name: Name of the instance. Use the following structure in your request:
 40712  //     `organizations/{org}/instances/{instance}`.
 40713  func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
 40714  	c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40715  	c.name = name
 40716  	return c
 40717  }
 40718  
 40719  // Fields allows partial responses to be retrieved. See
 40720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40721  // details.
 40722  func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
 40723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40724  	return c
 40725  }
 40726  
 40727  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40728  // object's ETag matches the given value. This is useful for getting updates
 40729  // only after the object has changed since the last request.
 40730  func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
 40731  	c.ifNoneMatch_ = entityTag
 40732  	return c
 40733  }
 40734  
 40735  // Context sets the context to be used in this call's Do method.
 40736  func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
 40737  	c.ctx_ = ctx
 40738  	return c
 40739  }
 40740  
 40741  // Header returns a http.Header that can be modified by the caller to add
 40742  // headers to the request.
 40743  func (c *OrganizationsInstancesGetCall) Header() http.Header {
 40744  	if c.header_ == nil {
 40745  		c.header_ = make(http.Header)
 40746  	}
 40747  	return c.header_
 40748  }
 40749  
 40750  func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
 40751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40752  	if c.ifNoneMatch_ != "" {
 40753  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40754  	}
 40755  	var body io.Reader = nil
 40756  	c.urlParams_.Set("alt", alt)
 40757  	c.urlParams_.Set("prettyPrint", "false")
 40758  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 40759  	urls += "?" + c.urlParams_.Encode()
 40760  	req, err := http.NewRequest("GET", urls, body)
 40761  	if err != nil {
 40762  		return nil, err
 40763  	}
 40764  	req.Header = reqHeaders
 40765  	googleapi.Expand(req.URL, map[string]string{
 40766  		"name": c.name,
 40767  	})
 40768  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40769  }
 40770  
 40771  // Do executes the "apigee.organizations.instances.get" call.
 40772  // Any non-2xx status code is an error. Response headers are in either
 40773  // *GoogleCloudApigeeV1Instance.ServerResponse.Header or (if a response was
 40774  // returned at all) in error.(*googleapi.Error).Header. Use
 40775  // googleapi.IsNotModified to check whether the returned error was because
 40776  // http.StatusNotModified was returned.
 40777  func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
 40778  	gensupport.SetOptions(c.urlParams_, opts...)
 40779  	res, err := c.doRequest("json")
 40780  	if res != nil && res.StatusCode == http.StatusNotModified {
 40781  		if res.Body != nil {
 40782  			res.Body.Close()
 40783  		}
 40784  		return nil, gensupport.WrapError(&googleapi.Error{
 40785  			Code:   res.StatusCode,
 40786  			Header: res.Header,
 40787  		})
 40788  	}
 40789  	if err != nil {
 40790  		return nil, err
 40791  	}
 40792  	defer googleapi.CloseBody(res)
 40793  	if err := googleapi.CheckResponse(res); err != nil {
 40794  		return nil, gensupport.WrapError(err)
 40795  	}
 40796  	ret := &GoogleCloudApigeeV1Instance{
 40797  		ServerResponse: googleapi.ServerResponse{
 40798  			Header:         res.Header,
 40799  			HTTPStatusCode: res.StatusCode,
 40800  		},
 40801  	}
 40802  	target := &ret
 40803  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40804  		return nil, err
 40805  	}
 40806  	return ret, nil
 40807  }
 40808  
 40809  type OrganizationsInstancesListCall struct {
 40810  	s            *Service
 40811  	parent       string
 40812  	urlParams_   gensupport.URLParams
 40813  	ifNoneMatch_ string
 40814  	ctx_         context.Context
 40815  	header_      http.Header
 40816  }
 40817  
 40818  // List: Lists all Apigee runtime instances for the organization. **Note:** Not
 40819  // supported for Apigee hybrid.
 40820  //
 40821  //   - parent: Name of the organization. Use the following structure in your
 40822  //     request: `organizations/{org}`.
 40823  func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
 40824  	c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40825  	c.parent = parent
 40826  	return c
 40827  }
 40828  
 40829  // PageSize sets the optional parameter "pageSize": Maximum number of instances
 40830  // to return. Defaults to 25.
 40831  func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
 40832  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 40833  	return c
 40834  }
 40835  
 40836  // PageToken sets the optional parameter "pageToken": Page token, returned from
 40837  // a previous ListInstances call, that you can use to retrieve the next page of
 40838  // content.
 40839  func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
 40840  	c.urlParams_.Set("pageToken", pageToken)
 40841  	return c
 40842  }
 40843  
 40844  // Fields allows partial responses to be retrieved. See
 40845  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40846  // details.
 40847  func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
 40848  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40849  	return c
 40850  }
 40851  
 40852  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40853  // object's ETag matches the given value. This is useful for getting updates
 40854  // only after the object has changed since the last request.
 40855  func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
 40856  	c.ifNoneMatch_ = entityTag
 40857  	return c
 40858  }
 40859  
 40860  // Context sets the context to be used in this call's Do method.
 40861  func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
 40862  	c.ctx_ = ctx
 40863  	return c
 40864  }
 40865  
 40866  // Header returns a http.Header that can be modified by the caller to add
 40867  // headers to the request.
 40868  func (c *OrganizationsInstancesListCall) Header() http.Header {
 40869  	if c.header_ == nil {
 40870  		c.header_ = make(http.Header)
 40871  	}
 40872  	return c.header_
 40873  }
 40874  
 40875  func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
 40876  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40877  	if c.ifNoneMatch_ != "" {
 40878  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40879  	}
 40880  	var body io.Reader = nil
 40881  	c.urlParams_.Set("alt", alt)
 40882  	c.urlParams_.Set("prettyPrint", "false")
 40883  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
 40884  	urls += "?" + c.urlParams_.Encode()
 40885  	req, err := http.NewRequest("GET", urls, body)
 40886  	if err != nil {
 40887  		return nil, err
 40888  	}
 40889  	req.Header = reqHeaders
 40890  	googleapi.Expand(req.URL, map[string]string{
 40891  		"parent": c.parent,
 40892  	})
 40893  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40894  }
 40895  
 40896  // Do executes the "apigee.organizations.instances.list" call.
 40897  // Any non-2xx status code is an error. Response headers are in either
 40898  // *GoogleCloudApigeeV1ListInstancesResponse.ServerResponse.Header or (if a
 40899  // response was returned at all) in error.(*googleapi.Error).Header. Use
 40900  // googleapi.IsNotModified to check whether the returned error was because
 40901  // http.StatusNotModified was returned.
 40902  func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
 40903  	gensupport.SetOptions(c.urlParams_, opts...)
 40904  	res, err := c.doRequest("json")
 40905  	if res != nil && res.StatusCode == http.StatusNotModified {
 40906  		if res.Body != nil {
 40907  			res.Body.Close()
 40908  		}
 40909  		return nil, gensupport.WrapError(&googleapi.Error{
 40910  			Code:   res.StatusCode,
 40911  			Header: res.Header,
 40912  		})
 40913  	}
 40914  	if err != nil {
 40915  		return nil, err
 40916  	}
 40917  	defer googleapi.CloseBody(res)
 40918  	if err := googleapi.CheckResponse(res); err != nil {
 40919  		return nil, gensupport.WrapError(err)
 40920  	}
 40921  	ret := &GoogleCloudApigeeV1ListInstancesResponse{
 40922  		ServerResponse: googleapi.ServerResponse{
 40923  			Header:         res.Header,
 40924  			HTTPStatusCode: res.StatusCode,
 40925  		},
 40926  	}
 40927  	target := &ret
 40928  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40929  		return nil, err
 40930  	}
 40931  	return ret, nil
 40932  }
 40933  
 40934  // Pages invokes f for each page of results.
 40935  // A non-nil error returned from f will halt the iteration.
 40936  // The provided context supersedes any context provided to the Context method.
 40937  func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
 40938  	c.ctx_ = ctx
 40939  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40940  	for {
 40941  		x, err := c.Do()
 40942  		if err != nil {
 40943  			return err
 40944  		}
 40945  		if err := f(x); err != nil {
 40946  			return err
 40947  		}
 40948  		if x.NextPageToken == "" {
 40949  			return nil
 40950  		}
 40951  		c.PageToken(x.NextPageToken)
 40952  	}
 40953  }
 40954  
 40955  type OrganizationsInstancesPatchCall struct {
 40956  	s                           *Service
 40957  	name                        string
 40958  	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
 40959  	urlParams_                  gensupport.URLParams
 40960  	ctx_                        context.Context
 40961  	header_                     http.Header
 40962  }
 40963  
 40964  // Patch: Updates an Apigee runtime instance. You can update the fields
 40965  // described in NodeConfig. No other fields will be updated. **Note:** Not
 40966  // supported for Apigee hybrid.
 40967  //
 40968  //   - name: Name of the instance. Use the following structure in your request:
 40969  //     `organizations/{org}/instances/{instance}`.
 40970  func (r *OrganizationsInstancesService) Patch(name string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesPatchCall {
 40971  	c := &OrganizationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40972  	c.name = name
 40973  	c.googlecloudapigeev1instance = googlecloudapigeev1instance
 40974  	return c
 40975  }
 40976  
 40977  // UpdateMask sets the optional parameter "updateMask": List of fields to be
 40978  // updated.
 40979  func (c *OrganizationsInstancesPatchCall) UpdateMask(updateMask string) *OrganizationsInstancesPatchCall {
 40980  	c.urlParams_.Set("updateMask", updateMask)
 40981  	return c
 40982  }
 40983  
 40984  // Fields allows partial responses to be retrieved. See
 40985  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40986  // details.
 40987  func (c *OrganizationsInstancesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInstancesPatchCall {
 40988  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40989  	return c
 40990  }
 40991  
 40992  // Context sets the context to be used in this call's Do method.
 40993  func (c *OrganizationsInstancesPatchCall) Context(ctx context.Context) *OrganizationsInstancesPatchCall {
 40994  	c.ctx_ = ctx
 40995  	return c
 40996  }
 40997  
 40998  // Header returns a http.Header that can be modified by the caller to add
 40999  // headers to the request.
 41000  func (c *OrganizationsInstancesPatchCall) Header() http.Header {
 41001  	if c.header_ == nil {
 41002  		c.header_ = make(http.Header)
 41003  	}
 41004  	return c.header_
 41005  }
 41006  
 41007  func (c *OrganizationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) {
 41008  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41009  	var body io.Reader = nil
 41010  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
 41011  	if err != nil {
 41012  		return nil, err
 41013  	}
 41014  	c.urlParams_.Set("alt", alt)
 41015  	c.urlParams_.Set("prettyPrint", "false")
 41016  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 41017  	urls += "?" + c.urlParams_.Encode()
 41018  	req, err := http.NewRequest("PATCH", urls, body)
 41019  	if err != nil {
 41020  		return nil, err
 41021  	}
 41022  	req.Header = reqHeaders
 41023  	googleapi.Expand(req.URL, map[string]string{
 41024  		"name": c.name,
 41025  	})
 41026  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41027  }
 41028  
 41029  // Do executes the "apigee.organizations.instances.patch" call.
 41030  // Any non-2xx status code is an error. Response headers are in either
 41031  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41032  // returned at all) in error.(*googleapi.Error).Header. Use
 41033  // googleapi.IsNotModified to check whether the returned error was because
 41034  // http.StatusNotModified was returned.
 41035  func (c *OrganizationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41036  	gensupport.SetOptions(c.urlParams_, opts...)
 41037  	res, err := c.doRequest("json")
 41038  	if res != nil && res.StatusCode == http.StatusNotModified {
 41039  		if res.Body != nil {
 41040  			res.Body.Close()
 41041  		}
 41042  		return nil, gensupport.WrapError(&googleapi.Error{
 41043  			Code:   res.StatusCode,
 41044  			Header: res.Header,
 41045  		})
 41046  	}
 41047  	if err != nil {
 41048  		return nil, err
 41049  	}
 41050  	defer googleapi.CloseBody(res)
 41051  	if err := googleapi.CheckResponse(res); err != nil {
 41052  		return nil, gensupport.WrapError(err)
 41053  	}
 41054  	ret := &GoogleLongrunningOperation{
 41055  		ServerResponse: googleapi.ServerResponse{
 41056  			Header:         res.Header,
 41057  			HTTPStatusCode: res.StatusCode,
 41058  		},
 41059  	}
 41060  	target := &ret
 41061  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41062  		return nil, err
 41063  	}
 41064  	return ret, nil
 41065  }
 41066  
 41067  type OrganizationsInstancesReportStatusCall struct {
 41068  	s                                              *Service
 41069  	instance                                       string
 41070  	googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
 41071  	urlParams_                                     gensupport.URLParams
 41072  	ctx_                                           context.Context
 41073  	header_                                        http.Header
 41074  }
 41075  
 41076  // ReportStatus: Reports the latest status for a runtime instance.
 41077  //
 41078  //   - instance: The name of the instance reporting this status. For SaaS the
 41079  //     request will be rejected if no instance exists under this name. Format is
 41080  //     organizations/{org}/instances/{instance}.
 41081  func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
 41082  	c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41083  	c.instance = instance
 41084  	c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
 41085  	return c
 41086  }
 41087  
 41088  // Fields allows partial responses to be retrieved. See
 41089  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41090  // details.
 41091  func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
 41092  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41093  	return c
 41094  }
 41095  
 41096  // Context sets the context to be used in this call's Do method.
 41097  func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
 41098  	c.ctx_ = ctx
 41099  	return c
 41100  }
 41101  
 41102  // Header returns a http.Header that can be modified by the caller to add
 41103  // headers to the request.
 41104  func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
 41105  	if c.header_ == nil {
 41106  		c.header_ = make(http.Header)
 41107  	}
 41108  	return c.header_
 41109  }
 41110  
 41111  func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
 41112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41113  	var body io.Reader = nil
 41114  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
 41115  	if err != nil {
 41116  		return nil, err
 41117  	}
 41118  	c.urlParams_.Set("alt", alt)
 41119  	c.urlParams_.Set("prettyPrint", "false")
 41120  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
 41121  	urls += "?" + c.urlParams_.Encode()
 41122  	req, err := http.NewRequest("POST", urls, body)
 41123  	if err != nil {
 41124  		return nil, err
 41125  	}
 41126  	req.Header = reqHeaders
 41127  	googleapi.Expand(req.URL, map[string]string{
 41128  		"instance": c.instance,
 41129  	})
 41130  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41131  }
 41132  
 41133  // Do executes the "apigee.organizations.instances.reportStatus" call.
 41134  // Any non-2xx status code is an error. Response headers are in either
 41135  // *GoogleCloudApigeeV1ReportInstanceStatusResponse.ServerResponse.Header or
 41136  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 41137  // googleapi.IsNotModified to check whether the returned error was because
 41138  // http.StatusNotModified was returned.
 41139  func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
 41140  	gensupport.SetOptions(c.urlParams_, opts...)
 41141  	res, err := c.doRequest("json")
 41142  	if res != nil && res.StatusCode == http.StatusNotModified {
 41143  		if res.Body != nil {
 41144  			res.Body.Close()
 41145  		}
 41146  		return nil, gensupport.WrapError(&googleapi.Error{
 41147  			Code:   res.StatusCode,
 41148  			Header: res.Header,
 41149  		})
 41150  	}
 41151  	if err != nil {
 41152  		return nil, err
 41153  	}
 41154  	defer googleapi.CloseBody(res)
 41155  	if err := googleapi.CheckResponse(res); err != nil {
 41156  		return nil, gensupport.WrapError(err)
 41157  	}
 41158  	ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
 41159  		ServerResponse: googleapi.ServerResponse{
 41160  			Header:         res.Header,
 41161  			HTTPStatusCode: res.StatusCode,
 41162  		},
 41163  	}
 41164  	target := &ret
 41165  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41166  		return nil, err
 41167  	}
 41168  	return ret, nil
 41169  }
 41170  
 41171  type OrganizationsInstancesAttachmentsCreateCall struct {
 41172  	s                                     *Service
 41173  	parent                                string
 41174  	googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
 41175  	urlParams_                            gensupport.URLParams
 41176  	ctx_                                  context.Context
 41177  	header_                               http.Header
 41178  }
 41179  
 41180  // Create: Creates a new attachment of an environment to an instance. **Note:**
 41181  // Not supported for Apigee hybrid.
 41182  //
 41183  //   - parent: Name of the instance. Use the following structure in your request:
 41184  //     `organizations/{org}/instances/{instance}`.
 41185  func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
 41186  	c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41187  	c.parent = parent
 41188  	c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
 41189  	return c
 41190  }
 41191  
 41192  // Fields allows partial responses to be retrieved. See
 41193  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41194  // details.
 41195  func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
 41196  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41197  	return c
 41198  }
 41199  
 41200  // Context sets the context to be used in this call's Do method.
 41201  func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
 41202  	c.ctx_ = ctx
 41203  	return c
 41204  }
 41205  
 41206  // Header returns a http.Header that can be modified by the caller to add
 41207  // headers to the request.
 41208  func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
 41209  	if c.header_ == nil {
 41210  		c.header_ = make(http.Header)
 41211  	}
 41212  	return c.header_
 41213  }
 41214  
 41215  func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 41216  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41217  	var body io.Reader = nil
 41218  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
 41219  	if err != nil {
 41220  		return nil, err
 41221  	}
 41222  	c.urlParams_.Set("alt", alt)
 41223  	c.urlParams_.Set("prettyPrint", "false")
 41224  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
 41225  	urls += "?" + c.urlParams_.Encode()
 41226  	req, err := http.NewRequest("POST", urls, body)
 41227  	if err != nil {
 41228  		return nil, err
 41229  	}
 41230  	req.Header = reqHeaders
 41231  	googleapi.Expand(req.URL, map[string]string{
 41232  		"parent": c.parent,
 41233  	})
 41234  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41235  }
 41236  
 41237  // Do executes the "apigee.organizations.instances.attachments.create" call.
 41238  // Any non-2xx status code is an error. Response headers are in either
 41239  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41240  // returned at all) in error.(*googleapi.Error).Header. Use
 41241  // googleapi.IsNotModified to check whether the returned error was because
 41242  // http.StatusNotModified was returned.
 41243  func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41244  	gensupport.SetOptions(c.urlParams_, opts...)
 41245  	res, err := c.doRequest("json")
 41246  	if res != nil && res.StatusCode == http.StatusNotModified {
 41247  		if res.Body != nil {
 41248  			res.Body.Close()
 41249  		}
 41250  		return nil, gensupport.WrapError(&googleapi.Error{
 41251  			Code:   res.StatusCode,
 41252  			Header: res.Header,
 41253  		})
 41254  	}
 41255  	if err != nil {
 41256  		return nil, err
 41257  	}
 41258  	defer googleapi.CloseBody(res)
 41259  	if err := googleapi.CheckResponse(res); err != nil {
 41260  		return nil, gensupport.WrapError(err)
 41261  	}
 41262  	ret := &GoogleLongrunningOperation{
 41263  		ServerResponse: googleapi.ServerResponse{
 41264  			Header:         res.Header,
 41265  			HTTPStatusCode: res.StatusCode,
 41266  		},
 41267  	}
 41268  	target := &ret
 41269  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41270  		return nil, err
 41271  	}
 41272  	return ret, nil
 41273  }
 41274  
 41275  type OrganizationsInstancesAttachmentsDeleteCall struct {
 41276  	s          *Service
 41277  	name       string
 41278  	urlParams_ gensupport.URLParams
 41279  	ctx_       context.Context
 41280  	header_    http.Header
 41281  }
 41282  
 41283  // Delete: Deletes an attachment. **Note:** Not supported for Apigee hybrid.
 41284  //
 41285  //   - name: Name of the attachment. Use the following structure in your request:
 41286  //     `organizations/{org}/instances/{instance}/attachments/{attachment}`.
 41287  func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
 41288  	c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41289  	c.name = name
 41290  	return c
 41291  }
 41292  
 41293  // Fields allows partial responses to be retrieved. See
 41294  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41295  // details.
 41296  func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
 41297  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41298  	return c
 41299  }
 41300  
 41301  // Context sets the context to be used in this call's Do method.
 41302  func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
 41303  	c.ctx_ = ctx
 41304  	return c
 41305  }
 41306  
 41307  // Header returns a http.Header that can be modified by the caller to add
 41308  // headers to the request.
 41309  func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
 41310  	if c.header_ == nil {
 41311  		c.header_ = make(http.Header)
 41312  	}
 41313  	return c.header_
 41314  }
 41315  
 41316  func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 41317  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41318  	var body io.Reader = nil
 41319  	c.urlParams_.Set("alt", alt)
 41320  	c.urlParams_.Set("prettyPrint", "false")
 41321  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 41322  	urls += "?" + c.urlParams_.Encode()
 41323  	req, err := http.NewRequest("DELETE", urls, body)
 41324  	if err != nil {
 41325  		return nil, err
 41326  	}
 41327  	req.Header = reqHeaders
 41328  	googleapi.Expand(req.URL, map[string]string{
 41329  		"name": c.name,
 41330  	})
 41331  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41332  }
 41333  
 41334  // Do executes the "apigee.organizations.instances.attachments.delete" call.
 41335  // Any non-2xx status code is an error. Response headers are in either
 41336  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41337  // returned at all) in error.(*googleapi.Error).Header. Use
 41338  // googleapi.IsNotModified to check whether the returned error was because
 41339  // http.StatusNotModified was returned.
 41340  func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41341  	gensupport.SetOptions(c.urlParams_, opts...)
 41342  	res, err := c.doRequest("json")
 41343  	if res != nil && res.StatusCode == http.StatusNotModified {
 41344  		if res.Body != nil {
 41345  			res.Body.Close()
 41346  		}
 41347  		return nil, gensupport.WrapError(&googleapi.Error{
 41348  			Code:   res.StatusCode,
 41349  			Header: res.Header,
 41350  		})
 41351  	}
 41352  	if err != nil {
 41353  		return nil, err
 41354  	}
 41355  	defer googleapi.CloseBody(res)
 41356  	if err := googleapi.CheckResponse(res); err != nil {
 41357  		return nil, gensupport.WrapError(err)
 41358  	}
 41359  	ret := &GoogleLongrunningOperation{
 41360  		ServerResponse: googleapi.ServerResponse{
 41361  			Header:         res.Header,
 41362  			HTTPStatusCode: res.StatusCode,
 41363  		},
 41364  	}
 41365  	target := &ret
 41366  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41367  		return nil, err
 41368  	}
 41369  	return ret, nil
 41370  }
 41371  
 41372  type OrganizationsInstancesAttachmentsGetCall struct {
 41373  	s            *Service
 41374  	name         string
 41375  	urlParams_   gensupport.URLParams
 41376  	ifNoneMatch_ string
 41377  	ctx_         context.Context
 41378  	header_      http.Header
 41379  }
 41380  
 41381  // Get: Gets an attachment. **Note:** Not supported for Apigee hybrid.
 41382  //
 41383  //   - name: Name of the attachment. Use the following structure in your request:
 41384  //     `organizations/{org}/instances/{instance}/attachments/{attachment}`.
 41385  func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
 41386  	c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41387  	c.name = name
 41388  	return c
 41389  }
 41390  
 41391  // Fields allows partial responses to be retrieved. See
 41392  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41393  // details.
 41394  func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
 41395  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41396  	return c
 41397  }
 41398  
 41399  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41400  // object's ETag matches the given value. This is useful for getting updates
 41401  // only after the object has changed since the last request.
 41402  func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
 41403  	c.ifNoneMatch_ = entityTag
 41404  	return c
 41405  }
 41406  
 41407  // Context sets the context to be used in this call's Do method.
 41408  func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
 41409  	c.ctx_ = ctx
 41410  	return c
 41411  }
 41412  
 41413  // Header returns a http.Header that can be modified by the caller to add
 41414  // headers to the request.
 41415  func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
 41416  	if c.header_ == nil {
 41417  		c.header_ = make(http.Header)
 41418  	}
 41419  	return c.header_
 41420  }
 41421  
 41422  func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
 41423  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41424  	if c.ifNoneMatch_ != "" {
 41425  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41426  	}
 41427  	var body io.Reader = nil
 41428  	c.urlParams_.Set("alt", alt)
 41429  	c.urlParams_.Set("prettyPrint", "false")
 41430  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 41431  	urls += "?" + c.urlParams_.Encode()
 41432  	req, err := http.NewRequest("GET", urls, body)
 41433  	if err != nil {
 41434  		return nil, err
 41435  	}
 41436  	req.Header = reqHeaders
 41437  	googleapi.Expand(req.URL, map[string]string{
 41438  		"name": c.name,
 41439  	})
 41440  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41441  }
 41442  
 41443  // Do executes the "apigee.organizations.instances.attachments.get" call.
 41444  // Any non-2xx status code is an error. Response headers are in either
 41445  // *GoogleCloudApigeeV1InstanceAttachment.ServerResponse.Header or (if a
 41446  // response was returned at all) in error.(*googleapi.Error).Header. Use
 41447  // googleapi.IsNotModified to check whether the returned error was because
 41448  // http.StatusNotModified was returned.
 41449  func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
 41450  	gensupport.SetOptions(c.urlParams_, opts...)
 41451  	res, err := c.doRequest("json")
 41452  	if res != nil && res.StatusCode == http.StatusNotModified {
 41453  		if res.Body != nil {
 41454  			res.Body.Close()
 41455  		}
 41456  		return nil, gensupport.WrapError(&googleapi.Error{
 41457  			Code:   res.StatusCode,
 41458  			Header: res.Header,
 41459  		})
 41460  	}
 41461  	if err != nil {
 41462  		return nil, err
 41463  	}
 41464  	defer googleapi.CloseBody(res)
 41465  	if err := googleapi.CheckResponse(res); err != nil {
 41466  		return nil, gensupport.WrapError(err)
 41467  	}
 41468  	ret := &GoogleCloudApigeeV1InstanceAttachment{
 41469  		ServerResponse: googleapi.ServerResponse{
 41470  			Header:         res.Header,
 41471  			HTTPStatusCode: res.StatusCode,
 41472  		},
 41473  	}
 41474  	target := &ret
 41475  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41476  		return nil, err
 41477  	}
 41478  	return ret, nil
 41479  }
 41480  
 41481  type OrganizationsInstancesAttachmentsListCall struct {
 41482  	s            *Service
 41483  	parent       string
 41484  	urlParams_   gensupport.URLParams
 41485  	ifNoneMatch_ string
 41486  	ctx_         context.Context
 41487  	header_      http.Header
 41488  }
 41489  
 41490  // List: Lists all attachments to an instance. **Note:** Not supported for
 41491  // Apigee hybrid.
 41492  //
 41493  //   - parent: Name of the organization. Use the following structure in your
 41494  //     request: `organizations/{org}/instances/{instance}`.
 41495  func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
 41496  	c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41497  	c.parent = parent
 41498  	return c
 41499  }
 41500  
 41501  // PageSize sets the optional parameter "pageSize": Maximum number of instance
 41502  // attachments to return. Defaults to 25.
 41503  func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
 41504  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 41505  	return c
 41506  }
 41507  
 41508  // PageToken sets the optional parameter "pageToken": Page token, returned by a
 41509  // previous ListInstanceAttachments call, that you can use to retrieve the next
 41510  // page of content.
 41511  func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
 41512  	c.urlParams_.Set("pageToken", pageToken)
 41513  	return c
 41514  }
 41515  
 41516  // Fields allows partial responses to be retrieved. See
 41517  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41518  // details.
 41519  func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
 41520  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41521  	return c
 41522  }
 41523  
 41524  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41525  // object's ETag matches the given value. This is useful for getting updates
 41526  // only after the object has changed since the last request.
 41527  func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
 41528  	c.ifNoneMatch_ = entityTag
 41529  	return c
 41530  }
 41531  
 41532  // Context sets the context to be used in this call's Do method.
 41533  func (c *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
 41534  	c.ctx_ = ctx
 41535  	return c
 41536  }
 41537  
 41538  // Header returns a http.Header that can be modified by the caller to add
 41539  // headers to the request.
 41540  func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
 41541  	if c.header_ == nil {
 41542  		c.header_ = make(http.Header)
 41543  	}
 41544  	return c.header_
 41545  }
 41546  
 41547  func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
 41548  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41549  	if c.ifNoneMatch_ != "" {
 41550  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41551  	}
 41552  	var body io.Reader = nil
 41553  	c.urlParams_.Set("alt", alt)
 41554  	c.urlParams_.Set("prettyPrint", "false")
 41555  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
 41556  	urls += "?" + c.urlParams_.Encode()
 41557  	req, err := http.NewRequest("GET", urls, body)
 41558  	if err != nil {
 41559  		return nil, err
 41560  	}
 41561  	req.Header = reqHeaders
 41562  	googleapi.Expand(req.URL, map[string]string{
 41563  		"parent": c.parent,
 41564  	})
 41565  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41566  }
 41567  
 41568  // Do executes the "apigee.organizations.instances.attachments.list" call.
 41569  // Any non-2xx status code is an error. Response headers are in either
 41570  // *GoogleCloudApigeeV1ListInstanceAttachmentsResponse.ServerResponse.Header or
 41571  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 41572  // googleapi.IsNotModified to check whether the returned error was because
 41573  // http.StatusNotModified was returned.
 41574  func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
 41575  	gensupport.SetOptions(c.urlParams_, opts...)
 41576  	res, err := c.doRequest("json")
 41577  	if res != nil && res.StatusCode == http.StatusNotModified {
 41578  		if res.Body != nil {
 41579  			res.Body.Close()
 41580  		}
 41581  		return nil, gensupport.WrapError(&googleapi.Error{
 41582  			Code:   res.StatusCode,
 41583  			Header: res.Header,
 41584  		})
 41585  	}
 41586  	if err != nil {
 41587  		return nil, err
 41588  	}
 41589  	defer googleapi.CloseBody(res)
 41590  	if err := googleapi.CheckResponse(res); err != nil {
 41591  		return nil, gensupport.WrapError(err)
 41592  	}
 41593  	ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
 41594  		ServerResponse: googleapi.ServerResponse{
 41595  			Header:         res.Header,
 41596  			HTTPStatusCode: res.StatusCode,
 41597  		},
 41598  	}
 41599  	target := &ret
 41600  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41601  		return nil, err
 41602  	}
 41603  	return ret, nil
 41604  }
 41605  
 41606  // Pages invokes f for each page of results.
 41607  // A non-nil error returned from f will halt the iteration.
 41608  // The provided context supersedes any context provided to the Context method.
 41609  func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
 41610  	c.ctx_ = ctx
 41611  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 41612  	for {
 41613  		x, err := c.Do()
 41614  		if err != nil {
 41615  			return err
 41616  		}
 41617  		if err := f(x); err != nil {
 41618  			return err
 41619  		}
 41620  		if x.NextPageToken == "" {
 41621  			return nil
 41622  		}
 41623  		c.PageToken(x.NextPageToken)
 41624  	}
 41625  }
 41626  
 41627  type OrganizationsInstancesCanaryevaluationsCreateCall struct {
 41628  	s                                   *Service
 41629  	parent                              string
 41630  	googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
 41631  	urlParams_                          gensupport.URLParams
 41632  	ctx_                                context.Context
 41633  	header_                             http.Header
 41634  }
 41635  
 41636  // Create: Creates a new canary evaluation for an organization.
 41637  //
 41638  //   - parent: Name of the organization. Use the following structure in your
 41639  //     request: `organizations/{org}/instances/{instance}`.
 41640  func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
 41641  	c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41642  	c.parent = parent
 41643  	c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
 41644  	return c
 41645  }
 41646  
 41647  // Fields allows partial responses to be retrieved. See
 41648  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41649  // details.
 41650  func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
 41651  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41652  	return c
 41653  }
 41654  
 41655  // Context sets the context to be used in this call's Do method.
 41656  func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
 41657  	c.ctx_ = ctx
 41658  	return c
 41659  }
 41660  
 41661  // Header returns a http.Header that can be modified by the caller to add
 41662  // headers to the request.
 41663  func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
 41664  	if c.header_ == nil {
 41665  		c.header_ = make(http.Header)
 41666  	}
 41667  	return c.header_
 41668  }
 41669  
 41670  func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
 41671  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41672  	var body io.Reader = nil
 41673  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
 41674  	if err != nil {
 41675  		return nil, err
 41676  	}
 41677  	c.urlParams_.Set("alt", alt)
 41678  	c.urlParams_.Set("prettyPrint", "false")
 41679  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
 41680  	urls += "?" + c.urlParams_.Encode()
 41681  	req, err := http.NewRequest("POST", urls, body)
 41682  	if err != nil {
 41683  		return nil, err
 41684  	}
 41685  	req.Header = reqHeaders
 41686  	googleapi.Expand(req.URL, map[string]string{
 41687  		"parent": c.parent,
 41688  	})
 41689  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41690  }
 41691  
 41692  // Do executes the "apigee.organizations.instances.canaryevaluations.create" call.
 41693  // Any non-2xx status code is an error. Response headers are in either
 41694  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41695  // returned at all) in error.(*googleapi.Error).Header. Use
 41696  // googleapi.IsNotModified to check whether the returned error was because
 41697  // http.StatusNotModified was returned.
 41698  func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41699  	gensupport.SetOptions(c.urlParams_, opts...)
 41700  	res, err := c.doRequest("json")
 41701  	if res != nil && res.StatusCode == http.StatusNotModified {
 41702  		if res.Body != nil {
 41703  			res.Body.Close()
 41704  		}
 41705  		return nil, gensupport.WrapError(&googleapi.Error{
 41706  			Code:   res.StatusCode,
 41707  			Header: res.Header,
 41708  		})
 41709  	}
 41710  	if err != nil {
 41711  		return nil, err
 41712  	}
 41713  	defer googleapi.CloseBody(res)
 41714  	if err := googleapi.CheckResponse(res); err != nil {
 41715  		return nil, gensupport.WrapError(err)
 41716  	}
 41717  	ret := &GoogleLongrunningOperation{
 41718  		ServerResponse: googleapi.ServerResponse{
 41719  			Header:         res.Header,
 41720  			HTTPStatusCode: res.StatusCode,
 41721  		},
 41722  	}
 41723  	target := &ret
 41724  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41725  		return nil, err
 41726  	}
 41727  	return ret, nil
 41728  }
 41729  
 41730  type OrganizationsInstancesCanaryevaluationsGetCall struct {
 41731  	s            *Service
 41732  	name         string
 41733  	urlParams_   gensupport.URLParams
 41734  	ifNoneMatch_ string
 41735  	ctx_         context.Context
 41736  	header_      http.Header
 41737  }
 41738  
 41739  // Get: Gets a CanaryEvaluation for an organization.
 41740  //
 41741  //   - name: Name of the CanaryEvaluation. Use the following structure in your
 41742  //     request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`.
 41743  func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
 41744  	c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41745  	c.name = name
 41746  	return c
 41747  }
 41748  
 41749  // Fields allows partial responses to be retrieved. See
 41750  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41751  // details.
 41752  func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
 41753  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41754  	return c
 41755  }
 41756  
 41757  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41758  // object's ETag matches the given value. This is useful for getting updates
 41759  // only after the object has changed since the last request.
 41760  func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
 41761  	c.ifNoneMatch_ = entityTag
 41762  	return c
 41763  }
 41764  
 41765  // Context sets the context to be used in this call's Do method.
 41766  func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
 41767  	c.ctx_ = ctx
 41768  	return c
 41769  }
 41770  
 41771  // Header returns a http.Header that can be modified by the caller to add
 41772  // headers to the request.
 41773  func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
 41774  	if c.header_ == nil {
 41775  		c.header_ = make(http.Header)
 41776  	}
 41777  	return c.header_
 41778  }
 41779  
 41780  func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
 41781  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41782  	if c.ifNoneMatch_ != "" {
 41783  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41784  	}
 41785  	var body io.Reader = nil
 41786  	c.urlParams_.Set("alt", alt)
 41787  	c.urlParams_.Set("prettyPrint", "false")
 41788  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 41789  	urls += "?" + c.urlParams_.Encode()
 41790  	req, err := http.NewRequest("GET", urls, body)
 41791  	if err != nil {
 41792  		return nil, err
 41793  	}
 41794  	req.Header = reqHeaders
 41795  	googleapi.Expand(req.URL, map[string]string{
 41796  		"name": c.name,
 41797  	})
 41798  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41799  }
 41800  
 41801  // Do executes the "apigee.organizations.instances.canaryevaluations.get" call.
 41802  // Any non-2xx status code is an error. Response headers are in either
 41803  // *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or (if a response
 41804  // was returned at all) in error.(*googleapi.Error).Header. Use
 41805  // googleapi.IsNotModified to check whether the returned error was because
 41806  // http.StatusNotModified was returned.
 41807  func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
 41808  	gensupport.SetOptions(c.urlParams_, opts...)
 41809  	res, err := c.doRequest("json")
 41810  	if res != nil && res.StatusCode == http.StatusNotModified {
 41811  		if res.Body != nil {
 41812  			res.Body.Close()
 41813  		}
 41814  		return nil, gensupport.WrapError(&googleapi.Error{
 41815  			Code:   res.StatusCode,
 41816  			Header: res.Header,
 41817  		})
 41818  	}
 41819  	if err != nil {
 41820  		return nil, err
 41821  	}
 41822  	defer googleapi.CloseBody(res)
 41823  	if err := googleapi.CheckResponse(res); err != nil {
 41824  		return nil, gensupport.WrapError(err)
 41825  	}
 41826  	ret := &GoogleCloudApigeeV1CanaryEvaluation{
 41827  		ServerResponse: googleapi.ServerResponse{
 41828  			Header:         res.Header,
 41829  			HTTPStatusCode: res.StatusCode,
 41830  		},
 41831  	}
 41832  	target := &ret
 41833  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41834  		return nil, err
 41835  	}
 41836  	return ret, nil
 41837  }
 41838  
 41839  type OrganizationsInstancesNatAddressesActivateCall struct {
 41840  	s                                            *Service
 41841  	name                                         string
 41842  	googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
 41843  	urlParams_                                   gensupport.URLParams
 41844  	ctx_                                         context.Context
 41845  	header_                                      http.Header
 41846  }
 41847  
 41848  // Activate: Activates the NAT address. The Apigee instance can now use this
 41849  // for Internet egress traffic. **Note:** Not supported for Apigee hybrid.
 41850  //
 41851  //   - name: Name of the nat address. Use the following structure in your
 41852  //     request:
 41853  //     `organizations/{org}/instances/{instances}/natAddresses/{nataddress}“.
 41854  func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
 41855  	c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41856  	c.name = name
 41857  	c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
 41858  	return c
 41859  }
 41860  
 41861  // Fields allows partial responses to be retrieved. See
 41862  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41863  // details.
 41864  func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
 41865  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41866  	return c
 41867  }
 41868  
 41869  // Context sets the context to be used in this call's Do method.
 41870  func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
 41871  	c.ctx_ = ctx
 41872  	return c
 41873  }
 41874  
 41875  // Header returns a http.Header that can be modified by the caller to add
 41876  // headers to the request.
 41877  func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
 41878  	if c.header_ == nil {
 41879  		c.header_ = make(http.Header)
 41880  	}
 41881  	return c.header_
 41882  }
 41883  
 41884  func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
 41885  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41886  	var body io.Reader = nil
 41887  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
 41888  	if err != nil {
 41889  		return nil, err
 41890  	}
 41891  	c.urlParams_.Set("alt", alt)
 41892  	c.urlParams_.Set("prettyPrint", "false")
 41893  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
 41894  	urls += "?" + c.urlParams_.Encode()
 41895  	req, err := http.NewRequest("POST", urls, body)
 41896  	if err != nil {
 41897  		return nil, err
 41898  	}
 41899  	req.Header = reqHeaders
 41900  	googleapi.Expand(req.URL, map[string]string{
 41901  		"name": c.name,
 41902  	})
 41903  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41904  }
 41905  
 41906  // Do executes the "apigee.organizations.instances.natAddresses.activate" call.
 41907  // Any non-2xx status code is an error. Response headers are in either
 41908  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41909  // returned at all) in error.(*googleapi.Error).Header. Use
 41910  // googleapi.IsNotModified to check whether the returned error was because
 41911  // http.StatusNotModified was returned.
 41912  func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41913  	gensupport.SetOptions(c.urlParams_, opts...)
 41914  	res, err := c.doRequest("json")
 41915  	if res != nil && res.StatusCode == http.StatusNotModified {
 41916  		if res.Body != nil {
 41917  			res.Body.Close()
 41918  		}
 41919  		return nil, gensupport.WrapError(&googleapi.Error{
 41920  			Code:   res.StatusCode,
 41921  			Header: res.Header,
 41922  		})
 41923  	}
 41924  	if err != nil {
 41925  		return nil, err
 41926  	}
 41927  	defer googleapi.CloseBody(res)
 41928  	if err := googleapi.CheckResponse(res); err != nil {
 41929  		return nil, gensupport.WrapError(err)
 41930  	}
 41931  	ret := &GoogleLongrunningOperation{
 41932  		ServerResponse: googleapi.ServerResponse{
 41933  			Header:         res.Header,
 41934  			HTTPStatusCode: res.StatusCode,
 41935  		},
 41936  	}
 41937  	target := &ret
 41938  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41939  		return nil, err
 41940  	}
 41941  	return ret, nil
 41942  }
 41943  
 41944  type OrganizationsInstancesNatAddressesCreateCall struct {
 41945  	s                             *Service
 41946  	parent                        string
 41947  	googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
 41948  	urlParams_                    gensupport.URLParams
 41949  	ctx_                          context.Context
 41950  	header_                       http.Header
 41951  }
 41952  
 41953  // Create: Creates a NAT address. The address is created in the RESERVED state
 41954  // and a static external IP address will be provisioned. At this time, the
 41955  // instance will not use this IP address for Internet egress traffic. The
 41956  // address can be activated for use once any required firewall IP whitelisting
 41957  // has been completed. **Note:** Not supported for Apigee hybrid.
 41958  //
 41959  //   - parent: Name of the instance. Use the following structure in your request:
 41960  //     `organizations/{org}/instances/{instance}`.
 41961  func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
 41962  	c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41963  	c.parent = parent
 41964  	c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
 41965  	return c
 41966  }
 41967  
 41968  // Fields allows partial responses to be retrieved. See
 41969  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41970  // details.
 41971  func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
 41972  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41973  	return c
 41974  }
 41975  
 41976  // Context sets the context to be used in this call's Do method.
 41977  func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
 41978  	c.ctx_ = ctx
 41979  	return c
 41980  }
 41981  
 41982  // Header returns a http.Header that can be modified by the caller to add
 41983  // headers to the request.
 41984  func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
 41985  	if c.header_ == nil {
 41986  		c.header_ = make(http.Header)
 41987  	}
 41988  	return c.header_
 41989  }
 41990  
 41991  func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
 41992  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41993  	var body io.Reader = nil
 41994  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
 41995  	if err != nil {
 41996  		return nil, err
 41997  	}
 41998  	c.urlParams_.Set("alt", alt)
 41999  	c.urlParams_.Set("prettyPrint", "false")
 42000  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
 42001  	urls += "?" + c.urlParams_.Encode()
 42002  	req, err := http.NewRequest("POST", urls, body)
 42003  	if err != nil {
 42004  		return nil, err
 42005  	}
 42006  	req.Header = reqHeaders
 42007  	googleapi.Expand(req.URL, map[string]string{
 42008  		"parent": c.parent,
 42009  	})
 42010  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42011  }
 42012  
 42013  // Do executes the "apigee.organizations.instances.natAddresses.create" call.
 42014  // Any non-2xx status code is an error. Response headers are in either
 42015  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42016  // returned at all) in error.(*googleapi.Error).Header. Use
 42017  // googleapi.IsNotModified to check whether the returned error was because
 42018  // http.StatusNotModified was returned.
 42019  func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42020  	gensupport.SetOptions(c.urlParams_, opts...)
 42021  	res, err := c.doRequest("json")
 42022  	if res != nil && res.StatusCode == http.StatusNotModified {
 42023  		if res.Body != nil {
 42024  			res.Body.Close()
 42025  		}
 42026  		return nil, gensupport.WrapError(&googleapi.Error{
 42027  			Code:   res.StatusCode,
 42028  			Header: res.Header,
 42029  		})
 42030  	}
 42031  	if err != nil {
 42032  		return nil, err
 42033  	}
 42034  	defer googleapi.CloseBody(res)
 42035  	if err := googleapi.CheckResponse(res); err != nil {
 42036  		return nil, gensupport.WrapError(err)
 42037  	}
 42038  	ret := &GoogleLongrunningOperation{
 42039  		ServerResponse: googleapi.ServerResponse{
 42040  			Header:         res.Header,
 42041  			HTTPStatusCode: res.StatusCode,
 42042  		},
 42043  	}
 42044  	target := &ret
 42045  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42046  		return nil, err
 42047  	}
 42048  	return ret, nil
 42049  }
 42050  
 42051  type OrganizationsInstancesNatAddressesDeleteCall struct {
 42052  	s          *Service
 42053  	name       string
 42054  	urlParams_ gensupport.URLParams
 42055  	ctx_       context.Context
 42056  	header_    http.Header
 42057  }
 42058  
 42059  // Delete: Deletes the NAT address. Connections that are actively using the
 42060  // address are drained before it is removed. **Note:** Not supported for Apigee
 42061  // hybrid.
 42062  //
 42063  //   - name: Name of the nat address. Use the following structure in your
 42064  //     request:
 42065  //     `organizations/{org}/instances/{instances}/natAddresses/{nataddress}“.
 42066  func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
 42067  	c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42068  	c.name = name
 42069  	return c
 42070  }
 42071  
 42072  // Fields allows partial responses to be retrieved. See
 42073  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42074  // details.
 42075  func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
 42076  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42077  	return c
 42078  }
 42079  
 42080  // Context sets the context to be used in this call's Do method.
 42081  func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
 42082  	c.ctx_ = ctx
 42083  	return c
 42084  }
 42085  
 42086  // Header returns a http.Header that can be modified by the caller to add
 42087  // headers to the request.
 42088  func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
 42089  	if c.header_ == nil {
 42090  		c.header_ = make(http.Header)
 42091  	}
 42092  	return c.header_
 42093  }
 42094  
 42095  func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
 42096  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42097  	var body io.Reader = nil
 42098  	c.urlParams_.Set("alt", alt)
 42099  	c.urlParams_.Set("prettyPrint", "false")
 42100  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 42101  	urls += "?" + c.urlParams_.Encode()
 42102  	req, err := http.NewRequest("DELETE", urls, body)
 42103  	if err != nil {
 42104  		return nil, err
 42105  	}
 42106  	req.Header = reqHeaders
 42107  	googleapi.Expand(req.URL, map[string]string{
 42108  		"name": c.name,
 42109  	})
 42110  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42111  }
 42112  
 42113  // Do executes the "apigee.organizations.instances.natAddresses.delete" call.
 42114  // Any non-2xx status code is an error. Response headers are in either
 42115  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42116  // returned at all) in error.(*googleapi.Error).Header. Use
 42117  // googleapi.IsNotModified to check whether the returned error was because
 42118  // http.StatusNotModified was returned.
 42119  func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42120  	gensupport.SetOptions(c.urlParams_, opts...)
 42121  	res, err := c.doRequest("json")
 42122  	if res != nil && res.StatusCode == http.StatusNotModified {
 42123  		if res.Body != nil {
 42124  			res.Body.Close()
 42125  		}
 42126  		return nil, gensupport.WrapError(&googleapi.Error{
 42127  			Code:   res.StatusCode,
 42128  			Header: res.Header,
 42129  		})
 42130  	}
 42131  	if err != nil {
 42132  		return nil, err
 42133  	}
 42134  	defer googleapi.CloseBody(res)
 42135  	if err := googleapi.CheckResponse(res); err != nil {
 42136  		return nil, gensupport.WrapError(err)
 42137  	}
 42138  	ret := &GoogleLongrunningOperation{
 42139  		ServerResponse: googleapi.ServerResponse{
 42140  			Header:         res.Header,
 42141  			HTTPStatusCode: res.StatusCode,
 42142  		},
 42143  	}
 42144  	target := &ret
 42145  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42146  		return nil, err
 42147  	}
 42148  	return ret, nil
 42149  }
 42150  
 42151  type OrganizationsInstancesNatAddressesGetCall struct {
 42152  	s            *Service
 42153  	name         string
 42154  	urlParams_   gensupport.URLParams
 42155  	ifNoneMatch_ string
 42156  	ctx_         context.Context
 42157  	header_      http.Header
 42158  }
 42159  
 42160  // Get: Gets the details of a NAT address. **Note:** Not supported for Apigee
 42161  // hybrid.
 42162  //
 42163  //   - name: Name of the nat address. Use the following structure in your
 42164  //     request:
 42165  //     `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`.
 42166  func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
 42167  	c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42168  	c.name = name
 42169  	return c
 42170  }
 42171  
 42172  // Fields allows partial responses to be retrieved. See
 42173  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42174  // details.
 42175  func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
 42176  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42177  	return c
 42178  }
 42179  
 42180  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42181  // object's ETag matches the given value. This is useful for getting updates
 42182  // only after the object has changed since the last request.
 42183  func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
 42184  	c.ifNoneMatch_ = entityTag
 42185  	return c
 42186  }
 42187  
 42188  // Context sets the context to be used in this call's Do method.
 42189  func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
 42190  	c.ctx_ = ctx
 42191  	return c
 42192  }
 42193  
 42194  // Header returns a http.Header that can be modified by the caller to add
 42195  // headers to the request.
 42196  func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
 42197  	if c.header_ == nil {
 42198  		c.header_ = make(http.Header)
 42199  	}
 42200  	return c.header_
 42201  }
 42202  
 42203  func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
 42204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42205  	if c.ifNoneMatch_ != "" {
 42206  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42207  	}
 42208  	var body io.Reader = nil
 42209  	c.urlParams_.Set("alt", alt)
 42210  	c.urlParams_.Set("prettyPrint", "false")
 42211  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 42212  	urls += "?" + c.urlParams_.Encode()
 42213  	req, err := http.NewRequest("GET", urls, body)
 42214  	if err != nil {
 42215  		return nil, err
 42216  	}
 42217  	req.Header = reqHeaders
 42218  	googleapi.Expand(req.URL, map[string]string{
 42219  		"name": c.name,
 42220  	})
 42221  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42222  }
 42223  
 42224  // Do executes the "apigee.organizations.instances.natAddresses.get" call.
 42225  // Any non-2xx status code is an error. Response headers are in either
 42226  // *GoogleCloudApigeeV1NatAddress.ServerResponse.Header or (if a response was
 42227  // returned at all) in error.(*googleapi.Error).Header. Use
 42228  // googleapi.IsNotModified to check whether the returned error was because
 42229  // http.StatusNotModified was returned.
 42230  func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
 42231  	gensupport.SetOptions(c.urlParams_, opts...)
 42232  	res, err := c.doRequest("json")
 42233  	if res != nil && res.StatusCode == http.StatusNotModified {
 42234  		if res.Body != nil {
 42235  			res.Body.Close()
 42236  		}
 42237  		return nil, gensupport.WrapError(&googleapi.Error{
 42238  			Code:   res.StatusCode,
 42239  			Header: res.Header,
 42240  		})
 42241  	}
 42242  	if err != nil {
 42243  		return nil, err
 42244  	}
 42245  	defer googleapi.CloseBody(res)
 42246  	if err := googleapi.CheckResponse(res); err != nil {
 42247  		return nil, gensupport.WrapError(err)
 42248  	}
 42249  	ret := &GoogleCloudApigeeV1NatAddress{
 42250  		ServerResponse: googleapi.ServerResponse{
 42251  			Header:         res.Header,
 42252  			HTTPStatusCode: res.StatusCode,
 42253  		},
 42254  	}
 42255  	target := &ret
 42256  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42257  		return nil, err
 42258  	}
 42259  	return ret, nil
 42260  }
 42261  
 42262  type OrganizationsInstancesNatAddressesListCall struct {
 42263  	s            *Service
 42264  	parent       string
 42265  	urlParams_   gensupport.URLParams
 42266  	ifNoneMatch_ string
 42267  	ctx_         context.Context
 42268  	header_      http.Header
 42269  }
 42270  
 42271  // List: Lists the NAT addresses for an Apigee instance. **Note:** Not
 42272  // supported for Apigee hybrid.
 42273  //
 42274  //   - parent: Name of the instance. Use the following structure in your request:
 42275  //     `organizations/{org}/instances/{instance}`.
 42276  func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
 42277  	c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42278  	c.parent = parent
 42279  	return c
 42280  }
 42281  
 42282  // PageSize sets the optional parameter "pageSize": Maximum number of
 42283  // natAddresses to return. Defaults to 25.
 42284  func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
 42285  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 42286  	return c
 42287  }
 42288  
 42289  // PageToken sets the optional parameter "pageToken": Page token, returned from
 42290  // a previous ListNatAddresses call, that you can use to retrieve the next page
 42291  // of content.
 42292  func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
 42293  	c.urlParams_.Set("pageToken", pageToken)
 42294  	return c
 42295  }
 42296  
 42297  // Fields allows partial responses to be retrieved. See
 42298  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42299  // details.
 42300  func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
 42301  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42302  	return c
 42303  }
 42304  
 42305  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42306  // object's ETag matches the given value. This is useful for getting updates
 42307  // only after the object has changed since the last request.
 42308  func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
 42309  	c.ifNoneMatch_ = entityTag
 42310  	return c
 42311  }
 42312  
 42313  // Context sets the context to be used in this call's Do method.
 42314  func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
 42315  	c.ctx_ = ctx
 42316  	return c
 42317  }
 42318  
 42319  // Header returns a http.Header that can be modified by the caller to add
 42320  // headers to the request.
 42321  func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
 42322  	if c.header_ == nil {
 42323  		c.header_ = make(http.Header)
 42324  	}
 42325  	return c.header_
 42326  }
 42327  
 42328  func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
 42329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42330  	if c.ifNoneMatch_ != "" {
 42331  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42332  	}
 42333  	var body io.Reader = nil
 42334  	c.urlParams_.Set("alt", alt)
 42335  	c.urlParams_.Set("prettyPrint", "false")
 42336  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
 42337  	urls += "?" + c.urlParams_.Encode()
 42338  	req, err := http.NewRequest("GET", urls, body)
 42339  	if err != nil {
 42340  		return nil, err
 42341  	}
 42342  	req.Header = reqHeaders
 42343  	googleapi.Expand(req.URL, map[string]string{
 42344  		"parent": c.parent,
 42345  	})
 42346  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42347  }
 42348  
 42349  // Do executes the "apigee.organizations.instances.natAddresses.list" call.
 42350  // Any non-2xx status code is an error. Response headers are in either
 42351  // *GoogleCloudApigeeV1ListNatAddressesResponse.ServerResponse.Header or (if a
 42352  // response was returned at all) in error.(*googleapi.Error).Header. Use
 42353  // googleapi.IsNotModified to check whether the returned error was because
 42354  // http.StatusNotModified was returned.
 42355  func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
 42356  	gensupport.SetOptions(c.urlParams_, opts...)
 42357  	res, err := c.doRequest("json")
 42358  	if res != nil && res.StatusCode == http.StatusNotModified {
 42359  		if res.Body != nil {
 42360  			res.Body.Close()
 42361  		}
 42362  		return nil, gensupport.WrapError(&googleapi.Error{
 42363  			Code:   res.StatusCode,
 42364  			Header: res.Header,
 42365  		})
 42366  	}
 42367  	if err != nil {
 42368  		return nil, err
 42369  	}
 42370  	defer googleapi.CloseBody(res)
 42371  	if err := googleapi.CheckResponse(res); err != nil {
 42372  		return nil, gensupport.WrapError(err)
 42373  	}
 42374  	ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
 42375  		ServerResponse: googleapi.ServerResponse{
 42376  			Header:         res.Header,
 42377  			HTTPStatusCode: res.StatusCode,
 42378  		},
 42379  	}
 42380  	target := &ret
 42381  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42382  		return nil, err
 42383  	}
 42384  	return ret, nil
 42385  }
 42386  
 42387  // Pages invokes f for each page of results.
 42388  // A non-nil error returned from f will halt the iteration.
 42389  // The provided context supersedes any context provided to the Context method.
 42390  func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
 42391  	c.ctx_ = ctx
 42392  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 42393  	for {
 42394  		x, err := c.Do()
 42395  		if err != nil {
 42396  			return err
 42397  		}
 42398  		if err := f(x); err != nil {
 42399  			return err
 42400  		}
 42401  		if x.NextPageToken == "" {
 42402  			return nil
 42403  		}
 42404  		c.PageToken(x.NextPageToken)
 42405  	}
 42406  }
 42407  
 42408  type OrganizationsKeyvaluemapsCreateCall struct {
 42409  	s                              *Service
 42410  	parent                         string
 42411  	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
 42412  	urlParams_                     gensupport.URLParams
 42413  	ctx_                           context.Context
 42414  	header_                        http.Header
 42415  }
 42416  
 42417  // Create: Creates a key value map in an organization.
 42418  //
 42419  //   - parent: Name of the organization in which to create the key value map
 42420  //     file. Use the following structure in your request: `organizations/{org}`.
 42421  func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
 42422  	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42423  	c.parent = parent
 42424  	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
 42425  	return c
 42426  }
 42427  
 42428  // Fields allows partial responses to be retrieved. See
 42429  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42430  // details.
 42431  func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
 42432  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42433  	return c
 42434  }
 42435  
 42436  // Context sets the context to be used in this call's Do method.
 42437  func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
 42438  	c.ctx_ = ctx
 42439  	return c
 42440  }
 42441  
 42442  // Header returns a http.Header that can be modified by the caller to add
 42443  // headers to the request.
 42444  func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
 42445  	if c.header_ == nil {
 42446  		c.header_ = make(http.Header)
 42447  	}
 42448  	return c.header_
 42449  }
 42450  
 42451  func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
 42452  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42453  	var body io.Reader = nil
 42454  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
 42455  	if err != nil {
 42456  		return nil, err
 42457  	}
 42458  	c.urlParams_.Set("alt", alt)
 42459  	c.urlParams_.Set("prettyPrint", "false")
 42460  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
 42461  	urls += "?" + c.urlParams_.Encode()
 42462  	req, err := http.NewRequest("POST", urls, body)
 42463  	if err != nil {
 42464  		return nil, err
 42465  	}
 42466  	req.Header = reqHeaders
 42467  	googleapi.Expand(req.URL, map[string]string{
 42468  		"parent": c.parent,
 42469  	})
 42470  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42471  }
 42472  
 42473  // Do executes the "apigee.organizations.keyvaluemaps.create" call.
 42474  // Any non-2xx status code is an error. Response headers are in either
 42475  // *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a response was
 42476  // returned at all) in error.(*googleapi.Error).Header. Use
 42477  // googleapi.IsNotModified to check whether the returned error was because
 42478  // http.StatusNotModified was returned.
 42479  func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
 42480  	gensupport.SetOptions(c.urlParams_, opts...)
 42481  	res, err := c.doRequest("json")
 42482  	if res != nil && res.StatusCode == http.StatusNotModified {
 42483  		if res.Body != nil {
 42484  			res.Body.Close()
 42485  		}
 42486  		return nil, gensupport.WrapError(&googleapi.Error{
 42487  			Code:   res.StatusCode,
 42488  			Header: res.Header,
 42489  		})
 42490  	}
 42491  	if err != nil {
 42492  		return nil, err
 42493  	}
 42494  	defer googleapi.CloseBody(res)
 42495  	if err := googleapi.CheckResponse(res); err != nil {
 42496  		return nil, gensupport.WrapError(err)
 42497  	}
 42498  	ret := &GoogleCloudApigeeV1KeyValueMap{
 42499  		ServerResponse: googleapi.ServerResponse{
 42500  			Header:         res.Header,
 42501  			HTTPStatusCode: res.StatusCode,
 42502  		},
 42503  	}
 42504  	target := &ret
 42505  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42506  		return nil, err
 42507  	}
 42508  	return ret, nil
 42509  }
 42510  
 42511  type OrganizationsKeyvaluemapsDeleteCall struct {
 42512  	s          *Service
 42513  	name       string
 42514  	urlParams_ gensupport.URLParams
 42515  	ctx_       context.Context
 42516  	header_    http.Header
 42517  }
 42518  
 42519  // Delete: Deletes a key value map from an organization.
 42520  //
 42521  //   - name: Name of the key value map. Use the following structure in your
 42522  //     request: `organizations/{org}/keyvaluemaps/{keyvaluemap}`.
 42523  func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
 42524  	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42525  	c.name = name
 42526  	return c
 42527  }
 42528  
 42529  // Fields allows partial responses to be retrieved. See
 42530  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42531  // details.
 42532  func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
 42533  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42534  	return c
 42535  }
 42536  
 42537  // Context sets the context to be used in this call's Do method.
 42538  func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
 42539  	c.ctx_ = ctx
 42540  	return c
 42541  }
 42542  
 42543  // Header returns a http.Header that can be modified by the caller to add
 42544  // headers to the request.
 42545  func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
 42546  	if c.header_ == nil {
 42547  		c.header_ = make(http.Header)
 42548  	}
 42549  	return c.header_
 42550  }
 42551  
 42552  func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
 42553  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42554  	var body io.Reader = nil
 42555  	c.urlParams_.Set("alt", alt)
 42556  	c.urlParams_.Set("prettyPrint", "false")
 42557  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 42558  	urls += "?" + c.urlParams_.Encode()
 42559  	req, err := http.NewRequest("DELETE", urls, body)
 42560  	if err != nil {
 42561  		return nil, err
 42562  	}
 42563  	req.Header = reqHeaders
 42564  	googleapi.Expand(req.URL, map[string]string{
 42565  		"name": c.name,
 42566  	})
 42567  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42568  }
 42569  
 42570  // Do executes the "apigee.organizations.keyvaluemaps.delete" call.
 42571  // Any non-2xx status code is an error. Response headers are in either
 42572  // *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a response was
 42573  // returned at all) in error.(*googleapi.Error).Header. Use
 42574  // googleapi.IsNotModified to check whether the returned error was because
 42575  // http.StatusNotModified was returned.
 42576  func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
 42577  	gensupport.SetOptions(c.urlParams_, opts...)
 42578  	res, err := c.doRequest("json")
 42579  	if res != nil && res.StatusCode == http.StatusNotModified {
 42580  		if res.Body != nil {
 42581  			res.Body.Close()
 42582  		}
 42583  		return nil, gensupport.WrapError(&googleapi.Error{
 42584  			Code:   res.StatusCode,
 42585  			Header: res.Header,
 42586  		})
 42587  	}
 42588  	if err != nil {
 42589  		return nil, err
 42590  	}
 42591  	defer googleapi.CloseBody(res)
 42592  	if err := googleapi.CheckResponse(res); err != nil {
 42593  		return nil, gensupport.WrapError(err)
 42594  	}
 42595  	ret := &GoogleCloudApigeeV1KeyValueMap{
 42596  		ServerResponse: googleapi.ServerResponse{
 42597  			Header:         res.Header,
 42598  			HTTPStatusCode: res.StatusCode,
 42599  		},
 42600  	}
 42601  	target := &ret
 42602  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42603  		return nil, err
 42604  	}
 42605  	return ret, nil
 42606  }
 42607  
 42608  type OrganizationsKeyvaluemapsEntriesCreateCall struct {
 42609  	s                                *Service
 42610  	parent                           string
 42611  	googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
 42612  	urlParams_                       gensupport.URLParams
 42613  	ctx_                             context.Context
 42614  	header_                          http.Header
 42615  }
 42616  
 42617  // Create: Creates key value entries in a key value map scoped to an
 42618  // organization, environment, or API proxy. **Note**: Supported for Apigee
 42619  // hybrid 1.8.x and higher.
 42620  //
 42621  //   - parent: Scope as indicated by the URI in which to create the key value map
 42622  //     entry. Use **one** of the following structures in your request: *
 42623  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 42624  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 42625  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 42626  func (r *OrganizationsKeyvaluemapsEntriesService) Create(parent string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsKeyvaluemapsEntriesCreateCall {
 42627  	c := &OrganizationsKeyvaluemapsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42628  	c.parent = parent
 42629  	c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
 42630  	return c
 42631  }
 42632  
 42633  // Fields allows partial responses to be retrieved. See
 42634  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42635  // details.
 42636  func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesCreateCall {
 42637  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42638  	return c
 42639  }
 42640  
 42641  // Context sets the context to be used in this call's Do method.
 42642  func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesCreateCall {
 42643  	c.ctx_ = ctx
 42644  	return c
 42645  }
 42646  
 42647  // Header returns a http.Header that can be modified by the caller to add
 42648  // headers to the request.
 42649  func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Header() http.Header {
 42650  	if c.header_ == nil {
 42651  		c.header_ = make(http.Header)
 42652  	}
 42653  	return c.header_
 42654  }
 42655  
 42656  func (c *OrganizationsKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
 42657  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42658  	var body io.Reader = nil
 42659  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
 42660  	if err != nil {
 42661  		return nil, err
 42662  	}
 42663  	c.urlParams_.Set("alt", alt)
 42664  	c.urlParams_.Set("prettyPrint", "false")
 42665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 42666  	urls += "?" + c.urlParams_.Encode()
 42667  	req, err := http.NewRequest("POST", urls, body)
 42668  	if err != nil {
 42669  		return nil, err
 42670  	}
 42671  	req.Header = reqHeaders
 42672  	googleapi.Expand(req.URL, map[string]string{
 42673  		"parent": c.parent,
 42674  	})
 42675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42676  }
 42677  
 42678  // Do executes the "apigee.organizations.keyvaluemaps.entries.create" call.
 42679  // Any non-2xx status code is an error. Response headers are in either
 42680  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 42681  // was returned at all) in error.(*googleapi.Error).Header. Use
 42682  // googleapi.IsNotModified to check whether the returned error was because
 42683  // http.StatusNotModified was returned.
 42684  func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 42685  	gensupport.SetOptions(c.urlParams_, opts...)
 42686  	res, err := c.doRequest("json")
 42687  	if res != nil && res.StatusCode == http.StatusNotModified {
 42688  		if res.Body != nil {
 42689  			res.Body.Close()
 42690  		}
 42691  		return nil, gensupport.WrapError(&googleapi.Error{
 42692  			Code:   res.StatusCode,
 42693  			Header: res.Header,
 42694  		})
 42695  	}
 42696  	if err != nil {
 42697  		return nil, err
 42698  	}
 42699  	defer googleapi.CloseBody(res)
 42700  	if err := googleapi.CheckResponse(res); err != nil {
 42701  		return nil, gensupport.WrapError(err)
 42702  	}
 42703  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 42704  		ServerResponse: googleapi.ServerResponse{
 42705  			Header:         res.Header,
 42706  			HTTPStatusCode: res.StatusCode,
 42707  		},
 42708  	}
 42709  	target := &ret
 42710  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42711  		return nil, err
 42712  	}
 42713  	return ret, nil
 42714  }
 42715  
 42716  type OrganizationsKeyvaluemapsEntriesDeleteCall struct {
 42717  	s          *Service
 42718  	name       string
 42719  	urlParams_ gensupport.URLParams
 42720  	ctx_       context.Context
 42721  	header_    http.Header
 42722  }
 42723  
 42724  // Delete: Deletes a key value entry from a key value map scoped to an
 42725  // organization, environment, or API proxy. **Notes:** * After you delete the
 42726  // key value entry, the policy consuming the entry will continue to function
 42727  // with its cached values for a few minutes. This is expected behavior. *
 42728  // Supported for Apigee hybrid 1.8.x and higher.
 42729  //
 42730  //   - name: Scope as indicated by the URI in which to delete the key value map
 42731  //     entry. Use **one** of the following structures in your request: *
 42732  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}/entries
 42733  //     /{entry}`. *
 42734  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 42735  //     aluemap}/entries/{entry}` *
 42736  //     `organizations/{organization}/keyvaluemaps/{keyvaluemap}/entries/{entry}`.
 42737  func (r *OrganizationsKeyvaluemapsEntriesService) Delete(name string) *OrganizationsKeyvaluemapsEntriesDeleteCall {
 42738  	c := &OrganizationsKeyvaluemapsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42739  	c.name = name
 42740  	return c
 42741  }
 42742  
 42743  // Fields allows partial responses to be retrieved. See
 42744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42745  // details.
 42746  func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesDeleteCall {
 42747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42748  	return c
 42749  }
 42750  
 42751  // Context sets the context to be used in this call's Do method.
 42752  func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesDeleteCall {
 42753  	c.ctx_ = ctx
 42754  	return c
 42755  }
 42756  
 42757  // Header returns a http.Header that can be modified by the caller to add
 42758  // headers to the request.
 42759  func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Header() http.Header {
 42760  	if c.header_ == nil {
 42761  		c.header_ = make(http.Header)
 42762  	}
 42763  	return c.header_
 42764  }
 42765  
 42766  func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 42767  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42768  	var body io.Reader = nil
 42769  	c.urlParams_.Set("alt", alt)
 42770  	c.urlParams_.Set("prettyPrint", "false")
 42771  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 42772  	urls += "?" + c.urlParams_.Encode()
 42773  	req, err := http.NewRequest("DELETE", urls, body)
 42774  	if err != nil {
 42775  		return nil, err
 42776  	}
 42777  	req.Header = reqHeaders
 42778  	googleapi.Expand(req.URL, map[string]string{
 42779  		"name": c.name,
 42780  	})
 42781  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42782  }
 42783  
 42784  // Do executes the "apigee.organizations.keyvaluemaps.entries.delete" call.
 42785  // Any non-2xx status code is an error. Response headers are in either
 42786  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 42787  // was returned at all) in error.(*googleapi.Error).Header. Use
 42788  // googleapi.IsNotModified to check whether the returned error was because
 42789  // http.StatusNotModified was returned.
 42790  func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 42791  	gensupport.SetOptions(c.urlParams_, opts...)
 42792  	res, err := c.doRequest("json")
 42793  	if res != nil && res.StatusCode == http.StatusNotModified {
 42794  		if res.Body != nil {
 42795  			res.Body.Close()
 42796  		}
 42797  		return nil, gensupport.WrapError(&googleapi.Error{
 42798  			Code:   res.StatusCode,
 42799  			Header: res.Header,
 42800  		})
 42801  	}
 42802  	if err != nil {
 42803  		return nil, err
 42804  	}
 42805  	defer googleapi.CloseBody(res)
 42806  	if err := googleapi.CheckResponse(res); err != nil {
 42807  		return nil, gensupport.WrapError(err)
 42808  	}
 42809  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 42810  		ServerResponse: googleapi.ServerResponse{
 42811  			Header:         res.Header,
 42812  			HTTPStatusCode: res.StatusCode,
 42813  		},
 42814  	}
 42815  	target := &ret
 42816  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42817  		return nil, err
 42818  	}
 42819  	return ret, nil
 42820  }
 42821  
 42822  type OrganizationsKeyvaluemapsEntriesGetCall struct {
 42823  	s            *Service
 42824  	name         string
 42825  	urlParams_   gensupport.URLParams
 42826  	ifNoneMatch_ string
 42827  	ctx_         context.Context
 42828  	header_      http.Header
 42829  }
 42830  
 42831  // Get: Get the key value entry value for a key value map scoped to an
 42832  // organization, environment, or API proxy. **Note**: Supported for Apigee
 42833  // hybrid 1.8.x and higher.
 42834  //
 42835  //   - name: Scope as indicated by the URI in which to fetch the key value map
 42836  //     entry/value. Use **one** of the following structures in your request: *
 42837  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}/entries
 42838  //     /{entry}`. *
 42839  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 42840  //     aluemap}/entries/{entry}` *
 42841  //     `organizations/{organization}/keyvaluemaps/{keyvaluemap}/entries/{entry}`.
 42842  func (r *OrganizationsKeyvaluemapsEntriesService) Get(name string) *OrganizationsKeyvaluemapsEntriesGetCall {
 42843  	c := &OrganizationsKeyvaluemapsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42844  	c.name = name
 42845  	return c
 42846  }
 42847  
 42848  // Fields allows partial responses to be retrieved. See
 42849  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42850  // details.
 42851  func (c *OrganizationsKeyvaluemapsEntriesGetCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesGetCall {
 42852  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42853  	return c
 42854  }
 42855  
 42856  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42857  // object's ETag matches the given value. This is useful for getting updates
 42858  // only after the object has changed since the last request.
 42859  func (c *OrganizationsKeyvaluemapsEntriesGetCall) IfNoneMatch(entityTag string) *OrganizationsKeyvaluemapsEntriesGetCall {
 42860  	c.ifNoneMatch_ = entityTag
 42861  	return c
 42862  }
 42863  
 42864  // Context sets the context to be used in this call's Do method.
 42865  func (c *OrganizationsKeyvaluemapsEntriesGetCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesGetCall {
 42866  	c.ctx_ = ctx
 42867  	return c
 42868  }
 42869  
 42870  // Header returns a http.Header that can be modified by the caller to add
 42871  // headers to the request.
 42872  func (c *OrganizationsKeyvaluemapsEntriesGetCall) Header() http.Header {
 42873  	if c.header_ == nil {
 42874  		c.header_ = make(http.Header)
 42875  	}
 42876  	return c.header_
 42877  }
 42878  
 42879  func (c *OrganizationsKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
 42880  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42881  	if c.ifNoneMatch_ != "" {
 42882  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42883  	}
 42884  	var body io.Reader = nil
 42885  	c.urlParams_.Set("alt", alt)
 42886  	c.urlParams_.Set("prettyPrint", "false")
 42887  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 42888  	urls += "?" + c.urlParams_.Encode()
 42889  	req, err := http.NewRequest("GET", urls, body)
 42890  	if err != nil {
 42891  		return nil, err
 42892  	}
 42893  	req.Header = reqHeaders
 42894  	googleapi.Expand(req.URL, map[string]string{
 42895  		"name": c.name,
 42896  	})
 42897  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42898  }
 42899  
 42900  // Do executes the "apigee.organizations.keyvaluemaps.entries.get" call.
 42901  // Any non-2xx status code is an error. Response headers are in either
 42902  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 42903  // was returned at all) in error.(*googleapi.Error).Header. Use
 42904  // googleapi.IsNotModified to check whether the returned error was because
 42905  // http.StatusNotModified was returned.
 42906  func (c *OrganizationsKeyvaluemapsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 42907  	gensupport.SetOptions(c.urlParams_, opts...)
 42908  	res, err := c.doRequest("json")
 42909  	if res != nil && res.StatusCode == http.StatusNotModified {
 42910  		if res.Body != nil {
 42911  			res.Body.Close()
 42912  		}
 42913  		return nil, gensupport.WrapError(&googleapi.Error{
 42914  			Code:   res.StatusCode,
 42915  			Header: res.Header,
 42916  		})
 42917  	}
 42918  	if err != nil {
 42919  		return nil, err
 42920  	}
 42921  	defer googleapi.CloseBody(res)
 42922  	if err := googleapi.CheckResponse(res); err != nil {
 42923  		return nil, gensupport.WrapError(err)
 42924  	}
 42925  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 42926  		ServerResponse: googleapi.ServerResponse{
 42927  			Header:         res.Header,
 42928  			HTTPStatusCode: res.StatusCode,
 42929  		},
 42930  	}
 42931  	target := &ret
 42932  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42933  		return nil, err
 42934  	}
 42935  	return ret, nil
 42936  }
 42937  
 42938  type OrganizationsKeyvaluemapsEntriesListCall struct {
 42939  	s            *Service
 42940  	parent       string
 42941  	urlParams_   gensupport.URLParams
 42942  	ifNoneMatch_ string
 42943  	ctx_         context.Context
 42944  	header_      http.Header
 42945  }
 42946  
 42947  // List: Lists key value entries for key values maps scoped to an organization,
 42948  // environment, or API proxy. **Note**: Supported for Apigee hybrid 1.8.x and
 42949  // higher.
 42950  //
 42951  //   - parent: Scope as indicated by the URI in which to list key value maps. Use
 42952  //     **one** of the following structures in your request: *
 42953  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 42954  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 42955  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 42956  func (r *OrganizationsKeyvaluemapsEntriesService) List(parent string) *OrganizationsKeyvaluemapsEntriesListCall {
 42957  	c := &OrganizationsKeyvaluemapsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42958  	c.parent = parent
 42959  	return c
 42960  }
 42961  
 42962  // PageSize sets the optional parameter "pageSize": Maximum number of key value
 42963  // entries to return. If unspecified, at most 100 entries will be returned.
 42964  func (c *OrganizationsKeyvaluemapsEntriesListCall) PageSize(pageSize int64) *OrganizationsKeyvaluemapsEntriesListCall {
 42965  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 42966  	return c
 42967  }
 42968  
 42969  // PageToken sets the optional parameter "pageToken": Page token. If provides,
 42970  // must be a valid key value entry returned from a previous call that can be
 42971  // used to retrieve the next page.
 42972  func (c *OrganizationsKeyvaluemapsEntriesListCall) PageToken(pageToken string) *OrganizationsKeyvaluemapsEntriesListCall {
 42973  	c.urlParams_.Set("pageToken", pageToken)
 42974  	return c
 42975  }
 42976  
 42977  // Fields allows partial responses to be retrieved. See
 42978  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42979  // details.
 42980  func (c *OrganizationsKeyvaluemapsEntriesListCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesListCall {
 42981  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42982  	return c
 42983  }
 42984  
 42985  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42986  // object's ETag matches the given value. This is useful for getting updates
 42987  // only after the object has changed since the last request.
 42988  func (c *OrganizationsKeyvaluemapsEntriesListCall) IfNoneMatch(entityTag string) *OrganizationsKeyvaluemapsEntriesListCall {
 42989  	c.ifNoneMatch_ = entityTag
 42990  	return c
 42991  }
 42992  
 42993  // Context sets the context to be used in this call's Do method.
 42994  func (c *OrganizationsKeyvaluemapsEntriesListCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesListCall {
 42995  	c.ctx_ = ctx
 42996  	return c
 42997  }
 42998  
 42999  // Header returns a http.Header that can be modified by the caller to add
 43000  // headers to the request.
 43001  func (c *OrganizationsKeyvaluemapsEntriesListCall) Header() http.Header {
 43002  	if c.header_ == nil {
 43003  		c.header_ = make(http.Header)
 43004  	}
 43005  	return c.header_
 43006  }
 43007  
 43008  func (c *OrganizationsKeyvaluemapsEntriesListCall) doRequest(alt string) (*http.Response, error) {
 43009  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43010  	if c.ifNoneMatch_ != "" {
 43011  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43012  	}
 43013  	var body io.Reader = nil
 43014  	c.urlParams_.Set("alt", alt)
 43015  	c.urlParams_.Set("prettyPrint", "false")
 43016  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 43017  	urls += "?" + c.urlParams_.Encode()
 43018  	req, err := http.NewRequest("GET", urls, body)
 43019  	if err != nil {
 43020  		return nil, err
 43021  	}
 43022  	req.Header = reqHeaders
 43023  	googleapi.Expand(req.URL, map[string]string{
 43024  		"parent": c.parent,
 43025  	})
 43026  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43027  }
 43028  
 43029  // Do executes the "apigee.organizations.keyvaluemaps.entries.list" call.
 43030  // Any non-2xx status code is an error. Response headers are in either
 43031  // *GoogleCloudApigeeV1ListKeyValueEntriesResponse.ServerResponse.Header or (if
 43032  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 43033  // googleapi.IsNotModified to check whether the returned error was because
 43034  // http.StatusNotModified was returned.
 43035  func (c *OrganizationsKeyvaluemapsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListKeyValueEntriesResponse, error) {
 43036  	gensupport.SetOptions(c.urlParams_, opts...)
 43037  	res, err := c.doRequest("json")
 43038  	if res != nil && res.StatusCode == http.StatusNotModified {
 43039  		if res.Body != nil {
 43040  			res.Body.Close()
 43041  		}
 43042  		return nil, gensupport.WrapError(&googleapi.Error{
 43043  			Code:   res.StatusCode,
 43044  			Header: res.Header,
 43045  		})
 43046  	}
 43047  	if err != nil {
 43048  		return nil, err
 43049  	}
 43050  	defer googleapi.CloseBody(res)
 43051  	if err := googleapi.CheckResponse(res); err != nil {
 43052  		return nil, gensupport.WrapError(err)
 43053  	}
 43054  	ret := &GoogleCloudApigeeV1ListKeyValueEntriesResponse{
 43055  		ServerResponse: googleapi.ServerResponse{
 43056  			Header:         res.Header,
 43057  			HTTPStatusCode: res.StatusCode,
 43058  		},
 43059  	}
 43060  	target := &ret
 43061  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43062  		return nil, err
 43063  	}
 43064  	return ret, nil
 43065  }
 43066  
 43067  // Pages invokes f for each page of results.
 43068  // A non-nil error returned from f will halt the iteration.
 43069  // The provided context supersedes any context provided to the Context method.
 43070  func (c *OrganizationsKeyvaluemapsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListKeyValueEntriesResponse) error) error {
 43071  	c.ctx_ = ctx
 43072  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 43073  	for {
 43074  		x, err := c.Do()
 43075  		if err != nil {
 43076  			return err
 43077  		}
 43078  		if err := f(x); err != nil {
 43079  			return err
 43080  		}
 43081  		if x.NextPageToken == "" {
 43082  			return nil
 43083  		}
 43084  		c.PageToken(x.NextPageToken)
 43085  	}
 43086  }
 43087  
 43088  type OrganizationsKeyvaluemapsEntriesUpdateCall struct {
 43089  	s                                *Service
 43090  	name                             string
 43091  	googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
 43092  	urlParams_                       gensupport.URLParams
 43093  	ctx_                             context.Context
 43094  	header_                          http.Header
 43095  }
 43096  
 43097  // Update: Update key value entry scoped to an organization, environment, or
 43098  // API proxy for an existing key.
 43099  //
 43100  //   - name: Scope as indicated by the URI in which to create the key value map
 43101  //     entry. Use **one** of the following structures in your request: *
 43102  //     `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`. *
 43103  //     `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyv
 43104  //     aluemap}` * `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
 43105  func (r *OrganizationsKeyvaluemapsEntriesService) Update(name string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsKeyvaluemapsEntriesUpdateCall {
 43106  	c := &OrganizationsKeyvaluemapsEntriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43107  	c.name = name
 43108  	c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
 43109  	return c
 43110  }
 43111  
 43112  // Fields allows partial responses to be retrieved. See
 43113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43114  // details.
 43115  func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesUpdateCall {
 43116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43117  	return c
 43118  }
 43119  
 43120  // Context sets the context to be used in this call's Do method.
 43121  func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesUpdateCall {
 43122  	c.ctx_ = ctx
 43123  	return c
 43124  }
 43125  
 43126  // Header returns a http.Header that can be modified by the caller to add
 43127  // headers to the request.
 43128  func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Header() http.Header {
 43129  	if c.header_ == nil {
 43130  		c.header_ = make(http.Header)
 43131  	}
 43132  	return c.header_
 43133  }
 43134  
 43135  func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*http.Response, error) {
 43136  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43137  	var body io.Reader = nil
 43138  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
 43139  	if err != nil {
 43140  		return nil, err
 43141  	}
 43142  	c.urlParams_.Set("alt", alt)
 43143  	c.urlParams_.Set("prettyPrint", "false")
 43144  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 43145  	urls += "?" + c.urlParams_.Encode()
 43146  	req, err := http.NewRequest("PUT", urls, body)
 43147  	if err != nil {
 43148  		return nil, err
 43149  	}
 43150  	req.Header = reqHeaders
 43151  	googleapi.Expand(req.URL, map[string]string{
 43152  		"name": c.name,
 43153  	})
 43154  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43155  }
 43156  
 43157  // Do executes the "apigee.organizations.keyvaluemaps.entries.update" call.
 43158  // Any non-2xx status code is an error. Response headers are in either
 43159  // *GoogleCloudApigeeV1KeyValueEntry.ServerResponse.Header or (if a response
 43160  // was returned at all) in error.(*googleapi.Error).Header. Use
 43161  // googleapi.IsNotModified to check whether the returned error was because
 43162  // http.StatusNotModified was returned.
 43163  func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
 43164  	gensupport.SetOptions(c.urlParams_, opts...)
 43165  	res, err := c.doRequest("json")
 43166  	if res != nil && res.StatusCode == http.StatusNotModified {
 43167  		if res.Body != nil {
 43168  			res.Body.Close()
 43169  		}
 43170  		return nil, gensupport.WrapError(&googleapi.Error{
 43171  			Code:   res.StatusCode,
 43172  			Header: res.Header,
 43173  		})
 43174  	}
 43175  	if err != nil {
 43176  		return nil, err
 43177  	}
 43178  	defer googleapi.CloseBody(res)
 43179  	if err := googleapi.CheckResponse(res); err != nil {
 43180  		return nil, gensupport.WrapError(err)
 43181  	}
 43182  	ret := &GoogleCloudApigeeV1KeyValueEntry{
 43183  		ServerResponse: googleapi.ServerResponse{
 43184  			Header:         res.Header,
 43185  			HTTPStatusCode: res.StatusCode,
 43186  		},
 43187  	}
 43188  	target := &ret
 43189  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43190  		return nil, err
 43191  	}
 43192  	return ret, nil
 43193  }
 43194  
 43195  type OrganizationsOperationsGetCall struct {
 43196  	s            *Service
 43197  	name         string
 43198  	urlParams_   gensupport.URLParams
 43199  	ifNoneMatch_ string
 43200  	ctx_         context.Context
 43201  	header_      http.Header
 43202  }
 43203  
 43204  // Get: Gets the latest state of a long-running operation. Clients can use this
 43205  // method to poll the operation result at intervals as recommended by the API
 43206  // service.
 43207  //
 43208  // - name: The name of the operation resource.
 43209  func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
 43210  	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43211  	c.name = name
 43212  	return c
 43213  }
 43214  
 43215  // Fields allows partial responses to be retrieved. See
 43216  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43217  // details.
 43218  func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
 43219  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43220  	return c
 43221  }
 43222  
 43223  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43224  // object's ETag matches the given value. This is useful for getting updates
 43225  // only after the object has changed since the last request.
 43226  func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
 43227  	c.ifNoneMatch_ = entityTag
 43228  	return c
 43229  }
 43230  
 43231  // Context sets the context to be used in this call's Do method.
 43232  func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
 43233  	c.ctx_ = ctx
 43234  	return c
 43235  }
 43236  
 43237  // Header returns a http.Header that can be modified by the caller to add
 43238  // headers to the request.
 43239  func (c *OrganizationsOperationsGetCall) Header() http.Header {
 43240  	if c.header_ == nil {
 43241  		c.header_ = make(http.Header)
 43242  	}
 43243  	return c.header_
 43244  }
 43245  
 43246  func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 43247  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43248  	if c.ifNoneMatch_ != "" {
 43249  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43250  	}
 43251  	var body io.Reader = nil
 43252  	c.urlParams_.Set("alt", alt)
 43253  	c.urlParams_.Set("prettyPrint", "false")
 43254  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 43255  	urls += "?" + c.urlParams_.Encode()
 43256  	req, err := http.NewRequest("GET", urls, body)
 43257  	if err != nil {
 43258  		return nil, err
 43259  	}
 43260  	req.Header = reqHeaders
 43261  	googleapi.Expand(req.URL, map[string]string{
 43262  		"name": c.name,
 43263  	})
 43264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43265  }
 43266  
 43267  // Do executes the "apigee.organizations.operations.get" call.
 43268  // Any non-2xx status code is an error. Response headers are in either
 43269  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 43270  // returned at all) in error.(*googleapi.Error).Header. Use
 43271  // googleapi.IsNotModified to check whether the returned error was because
 43272  // http.StatusNotModified was returned.
 43273  func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 43274  	gensupport.SetOptions(c.urlParams_, opts...)
 43275  	res, err := c.doRequest("json")
 43276  	if res != nil && res.StatusCode == http.StatusNotModified {
 43277  		if res.Body != nil {
 43278  			res.Body.Close()
 43279  		}
 43280  		return nil, gensupport.WrapError(&googleapi.Error{
 43281  			Code:   res.StatusCode,
 43282  			Header: res.Header,
 43283  		})
 43284  	}
 43285  	if err != nil {
 43286  		return nil, err
 43287  	}
 43288  	defer googleapi.CloseBody(res)
 43289  	if err := googleapi.CheckResponse(res); err != nil {
 43290  		return nil, gensupport.WrapError(err)
 43291  	}
 43292  	ret := &GoogleLongrunningOperation{
 43293  		ServerResponse: googleapi.ServerResponse{
 43294  			Header:         res.Header,
 43295  			HTTPStatusCode: res.StatusCode,
 43296  		},
 43297  	}
 43298  	target := &ret
 43299  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43300  		return nil, err
 43301  	}
 43302  	return ret, nil
 43303  }
 43304  
 43305  type OrganizationsOperationsListCall struct {
 43306  	s            *Service
 43307  	name         string
 43308  	urlParams_   gensupport.URLParams
 43309  	ifNoneMatch_ string
 43310  	ctx_         context.Context
 43311  	header_      http.Header
 43312  }
 43313  
 43314  // List: Lists operations that match the specified filter in the request. If
 43315  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 43316  //
 43317  // - name: The name of the operation's parent resource.
 43318  func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
 43319  	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43320  	c.name = name
 43321  	return c
 43322  }
 43323  
 43324  // Filter sets the optional parameter "filter": The standard list filter.
 43325  func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
 43326  	c.urlParams_.Set("filter", filter)
 43327  	return c
 43328  }
 43329  
 43330  // PageSize sets the optional parameter "pageSize": The standard list page
 43331  // size.
 43332  func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
 43333  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 43334  	return c
 43335  }
 43336  
 43337  // PageToken sets the optional parameter "pageToken": The standard list page
 43338  // token.
 43339  func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
 43340  	c.urlParams_.Set("pageToken", pageToken)
 43341  	return c
 43342  }
 43343  
 43344  // Fields allows partial responses to be retrieved. See
 43345  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43346  // details.
 43347  func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
 43348  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43349  	return c
 43350  }
 43351  
 43352  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43353  // object's ETag matches the given value. This is useful for getting updates
 43354  // only after the object has changed since the last request.
 43355  func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
 43356  	c.ifNoneMatch_ = entityTag
 43357  	return c
 43358  }
 43359  
 43360  // Context sets the context to be used in this call's Do method.
 43361  func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
 43362  	c.ctx_ = ctx
 43363  	return c
 43364  }
 43365  
 43366  // Header returns a http.Header that can be modified by the caller to add
 43367  // headers to the request.
 43368  func (c *OrganizationsOperationsListCall) Header() http.Header {
 43369  	if c.header_ == nil {
 43370  		c.header_ = make(http.Header)
 43371  	}
 43372  	return c.header_
 43373  }
 43374  
 43375  func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 43376  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43377  	if c.ifNoneMatch_ != "" {
 43378  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43379  	}
 43380  	var body io.Reader = nil
 43381  	c.urlParams_.Set("alt", alt)
 43382  	c.urlParams_.Set("prettyPrint", "false")
 43383  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 43384  	urls += "?" + c.urlParams_.Encode()
 43385  	req, err := http.NewRequest("GET", urls, body)
 43386  	if err != nil {
 43387  		return nil, err
 43388  	}
 43389  	req.Header = reqHeaders
 43390  	googleapi.Expand(req.URL, map[string]string{
 43391  		"name": c.name,
 43392  	})
 43393  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43394  }
 43395  
 43396  // Do executes the "apigee.organizations.operations.list" call.
 43397  // Any non-2xx status code is an error. Response headers are in either
 43398  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 43399  // response was returned at all) in error.(*googleapi.Error).Header. Use
 43400  // googleapi.IsNotModified to check whether the returned error was because
 43401  // http.StatusNotModified was returned.
 43402  func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 43403  	gensupport.SetOptions(c.urlParams_, opts...)
 43404  	res, err := c.doRequest("json")
 43405  	if res != nil && res.StatusCode == http.StatusNotModified {
 43406  		if res.Body != nil {
 43407  			res.Body.Close()
 43408  		}
 43409  		return nil, gensupport.WrapError(&googleapi.Error{
 43410  			Code:   res.StatusCode,
 43411  			Header: res.Header,
 43412  		})
 43413  	}
 43414  	if err != nil {
 43415  		return nil, err
 43416  	}
 43417  	defer googleapi.CloseBody(res)
 43418  	if err := googleapi.CheckResponse(res); err != nil {
 43419  		return nil, gensupport.WrapError(err)
 43420  	}
 43421  	ret := &GoogleLongrunningListOperationsResponse{
 43422  		ServerResponse: googleapi.ServerResponse{
 43423  			Header:         res.Header,
 43424  			HTTPStatusCode: res.StatusCode,
 43425  		},
 43426  	}
 43427  	target := &ret
 43428  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43429  		return nil, err
 43430  	}
 43431  	return ret, nil
 43432  }
 43433  
 43434  // Pages invokes f for each page of results.
 43435  // A non-nil error returned from f will halt the iteration.
 43436  // The provided context supersedes any context provided to the Context method.
 43437  func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 43438  	c.ctx_ = ctx
 43439  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 43440  	for {
 43441  		x, err := c.Do()
 43442  		if err != nil {
 43443  			return err
 43444  		}
 43445  		if err := f(x); err != nil {
 43446  			return err
 43447  		}
 43448  		if x.NextPageToken == "" {
 43449  			return nil
 43450  		}
 43451  		c.PageToken(x.NextPageToken)
 43452  	}
 43453  }
 43454  
 43455  type OrganizationsOptimizedHostStatsGetCall struct {
 43456  	s            *Service
 43457  	name         string
 43458  	urlParams_   gensupport.URLParams
 43459  	ifNoneMatch_ string
 43460  	ctx_         context.Context
 43461  	header_      http.Header
 43462  }
 43463  
 43464  // Get: Similar to GetHostStats except that the response is less verbose.
 43465  //
 43466  //   - name: Resource name for which the interactive query will be executed. Use
 43467  //     the following format in your request:
 43468  //     `organizations/{organization_id}/optimizedHostStats/{dimensions}`
 43469  //     Dimensions let you view metrics in meaningful groupings, such as
 43470  //     `apiproxy`, `target_host`. The value of dimensions should be a
 43471  //     comma-separated list as shown below:
 43472  //     `organizations/{org}/optimizedHostStats/apiproxy,request_verb`.
 43473  func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
 43474  	c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43475  	c.name = name
 43476  	return c
 43477  }
 43478  
 43479  // Accuracy sets the optional parameter "accuracy": No longer used by Apigee.
 43480  // Supported for backwards compatibility.
 43481  func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
 43482  	c.urlParams_.Set("accuracy", accuracy)
 43483  	return c
 43484  }
 43485  
 43486  // EnvgroupHostname sets the optional parameter "envgroupHostname": Required.
 43487  // Hostname for which the interactive query will be executed.
 43488  func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
 43489  	c.urlParams_.Set("envgroupHostname", envgroupHostname)
 43490  	return c
 43491  }
 43492  
 43493  // Filter sets the optional parameter "filter": Filter that enables you to
 43494  // drill-down on specific dimension values.
 43495  func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
 43496  	c.urlParams_.Set("filter", filter)
 43497  	return c
 43498  }
 43499  
 43500  // Limit sets the optional parameter "limit": Maximum number of result items to
 43501  // return. The default and maximum value that can be returned is 14400.
 43502  func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
 43503  	c.urlParams_.Set("limit", limit)
 43504  	return c
 43505  }
 43506  
 43507  // Offset sets the optional parameter "offset": Offset value. Use `offset` with
 43508  // `limit` to enable pagination of results. For example, to display results
 43509  // 11-20, set limit to `10` and offset to `10`.
 43510  func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
 43511  	c.urlParams_.Set("offset", offset)
 43512  	return c
 43513  }
 43514  
 43515  // Realtime sets the optional parameter "realtime": No longer used by Apigee.
 43516  // Supported for backwards compatibility.
 43517  func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
 43518  	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
 43519  	return c
 43520  }
 43521  
 43522  // Select sets the optional parameter "select": Required. Comma-separated list
 43523  // of metrics. For example: `sum(message_count),sum(error_count)`
 43524  func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
 43525  	c.urlParams_.Set("select", select_)
 43526  	return c
 43527  }
 43528  
 43529  // Sort sets the optional parameter "sort": Flag that specifies whether the
 43530  // sort order should be ascending or descending. Valid values include `DESC`
 43531  // and `ASC`.
 43532  func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
 43533  	c.urlParams_.Set("sort", sort)
 43534  	return c
 43535  }
 43536  
 43537  // Sortby sets the optional parameter "sortby": Comma-separated list of columns
 43538  // used to sort the final result.
 43539  func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
 43540  	c.urlParams_.Set("sortby", sortby)
 43541  	return c
 43542  }
 43543  
 43544  // TimeRange sets the optional parameter "timeRange": Required. Time interval
 43545  // for the interactive query. Time range is specified in GMT as `start~end`.
 43546  // For example: `04/15/2017 00:00~05/15/2017 23:59`.
 43547  func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
 43548  	c.urlParams_.Set("timeRange", timeRange)
 43549  	return c
 43550  }
 43551  
 43552  // TimeUnit sets the optional parameter "timeUnit": Granularity of metrics
 43553  // returned. Valid values include: `second`, `minute`, `hour`, `day`, `week`,
 43554  // or `month`.
 43555  func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
 43556  	c.urlParams_.Set("timeUnit", timeUnit)
 43557  	return c
 43558  }
 43559  
 43560  // Topk sets the optional parameter "topk": Top number of results to return.
 43561  // For example, to return the top 5 results, set `topk=5`.
 43562  func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
 43563  	c.urlParams_.Set("topk", topk)
 43564  	return c
 43565  }
 43566  
 43567  // TsAscending sets the optional parameter "tsAscending": Flag that specifies
 43568  // whether to list timestamps in ascending (`true`) or descending (`false`)
 43569  // order. Apigee recommends that you set this value to `true` if you are using
 43570  // `sortby` with `sort=DESC`.
 43571  func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
 43572  	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
 43573  	return c
 43574  }
 43575  
 43576  // Tzo sets the optional parameter "tzo": Timezone offset value.
 43577  func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
 43578  	c.urlParams_.Set("tzo", tzo)
 43579  	return c
 43580  }
 43581  
 43582  // Fields allows partial responses to be retrieved. See
 43583  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43584  // details.
 43585  func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
 43586  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43587  	return c
 43588  }
 43589  
 43590  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43591  // object's ETag matches the given value. This is useful for getting updates
 43592  // only after the object has changed since the last request.
 43593  func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
 43594  	c.ifNoneMatch_ = entityTag
 43595  	return c
 43596  }
 43597  
 43598  // Context sets the context to be used in this call's Do method.
 43599  func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
 43600  	c.ctx_ = ctx
 43601  	return c
 43602  }
 43603  
 43604  // Header returns a http.Header that can be modified by the caller to add
 43605  // headers to the request.
 43606  func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
 43607  	if c.header_ == nil {
 43608  		c.header_ = make(http.Header)
 43609  	}
 43610  	return c.header_
 43611  }
 43612  
 43613  func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
 43614  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43615  	if c.ifNoneMatch_ != "" {
 43616  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43617  	}
 43618  	var body io.Reader = nil
 43619  	c.urlParams_.Set("alt", alt)
 43620  	c.urlParams_.Set("prettyPrint", "false")
 43621  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 43622  	urls += "?" + c.urlParams_.Encode()
 43623  	req, err := http.NewRequest("GET", urls, body)
 43624  	if err != nil {
 43625  		return nil, err
 43626  	}
 43627  	req.Header = reqHeaders
 43628  	googleapi.Expand(req.URL, map[string]string{
 43629  		"name": c.name,
 43630  	})
 43631  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43632  }
 43633  
 43634  // Do executes the "apigee.organizations.optimizedHostStats.get" call.
 43635  // Any non-2xx status code is an error. Response headers are in either
 43636  // *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or (if a response
 43637  // was returned at all) in error.(*googleapi.Error).Header. Use
 43638  // googleapi.IsNotModified to check whether the returned error was because
 43639  // http.StatusNotModified was returned.
 43640  func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
 43641  	gensupport.SetOptions(c.urlParams_, opts...)
 43642  	res, err := c.doRequest("json")
 43643  	if res != nil && res.StatusCode == http.StatusNotModified {
 43644  		if res.Body != nil {
 43645  			res.Body.Close()
 43646  		}
 43647  		return nil, gensupport.WrapError(&googleapi.Error{
 43648  			Code:   res.StatusCode,
 43649  			Header: res.Header,
 43650  		})
 43651  	}
 43652  	if err != nil {
 43653  		return nil, err
 43654  	}
 43655  	defer googleapi.CloseBody(res)
 43656  	if err := googleapi.CheckResponse(res); err != nil {
 43657  		return nil, gensupport.WrapError(err)
 43658  	}
 43659  	ret := &GoogleCloudApigeeV1OptimizedStats{
 43660  		ServerResponse: googleapi.ServerResponse{
 43661  			Header:         res.Header,
 43662  			HTTPStatusCode: res.StatusCode,
 43663  		},
 43664  	}
 43665  	target := &ret
 43666  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43667  		return nil, err
 43668  	}
 43669  	return ret, nil
 43670  }
 43671  
 43672  type OrganizationsReportsCreateCall struct {
 43673  	s                               *Service
 43674  	parent                          string
 43675  	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
 43676  	urlParams_                      gensupport.URLParams
 43677  	ctx_                            context.Context
 43678  	header_                         http.Header
 43679  }
 43680  
 43681  // Create: Creates a Custom Report for an Organization. A Custom Report
 43682  // provides Apigee Customers to create custom dashboards in addition to the
 43683  // standard dashboards which are provided. The Custom Report in its simplest
 43684  // form contains specifications about metrics, dimensions and filters. It is
 43685  // important to note that the custom report by itself does not provide an
 43686  // executable entity. The Edge UI converts the custom report definition into an
 43687  // analytics query and displays the result in a chart.
 43688  //
 43689  //   - parent: The parent organization name under which the Custom Report will be
 43690  //     created. Must be of the form: `organizations/{organization_id}/reports`.
 43691  func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
 43692  	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43693  	c.parent = parent
 43694  	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
 43695  	return c
 43696  }
 43697  
 43698  // Fields allows partial responses to be retrieved. See
 43699  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43700  // details.
 43701  func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
 43702  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43703  	return c
 43704  }
 43705  
 43706  // Context sets the context to be used in this call's Do method.
 43707  func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
 43708  	c.ctx_ = ctx
 43709  	return c
 43710  }
 43711  
 43712  // Header returns a http.Header that can be modified by the caller to add
 43713  // headers to the request.
 43714  func (c *OrganizationsReportsCreateCall) Header() http.Header {
 43715  	if c.header_ == nil {
 43716  		c.header_ = make(http.Header)
 43717  	}
 43718  	return c.header_
 43719  }
 43720  
 43721  func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
 43722  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43723  	var body io.Reader = nil
 43724  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
 43725  	if err != nil {
 43726  		return nil, err
 43727  	}
 43728  	c.urlParams_.Set("alt", alt)
 43729  	c.urlParams_.Set("prettyPrint", "false")
 43730  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
 43731  	urls += "?" + c.urlParams_.Encode()
 43732  	req, err := http.NewRequest("POST", urls, body)
 43733  	if err != nil {
 43734  		return nil, err
 43735  	}
 43736  	req.Header = reqHeaders
 43737  	googleapi.Expand(req.URL, map[string]string{
 43738  		"parent": c.parent,
 43739  	})
 43740  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43741  }
 43742  
 43743  // Do executes the "apigee.organizations.reports.create" call.
 43744  // Any non-2xx status code is an error. Response headers are in either
 43745  // *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if a response was
 43746  // returned at all) in error.(*googleapi.Error).Header. Use
 43747  // googleapi.IsNotModified to check whether the returned error was because
 43748  // http.StatusNotModified was returned.
 43749  func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
 43750  	gensupport.SetOptions(c.urlParams_, opts...)
 43751  	res, err := c.doRequest("json")
 43752  	if res != nil && res.StatusCode == http.StatusNotModified {
 43753  		if res.Body != nil {
 43754  			res.Body.Close()
 43755  		}
 43756  		return nil, gensupport.WrapError(&googleapi.Error{
 43757  			Code:   res.StatusCode,
 43758  			Header: res.Header,
 43759  		})
 43760  	}
 43761  	if err != nil {
 43762  		return nil, err
 43763  	}
 43764  	defer googleapi.CloseBody(res)
 43765  	if err := googleapi.CheckResponse(res); err != nil {
 43766  		return nil, gensupport.WrapError(err)
 43767  	}
 43768  	ret := &GoogleCloudApigeeV1CustomReport{
 43769  		ServerResponse: googleapi.ServerResponse{
 43770  			Header:         res.Header,
 43771  			HTTPStatusCode: res.StatusCode,
 43772  		},
 43773  	}
 43774  	target := &ret
 43775  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43776  		return nil, err
 43777  	}
 43778  	return ret, nil
 43779  }
 43780  
 43781  type OrganizationsReportsDeleteCall struct {
 43782  	s          *Service
 43783  	name       string
 43784  	urlParams_ gensupport.URLParams
 43785  	ctx_       context.Context
 43786  	header_    http.Header
 43787  }
 43788  
 43789  // Delete: Deletes an existing custom report definition
 43790  //
 43791  //   - name: Custom Report name of the form:
 43792  //     `organizations/{organization_id}/reports/{report_name}`.
 43793  func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
 43794  	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43795  	c.name = name
 43796  	return c
 43797  }
 43798  
 43799  // Fields allows partial responses to be retrieved. See
 43800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43801  // details.
 43802  func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
 43803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43804  	return c
 43805  }
 43806  
 43807  // Context sets the context to be used in this call's Do method.
 43808  func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
 43809  	c.ctx_ = ctx
 43810  	return c
 43811  }
 43812  
 43813  // Header returns a http.Header that can be modified by the caller to add
 43814  // headers to the request.
 43815  func (c *OrganizationsReportsDeleteCall) Header() http.Header {
 43816  	if c.header_ == nil {
 43817  		c.header_ = make(http.Header)
 43818  	}
 43819  	return c.header_
 43820  }
 43821  
 43822  func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
 43823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43824  	var body io.Reader = nil
 43825  	c.urlParams_.Set("alt", alt)
 43826  	c.urlParams_.Set("prettyPrint", "false")
 43827  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 43828  	urls += "?" + c.urlParams_.Encode()
 43829  	req, err := http.NewRequest("DELETE", urls, body)
 43830  	if err != nil {
 43831  		return nil, err
 43832  	}
 43833  	req.Header = reqHeaders
 43834  	googleapi.Expand(req.URL, map[string]string{
 43835  		"name": c.name,
 43836  	})
 43837  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43838  }
 43839  
 43840  // Do executes the "apigee.organizations.reports.delete" call.
 43841  // Any non-2xx status code is an error. Response headers are in either
 43842  // *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header or (if
 43843  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 43844  // googleapi.IsNotModified to check whether the returned error was because
 43845  // http.StatusNotModified was returned.
 43846  func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
 43847  	gensupport.SetOptions(c.urlParams_, opts...)
 43848  	res, err := c.doRequest("json")
 43849  	if res != nil && res.StatusCode == http.StatusNotModified {
 43850  		if res.Body != nil {
 43851  			res.Body.Close()
 43852  		}
 43853  		return nil, gensupport.WrapError(&googleapi.Error{
 43854  			Code:   res.StatusCode,
 43855  			Header: res.Header,
 43856  		})
 43857  	}
 43858  	if err != nil {
 43859  		return nil, err
 43860  	}
 43861  	defer googleapi.CloseBody(res)
 43862  	if err := googleapi.CheckResponse(res); err != nil {
 43863  		return nil, gensupport.WrapError(err)
 43864  	}
 43865  	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
 43866  		ServerResponse: googleapi.ServerResponse{
 43867  			Header:         res.Header,
 43868  			HTTPStatusCode: res.StatusCode,
 43869  		},
 43870  	}
 43871  	target := &ret
 43872  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43873  		return nil, err
 43874  	}
 43875  	return ret, nil
 43876  }
 43877  
 43878  type OrganizationsReportsGetCall struct {
 43879  	s            *Service
 43880  	name         string
 43881  	urlParams_   gensupport.URLParams
 43882  	ifNoneMatch_ string
 43883  	ctx_         context.Context
 43884  	header_      http.Header
 43885  }
 43886  
 43887  // Get: Retrieve a custom report definition.
 43888  //
 43889  //   - name: Custom Report name of the form:
 43890  //     `organizations/{organization_id}/reports/{report_name}`.
 43891  func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
 43892  	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43893  	c.name = name
 43894  	return c
 43895  }
 43896  
 43897  // Fields allows partial responses to be retrieved. See
 43898  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43899  // details.
 43900  func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
 43901  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43902  	return c
 43903  }
 43904  
 43905  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43906  // object's ETag matches the given value. This is useful for getting updates
 43907  // only after the object has changed since the last request.
 43908  func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
 43909  	c.ifNoneMatch_ = entityTag
 43910  	return c
 43911  }
 43912  
 43913  // Context sets the context to be used in this call's Do method.
 43914  func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
 43915  	c.ctx_ = ctx
 43916  	return c
 43917  }
 43918  
 43919  // Header returns a http.Header that can be modified by the caller to add
 43920  // headers to the request.
 43921  func (c *OrganizationsReportsGetCall) Header() http.Header {
 43922  	if c.header_ == nil {
 43923  		c.header_ = make(http.Header)
 43924  	}
 43925  	return c.header_
 43926  }
 43927  
 43928  func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
 43929  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43930  	if c.ifNoneMatch_ != "" {
 43931  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43932  	}
 43933  	var body io.Reader = nil
 43934  	c.urlParams_.Set("alt", alt)
 43935  	c.urlParams_.Set("prettyPrint", "false")
 43936  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 43937  	urls += "?" + c.urlParams_.Encode()
 43938  	req, err := http.NewRequest("GET", urls, body)
 43939  	if err != nil {
 43940  		return nil, err
 43941  	}
 43942  	req.Header = reqHeaders
 43943  	googleapi.Expand(req.URL, map[string]string{
 43944  		"name": c.name,
 43945  	})
 43946  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43947  }
 43948  
 43949  // Do executes the "apigee.organizations.reports.get" call.
 43950  // Any non-2xx status code is an error. Response headers are in either
 43951  // *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if a response was
 43952  // returned at all) in error.(*googleapi.Error).Header. Use
 43953  // googleapi.IsNotModified to check whether the returned error was because
 43954  // http.StatusNotModified was returned.
 43955  func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
 43956  	gensupport.SetOptions(c.urlParams_, opts...)
 43957  	res, err := c.doRequest("json")
 43958  	if res != nil && res.StatusCode == http.StatusNotModified {
 43959  		if res.Body != nil {
 43960  			res.Body.Close()
 43961  		}
 43962  		return nil, gensupport.WrapError(&googleapi.Error{
 43963  			Code:   res.StatusCode,
 43964  			Header: res.Header,
 43965  		})
 43966  	}
 43967  	if err != nil {
 43968  		return nil, err
 43969  	}
 43970  	defer googleapi.CloseBody(res)
 43971  	if err := googleapi.CheckResponse(res); err != nil {
 43972  		return nil, gensupport.WrapError(err)
 43973  	}
 43974  	ret := &GoogleCloudApigeeV1CustomReport{
 43975  		ServerResponse: googleapi.ServerResponse{
 43976  			Header:         res.Header,
 43977  			HTTPStatusCode: res.StatusCode,
 43978  		},
 43979  	}
 43980  	target := &ret
 43981  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43982  		return nil, err
 43983  	}
 43984  	return ret, nil
 43985  }
 43986  
 43987  type OrganizationsReportsListCall struct {
 43988  	s            *Service
 43989  	parent       string
 43990  	urlParams_   gensupport.URLParams
 43991  	ifNoneMatch_ string
 43992  	ctx_         context.Context
 43993  	header_      http.Header
 43994  }
 43995  
 43996  // List: Return a list of Custom Reports
 43997  //
 43998  //   - parent: The parent organization name under which the API product will be
 43999  //     listed `organizations/{organization_id}/reports`.
 44000  func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
 44001  	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44002  	c.parent = parent
 44003  	return c
 44004  }
 44005  
 44006  // Expand sets the optional parameter "expand": Set to 'true' to get expanded
 44007  // details about each custom report.
 44008  func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
 44009  	c.urlParams_.Set("expand", fmt.Sprint(expand))
 44010  	return c
 44011  }
 44012  
 44013  // Fields allows partial responses to be retrieved. See
 44014  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44015  // details.
 44016  func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
 44017  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44018  	return c
 44019  }
 44020  
 44021  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44022  // object's ETag matches the given value. This is useful for getting updates
 44023  // only after the object has changed since the last request.
 44024  func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
 44025  	c.ifNoneMatch_ = entityTag
 44026  	return c
 44027  }
 44028  
 44029  // Context sets the context to be used in this call's Do method.
 44030  func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
 44031  	c.ctx_ = ctx
 44032  	return c
 44033  }
 44034  
 44035  // Header returns a http.Header that can be modified by the caller to add
 44036  // headers to the request.
 44037  func (c *OrganizationsReportsListCall) Header() http.Header {
 44038  	if c.header_ == nil {
 44039  		c.header_ = make(http.Header)
 44040  	}
 44041  	return c.header_
 44042  }
 44043  
 44044  func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
 44045  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44046  	if c.ifNoneMatch_ != "" {
 44047  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44048  	}
 44049  	var body io.Reader = nil
 44050  	c.urlParams_.Set("alt", alt)
 44051  	c.urlParams_.Set("prettyPrint", "false")
 44052  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
 44053  	urls += "?" + c.urlParams_.Encode()
 44054  	req, err := http.NewRequest("GET", urls, body)
 44055  	if err != nil {
 44056  		return nil, err
 44057  	}
 44058  	req.Header = reqHeaders
 44059  	googleapi.Expand(req.URL, map[string]string{
 44060  		"parent": c.parent,
 44061  	})
 44062  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44063  }
 44064  
 44065  // Do executes the "apigee.organizations.reports.list" call.
 44066  // Any non-2xx status code is an error. Response headers are in either
 44067  // *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header or (if a
 44068  // response was returned at all) in error.(*googleapi.Error).Header. Use
 44069  // googleapi.IsNotModified to check whether the returned error was because
 44070  // http.StatusNotModified was returned.
 44071  func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
 44072  	gensupport.SetOptions(c.urlParams_, opts...)
 44073  	res, err := c.doRequest("json")
 44074  	if res != nil && res.StatusCode == http.StatusNotModified {
 44075  		if res.Body != nil {
 44076  			res.Body.Close()
 44077  		}
 44078  		return nil, gensupport.WrapError(&googleapi.Error{
 44079  			Code:   res.StatusCode,
 44080  			Header: res.Header,
 44081  		})
 44082  	}
 44083  	if err != nil {
 44084  		return nil, err
 44085  	}
 44086  	defer googleapi.CloseBody(res)
 44087  	if err := googleapi.CheckResponse(res); err != nil {
 44088  		return nil, gensupport.WrapError(err)
 44089  	}
 44090  	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
 44091  		ServerResponse: googleapi.ServerResponse{
 44092  			Header:         res.Header,
 44093  			HTTPStatusCode: res.StatusCode,
 44094  		},
 44095  	}
 44096  	target := &ret
 44097  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44098  		return nil, err
 44099  	}
 44100  	return ret, nil
 44101  }
 44102  
 44103  type OrganizationsReportsUpdateCall struct {
 44104  	s                               *Service
 44105  	name                            string
 44106  	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
 44107  	urlParams_                      gensupport.URLParams
 44108  	ctx_                            context.Context
 44109  	header_                         http.Header
 44110  }
 44111  
 44112  // Update: Update an existing custom report definition
 44113  //
 44114  //   - name: Custom Report name of the form:
 44115  //     `organizations/{organization_id}/reports/{report_name}`.
 44116  func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
 44117  	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44118  	c.name = name
 44119  	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
 44120  	return c
 44121  }
 44122  
 44123  // Fields allows partial responses to be retrieved. See
 44124  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44125  // details.
 44126  func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
 44127  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44128  	return c
 44129  }
 44130  
 44131  // Context sets the context to be used in this call's Do method.
 44132  func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
 44133  	c.ctx_ = ctx
 44134  	return c
 44135  }
 44136  
 44137  // Header returns a http.Header that can be modified by the caller to add
 44138  // headers to the request.
 44139  func (c *OrganizationsReportsUpdateCall) Header() http.Header {
 44140  	if c.header_ == nil {
 44141  		c.header_ = make(http.Header)
 44142  	}
 44143  	return c.header_
 44144  }
 44145  
 44146  func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
 44147  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44148  	var body io.Reader = nil
 44149  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
 44150  	if err != nil {
 44151  		return nil, err
 44152  	}
 44153  	c.urlParams_.Set("alt", alt)
 44154  	c.urlParams_.Set("prettyPrint", "false")
 44155  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 44156  	urls += "?" + c.urlParams_.Encode()
 44157  	req, err := http.NewRequest("PUT", urls, body)
 44158  	if err != nil {
 44159  		return nil, err
 44160  	}
 44161  	req.Header = reqHeaders
 44162  	googleapi.Expand(req.URL, map[string]string{
 44163  		"name": c.name,
 44164  	})
 44165  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44166  }
 44167  
 44168  // Do executes the "apigee.organizations.reports.update" call.
 44169  // Any non-2xx status code is an error. Response headers are in either
 44170  // *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if a response was
 44171  // returned at all) in error.(*googleapi.Error).Header. Use
 44172  // googleapi.IsNotModified to check whether the returned error was because
 44173  // http.StatusNotModified was returned.
 44174  func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
 44175  	gensupport.SetOptions(c.urlParams_, opts...)
 44176  	res, err := c.doRequest("json")
 44177  	if res != nil && res.StatusCode == http.StatusNotModified {
 44178  		if res.Body != nil {
 44179  			res.Body.Close()
 44180  		}
 44181  		return nil, gensupport.WrapError(&googleapi.Error{
 44182  			Code:   res.StatusCode,
 44183  			Header: res.Header,
 44184  		})
 44185  	}
 44186  	if err != nil {
 44187  		return nil, err
 44188  	}
 44189  	defer googleapi.CloseBody(res)
 44190  	if err := googleapi.CheckResponse(res); err != nil {
 44191  		return nil, gensupport.WrapError(err)
 44192  	}
 44193  	ret := &GoogleCloudApigeeV1CustomReport{
 44194  		ServerResponse: googleapi.ServerResponse{
 44195  			Header:         res.Header,
 44196  			HTTPStatusCode: res.StatusCode,
 44197  		},
 44198  	}
 44199  	target := &ret
 44200  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44201  		return nil, err
 44202  	}
 44203  	return ret, nil
 44204  }
 44205  
 44206  type OrganizationsSecurityAssessmentResultsBatchComputeCall struct {
 44207  	s                                                               *Service
 44208  	name                                                            string
 44209  	googlecloudapigeev1batchcomputesecurityassessmentresultsrequest *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest
 44210  	urlParams_                                                      gensupport.URLParams
 44211  	ctx_                                                            context.Context
 44212  	header_                                                         http.Header
 44213  }
 44214  
 44215  // BatchCompute: Compute RAV2 security scores for a set of resources.
 44216  //
 44217  //   - name: Name of the organization for which the score needs to be computed in
 44218  //     the following format: `organizations/{org}/securityAssessmentResults`.
 44219  func (r *OrganizationsSecurityAssessmentResultsService) BatchCompute(name string, googlecloudapigeev1batchcomputesecurityassessmentresultsrequest *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest) *OrganizationsSecurityAssessmentResultsBatchComputeCall {
 44220  	c := &OrganizationsSecurityAssessmentResultsBatchComputeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44221  	c.name = name
 44222  	c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest = googlecloudapigeev1batchcomputesecurityassessmentresultsrequest
 44223  	return c
 44224  }
 44225  
 44226  // Fields allows partial responses to be retrieved. See
 44227  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44228  // details.
 44229  func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Fields(s ...googleapi.Field) *OrganizationsSecurityAssessmentResultsBatchComputeCall {
 44230  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44231  	return c
 44232  }
 44233  
 44234  // Context sets the context to be used in this call's Do method.
 44235  func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Context(ctx context.Context) *OrganizationsSecurityAssessmentResultsBatchComputeCall {
 44236  	c.ctx_ = ctx
 44237  	return c
 44238  }
 44239  
 44240  // Header returns a http.Header that can be modified by the caller to add
 44241  // headers to the request.
 44242  func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Header() http.Header {
 44243  	if c.header_ == nil {
 44244  		c.header_ = make(http.Header)
 44245  	}
 44246  	return c.header_
 44247  }
 44248  
 44249  func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) doRequest(alt string) (*http.Response, error) {
 44250  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44251  	var body io.Reader = nil
 44252  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest)
 44253  	if err != nil {
 44254  		return nil, err
 44255  	}
 44256  	c.urlParams_.Set("alt", alt)
 44257  	c.urlParams_.Set("prettyPrint", "false")
 44258  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:batchCompute")
 44259  	urls += "?" + c.urlParams_.Encode()
 44260  	req, err := http.NewRequest("POST", urls, body)
 44261  	if err != nil {
 44262  		return nil, err
 44263  	}
 44264  	req.Header = reqHeaders
 44265  	googleapi.Expand(req.URL, map[string]string{
 44266  		"name": c.name,
 44267  	})
 44268  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44269  }
 44270  
 44271  // Do executes the "apigee.organizations.securityAssessmentResults.batchCompute" call.
 44272  // Any non-2xx status code is an error. Response headers are in either
 44273  // *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse.ServerRespo
 44274  // nse.Header or (if a response was returned at all) in
 44275  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 44276  // whether the returned error was because http.StatusNotModified was returned.
 44277  func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse, error) {
 44278  	gensupport.SetOptions(c.urlParams_, opts...)
 44279  	res, err := c.doRequest("json")
 44280  	if res != nil && res.StatusCode == http.StatusNotModified {
 44281  		if res.Body != nil {
 44282  			res.Body.Close()
 44283  		}
 44284  		return nil, gensupport.WrapError(&googleapi.Error{
 44285  			Code:   res.StatusCode,
 44286  			Header: res.Header,
 44287  		})
 44288  	}
 44289  	if err != nil {
 44290  		return nil, err
 44291  	}
 44292  	defer googleapi.CloseBody(res)
 44293  	if err := googleapi.CheckResponse(res); err != nil {
 44294  		return nil, gensupport.WrapError(err)
 44295  	}
 44296  	ret := &GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse{
 44297  		ServerResponse: googleapi.ServerResponse{
 44298  			Header:         res.Header,
 44299  			HTTPStatusCode: res.StatusCode,
 44300  		},
 44301  	}
 44302  	target := &ret
 44303  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44304  		return nil, err
 44305  	}
 44306  	return ret, nil
 44307  }
 44308  
 44309  // Pages invokes f for each page of results.
 44310  // A non-nil error returned from f will halt the iteration.
 44311  // The provided context supersedes any context provided to the Context method.
 44312  func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse) error) error {
 44313  	c.ctx_ = ctx
 44314  	defer func(pt string) { c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest.PageToken = pt }(c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest.PageToken)
 44315  	for {
 44316  		x, err := c.Do()
 44317  		if err != nil {
 44318  			return err
 44319  		}
 44320  		if err := f(x); err != nil {
 44321  			return err
 44322  		}
 44323  		if x.NextPageToken == "" {
 44324  			return nil
 44325  		}
 44326  		c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest.PageToken = x.NextPageToken
 44327  	}
 44328  }
 44329  
 44330  type OrganizationsSecurityProfilesCreateCall struct {
 44331  	s                                  *Service
 44332  	parent                             string
 44333  	googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile
 44334  	urlParams_                         gensupport.URLParams
 44335  	ctx_                               context.Context
 44336  	header_                            http.Header
 44337  }
 44338  
 44339  // Create: CreateSecurityProfile create a new custom security profile.
 44340  //
 44341  // - parent: Name of organization. Format: organizations/{org}.
 44342  func (r *OrganizationsSecurityProfilesService) Create(parent string, googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile) *OrganizationsSecurityProfilesCreateCall {
 44343  	c := &OrganizationsSecurityProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44344  	c.parent = parent
 44345  	c.googlecloudapigeev1securityprofile = googlecloudapigeev1securityprofile
 44346  	return c
 44347  }
 44348  
 44349  // SecurityProfileId sets the optional parameter "securityProfileId": Required.
 44350  // The ID to use for the SecurityProfile, which will become the final component
 44351  // of the action's resource name. This value should be 1-63 characters and
 44352  // validated by "(^a-z ([a-z0-9-]{0,61}[a-z0-9])?$)".
 44353  func (c *OrganizationsSecurityProfilesCreateCall) SecurityProfileId(securityProfileId string) *OrganizationsSecurityProfilesCreateCall {
 44354  	c.urlParams_.Set("securityProfileId", securityProfileId)
 44355  	return c
 44356  }
 44357  
 44358  // Fields allows partial responses to be retrieved. See
 44359  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44360  // details.
 44361  func (c *OrganizationsSecurityProfilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesCreateCall {
 44362  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44363  	return c
 44364  }
 44365  
 44366  // Context sets the context to be used in this call's Do method.
 44367  func (c *OrganizationsSecurityProfilesCreateCall) Context(ctx context.Context) *OrganizationsSecurityProfilesCreateCall {
 44368  	c.ctx_ = ctx
 44369  	return c
 44370  }
 44371  
 44372  // Header returns a http.Header that can be modified by the caller to add
 44373  // headers to the request.
 44374  func (c *OrganizationsSecurityProfilesCreateCall) Header() http.Header {
 44375  	if c.header_ == nil {
 44376  		c.header_ = make(http.Header)
 44377  	}
 44378  	return c.header_
 44379  }
 44380  
 44381  func (c *OrganizationsSecurityProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
 44382  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44383  	var body io.Reader = nil
 44384  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityprofile)
 44385  	if err != nil {
 44386  		return nil, err
 44387  	}
 44388  	c.urlParams_.Set("alt", alt)
 44389  	c.urlParams_.Set("prettyPrint", "false")
 44390  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles")
 44391  	urls += "?" + c.urlParams_.Encode()
 44392  	req, err := http.NewRequest("POST", urls, body)
 44393  	if err != nil {
 44394  		return nil, err
 44395  	}
 44396  	req.Header = reqHeaders
 44397  	googleapi.Expand(req.URL, map[string]string{
 44398  		"parent": c.parent,
 44399  	})
 44400  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44401  }
 44402  
 44403  // Do executes the "apigee.organizations.securityProfiles.create" call.
 44404  // Any non-2xx status code is an error. Response headers are in either
 44405  // *GoogleCloudApigeeV1SecurityProfile.ServerResponse.Header or (if a response
 44406  // was returned at all) in error.(*googleapi.Error).Header. Use
 44407  // googleapi.IsNotModified to check whether the returned error was because
 44408  // http.StatusNotModified was returned.
 44409  func (c *OrganizationsSecurityProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfile, error) {
 44410  	gensupport.SetOptions(c.urlParams_, opts...)
 44411  	res, err := c.doRequest("json")
 44412  	if res != nil && res.StatusCode == http.StatusNotModified {
 44413  		if res.Body != nil {
 44414  			res.Body.Close()
 44415  		}
 44416  		return nil, gensupport.WrapError(&googleapi.Error{
 44417  			Code:   res.StatusCode,
 44418  			Header: res.Header,
 44419  		})
 44420  	}
 44421  	if err != nil {
 44422  		return nil, err
 44423  	}
 44424  	defer googleapi.CloseBody(res)
 44425  	if err := googleapi.CheckResponse(res); err != nil {
 44426  		return nil, gensupport.WrapError(err)
 44427  	}
 44428  	ret := &GoogleCloudApigeeV1SecurityProfile{
 44429  		ServerResponse: googleapi.ServerResponse{
 44430  			Header:         res.Header,
 44431  			HTTPStatusCode: res.StatusCode,
 44432  		},
 44433  	}
 44434  	target := &ret
 44435  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44436  		return nil, err
 44437  	}
 44438  	return ret, nil
 44439  }
 44440  
 44441  type OrganizationsSecurityProfilesDeleteCall struct {
 44442  	s          *Service
 44443  	name       string
 44444  	urlParams_ gensupport.URLParams
 44445  	ctx_       context.Context
 44446  	header_    http.Header
 44447  }
 44448  
 44449  // Delete: DeleteSecurityProfile delete a profile with all its revisions.
 44450  //
 44451  //   - name: Name of profile. Format:
 44452  //     organizations/{org}/securityProfiles/{profile}.
 44453  func (r *OrganizationsSecurityProfilesService) Delete(name string) *OrganizationsSecurityProfilesDeleteCall {
 44454  	c := &OrganizationsSecurityProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44455  	c.name = name
 44456  	return c
 44457  }
 44458  
 44459  // Fields allows partial responses to be retrieved. See
 44460  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44461  // details.
 44462  func (c *OrganizationsSecurityProfilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesDeleteCall {
 44463  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44464  	return c
 44465  }
 44466  
 44467  // Context sets the context to be used in this call's Do method.
 44468  func (c *OrganizationsSecurityProfilesDeleteCall) Context(ctx context.Context) *OrganizationsSecurityProfilesDeleteCall {
 44469  	c.ctx_ = ctx
 44470  	return c
 44471  }
 44472  
 44473  // Header returns a http.Header that can be modified by the caller to add
 44474  // headers to the request.
 44475  func (c *OrganizationsSecurityProfilesDeleteCall) Header() http.Header {
 44476  	if c.header_ == nil {
 44477  		c.header_ = make(http.Header)
 44478  	}
 44479  	return c.header_
 44480  }
 44481  
 44482  func (c *OrganizationsSecurityProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 44483  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44484  	var body io.Reader = nil
 44485  	c.urlParams_.Set("alt", alt)
 44486  	c.urlParams_.Set("prettyPrint", "false")
 44487  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 44488  	urls += "?" + c.urlParams_.Encode()
 44489  	req, err := http.NewRequest("DELETE", urls, body)
 44490  	if err != nil {
 44491  		return nil, err
 44492  	}
 44493  	req.Header = reqHeaders
 44494  	googleapi.Expand(req.URL, map[string]string{
 44495  		"name": c.name,
 44496  	})
 44497  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44498  }
 44499  
 44500  // Do executes the "apigee.organizations.securityProfiles.delete" call.
 44501  // Any non-2xx status code is an error. Response headers are in either
 44502  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 44503  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 44504  // check whether the returned error was because http.StatusNotModified was
 44505  // returned.
 44506  func (c *OrganizationsSecurityProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 44507  	gensupport.SetOptions(c.urlParams_, opts...)
 44508  	res, err := c.doRequest("json")
 44509  	if res != nil && res.StatusCode == http.StatusNotModified {
 44510  		if res.Body != nil {
 44511  			res.Body.Close()
 44512  		}
 44513  		return nil, gensupport.WrapError(&googleapi.Error{
 44514  			Code:   res.StatusCode,
 44515  			Header: res.Header,
 44516  		})
 44517  	}
 44518  	if err != nil {
 44519  		return nil, err
 44520  	}
 44521  	defer googleapi.CloseBody(res)
 44522  	if err := googleapi.CheckResponse(res); err != nil {
 44523  		return nil, gensupport.WrapError(err)
 44524  	}
 44525  	ret := &GoogleProtobufEmpty{
 44526  		ServerResponse: googleapi.ServerResponse{
 44527  			Header:         res.Header,
 44528  			HTTPStatusCode: res.StatusCode,
 44529  		},
 44530  	}
 44531  	target := &ret
 44532  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44533  		return nil, err
 44534  	}
 44535  	return ret, nil
 44536  }
 44537  
 44538  type OrganizationsSecurityProfilesGetCall struct {
 44539  	s            *Service
 44540  	name         string
 44541  	urlParams_   gensupport.URLParams
 44542  	ifNoneMatch_ string
 44543  	ctx_         context.Context
 44544  	header_      http.Header
 44545  }
 44546  
 44547  // Get: GetSecurityProfile gets the specified security profile. Returns
 44548  // NOT_FOUND if security profile is not present for the specified organization.
 44549  //
 44550  //   - name: Security profile in the following format:
 44551  //     `organizations/{org}/securityProfiles/{profile}'. Profile may optionally
 44552  //     contain revision ID. If revision ID is not provided, the response will
 44553  //     contain latest revision by default. Example:
 44554  //     organizations/testOrg/securityProfiles/testProfile@5.
 44555  func (r *OrganizationsSecurityProfilesService) Get(name string) *OrganizationsSecurityProfilesGetCall {
 44556  	c := &OrganizationsSecurityProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44557  	c.name = name
 44558  	return c
 44559  }
 44560  
 44561  // Fields allows partial responses to be retrieved. See
 44562  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44563  // details.
 44564  func (c *OrganizationsSecurityProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesGetCall {
 44565  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44566  	return c
 44567  }
 44568  
 44569  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44570  // object's ETag matches the given value. This is useful for getting updates
 44571  // only after the object has changed since the last request.
 44572  func (c *OrganizationsSecurityProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsSecurityProfilesGetCall {
 44573  	c.ifNoneMatch_ = entityTag
 44574  	return c
 44575  }
 44576  
 44577  // Context sets the context to be used in this call's Do method.
 44578  func (c *OrganizationsSecurityProfilesGetCall) Context(ctx context.Context) *OrganizationsSecurityProfilesGetCall {
 44579  	c.ctx_ = ctx
 44580  	return c
 44581  }
 44582  
 44583  // Header returns a http.Header that can be modified by the caller to add
 44584  // headers to the request.
 44585  func (c *OrganizationsSecurityProfilesGetCall) Header() http.Header {
 44586  	if c.header_ == nil {
 44587  		c.header_ = make(http.Header)
 44588  	}
 44589  	return c.header_
 44590  }
 44591  
 44592  func (c *OrganizationsSecurityProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 44593  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44594  	if c.ifNoneMatch_ != "" {
 44595  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44596  	}
 44597  	var body io.Reader = nil
 44598  	c.urlParams_.Set("alt", alt)
 44599  	c.urlParams_.Set("prettyPrint", "false")
 44600  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 44601  	urls += "?" + c.urlParams_.Encode()
 44602  	req, err := http.NewRequest("GET", urls, body)
 44603  	if err != nil {
 44604  		return nil, err
 44605  	}
 44606  	req.Header = reqHeaders
 44607  	googleapi.Expand(req.URL, map[string]string{
 44608  		"name": c.name,
 44609  	})
 44610  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44611  }
 44612  
 44613  // Do executes the "apigee.organizations.securityProfiles.get" call.
 44614  // Any non-2xx status code is an error. Response headers are in either
 44615  // *GoogleCloudApigeeV1SecurityProfile.ServerResponse.Header or (if a response
 44616  // was returned at all) in error.(*googleapi.Error).Header. Use
 44617  // googleapi.IsNotModified to check whether the returned error was because
 44618  // http.StatusNotModified was returned.
 44619  func (c *OrganizationsSecurityProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfile, error) {
 44620  	gensupport.SetOptions(c.urlParams_, opts...)
 44621  	res, err := c.doRequest("json")
 44622  	if res != nil && res.StatusCode == http.StatusNotModified {
 44623  		if res.Body != nil {
 44624  			res.Body.Close()
 44625  		}
 44626  		return nil, gensupport.WrapError(&googleapi.Error{
 44627  			Code:   res.StatusCode,
 44628  			Header: res.Header,
 44629  		})
 44630  	}
 44631  	if err != nil {
 44632  		return nil, err
 44633  	}
 44634  	defer googleapi.CloseBody(res)
 44635  	if err := googleapi.CheckResponse(res); err != nil {
 44636  		return nil, gensupport.WrapError(err)
 44637  	}
 44638  	ret := &GoogleCloudApigeeV1SecurityProfile{
 44639  		ServerResponse: googleapi.ServerResponse{
 44640  			Header:         res.Header,
 44641  			HTTPStatusCode: res.StatusCode,
 44642  		},
 44643  	}
 44644  	target := &ret
 44645  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44646  		return nil, err
 44647  	}
 44648  	return ret, nil
 44649  }
 44650  
 44651  type OrganizationsSecurityProfilesListCall struct {
 44652  	s            *Service
 44653  	parent       string
 44654  	urlParams_   gensupport.URLParams
 44655  	ifNoneMatch_ string
 44656  	ctx_         context.Context
 44657  	header_      http.Header
 44658  }
 44659  
 44660  // List: ListSecurityProfiles lists all the security profiles associated with
 44661  // the org including attached and unattached profiles.
 44662  //
 44663  //   - parent: For a specific organization, list of all the security profiles.
 44664  //     Format: `organizations/{org}`.
 44665  func (r *OrganizationsSecurityProfilesService) List(parent string) *OrganizationsSecurityProfilesListCall {
 44666  	c := &OrganizationsSecurityProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44667  	c.parent = parent
 44668  	return c
 44669  }
 44670  
 44671  // PageSize sets the optional parameter "pageSize": The maximum number of
 44672  // profiles to return. The service may return fewer than this value. If
 44673  // unspecified, at most 50 profiles will be returned.
 44674  func (c *OrganizationsSecurityProfilesListCall) PageSize(pageSize int64) *OrganizationsSecurityProfilesListCall {
 44675  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44676  	return c
 44677  }
 44678  
 44679  // PageToken sets the optional parameter "pageToken": A page token, received
 44680  // from a previous `ListSecurityProfiles` call. Provide this to retrieve the
 44681  // subsequent page.
 44682  func (c *OrganizationsSecurityProfilesListCall) PageToken(pageToken string) *OrganizationsSecurityProfilesListCall {
 44683  	c.urlParams_.Set("pageToken", pageToken)
 44684  	return c
 44685  }
 44686  
 44687  // Fields allows partial responses to be retrieved. See
 44688  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44689  // details.
 44690  func (c *OrganizationsSecurityProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesListCall {
 44691  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44692  	return c
 44693  }
 44694  
 44695  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44696  // object's ETag matches the given value. This is useful for getting updates
 44697  // only after the object has changed since the last request.
 44698  func (c *OrganizationsSecurityProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsSecurityProfilesListCall {
 44699  	c.ifNoneMatch_ = entityTag
 44700  	return c
 44701  }
 44702  
 44703  // Context sets the context to be used in this call's Do method.
 44704  func (c *OrganizationsSecurityProfilesListCall) Context(ctx context.Context) *OrganizationsSecurityProfilesListCall {
 44705  	c.ctx_ = ctx
 44706  	return c
 44707  }
 44708  
 44709  // Header returns a http.Header that can be modified by the caller to add
 44710  // headers to the request.
 44711  func (c *OrganizationsSecurityProfilesListCall) Header() http.Header {
 44712  	if c.header_ == nil {
 44713  		c.header_ = make(http.Header)
 44714  	}
 44715  	return c.header_
 44716  }
 44717  
 44718  func (c *OrganizationsSecurityProfilesListCall) doRequest(alt string) (*http.Response, error) {
 44719  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44720  	if c.ifNoneMatch_ != "" {
 44721  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44722  	}
 44723  	var body io.Reader = nil
 44724  	c.urlParams_.Set("alt", alt)
 44725  	c.urlParams_.Set("prettyPrint", "false")
 44726  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles")
 44727  	urls += "?" + c.urlParams_.Encode()
 44728  	req, err := http.NewRequest("GET", urls, body)
 44729  	if err != nil {
 44730  		return nil, err
 44731  	}
 44732  	req.Header = reqHeaders
 44733  	googleapi.Expand(req.URL, map[string]string{
 44734  		"parent": c.parent,
 44735  	})
 44736  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44737  }
 44738  
 44739  // Do executes the "apigee.organizations.securityProfiles.list" call.
 44740  // Any non-2xx status code is an error. Response headers are in either
 44741  // *GoogleCloudApigeeV1ListSecurityProfilesResponse.ServerResponse.Header or
 44742  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 44743  // googleapi.IsNotModified to check whether the returned error was because
 44744  // http.StatusNotModified was returned.
 44745  func (c *OrganizationsSecurityProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityProfilesResponse, error) {
 44746  	gensupport.SetOptions(c.urlParams_, opts...)
 44747  	res, err := c.doRequest("json")
 44748  	if res != nil && res.StatusCode == http.StatusNotModified {
 44749  		if res.Body != nil {
 44750  			res.Body.Close()
 44751  		}
 44752  		return nil, gensupport.WrapError(&googleapi.Error{
 44753  			Code:   res.StatusCode,
 44754  			Header: res.Header,
 44755  		})
 44756  	}
 44757  	if err != nil {
 44758  		return nil, err
 44759  	}
 44760  	defer googleapi.CloseBody(res)
 44761  	if err := googleapi.CheckResponse(res); err != nil {
 44762  		return nil, gensupport.WrapError(err)
 44763  	}
 44764  	ret := &GoogleCloudApigeeV1ListSecurityProfilesResponse{
 44765  		ServerResponse: googleapi.ServerResponse{
 44766  			Header:         res.Header,
 44767  			HTTPStatusCode: res.StatusCode,
 44768  		},
 44769  	}
 44770  	target := &ret
 44771  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44772  		return nil, err
 44773  	}
 44774  	return ret, nil
 44775  }
 44776  
 44777  // Pages invokes f for each page of results.
 44778  // A non-nil error returned from f will halt the iteration.
 44779  // The provided context supersedes any context provided to the Context method.
 44780  func (c *OrganizationsSecurityProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityProfilesResponse) error) error {
 44781  	c.ctx_ = ctx
 44782  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 44783  	for {
 44784  		x, err := c.Do()
 44785  		if err != nil {
 44786  			return err
 44787  		}
 44788  		if err := f(x); err != nil {
 44789  			return err
 44790  		}
 44791  		if x.NextPageToken == "" {
 44792  			return nil
 44793  		}
 44794  		c.PageToken(x.NextPageToken)
 44795  	}
 44796  }
 44797  
 44798  type OrganizationsSecurityProfilesListRevisionsCall struct {
 44799  	s            *Service
 44800  	name         string
 44801  	urlParams_   gensupport.URLParams
 44802  	ifNoneMatch_ string
 44803  	ctx_         context.Context
 44804  	header_      http.Header
 44805  }
 44806  
 44807  // ListRevisions: ListSecurityProfileRevisions lists all the revisions of the
 44808  // security profile.
 44809  //
 44810  //   - name: For a specific profile, list all the revisions. Format:
 44811  //     `organizations/{org}/securityProfiles/{profile}`.
 44812  func (r *OrganizationsSecurityProfilesService) ListRevisions(name string) *OrganizationsSecurityProfilesListRevisionsCall {
 44813  	c := &OrganizationsSecurityProfilesListRevisionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44814  	c.name = name
 44815  	return c
 44816  }
 44817  
 44818  // PageSize sets the optional parameter "pageSize": The maximum number of
 44819  // profile revisions to return. The service may return fewer than this value.
 44820  // If unspecified, at most 50 revisions will be returned.
 44821  func (c *OrganizationsSecurityProfilesListRevisionsCall) PageSize(pageSize int64) *OrganizationsSecurityProfilesListRevisionsCall {
 44822  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44823  	return c
 44824  }
 44825  
 44826  // PageToken sets the optional parameter "pageToken": A page token, received
 44827  // from a previous `ListSecurityProfileRevisions` call. Provide this to
 44828  // retrieve the subsequent page.
 44829  func (c *OrganizationsSecurityProfilesListRevisionsCall) PageToken(pageToken string) *OrganizationsSecurityProfilesListRevisionsCall {
 44830  	c.urlParams_.Set("pageToken", pageToken)
 44831  	return c
 44832  }
 44833  
 44834  // Fields allows partial responses to be retrieved. See
 44835  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44836  // details.
 44837  func (c *OrganizationsSecurityProfilesListRevisionsCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesListRevisionsCall {
 44838  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44839  	return c
 44840  }
 44841  
 44842  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44843  // object's ETag matches the given value. This is useful for getting updates
 44844  // only after the object has changed since the last request.
 44845  func (c *OrganizationsSecurityProfilesListRevisionsCall) IfNoneMatch(entityTag string) *OrganizationsSecurityProfilesListRevisionsCall {
 44846  	c.ifNoneMatch_ = entityTag
 44847  	return c
 44848  }
 44849  
 44850  // Context sets the context to be used in this call's Do method.
 44851  func (c *OrganizationsSecurityProfilesListRevisionsCall) Context(ctx context.Context) *OrganizationsSecurityProfilesListRevisionsCall {
 44852  	c.ctx_ = ctx
 44853  	return c
 44854  }
 44855  
 44856  // Header returns a http.Header that can be modified by the caller to add
 44857  // headers to the request.
 44858  func (c *OrganizationsSecurityProfilesListRevisionsCall) Header() http.Header {
 44859  	if c.header_ == nil {
 44860  		c.header_ = make(http.Header)
 44861  	}
 44862  	return c.header_
 44863  }
 44864  
 44865  func (c *OrganizationsSecurityProfilesListRevisionsCall) doRequest(alt string) (*http.Response, error) {
 44866  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44867  	if c.ifNoneMatch_ != "" {
 44868  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44869  	}
 44870  	var body io.Reader = nil
 44871  	c.urlParams_.Set("alt", alt)
 44872  	c.urlParams_.Set("prettyPrint", "false")
 44873  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listRevisions")
 44874  	urls += "?" + c.urlParams_.Encode()
 44875  	req, err := http.NewRequest("GET", urls, body)
 44876  	if err != nil {
 44877  		return nil, err
 44878  	}
 44879  	req.Header = reqHeaders
 44880  	googleapi.Expand(req.URL, map[string]string{
 44881  		"name": c.name,
 44882  	})
 44883  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44884  }
 44885  
 44886  // Do executes the "apigee.organizations.securityProfiles.listRevisions" call.
 44887  // Any non-2xx status code is an error. Response headers are in either
 44888  // *GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse.ServerResponse.Heade
 44889  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 44890  // Use googleapi.IsNotModified to check whether the returned error was because
 44891  // http.StatusNotModified was returned.
 44892  func (c *OrganizationsSecurityProfilesListRevisionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse, error) {
 44893  	gensupport.SetOptions(c.urlParams_, opts...)
 44894  	res, err := c.doRequest("json")
 44895  	if res != nil && res.StatusCode == http.StatusNotModified {
 44896  		if res.Body != nil {
 44897  			res.Body.Close()
 44898  		}
 44899  		return nil, gensupport.WrapError(&googleapi.Error{
 44900  			Code:   res.StatusCode,
 44901  			Header: res.Header,
 44902  		})
 44903  	}
 44904  	if err != nil {
 44905  		return nil, err
 44906  	}
 44907  	defer googleapi.CloseBody(res)
 44908  	if err := googleapi.CheckResponse(res); err != nil {
 44909  		return nil, gensupport.WrapError(err)
 44910  	}
 44911  	ret := &GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse{
 44912  		ServerResponse: googleapi.ServerResponse{
 44913  			Header:         res.Header,
 44914  			HTTPStatusCode: res.StatusCode,
 44915  		},
 44916  	}
 44917  	target := &ret
 44918  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44919  		return nil, err
 44920  	}
 44921  	return ret, nil
 44922  }
 44923  
 44924  // Pages invokes f for each page of results.
 44925  // A non-nil error returned from f will halt the iteration.
 44926  // The provided context supersedes any context provided to the Context method.
 44927  func (c *OrganizationsSecurityProfilesListRevisionsCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse) error) error {
 44928  	c.ctx_ = ctx
 44929  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 44930  	for {
 44931  		x, err := c.Do()
 44932  		if err != nil {
 44933  			return err
 44934  		}
 44935  		if err := f(x); err != nil {
 44936  			return err
 44937  		}
 44938  		if x.NextPageToken == "" {
 44939  			return nil
 44940  		}
 44941  		c.PageToken(x.NextPageToken)
 44942  	}
 44943  }
 44944  
 44945  type OrganizationsSecurityProfilesPatchCall struct {
 44946  	s                                  *Service
 44947  	name                               string
 44948  	googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile
 44949  	urlParams_                         gensupport.URLParams
 44950  	ctx_                               context.Context
 44951  	header_                            http.Header
 44952  }
 44953  
 44954  // Patch: UpdateSecurityProfile update the metadata of security profile.
 44955  //
 44956  //   - name: Immutable. Name of the security profile resource. Format:
 44957  //     organizations/{org}/securityProfiles/{profile}.
 44958  func (r *OrganizationsSecurityProfilesService) Patch(name string, googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile) *OrganizationsSecurityProfilesPatchCall {
 44959  	c := &OrganizationsSecurityProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44960  	c.name = name
 44961  	c.googlecloudapigeev1securityprofile = googlecloudapigeev1securityprofile
 44962  	return c
 44963  }
 44964  
 44965  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 44966  // fields to update.
 44967  func (c *OrganizationsSecurityProfilesPatchCall) UpdateMask(updateMask string) *OrganizationsSecurityProfilesPatchCall {
 44968  	c.urlParams_.Set("updateMask", updateMask)
 44969  	return c
 44970  }
 44971  
 44972  // Fields allows partial responses to be retrieved. See
 44973  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44974  // details.
 44975  func (c *OrganizationsSecurityProfilesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesPatchCall {
 44976  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44977  	return c
 44978  }
 44979  
 44980  // Context sets the context to be used in this call's Do method.
 44981  func (c *OrganizationsSecurityProfilesPatchCall) Context(ctx context.Context) *OrganizationsSecurityProfilesPatchCall {
 44982  	c.ctx_ = ctx
 44983  	return c
 44984  }
 44985  
 44986  // Header returns a http.Header that can be modified by the caller to add
 44987  // headers to the request.
 44988  func (c *OrganizationsSecurityProfilesPatchCall) Header() http.Header {
 44989  	if c.header_ == nil {
 44990  		c.header_ = make(http.Header)
 44991  	}
 44992  	return c.header_
 44993  }
 44994  
 44995  func (c *OrganizationsSecurityProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
 44996  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44997  	var body io.Reader = nil
 44998  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityprofile)
 44999  	if err != nil {
 45000  		return nil, err
 45001  	}
 45002  	c.urlParams_.Set("alt", alt)
 45003  	c.urlParams_.Set("prettyPrint", "false")
 45004  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 45005  	urls += "?" + c.urlParams_.Encode()
 45006  	req, err := http.NewRequest("PATCH", urls, body)
 45007  	if err != nil {
 45008  		return nil, err
 45009  	}
 45010  	req.Header = reqHeaders
 45011  	googleapi.Expand(req.URL, map[string]string{
 45012  		"name": c.name,
 45013  	})
 45014  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45015  }
 45016  
 45017  // Do executes the "apigee.organizations.securityProfiles.patch" call.
 45018  // Any non-2xx status code is an error. Response headers are in either
 45019  // *GoogleCloudApigeeV1SecurityProfile.ServerResponse.Header or (if a response
 45020  // was returned at all) in error.(*googleapi.Error).Header. Use
 45021  // googleapi.IsNotModified to check whether the returned error was because
 45022  // http.StatusNotModified was returned.
 45023  func (c *OrganizationsSecurityProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfile, error) {
 45024  	gensupport.SetOptions(c.urlParams_, opts...)
 45025  	res, err := c.doRequest("json")
 45026  	if res != nil && res.StatusCode == http.StatusNotModified {
 45027  		if res.Body != nil {
 45028  			res.Body.Close()
 45029  		}
 45030  		return nil, gensupport.WrapError(&googleapi.Error{
 45031  			Code:   res.StatusCode,
 45032  			Header: res.Header,
 45033  		})
 45034  	}
 45035  	if err != nil {
 45036  		return nil, err
 45037  	}
 45038  	defer googleapi.CloseBody(res)
 45039  	if err := googleapi.CheckResponse(res); err != nil {
 45040  		return nil, gensupport.WrapError(err)
 45041  	}
 45042  	ret := &GoogleCloudApigeeV1SecurityProfile{
 45043  		ServerResponse: googleapi.ServerResponse{
 45044  			Header:         res.Header,
 45045  			HTTPStatusCode: res.StatusCode,
 45046  		},
 45047  	}
 45048  	target := &ret
 45049  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45050  		return nil, err
 45051  	}
 45052  	return ret, nil
 45053  }
 45054  
 45055  type OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall struct {
 45056  	s                                                  *Service
 45057  	profileEnvironment                                 string
 45058  	googlecloudapigeev1computeenvironmentscoresrequest *GoogleCloudApigeeV1ComputeEnvironmentScoresRequest
 45059  	urlParams_                                         gensupport.URLParams
 45060  	ctx_                                               context.Context
 45061  	header_                                            http.Header
 45062  }
 45063  
 45064  // ComputeEnvironmentScores: ComputeEnvironmentScores calculates scores for
 45065  // requested time range for the specified security profile and environment.
 45066  //
 45067  //   - profileEnvironment: Name of organization and environment and profile id
 45068  //     for which score needs to be computed. Format:
 45069  //     organizations/{org}/securityProfiles/{profile}/environments/{env}.
 45070  func (r *OrganizationsSecurityProfilesEnvironmentsService) ComputeEnvironmentScores(profileEnvironment string, googlecloudapigeev1computeenvironmentscoresrequest *GoogleCloudApigeeV1ComputeEnvironmentScoresRequest) *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall {
 45071  	c := &OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45072  	c.profileEnvironment = profileEnvironment
 45073  	c.googlecloudapigeev1computeenvironmentscoresrequest = googlecloudapigeev1computeenvironmentscoresrequest
 45074  	return c
 45075  }
 45076  
 45077  // Fields allows partial responses to be retrieved. See
 45078  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45079  // details.
 45080  func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall {
 45081  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45082  	return c
 45083  }
 45084  
 45085  // Context sets the context to be used in this call's Do method.
 45086  func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Context(ctx context.Context) *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall {
 45087  	c.ctx_ = ctx
 45088  	return c
 45089  }
 45090  
 45091  // Header returns a http.Header that can be modified by the caller to add
 45092  // headers to the request.
 45093  func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Header() http.Header {
 45094  	if c.header_ == nil {
 45095  		c.header_ = make(http.Header)
 45096  	}
 45097  	return c.header_
 45098  }
 45099  
 45100  func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) doRequest(alt string) (*http.Response, error) {
 45101  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45102  	var body io.Reader = nil
 45103  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1computeenvironmentscoresrequest)
 45104  	if err != nil {
 45105  		return nil, err
 45106  	}
 45107  	c.urlParams_.Set("alt", alt)
 45108  	c.urlParams_.Set("prettyPrint", "false")
 45109  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+profileEnvironment}:computeEnvironmentScores")
 45110  	urls += "?" + c.urlParams_.Encode()
 45111  	req, err := http.NewRequest("POST", urls, body)
 45112  	if err != nil {
 45113  		return nil, err
 45114  	}
 45115  	req.Header = reqHeaders
 45116  	googleapi.Expand(req.URL, map[string]string{
 45117  		"profileEnvironment": c.profileEnvironment,
 45118  	})
 45119  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45120  }
 45121  
 45122  // Do executes the "apigee.organizations.securityProfiles.environments.computeEnvironmentScores" call.
 45123  // Any non-2xx status code is an error. Response headers are in either
 45124  // *GoogleCloudApigeeV1ComputeEnvironmentScoresResponse.ServerResponse.Header
 45125  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 45126  // Use googleapi.IsNotModified to check whether the returned error was because
 45127  // http.StatusNotModified was returned.
 45128  func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ComputeEnvironmentScoresResponse, error) {
 45129  	gensupport.SetOptions(c.urlParams_, opts...)
 45130  	res, err := c.doRequest("json")
 45131  	if res != nil && res.StatusCode == http.StatusNotModified {
 45132  		if res.Body != nil {
 45133  			res.Body.Close()
 45134  		}
 45135  		return nil, gensupport.WrapError(&googleapi.Error{
 45136  			Code:   res.StatusCode,
 45137  			Header: res.Header,
 45138  		})
 45139  	}
 45140  	if err != nil {
 45141  		return nil, err
 45142  	}
 45143  	defer googleapi.CloseBody(res)
 45144  	if err := googleapi.CheckResponse(res); err != nil {
 45145  		return nil, gensupport.WrapError(err)
 45146  	}
 45147  	ret := &GoogleCloudApigeeV1ComputeEnvironmentScoresResponse{
 45148  		ServerResponse: googleapi.ServerResponse{
 45149  			Header:         res.Header,
 45150  			HTTPStatusCode: res.StatusCode,
 45151  		},
 45152  	}
 45153  	target := &ret
 45154  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45155  		return nil, err
 45156  	}
 45157  	return ret, nil
 45158  }
 45159  
 45160  // Pages invokes f for each page of results.
 45161  // A non-nil error returned from f will halt the iteration.
 45162  // The provided context supersedes any context provided to the Context method.
 45163  func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ComputeEnvironmentScoresResponse) error) error {
 45164  	c.ctx_ = ctx
 45165  	defer func(pt string) { c.googlecloudapigeev1computeenvironmentscoresrequest.PageToken = pt }(c.googlecloudapigeev1computeenvironmentscoresrequest.PageToken)
 45166  	for {
 45167  		x, err := c.Do()
 45168  		if err != nil {
 45169  			return err
 45170  		}
 45171  		if err := f(x); err != nil {
 45172  			return err
 45173  		}
 45174  		if x.NextPageToken == "" {
 45175  			return nil
 45176  		}
 45177  		c.googlecloudapigeev1computeenvironmentscoresrequest.PageToken = x.NextPageToken
 45178  	}
 45179  }
 45180  
 45181  type OrganizationsSecurityProfilesEnvironmentsCreateCall struct {
 45182  	s                                                        *Service
 45183  	parent                                                   string
 45184  	googlecloudapigeev1securityprofileenvironmentassociation *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation
 45185  	urlParams_                                               gensupport.URLParams
 45186  	ctx_                                                     context.Context
 45187  	header_                                                  http.Header
 45188  }
 45189  
 45190  // Create: CreateSecurityProfileEnvironmentAssociation creates profile
 45191  // environment association i.e. attaches environment to security profile.
 45192  //
 45193  //   - parent: Name of organization and security profile ID. Format:
 45194  //     organizations/{org}/securityProfiles/{profile}.
 45195  func (r *OrganizationsSecurityProfilesEnvironmentsService) Create(parent string, googlecloudapigeev1securityprofileenvironmentassociation *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation) *OrganizationsSecurityProfilesEnvironmentsCreateCall {
 45196  	c := &OrganizationsSecurityProfilesEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45197  	c.parent = parent
 45198  	c.googlecloudapigeev1securityprofileenvironmentassociation = googlecloudapigeev1securityprofileenvironmentassociation
 45199  	return c
 45200  }
 45201  
 45202  // Fields allows partial responses to be retrieved. See
 45203  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45204  // details.
 45205  func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesEnvironmentsCreateCall {
 45206  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45207  	return c
 45208  }
 45209  
 45210  // Context sets the context to be used in this call's Do method.
 45211  func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsSecurityProfilesEnvironmentsCreateCall {
 45212  	c.ctx_ = ctx
 45213  	return c
 45214  }
 45215  
 45216  // Header returns a http.Header that can be modified by the caller to add
 45217  // headers to the request.
 45218  func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Header() http.Header {
 45219  	if c.header_ == nil {
 45220  		c.header_ = make(http.Header)
 45221  	}
 45222  	return c.header_
 45223  }
 45224  
 45225  func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 45226  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45227  	var body io.Reader = nil
 45228  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityprofileenvironmentassociation)
 45229  	if err != nil {
 45230  		return nil, err
 45231  	}
 45232  	c.urlParams_.Set("alt", alt)
 45233  	c.urlParams_.Set("prettyPrint", "false")
 45234  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
 45235  	urls += "?" + c.urlParams_.Encode()
 45236  	req, err := http.NewRequest("POST", urls, body)
 45237  	if err != nil {
 45238  		return nil, err
 45239  	}
 45240  	req.Header = reqHeaders
 45241  	googleapi.Expand(req.URL, map[string]string{
 45242  		"parent": c.parent,
 45243  	})
 45244  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45245  }
 45246  
 45247  // Do executes the "apigee.organizations.securityProfiles.environments.create" call.
 45248  // Any non-2xx status code is an error. Response headers are in either
 45249  // *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation.ServerResponse.Head
 45250  // er or (if a response was returned at all) in
 45251  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 45252  // whether the returned error was because http.StatusNotModified was returned.
 45253  func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation, error) {
 45254  	gensupport.SetOptions(c.urlParams_, opts...)
 45255  	res, err := c.doRequest("json")
 45256  	if res != nil && res.StatusCode == http.StatusNotModified {
 45257  		if res.Body != nil {
 45258  			res.Body.Close()
 45259  		}
 45260  		return nil, gensupport.WrapError(&googleapi.Error{
 45261  			Code:   res.StatusCode,
 45262  			Header: res.Header,
 45263  		})
 45264  	}
 45265  	if err != nil {
 45266  		return nil, err
 45267  	}
 45268  	defer googleapi.CloseBody(res)
 45269  	if err := googleapi.CheckResponse(res); err != nil {
 45270  		return nil, gensupport.WrapError(err)
 45271  	}
 45272  	ret := &GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation{
 45273  		ServerResponse: googleapi.ServerResponse{
 45274  			Header:         res.Header,
 45275  			HTTPStatusCode: res.StatusCode,
 45276  		},
 45277  	}
 45278  	target := &ret
 45279  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45280  		return nil, err
 45281  	}
 45282  	return ret, nil
 45283  }
 45284  
 45285  type OrganizationsSecurityProfilesEnvironmentsDeleteCall struct {
 45286  	s          *Service
 45287  	name       string
 45288  	urlParams_ gensupport.URLParams
 45289  	ctx_       context.Context
 45290  	header_    http.Header
 45291  }
 45292  
 45293  // Delete: DeleteSecurityProfileEnvironmentAssociation removes profile
 45294  // environment association i.e. detaches environment from security profile.
 45295  //
 45296  //   - name: The name of the environment attachment to delete. Format:
 45297  //     organizations/{org}/securityProfiles/{profile}/environments/{env}.
 45298  func (r *OrganizationsSecurityProfilesEnvironmentsService) Delete(name string) *OrganizationsSecurityProfilesEnvironmentsDeleteCall {
 45299  	c := &OrganizationsSecurityProfilesEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45300  	c.name = name
 45301  	return c
 45302  }
 45303  
 45304  // Fields allows partial responses to be retrieved. See
 45305  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45306  // details.
 45307  func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesEnvironmentsDeleteCall {
 45308  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45309  	return c
 45310  }
 45311  
 45312  // Context sets the context to be used in this call's Do method.
 45313  func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsSecurityProfilesEnvironmentsDeleteCall {
 45314  	c.ctx_ = ctx
 45315  	return c
 45316  }
 45317  
 45318  // Header returns a http.Header that can be modified by the caller to add
 45319  // headers to the request.
 45320  func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Header() http.Header {
 45321  	if c.header_ == nil {
 45322  		c.header_ = make(http.Header)
 45323  	}
 45324  	return c.header_
 45325  }
 45326  
 45327  func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 45328  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45329  	var body io.Reader = nil
 45330  	c.urlParams_.Set("alt", alt)
 45331  	c.urlParams_.Set("prettyPrint", "false")
 45332  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 45333  	urls += "?" + c.urlParams_.Encode()
 45334  	req, err := http.NewRequest("DELETE", urls, body)
 45335  	if err != nil {
 45336  		return nil, err
 45337  	}
 45338  	req.Header = reqHeaders
 45339  	googleapi.Expand(req.URL, map[string]string{
 45340  		"name": c.name,
 45341  	})
 45342  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45343  }
 45344  
 45345  // Do executes the "apigee.organizations.securityProfiles.environments.delete" call.
 45346  // Any non-2xx status code is an error. Response headers are in either
 45347  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 45348  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 45349  // check whether the returned error was because http.StatusNotModified was
 45350  // returned.
 45351  func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 45352  	gensupport.SetOptions(c.urlParams_, opts...)
 45353  	res, err := c.doRequest("json")
 45354  	if res != nil && res.StatusCode == http.StatusNotModified {
 45355  		if res.Body != nil {
 45356  			res.Body.Close()
 45357  		}
 45358  		return nil, gensupport.WrapError(&googleapi.Error{
 45359  			Code:   res.StatusCode,
 45360  			Header: res.Header,
 45361  		})
 45362  	}
 45363  	if err != nil {
 45364  		return nil, err
 45365  	}
 45366  	defer googleapi.CloseBody(res)
 45367  	if err := googleapi.CheckResponse(res); err != nil {
 45368  		return nil, gensupport.WrapError(err)
 45369  	}
 45370  	ret := &GoogleProtobufEmpty{
 45371  		ServerResponse: googleapi.ServerResponse{
 45372  			Header:         res.Header,
 45373  			HTTPStatusCode: res.StatusCode,
 45374  		},
 45375  	}
 45376  	target := &ret
 45377  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45378  		return nil, err
 45379  	}
 45380  	return ret, nil
 45381  }
 45382  
 45383  type OrganizationsSharedflowsCreateCall struct {
 45384  	s                 *Service
 45385  	parent            string
 45386  	googleapihttpbody *GoogleApiHttpBody
 45387  	urlParams_        gensupport.URLParams
 45388  	ctx_              context.Context
 45389  	header_           http.Header
 45390  }
 45391  
 45392  // Create: Uploads a ZIP-formatted shared flow configuration bundle to an
 45393  // organization. If the shared flow already exists, this creates a new revision
 45394  // of it. If the shared flow does not exist, this creates it. Once imported,
 45395  // the shared flow revision must be deployed before it can be accessed at
 45396  // runtime. The size limit of a shared flow bundle is 15 MB.
 45397  //
 45398  //   - parent: The name of the parent organization under which to create the
 45399  //     shared flow. Must be of the form: `organizations/{organization_id}`.
 45400  func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
 45401  	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45402  	c.parent = parent
 45403  	c.googleapihttpbody = googleapihttpbody
 45404  	return c
 45405  }
 45406  
 45407  // Action sets the optional parameter "action": Required. Must be set to either
 45408  // `import` or `validate`.
 45409  func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
 45410  	c.urlParams_.Set("action", action)
 45411  	return c
 45412  }
 45413  
 45414  // Name sets the optional parameter "name": Required. The name to give the
 45415  // shared flow
 45416  func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
 45417  	c.urlParams_.Set("name", name)
 45418  	return c
 45419  }
 45420  
 45421  // Fields allows partial responses to be retrieved. See
 45422  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45423  // details.
 45424  func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
 45425  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45426  	return c
 45427  }
 45428  
 45429  // Context sets the context to be used in this call's Do method.
 45430  func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
 45431  	c.ctx_ = ctx
 45432  	return c
 45433  }
 45434  
 45435  // Header returns a http.Header that can be modified by the caller to add
 45436  // headers to the request.
 45437  func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
 45438  	if c.header_ == nil {
 45439  		c.header_ = make(http.Header)
 45440  	}
 45441  	return c.header_
 45442  }
 45443  
 45444  func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
 45445  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45446  	var body io.Reader = nil
 45447  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 45448  	if err != nil {
 45449  		return nil, err
 45450  	}
 45451  	c.urlParams_.Set("alt", alt)
 45452  	c.urlParams_.Set("prettyPrint", "false")
 45453  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
 45454  	urls += "?" + c.urlParams_.Encode()
 45455  	req, err := http.NewRequest("POST", urls, body)
 45456  	if err != nil {
 45457  		return nil, err
 45458  	}
 45459  	req.Header = reqHeaders
 45460  	googleapi.Expand(req.URL, map[string]string{
 45461  		"parent": c.parent,
 45462  	})
 45463  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45464  }
 45465  
 45466  // Do executes the "apigee.organizations.sharedflows.create" call.
 45467  // Any non-2xx status code is an error. Response headers are in either
 45468  // *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
 45469  // response was returned at all) in error.(*googleapi.Error).Header. Use
 45470  // googleapi.IsNotModified to check whether the returned error was because
 45471  // http.StatusNotModified was returned.
 45472  func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
 45473  	gensupport.SetOptions(c.urlParams_, opts...)
 45474  	res, err := c.doRequest("json")
 45475  	if res != nil && res.StatusCode == http.StatusNotModified {
 45476  		if res.Body != nil {
 45477  			res.Body.Close()
 45478  		}
 45479  		return nil, gensupport.WrapError(&googleapi.Error{
 45480  			Code:   res.StatusCode,
 45481  			Header: res.Header,
 45482  		})
 45483  	}
 45484  	if err != nil {
 45485  		return nil, err
 45486  	}
 45487  	defer googleapi.CloseBody(res)
 45488  	if err := googleapi.CheckResponse(res); err != nil {
 45489  		return nil, gensupport.WrapError(err)
 45490  	}
 45491  	ret := &GoogleCloudApigeeV1SharedFlowRevision{
 45492  		ServerResponse: googleapi.ServerResponse{
 45493  			Header:         res.Header,
 45494  			HTTPStatusCode: res.StatusCode,
 45495  		},
 45496  	}
 45497  	target := &ret
 45498  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45499  		return nil, err
 45500  	}
 45501  	return ret, nil
 45502  }
 45503  
 45504  type OrganizationsSharedflowsDeleteCall struct {
 45505  	s          *Service
 45506  	name       string
 45507  	urlParams_ gensupport.URLParams
 45508  	ctx_       context.Context
 45509  	header_    http.Header
 45510  }
 45511  
 45512  // Delete: Deletes a shared flow and all it's revisions. The shared flow must
 45513  // be undeployed before you can delete it.
 45514  //
 45515  //   - name: shared flow name of the form:
 45516  //     `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
 45517  func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
 45518  	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45519  	c.name = name
 45520  	return c
 45521  }
 45522  
 45523  // Fields allows partial responses to be retrieved. See
 45524  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45525  // details.
 45526  func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
 45527  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45528  	return c
 45529  }
 45530  
 45531  // Context sets the context to be used in this call's Do method.
 45532  func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
 45533  	c.ctx_ = ctx
 45534  	return c
 45535  }
 45536  
 45537  // Header returns a http.Header that can be modified by the caller to add
 45538  // headers to the request.
 45539  func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
 45540  	if c.header_ == nil {
 45541  		c.header_ = make(http.Header)
 45542  	}
 45543  	return c.header_
 45544  }
 45545  
 45546  func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
 45547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45548  	var body io.Reader = nil
 45549  	c.urlParams_.Set("alt", alt)
 45550  	c.urlParams_.Set("prettyPrint", "false")
 45551  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 45552  	urls += "?" + c.urlParams_.Encode()
 45553  	req, err := http.NewRequest("DELETE", urls, body)
 45554  	if err != nil {
 45555  		return nil, err
 45556  	}
 45557  	req.Header = reqHeaders
 45558  	googleapi.Expand(req.URL, map[string]string{
 45559  		"name": c.name,
 45560  	})
 45561  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45562  }
 45563  
 45564  // Do executes the "apigee.organizations.sharedflows.delete" call.
 45565  // Any non-2xx status code is an error. Response headers are in either
 45566  // *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a response was
 45567  // returned at all) in error.(*googleapi.Error).Header. Use
 45568  // googleapi.IsNotModified to check whether the returned error was because
 45569  // http.StatusNotModified was returned.
 45570  func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
 45571  	gensupport.SetOptions(c.urlParams_, opts...)
 45572  	res, err := c.doRequest("json")
 45573  	if res != nil && res.StatusCode == http.StatusNotModified {
 45574  		if res.Body != nil {
 45575  			res.Body.Close()
 45576  		}
 45577  		return nil, gensupport.WrapError(&googleapi.Error{
 45578  			Code:   res.StatusCode,
 45579  			Header: res.Header,
 45580  		})
 45581  	}
 45582  	if err != nil {
 45583  		return nil, err
 45584  	}
 45585  	defer googleapi.CloseBody(res)
 45586  	if err := googleapi.CheckResponse(res); err != nil {
 45587  		return nil, gensupport.WrapError(err)
 45588  	}
 45589  	ret := &GoogleCloudApigeeV1SharedFlow{
 45590  		ServerResponse: googleapi.ServerResponse{
 45591  			Header:         res.Header,
 45592  			HTTPStatusCode: res.StatusCode,
 45593  		},
 45594  	}
 45595  	target := &ret
 45596  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45597  		return nil, err
 45598  	}
 45599  	return ret, nil
 45600  }
 45601  
 45602  type OrganizationsSharedflowsGetCall struct {
 45603  	s            *Service
 45604  	name         string
 45605  	urlParams_   gensupport.URLParams
 45606  	ifNoneMatch_ string
 45607  	ctx_         context.Context
 45608  	header_      http.Header
 45609  }
 45610  
 45611  // Get: Gets a shared flow by name, including a list of its revisions.
 45612  //
 45613  //   - name: The name of the shared flow to get. Must be of the form:
 45614  //     `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
 45615  func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
 45616  	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45617  	c.name = name
 45618  	return c
 45619  }
 45620  
 45621  // Fields allows partial responses to be retrieved. See
 45622  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45623  // details.
 45624  func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
 45625  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45626  	return c
 45627  }
 45628  
 45629  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45630  // object's ETag matches the given value. This is useful for getting updates
 45631  // only after the object has changed since the last request.
 45632  func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
 45633  	c.ifNoneMatch_ = entityTag
 45634  	return c
 45635  }
 45636  
 45637  // Context sets the context to be used in this call's Do method.
 45638  func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
 45639  	c.ctx_ = ctx
 45640  	return c
 45641  }
 45642  
 45643  // Header returns a http.Header that can be modified by the caller to add
 45644  // headers to the request.
 45645  func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
 45646  	if c.header_ == nil {
 45647  		c.header_ = make(http.Header)
 45648  	}
 45649  	return c.header_
 45650  }
 45651  
 45652  func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
 45653  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45654  	if c.ifNoneMatch_ != "" {
 45655  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45656  	}
 45657  	var body io.Reader = nil
 45658  	c.urlParams_.Set("alt", alt)
 45659  	c.urlParams_.Set("prettyPrint", "false")
 45660  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 45661  	urls += "?" + c.urlParams_.Encode()
 45662  	req, err := http.NewRequest("GET", urls, body)
 45663  	if err != nil {
 45664  		return nil, err
 45665  	}
 45666  	req.Header = reqHeaders
 45667  	googleapi.Expand(req.URL, map[string]string{
 45668  		"name": c.name,
 45669  	})
 45670  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45671  }
 45672  
 45673  // Do executes the "apigee.organizations.sharedflows.get" call.
 45674  // Any non-2xx status code is an error. Response headers are in either
 45675  // *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a response was
 45676  // returned at all) in error.(*googleapi.Error).Header. Use
 45677  // googleapi.IsNotModified to check whether the returned error was because
 45678  // http.StatusNotModified was returned.
 45679  func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
 45680  	gensupport.SetOptions(c.urlParams_, opts...)
 45681  	res, err := c.doRequest("json")
 45682  	if res != nil && res.StatusCode == http.StatusNotModified {
 45683  		if res.Body != nil {
 45684  			res.Body.Close()
 45685  		}
 45686  		return nil, gensupport.WrapError(&googleapi.Error{
 45687  			Code:   res.StatusCode,
 45688  			Header: res.Header,
 45689  		})
 45690  	}
 45691  	if err != nil {
 45692  		return nil, err
 45693  	}
 45694  	defer googleapi.CloseBody(res)
 45695  	if err := googleapi.CheckResponse(res); err != nil {
 45696  		return nil, gensupport.WrapError(err)
 45697  	}
 45698  	ret := &GoogleCloudApigeeV1SharedFlow{
 45699  		ServerResponse: googleapi.ServerResponse{
 45700  			Header:         res.Header,
 45701  			HTTPStatusCode: res.StatusCode,
 45702  		},
 45703  	}
 45704  	target := &ret
 45705  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45706  		return nil, err
 45707  	}
 45708  	return ret, nil
 45709  }
 45710  
 45711  type OrganizationsSharedflowsListCall struct {
 45712  	s            *Service
 45713  	parent       string
 45714  	urlParams_   gensupport.URLParams
 45715  	ifNoneMatch_ string
 45716  	ctx_         context.Context
 45717  	header_      http.Header
 45718  }
 45719  
 45720  // List: Lists all shared flows in the organization.
 45721  //
 45722  //   - parent: The name of the parent organization under which to get shared
 45723  //     flows. Must be of the form: `organizations/{organization_id}`.
 45724  func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
 45725  	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45726  	c.parent = parent
 45727  	return c
 45728  }
 45729  
 45730  // IncludeMetaData sets the optional parameter "includeMetaData": Indicates
 45731  // whether to include shared flow metadata in the response.
 45732  func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
 45733  	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
 45734  	return c
 45735  }
 45736  
 45737  // IncludeRevisions sets the optional parameter "includeRevisions": Indicates
 45738  // whether to include a list of revisions in the response.
 45739  func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
 45740  	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
 45741  	return c
 45742  }
 45743  
 45744  // Fields allows partial responses to be retrieved. See
 45745  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45746  // details.
 45747  func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
 45748  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45749  	return c
 45750  }
 45751  
 45752  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45753  // object's ETag matches the given value. This is useful for getting updates
 45754  // only after the object has changed since the last request.
 45755  func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
 45756  	c.ifNoneMatch_ = entityTag
 45757  	return c
 45758  }
 45759  
 45760  // Context sets the context to be used in this call's Do method.
 45761  func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
 45762  	c.ctx_ = ctx
 45763  	return c
 45764  }
 45765  
 45766  // Header returns a http.Header that can be modified by the caller to add
 45767  // headers to the request.
 45768  func (c *OrganizationsSharedflowsListCall) Header() http.Header {
 45769  	if c.header_ == nil {
 45770  		c.header_ = make(http.Header)
 45771  	}
 45772  	return c.header_
 45773  }
 45774  
 45775  func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
 45776  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45777  	if c.ifNoneMatch_ != "" {
 45778  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45779  	}
 45780  	var body io.Reader = nil
 45781  	c.urlParams_.Set("alt", alt)
 45782  	c.urlParams_.Set("prettyPrint", "false")
 45783  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
 45784  	urls += "?" + c.urlParams_.Encode()
 45785  	req, err := http.NewRequest("GET", urls, body)
 45786  	if err != nil {
 45787  		return nil, err
 45788  	}
 45789  	req.Header = reqHeaders
 45790  	googleapi.Expand(req.URL, map[string]string{
 45791  		"parent": c.parent,
 45792  	})
 45793  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45794  }
 45795  
 45796  // Do executes the "apigee.organizations.sharedflows.list" call.
 45797  // Any non-2xx status code is an error. Response headers are in either
 45798  // *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or (if a
 45799  // response was returned at all) in error.(*googleapi.Error).Header. Use
 45800  // googleapi.IsNotModified to check whether the returned error was because
 45801  // http.StatusNotModified was returned.
 45802  func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
 45803  	gensupport.SetOptions(c.urlParams_, opts...)
 45804  	res, err := c.doRequest("json")
 45805  	if res != nil && res.StatusCode == http.StatusNotModified {
 45806  		if res.Body != nil {
 45807  			res.Body.Close()
 45808  		}
 45809  		return nil, gensupport.WrapError(&googleapi.Error{
 45810  			Code:   res.StatusCode,
 45811  			Header: res.Header,
 45812  		})
 45813  	}
 45814  	if err != nil {
 45815  		return nil, err
 45816  	}
 45817  	defer googleapi.CloseBody(res)
 45818  	if err := googleapi.CheckResponse(res); err != nil {
 45819  		return nil, gensupport.WrapError(err)
 45820  	}
 45821  	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
 45822  		ServerResponse: googleapi.ServerResponse{
 45823  			Header:         res.Header,
 45824  			HTTPStatusCode: res.StatusCode,
 45825  		},
 45826  	}
 45827  	target := &ret
 45828  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45829  		return nil, err
 45830  	}
 45831  	return ret, nil
 45832  }
 45833  
 45834  type OrganizationsSharedflowsDeploymentsListCall struct {
 45835  	s            *Service
 45836  	parent       string
 45837  	urlParams_   gensupport.URLParams
 45838  	ifNoneMatch_ string
 45839  	ctx_         context.Context
 45840  	header_      http.Header
 45841  }
 45842  
 45843  // List: Lists all deployments of a shared flow.
 45844  //
 45845  //   - parent: Name of the shared flow for which to return deployment information
 45846  //     in the following format: `organizations/{org}/sharedflows/{sharedflow}`.
 45847  func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
 45848  	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45849  	c.parent = parent
 45850  	return c
 45851  }
 45852  
 45853  // Fields allows partial responses to be retrieved. See
 45854  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45855  // details.
 45856  func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
 45857  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45858  	return c
 45859  }
 45860  
 45861  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45862  // object's ETag matches the given value. This is useful for getting updates
 45863  // only after the object has changed since the last request.
 45864  func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
 45865  	c.ifNoneMatch_ = entityTag
 45866  	return c
 45867  }
 45868  
 45869  // Context sets the context to be used in this call's Do method.
 45870  func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
 45871  	c.ctx_ = ctx
 45872  	return c
 45873  }
 45874  
 45875  // Header returns a http.Header that can be modified by the caller to add
 45876  // headers to the request.
 45877  func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
 45878  	if c.header_ == nil {
 45879  		c.header_ = make(http.Header)
 45880  	}
 45881  	return c.header_
 45882  }
 45883  
 45884  func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 45885  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45886  	if c.ifNoneMatch_ != "" {
 45887  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45888  	}
 45889  	var body io.Reader = nil
 45890  	c.urlParams_.Set("alt", alt)
 45891  	c.urlParams_.Set("prettyPrint", "false")
 45892  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 45893  	urls += "?" + c.urlParams_.Encode()
 45894  	req, err := http.NewRequest("GET", urls, body)
 45895  	if err != nil {
 45896  		return nil, err
 45897  	}
 45898  	req.Header = reqHeaders
 45899  	googleapi.Expand(req.URL, map[string]string{
 45900  		"parent": c.parent,
 45901  	})
 45902  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45903  }
 45904  
 45905  // Do executes the "apigee.organizations.sharedflows.deployments.list" call.
 45906  // Any non-2xx status code is an error. Response headers are in either
 45907  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 45908  // response was returned at all) in error.(*googleapi.Error).Header. Use
 45909  // googleapi.IsNotModified to check whether the returned error was because
 45910  // http.StatusNotModified was returned.
 45911  func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 45912  	gensupport.SetOptions(c.urlParams_, opts...)
 45913  	res, err := c.doRequest("json")
 45914  	if res != nil && res.StatusCode == http.StatusNotModified {
 45915  		if res.Body != nil {
 45916  			res.Body.Close()
 45917  		}
 45918  		return nil, gensupport.WrapError(&googleapi.Error{
 45919  			Code:   res.StatusCode,
 45920  			Header: res.Header,
 45921  		})
 45922  	}
 45923  	if err != nil {
 45924  		return nil, err
 45925  	}
 45926  	defer googleapi.CloseBody(res)
 45927  	if err := googleapi.CheckResponse(res); err != nil {
 45928  		return nil, gensupport.WrapError(err)
 45929  	}
 45930  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 45931  		ServerResponse: googleapi.ServerResponse{
 45932  			Header:         res.Header,
 45933  			HTTPStatusCode: res.StatusCode,
 45934  		},
 45935  	}
 45936  	target := &ret
 45937  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45938  		return nil, err
 45939  	}
 45940  	return ret, nil
 45941  }
 45942  
 45943  type OrganizationsSharedflowsRevisionsDeleteCall struct {
 45944  	s          *Service
 45945  	name       string
 45946  	urlParams_ gensupport.URLParams
 45947  	ctx_       context.Context
 45948  	header_    http.Header
 45949  }
 45950  
 45951  // Delete: Deletes a shared flow and all associated policies, resources, and
 45952  // revisions. You must undeploy the shared flow before deleting it.
 45953  //
 45954  //   - name: The name of the shared flow revision to delete. Must be of the form:
 45955  //     `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{re
 45956  //     vision_id}`.
 45957  func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
 45958  	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45959  	c.name = name
 45960  	return c
 45961  }
 45962  
 45963  // Fields allows partial responses to be retrieved. See
 45964  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45965  // details.
 45966  func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
 45967  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45968  	return c
 45969  }
 45970  
 45971  // Context sets the context to be used in this call's Do method.
 45972  func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
 45973  	c.ctx_ = ctx
 45974  	return c
 45975  }
 45976  
 45977  // Header returns a http.Header that can be modified by the caller to add
 45978  // headers to the request.
 45979  func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
 45980  	if c.header_ == nil {
 45981  		c.header_ = make(http.Header)
 45982  	}
 45983  	return c.header_
 45984  }
 45985  
 45986  func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 45987  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45988  	var body io.Reader = nil
 45989  	c.urlParams_.Set("alt", alt)
 45990  	c.urlParams_.Set("prettyPrint", "false")
 45991  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 45992  	urls += "?" + c.urlParams_.Encode()
 45993  	req, err := http.NewRequest("DELETE", urls, body)
 45994  	if err != nil {
 45995  		return nil, err
 45996  	}
 45997  	req.Header = reqHeaders
 45998  	googleapi.Expand(req.URL, map[string]string{
 45999  		"name": c.name,
 46000  	})
 46001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46002  }
 46003  
 46004  // Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
 46005  // Any non-2xx status code is an error. Response headers are in either
 46006  // *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
 46007  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46008  // googleapi.IsNotModified to check whether the returned error was because
 46009  // http.StatusNotModified was returned.
 46010  func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
 46011  	gensupport.SetOptions(c.urlParams_, opts...)
 46012  	res, err := c.doRequest("json")
 46013  	if res != nil && res.StatusCode == http.StatusNotModified {
 46014  		if res.Body != nil {
 46015  			res.Body.Close()
 46016  		}
 46017  		return nil, gensupport.WrapError(&googleapi.Error{
 46018  			Code:   res.StatusCode,
 46019  			Header: res.Header,
 46020  		})
 46021  	}
 46022  	if err != nil {
 46023  		return nil, err
 46024  	}
 46025  	defer googleapi.CloseBody(res)
 46026  	if err := googleapi.CheckResponse(res); err != nil {
 46027  		return nil, gensupport.WrapError(err)
 46028  	}
 46029  	ret := &GoogleCloudApigeeV1SharedFlowRevision{
 46030  		ServerResponse: googleapi.ServerResponse{
 46031  			Header:         res.Header,
 46032  			HTTPStatusCode: res.StatusCode,
 46033  		},
 46034  	}
 46035  	target := &ret
 46036  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46037  		return nil, err
 46038  	}
 46039  	return ret, nil
 46040  }
 46041  
 46042  type OrganizationsSharedflowsRevisionsGetCall struct {
 46043  	s            *Service
 46044  	name         string
 46045  	urlParams_   gensupport.URLParams
 46046  	ifNoneMatch_ string
 46047  	ctx_         context.Context
 46048  	header_      http.Header
 46049  }
 46050  
 46051  // Get: Gets a revision of a shared flow. To download the shared flow
 46052  // configuration bundle for the specified revision as a zip file, set the
 46053  // `format` query parameter to `bundle`. If you are using curl, specify `-o
 46054  // filename.zip` to save the output to a file; otherwise, it displays to
 46055  // `stdout`. Then, develop the shared flow configuration locally and upload the
 46056  // updated sharedFlow configuration revision, as described in
 46057  // updateSharedFlowRevision (updateSharedFlowRevision).
 46058  //
 46059  //   - name: The name of the shared flow revision to get. Must be of the form:
 46060  //     `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{re
 46061  //     vision_id}`.
 46062  func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
 46063  	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46064  	c.name = name
 46065  	return c
 46066  }
 46067  
 46068  // Format sets the optional parameter "format": Specify `bundle` to export the
 46069  // contents of the shared flow bundle. Otherwise, the bundle metadata is
 46070  // returned.
 46071  func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
 46072  	c.urlParams_.Set("format", format)
 46073  	return c
 46074  }
 46075  
 46076  // Fields allows partial responses to be retrieved. See
 46077  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46078  // details.
 46079  func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
 46080  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46081  	return c
 46082  }
 46083  
 46084  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46085  // object's ETag matches the given value. This is useful for getting updates
 46086  // only after the object has changed since the last request.
 46087  func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
 46088  	c.ifNoneMatch_ = entityTag
 46089  	return c
 46090  }
 46091  
 46092  // Context sets the context to be used in this call's Do method.
 46093  func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
 46094  	c.ctx_ = ctx
 46095  	return c
 46096  }
 46097  
 46098  // Header returns a http.Header that can be modified by the caller to add
 46099  // headers to the request.
 46100  func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
 46101  	if c.header_ == nil {
 46102  		c.header_ = make(http.Header)
 46103  	}
 46104  	return c.header_
 46105  }
 46106  
 46107  func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
 46108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46109  	if c.ifNoneMatch_ != "" {
 46110  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46111  	}
 46112  	var body io.Reader = nil
 46113  	c.urlParams_.Set("alt", alt)
 46114  	c.urlParams_.Set("prettyPrint", "false")
 46115  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 46116  	urls += "?" + c.urlParams_.Encode()
 46117  	req, err := http.NewRequest("GET", urls, body)
 46118  	if err != nil {
 46119  		return nil, err
 46120  	}
 46121  	req.Header = reqHeaders
 46122  	googleapi.Expand(req.URL, map[string]string{
 46123  		"name": c.name,
 46124  	})
 46125  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46126  }
 46127  
 46128  // Do executes the "apigee.organizations.sharedflows.revisions.get" call.
 46129  // Any non-2xx status code is an error. Response headers are in either
 46130  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 46131  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 46132  // check whether the returned error was because http.StatusNotModified was
 46133  // returned.
 46134  func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 46135  	gensupport.SetOptions(c.urlParams_, opts...)
 46136  	res, err := c.doRequest("json")
 46137  	if res != nil && res.StatusCode == http.StatusNotModified {
 46138  		if res.Body != nil {
 46139  			res.Body.Close()
 46140  		}
 46141  		return nil, gensupport.WrapError(&googleapi.Error{
 46142  			Code:   res.StatusCode,
 46143  			Header: res.Header,
 46144  		})
 46145  	}
 46146  	if err != nil {
 46147  		return nil, err
 46148  	}
 46149  	defer googleapi.CloseBody(res)
 46150  	if err := googleapi.CheckResponse(res); err != nil {
 46151  		return nil, gensupport.WrapError(err)
 46152  	}
 46153  	ret := &GoogleApiHttpBody{
 46154  		ServerResponse: googleapi.ServerResponse{
 46155  			Header:         res.Header,
 46156  			HTTPStatusCode: res.StatusCode,
 46157  		},
 46158  	}
 46159  	target := &ret
 46160  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46161  		return nil, err
 46162  	}
 46163  	return ret, nil
 46164  }
 46165  
 46166  type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
 46167  	s                 *Service
 46168  	name              string
 46169  	googleapihttpbody *GoogleApiHttpBody
 46170  	urlParams_        gensupport.URLParams
 46171  	ctx_              context.Context
 46172  	header_           http.Header
 46173  }
 46174  
 46175  // UpdateSharedFlowRevision: Updates a shared flow revision. This operation is
 46176  // only allowed on revisions which have never been deployed. After deployment a
 46177  // revision becomes immutable, even if it becomes undeployed. The payload is a
 46178  // ZIP-formatted shared flow. Content type must be either multipart/form-data
 46179  // or application/octet-stream.
 46180  //
 46181  //   - name: The name of the shared flow revision to update. Must be of the form:
 46182  //     `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{re
 46183  //     vision_id}`.
 46184  func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
 46185  	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46186  	c.name = name
 46187  	c.googleapihttpbody = googleapihttpbody
 46188  	return c
 46189  }
 46190  
 46191  // Validate sets the optional parameter "validate": Ignored. All uploads are
 46192  // validated regardless of the value of this field. It is kept for
 46193  // compatibility with existing APIs. Must be `true` or `false` if provided.
 46194  func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
 46195  	c.urlParams_.Set("validate", fmt.Sprint(validate))
 46196  	return c
 46197  }
 46198  
 46199  // Fields allows partial responses to be retrieved. See
 46200  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46201  // details.
 46202  func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
 46203  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46204  	return c
 46205  }
 46206  
 46207  // Context sets the context to be used in this call's Do method.
 46208  func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
 46209  	c.ctx_ = ctx
 46210  	return c
 46211  }
 46212  
 46213  // Header returns a http.Header that can be modified by the caller to add
 46214  // headers to the request.
 46215  func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
 46216  	if c.header_ == nil {
 46217  		c.header_ = make(http.Header)
 46218  	}
 46219  	return c.header_
 46220  }
 46221  
 46222  func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
 46223  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46224  	var body io.Reader = nil
 46225  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
 46226  	if err != nil {
 46227  		return nil, err
 46228  	}
 46229  	c.urlParams_.Set("alt", alt)
 46230  	c.urlParams_.Set("prettyPrint", "false")
 46231  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 46232  	urls += "?" + c.urlParams_.Encode()
 46233  	req, err := http.NewRequest("POST", urls, body)
 46234  	if err != nil {
 46235  		return nil, err
 46236  	}
 46237  	req.Header = reqHeaders
 46238  	googleapi.Expand(req.URL, map[string]string{
 46239  		"name": c.name,
 46240  	})
 46241  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46242  }
 46243  
 46244  // Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
 46245  // Any non-2xx status code is an error. Response headers are in either
 46246  // *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
 46247  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46248  // googleapi.IsNotModified to check whether the returned error was because
 46249  // http.StatusNotModified was returned.
 46250  func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
 46251  	gensupport.SetOptions(c.urlParams_, opts...)
 46252  	res, err := c.doRequest("json")
 46253  	if res != nil && res.StatusCode == http.StatusNotModified {
 46254  		if res.Body != nil {
 46255  			res.Body.Close()
 46256  		}
 46257  		return nil, gensupport.WrapError(&googleapi.Error{
 46258  			Code:   res.StatusCode,
 46259  			Header: res.Header,
 46260  		})
 46261  	}
 46262  	if err != nil {
 46263  		return nil, err
 46264  	}
 46265  	defer googleapi.CloseBody(res)
 46266  	if err := googleapi.CheckResponse(res); err != nil {
 46267  		return nil, gensupport.WrapError(err)
 46268  	}
 46269  	ret := &GoogleCloudApigeeV1SharedFlowRevision{
 46270  		ServerResponse: googleapi.ServerResponse{
 46271  			Header:         res.Header,
 46272  			HTTPStatusCode: res.StatusCode,
 46273  		},
 46274  	}
 46275  	target := &ret
 46276  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46277  		return nil, err
 46278  	}
 46279  	return ret, nil
 46280  }
 46281  
 46282  type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
 46283  	s            *Service
 46284  	parent       string
 46285  	urlParams_   gensupport.URLParams
 46286  	ifNoneMatch_ string
 46287  	ctx_         context.Context
 46288  	header_      http.Header
 46289  }
 46290  
 46291  // List: Lists all deployments of a shared flow revision.
 46292  //
 46293  //   - parent: Name of the API proxy revision for which to return deployment
 46294  //     information in the following format:
 46295  //     `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.
 46296  func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
 46297  	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46298  	c.parent = parent
 46299  	return c
 46300  }
 46301  
 46302  // Fields allows partial responses to be retrieved. See
 46303  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46304  // details.
 46305  func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
 46306  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46307  	return c
 46308  }
 46309  
 46310  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46311  // object's ETag matches the given value. This is useful for getting updates
 46312  // only after the object has changed since the last request.
 46313  func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
 46314  	c.ifNoneMatch_ = entityTag
 46315  	return c
 46316  }
 46317  
 46318  // Context sets the context to be used in this call's Do method.
 46319  func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
 46320  	c.ctx_ = ctx
 46321  	return c
 46322  }
 46323  
 46324  // Header returns a http.Header that can be modified by the caller to add
 46325  // headers to the request.
 46326  func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
 46327  	if c.header_ == nil {
 46328  		c.header_ = make(http.Header)
 46329  	}
 46330  	return c.header_
 46331  }
 46332  
 46333  func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 46334  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46335  	if c.ifNoneMatch_ != "" {
 46336  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46337  	}
 46338  	var body io.Reader = nil
 46339  	c.urlParams_.Set("alt", alt)
 46340  	c.urlParams_.Set("prettyPrint", "false")
 46341  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
 46342  	urls += "?" + c.urlParams_.Encode()
 46343  	req, err := http.NewRequest("GET", urls, body)
 46344  	if err != nil {
 46345  		return nil, err
 46346  	}
 46347  	req.Header = reqHeaders
 46348  	googleapi.Expand(req.URL, map[string]string{
 46349  		"parent": c.parent,
 46350  	})
 46351  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46352  }
 46353  
 46354  // Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
 46355  // Any non-2xx status code is an error. Response headers are in either
 46356  // *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or (if a
 46357  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46358  // googleapi.IsNotModified to check whether the returned error was because
 46359  // http.StatusNotModified was returned.
 46360  func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
 46361  	gensupport.SetOptions(c.urlParams_, opts...)
 46362  	res, err := c.doRequest("json")
 46363  	if res != nil && res.StatusCode == http.StatusNotModified {
 46364  		if res.Body != nil {
 46365  			res.Body.Close()
 46366  		}
 46367  		return nil, gensupport.WrapError(&googleapi.Error{
 46368  			Code:   res.StatusCode,
 46369  			Header: res.Header,
 46370  		})
 46371  	}
 46372  	if err != nil {
 46373  		return nil, err
 46374  	}
 46375  	defer googleapi.CloseBody(res)
 46376  	if err := googleapi.CheckResponse(res); err != nil {
 46377  		return nil, gensupport.WrapError(err)
 46378  	}
 46379  	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
 46380  		ServerResponse: googleapi.ServerResponse{
 46381  			Header:         res.Header,
 46382  			HTTPStatusCode: res.StatusCode,
 46383  		},
 46384  	}
 46385  	target := &ret
 46386  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46387  		return nil, err
 46388  	}
 46389  	return ret, nil
 46390  }
 46391  
 46392  type OrganizationsSitesApicategoriesCreateCall struct {
 46393  	s                              *Service
 46394  	parent                         string
 46395  	googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory
 46396  	urlParams_                     gensupport.URLParams
 46397  	ctx_                           context.Context
 46398  	header_                        http.Header
 46399  }
 46400  
 46401  // Create: Creates a new API category.
 46402  //
 46403  //   - parent: Name of the portal. Use the following structure in your request:
 46404  //     `organizations/{org}/sites/{site}`.
 46405  func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory) *OrganizationsSitesApicategoriesCreateCall {
 46406  	c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46407  	c.parent = parent
 46408  	c.googlecloudapigeev1apicategory = googlecloudapigeev1apicategory
 46409  	return c
 46410  }
 46411  
 46412  // Fields allows partial responses to be retrieved. See
 46413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46414  // details.
 46415  func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
 46416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46417  	return c
 46418  }
 46419  
 46420  // Context sets the context to be used in this call's Do method.
 46421  func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
 46422  	c.ctx_ = ctx
 46423  	return c
 46424  }
 46425  
 46426  // Header returns a http.Header that can be modified by the caller to add
 46427  // headers to the request.
 46428  func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
 46429  	if c.header_ == nil {
 46430  		c.header_ = make(http.Header)
 46431  	}
 46432  	return c.header_
 46433  }
 46434  
 46435  func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
 46436  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46437  	var body io.Reader = nil
 46438  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategory)
 46439  	if err != nil {
 46440  		return nil, err
 46441  	}
 46442  	c.urlParams_.Set("alt", alt)
 46443  	c.urlParams_.Set("prettyPrint", "false")
 46444  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
 46445  	urls += "?" + c.urlParams_.Encode()
 46446  	req, err := http.NewRequest("POST", urls, body)
 46447  	if err != nil {
 46448  		return nil, err
 46449  	}
 46450  	req.Header = reqHeaders
 46451  	googleapi.Expand(req.URL, map[string]string{
 46452  		"parent": c.parent,
 46453  	})
 46454  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46455  }
 46456  
 46457  // Do executes the "apigee.organizations.sites.apicategories.create" call.
 46458  // Any non-2xx status code is an error. Response headers are in either
 46459  // *GoogleCloudApigeeV1ApiCategoryResponse.ServerResponse.Header or (if a
 46460  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46461  // googleapi.IsNotModified to check whether the returned error was because
 46462  // http.StatusNotModified was returned.
 46463  func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategoryResponse, error) {
 46464  	gensupport.SetOptions(c.urlParams_, opts...)
 46465  	res, err := c.doRequest("json")
 46466  	if res != nil && res.StatusCode == http.StatusNotModified {
 46467  		if res.Body != nil {
 46468  			res.Body.Close()
 46469  		}
 46470  		return nil, gensupport.WrapError(&googleapi.Error{
 46471  			Code:   res.StatusCode,
 46472  			Header: res.Header,
 46473  		})
 46474  	}
 46475  	if err != nil {
 46476  		return nil, err
 46477  	}
 46478  	defer googleapi.CloseBody(res)
 46479  	if err := googleapi.CheckResponse(res); err != nil {
 46480  		return nil, gensupport.WrapError(err)
 46481  	}
 46482  	ret := &GoogleCloudApigeeV1ApiCategoryResponse{
 46483  		ServerResponse: googleapi.ServerResponse{
 46484  			Header:         res.Header,
 46485  			HTTPStatusCode: res.StatusCode,
 46486  		},
 46487  	}
 46488  	target := &ret
 46489  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46490  		return nil, err
 46491  	}
 46492  	return ret, nil
 46493  }
 46494  
 46495  type OrganizationsSitesApicategoriesDeleteCall struct {
 46496  	s          *Service
 46497  	name       string
 46498  	urlParams_ gensupport.URLParams
 46499  	ctx_       context.Context
 46500  	header_    http.Header
 46501  }
 46502  
 46503  // Delete: Deletes an API category.
 46504  //
 46505  //   - name: Name of the category. Use the following structure in your request:
 46506  //     `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
 46507  func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
 46508  	c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46509  	c.name = name
 46510  	return c
 46511  }
 46512  
 46513  // Fields allows partial responses to be retrieved. See
 46514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46515  // details.
 46516  func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
 46517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46518  	return c
 46519  }
 46520  
 46521  // Context sets the context to be used in this call's Do method.
 46522  func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
 46523  	c.ctx_ = ctx
 46524  	return c
 46525  }
 46526  
 46527  // Header returns a http.Header that can be modified by the caller to add
 46528  // headers to the request.
 46529  func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
 46530  	if c.header_ == nil {
 46531  		c.header_ = make(http.Header)
 46532  	}
 46533  	return c.header_
 46534  }
 46535  
 46536  func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 46537  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46538  	var body io.Reader = nil
 46539  	c.urlParams_.Set("alt", alt)
 46540  	c.urlParams_.Set("prettyPrint", "false")
 46541  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 46542  	urls += "?" + c.urlParams_.Encode()
 46543  	req, err := http.NewRequest("DELETE", urls, body)
 46544  	if err != nil {
 46545  		return nil, err
 46546  	}
 46547  	req.Header = reqHeaders
 46548  	googleapi.Expand(req.URL, map[string]string{
 46549  		"name": c.name,
 46550  	})
 46551  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46552  }
 46553  
 46554  // Do executes the "apigee.organizations.sites.apicategories.delete" call.
 46555  // Any non-2xx status code is an error. Response headers are in either
 46556  // *GoogleCloudApigeeV1DeleteResponse.ServerResponse.Header or (if a response
 46557  // was returned at all) in error.(*googleapi.Error).Header. Use
 46558  // googleapi.IsNotModified to check whether the returned error was because
 46559  // http.StatusNotModified was returned.
 46560  func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteResponse, error) {
 46561  	gensupport.SetOptions(c.urlParams_, opts...)
 46562  	res, err := c.doRequest("json")
 46563  	if res != nil && res.StatusCode == http.StatusNotModified {
 46564  		if res.Body != nil {
 46565  			res.Body.Close()
 46566  		}
 46567  		return nil, gensupport.WrapError(&googleapi.Error{
 46568  			Code:   res.StatusCode,
 46569  			Header: res.Header,
 46570  		})
 46571  	}
 46572  	if err != nil {
 46573  		return nil, err
 46574  	}
 46575  	defer googleapi.CloseBody(res)
 46576  	if err := googleapi.CheckResponse(res); err != nil {
 46577  		return nil, gensupport.WrapError(err)
 46578  	}
 46579  	ret := &GoogleCloudApigeeV1DeleteResponse{
 46580  		ServerResponse: googleapi.ServerResponse{
 46581  			Header:         res.Header,
 46582  			HTTPStatusCode: res.StatusCode,
 46583  		},
 46584  	}
 46585  	target := &ret
 46586  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46587  		return nil, err
 46588  	}
 46589  	return ret, nil
 46590  }
 46591  
 46592  type OrganizationsSitesApicategoriesGetCall struct {
 46593  	s            *Service
 46594  	name         string
 46595  	urlParams_   gensupport.URLParams
 46596  	ifNoneMatch_ string
 46597  	ctx_         context.Context
 46598  	header_      http.Header
 46599  }
 46600  
 46601  // Get: Gets an API category.
 46602  //
 46603  //   - name: Name of the category. Use the following structure in your request:
 46604  //     `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
 46605  func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
 46606  	c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46607  	c.name = name
 46608  	return c
 46609  }
 46610  
 46611  // Fields allows partial responses to be retrieved. See
 46612  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46613  // details.
 46614  func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
 46615  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46616  	return c
 46617  }
 46618  
 46619  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46620  // object's ETag matches the given value. This is useful for getting updates
 46621  // only after the object has changed since the last request.
 46622  func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
 46623  	c.ifNoneMatch_ = entityTag
 46624  	return c
 46625  }
 46626  
 46627  // Context sets the context to be used in this call's Do method.
 46628  func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
 46629  	c.ctx_ = ctx
 46630  	return c
 46631  }
 46632  
 46633  // Header returns a http.Header that can be modified by the caller to add
 46634  // headers to the request.
 46635  func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
 46636  	if c.header_ == nil {
 46637  		c.header_ = make(http.Header)
 46638  	}
 46639  	return c.header_
 46640  }
 46641  
 46642  func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
 46643  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46644  	if c.ifNoneMatch_ != "" {
 46645  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46646  	}
 46647  	var body io.Reader = nil
 46648  	c.urlParams_.Set("alt", alt)
 46649  	c.urlParams_.Set("prettyPrint", "false")
 46650  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 46651  	urls += "?" + c.urlParams_.Encode()
 46652  	req, err := http.NewRequest("GET", urls, body)
 46653  	if err != nil {
 46654  		return nil, err
 46655  	}
 46656  	req.Header = reqHeaders
 46657  	googleapi.Expand(req.URL, map[string]string{
 46658  		"name": c.name,
 46659  	})
 46660  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46661  }
 46662  
 46663  // Do executes the "apigee.organizations.sites.apicategories.get" call.
 46664  // Any non-2xx status code is an error. Response headers are in either
 46665  // *GoogleCloudApigeeV1ApiCategoryResponse.ServerResponse.Header or (if a
 46666  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46667  // googleapi.IsNotModified to check whether the returned error was because
 46668  // http.StatusNotModified was returned.
 46669  func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategoryResponse, error) {
 46670  	gensupport.SetOptions(c.urlParams_, opts...)
 46671  	res, err := c.doRequest("json")
 46672  	if res != nil && res.StatusCode == http.StatusNotModified {
 46673  		if res.Body != nil {
 46674  			res.Body.Close()
 46675  		}
 46676  		return nil, gensupport.WrapError(&googleapi.Error{
 46677  			Code:   res.StatusCode,
 46678  			Header: res.Header,
 46679  		})
 46680  	}
 46681  	if err != nil {
 46682  		return nil, err
 46683  	}
 46684  	defer googleapi.CloseBody(res)
 46685  	if err := googleapi.CheckResponse(res); err != nil {
 46686  		return nil, gensupport.WrapError(err)
 46687  	}
 46688  	ret := &GoogleCloudApigeeV1ApiCategoryResponse{
 46689  		ServerResponse: googleapi.ServerResponse{
 46690  			Header:         res.Header,
 46691  			HTTPStatusCode: res.StatusCode,
 46692  		},
 46693  	}
 46694  	target := &ret
 46695  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46696  		return nil, err
 46697  	}
 46698  	return ret, nil
 46699  }
 46700  
 46701  type OrganizationsSitesApicategoriesListCall struct {
 46702  	s            *Service
 46703  	parent       string
 46704  	urlParams_   gensupport.URLParams
 46705  	ifNoneMatch_ string
 46706  	ctx_         context.Context
 46707  	header_      http.Header
 46708  }
 46709  
 46710  // List: Returns the API categories associated with a portal.
 46711  //
 46712  //   - parent: Name of the portal. Use the following structure in your request:
 46713  //     `organizations/{org}/sites/{site}`.
 46714  func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
 46715  	c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46716  	c.parent = parent
 46717  	return c
 46718  }
 46719  
 46720  // Fields allows partial responses to be retrieved. See
 46721  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46722  // details.
 46723  func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
 46724  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46725  	return c
 46726  }
 46727  
 46728  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46729  // object's ETag matches the given value. This is useful for getting updates
 46730  // only after the object has changed since the last request.
 46731  func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
 46732  	c.ifNoneMatch_ = entityTag
 46733  	return c
 46734  }
 46735  
 46736  // Context sets the context to be used in this call's Do method.
 46737  func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
 46738  	c.ctx_ = ctx
 46739  	return c
 46740  }
 46741  
 46742  // Header returns a http.Header that can be modified by the caller to add
 46743  // headers to the request.
 46744  func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
 46745  	if c.header_ == nil {
 46746  		c.header_ = make(http.Header)
 46747  	}
 46748  	return c.header_
 46749  }
 46750  
 46751  func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
 46752  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46753  	if c.ifNoneMatch_ != "" {
 46754  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46755  	}
 46756  	var body io.Reader = nil
 46757  	c.urlParams_.Set("alt", alt)
 46758  	c.urlParams_.Set("prettyPrint", "false")
 46759  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
 46760  	urls += "?" + c.urlParams_.Encode()
 46761  	req, err := http.NewRequest("GET", urls, body)
 46762  	if err != nil {
 46763  		return nil, err
 46764  	}
 46765  	req.Header = reqHeaders
 46766  	googleapi.Expand(req.URL, map[string]string{
 46767  		"parent": c.parent,
 46768  	})
 46769  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46770  }
 46771  
 46772  // Do executes the "apigee.organizations.sites.apicategories.list" call.
 46773  // Any non-2xx status code is an error. Response headers are in either
 46774  // *GoogleCloudApigeeV1ListApiCategoriesResponse.ServerResponse.Header or (if a
 46775  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46776  // googleapi.IsNotModified to check whether the returned error was because
 46777  // http.StatusNotModified was returned.
 46778  func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
 46779  	gensupport.SetOptions(c.urlParams_, opts...)
 46780  	res, err := c.doRequest("json")
 46781  	if res != nil && res.StatusCode == http.StatusNotModified {
 46782  		if res.Body != nil {
 46783  			res.Body.Close()
 46784  		}
 46785  		return nil, gensupport.WrapError(&googleapi.Error{
 46786  			Code:   res.StatusCode,
 46787  			Header: res.Header,
 46788  		})
 46789  	}
 46790  	if err != nil {
 46791  		return nil, err
 46792  	}
 46793  	defer googleapi.CloseBody(res)
 46794  	if err := googleapi.CheckResponse(res); err != nil {
 46795  		return nil, gensupport.WrapError(err)
 46796  	}
 46797  	ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
 46798  		ServerResponse: googleapi.ServerResponse{
 46799  			Header:         res.Header,
 46800  			HTTPStatusCode: res.StatusCode,
 46801  		},
 46802  	}
 46803  	target := &ret
 46804  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46805  		return nil, err
 46806  	}
 46807  	return ret, nil
 46808  }
 46809  
 46810  type OrganizationsSitesApicategoriesPatchCall struct {
 46811  	s                              *Service
 46812  	name                           string
 46813  	googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory
 46814  	urlParams_                     gensupport.URLParams
 46815  	ctx_                           context.Context
 46816  	header_                        http.Header
 46817  }
 46818  
 46819  // Patch: Updates an API category.
 46820  //
 46821  //   - name: Name of the category. Use the following structure in your request:
 46822  //     `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
 46823  func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory) *OrganizationsSitesApicategoriesPatchCall {
 46824  	c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46825  	c.name = name
 46826  	c.googlecloudapigeev1apicategory = googlecloudapigeev1apicategory
 46827  	return c
 46828  }
 46829  
 46830  // Fields allows partial responses to be retrieved. See
 46831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46832  // details.
 46833  func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
 46834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46835  	return c
 46836  }
 46837  
 46838  // Context sets the context to be used in this call's Do method.
 46839  func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
 46840  	c.ctx_ = ctx
 46841  	return c
 46842  }
 46843  
 46844  // Header returns a http.Header that can be modified by the caller to add
 46845  // headers to the request.
 46846  func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
 46847  	if c.header_ == nil {
 46848  		c.header_ = make(http.Header)
 46849  	}
 46850  	return c.header_
 46851  }
 46852  
 46853  func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
 46854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46855  	var body io.Reader = nil
 46856  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategory)
 46857  	if err != nil {
 46858  		return nil, err
 46859  	}
 46860  	c.urlParams_.Set("alt", alt)
 46861  	c.urlParams_.Set("prettyPrint", "false")
 46862  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 46863  	urls += "?" + c.urlParams_.Encode()
 46864  	req, err := http.NewRequest("PATCH", urls, body)
 46865  	if err != nil {
 46866  		return nil, err
 46867  	}
 46868  	req.Header = reqHeaders
 46869  	googleapi.Expand(req.URL, map[string]string{
 46870  		"name": c.name,
 46871  	})
 46872  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46873  }
 46874  
 46875  // Do executes the "apigee.organizations.sites.apicategories.patch" call.
 46876  // Any non-2xx status code is an error. Response headers are in either
 46877  // *GoogleCloudApigeeV1ApiCategoryResponse.ServerResponse.Header or (if a
 46878  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46879  // googleapi.IsNotModified to check whether the returned error was because
 46880  // http.StatusNotModified was returned.
 46881  func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategoryResponse, error) {
 46882  	gensupport.SetOptions(c.urlParams_, opts...)
 46883  	res, err := c.doRequest("json")
 46884  	if res != nil && res.StatusCode == http.StatusNotModified {
 46885  		if res.Body != nil {
 46886  			res.Body.Close()
 46887  		}
 46888  		return nil, gensupport.WrapError(&googleapi.Error{
 46889  			Code:   res.StatusCode,
 46890  			Header: res.Header,
 46891  		})
 46892  	}
 46893  	if err != nil {
 46894  		return nil, err
 46895  	}
 46896  	defer googleapi.CloseBody(res)
 46897  	if err := googleapi.CheckResponse(res); err != nil {
 46898  		return nil, gensupport.WrapError(err)
 46899  	}
 46900  	ret := &GoogleCloudApigeeV1ApiCategoryResponse{
 46901  		ServerResponse: googleapi.ServerResponse{
 46902  			Header:         res.Header,
 46903  			HTTPStatusCode: res.StatusCode,
 46904  		},
 46905  	}
 46906  	target := &ret
 46907  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46908  		return nil, err
 46909  	}
 46910  	return ret, nil
 46911  }
 46912  
 46913  type OrganizationsSitesApidocsCreateCall struct {
 46914  	s                         *Service
 46915  	parent                    string
 46916  	googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc
 46917  	urlParams_                gensupport.URLParams
 46918  	ctx_                      context.Context
 46919  	header_                   http.Header
 46920  }
 46921  
 46922  // Create: Creates a new catalog item.
 46923  //
 46924  //   - parent: Name of the portal. Use the following structure in your request:
 46925  //     `organizations/{org}/sites/{site}`.
 46926  func (r *OrganizationsSitesApidocsService) Create(parent string, googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc) *OrganizationsSitesApidocsCreateCall {
 46927  	c := &OrganizationsSitesApidocsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46928  	c.parent = parent
 46929  	c.googlecloudapigeev1apidoc = googlecloudapigeev1apidoc
 46930  	return c
 46931  }
 46932  
 46933  // Fields allows partial responses to be retrieved. See
 46934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46935  // details.
 46936  func (c *OrganizationsSitesApidocsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsCreateCall {
 46937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46938  	return c
 46939  }
 46940  
 46941  // Context sets the context to be used in this call's Do method.
 46942  func (c *OrganizationsSitesApidocsCreateCall) Context(ctx context.Context) *OrganizationsSitesApidocsCreateCall {
 46943  	c.ctx_ = ctx
 46944  	return c
 46945  }
 46946  
 46947  // Header returns a http.Header that can be modified by the caller to add
 46948  // headers to the request.
 46949  func (c *OrganizationsSitesApidocsCreateCall) Header() http.Header {
 46950  	if c.header_ == nil {
 46951  		c.header_ = make(http.Header)
 46952  	}
 46953  	return c.header_
 46954  }
 46955  
 46956  func (c *OrganizationsSitesApidocsCreateCall) doRequest(alt string) (*http.Response, error) {
 46957  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46958  	var body io.Reader = nil
 46959  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apidoc)
 46960  	if err != nil {
 46961  		return nil, err
 46962  	}
 46963  	c.urlParams_.Set("alt", alt)
 46964  	c.urlParams_.Set("prettyPrint", "false")
 46965  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apidocs")
 46966  	urls += "?" + c.urlParams_.Encode()
 46967  	req, err := http.NewRequest("POST", urls, body)
 46968  	if err != nil {
 46969  		return nil, err
 46970  	}
 46971  	req.Header = reqHeaders
 46972  	googleapi.Expand(req.URL, map[string]string{
 46973  		"parent": c.parent,
 46974  	})
 46975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46976  }
 46977  
 46978  // Do executes the "apigee.organizations.sites.apidocs.create" call.
 46979  // Any non-2xx status code is an error. Response headers are in either
 46980  // *GoogleCloudApigeeV1ApiDocResponse.ServerResponse.Header or (if a response
 46981  // was returned at all) in error.(*googleapi.Error).Header. Use
 46982  // googleapi.IsNotModified to check whether the returned error was because
 46983  // http.StatusNotModified was returned.
 46984  func (c *OrganizationsSitesApidocsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, error) {
 46985  	gensupport.SetOptions(c.urlParams_, opts...)
 46986  	res, err := c.doRequest("json")
 46987  	if res != nil && res.StatusCode == http.StatusNotModified {
 46988  		if res.Body != nil {
 46989  			res.Body.Close()
 46990  		}
 46991  		return nil, gensupport.WrapError(&googleapi.Error{
 46992  			Code:   res.StatusCode,
 46993  			Header: res.Header,
 46994  		})
 46995  	}
 46996  	if err != nil {
 46997  		return nil, err
 46998  	}
 46999  	defer googleapi.CloseBody(res)
 47000  	if err := googleapi.CheckResponse(res); err != nil {
 47001  		return nil, gensupport.WrapError(err)
 47002  	}
 47003  	ret := &GoogleCloudApigeeV1ApiDocResponse{
 47004  		ServerResponse: googleapi.ServerResponse{
 47005  			Header:         res.Header,
 47006  			HTTPStatusCode: res.StatusCode,
 47007  		},
 47008  	}
 47009  	target := &ret
 47010  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47011  		return nil, err
 47012  	}
 47013  	return ret, nil
 47014  }
 47015  
 47016  type OrganizationsSitesApidocsDeleteCall struct {
 47017  	s          *Service
 47018  	name       string
 47019  	urlParams_ gensupport.URLParams
 47020  	ctx_       context.Context
 47021  	header_    http.Header
 47022  }
 47023  
 47024  // Delete: Deletes a catalog item.
 47025  //
 47026  //   - name: Name of the catalog item. Use the following structure in your
 47027  //     request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`.
 47028  func (r *OrganizationsSitesApidocsService) Delete(name string) *OrganizationsSitesApidocsDeleteCall {
 47029  	c := &OrganizationsSitesApidocsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47030  	c.name = name
 47031  	return c
 47032  }
 47033  
 47034  // Fields allows partial responses to be retrieved. See
 47035  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47036  // details.
 47037  func (c *OrganizationsSitesApidocsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsDeleteCall {
 47038  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47039  	return c
 47040  }
 47041  
 47042  // Context sets the context to be used in this call's Do method.
 47043  func (c *OrganizationsSitesApidocsDeleteCall) Context(ctx context.Context) *OrganizationsSitesApidocsDeleteCall {
 47044  	c.ctx_ = ctx
 47045  	return c
 47046  }
 47047  
 47048  // Header returns a http.Header that can be modified by the caller to add
 47049  // headers to the request.
 47050  func (c *OrganizationsSitesApidocsDeleteCall) Header() http.Header {
 47051  	if c.header_ == nil {
 47052  		c.header_ = make(http.Header)
 47053  	}
 47054  	return c.header_
 47055  }
 47056  
 47057  func (c *OrganizationsSitesApidocsDeleteCall) doRequest(alt string) (*http.Response, error) {
 47058  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47059  	var body io.Reader = nil
 47060  	c.urlParams_.Set("alt", alt)
 47061  	c.urlParams_.Set("prettyPrint", "false")
 47062  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 47063  	urls += "?" + c.urlParams_.Encode()
 47064  	req, err := http.NewRequest("DELETE", urls, body)
 47065  	if err != nil {
 47066  		return nil, err
 47067  	}
 47068  	req.Header = reqHeaders
 47069  	googleapi.Expand(req.URL, map[string]string{
 47070  		"name": c.name,
 47071  	})
 47072  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47073  }
 47074  
 47075  // Do executes the "apigee.organizations.sites.apidocs.delete" call.
 47076  // Any non-2xx status code is an error. Response headers are in either
 47077  // *GoogleCloudApigeeV1DeleteResponse.ServerResponse.Header or (if a response
 47078  // was returned at all) in error.(*googleapi.Error).Header. Use
 47079  // googleapi.IsNotModified to check whether the returned error was because
 47080  // http.StatusNotModified was returned.
 47081  func (c *OrganizationsSitesApidocsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteResponse, error) {
 47082  	gensupport.SetOptions(c.urlParams_, opts...)
 47083  	res, err := c.doRequest("json")
 47084  	if res != nil && res.StatusCode == http.StatusNotModified {
 47085  		if res.Body != nil {
 47086  			res.Body.Close()
 47087  		}
 47088  		return nil, gensupport.WrapError(&googleapi.Error{
 47089  			Code:   res.StatusCode,
 47090  			Header: res.Header,
 47091  		})
 47092  	}
 47093  	if err != nil {
 47094  		return nil, err
 47095  	}
 47096  	defer googleapi.CloseBody(res)
 47097  	if err := googleapi.CheckResponse(res); err != nil {
 47098  		return nil, gensupport.WrapError(err)
 47099  	}
 47100  	ret := &GoogleCloudApigeeV1DeleteResponse{
 47101  		ServerResponse: googleapi.ServerResponse{
 47102  			Header:         res.Header,
 47103  			HTTPStatusCode: res.StatusCode,
 47104  		},
 47105  	}
 47106  	target := &ret
 47107  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47108  		return nil, err
 47109  	}
 47110  	return ret, nil
 47111  }
 47112  
 47113  type OrganizationsSitesApidocsGetCall struct {
 47114  	s            *Service
 47115  	name         string
 47116  	urlParams_   gensupport.URLParams
 47117  	ifNoneMatch_ string
 47118  	ctx_         context.Context
 47119  	header_      http.Header
 47120  }
 47121  
 47122  // Get: Gets a catalog item.
 47123  //
 47124  //   - name: Name of the catalog item. Use the following structure in your
 47125  //     request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`.
 47126  func (r *OrganizationsSitesApidocsService) Get(name string) *OrganizationsSitesApidocsGetCall {
 47127  	c := &OrganizationsSitesApidocsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47128  	c.name = name
 47129  	return c
 47130  }
 47131  
 47132  // Fields allows partial responses to be retrieved. See
 47133  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47134  // details.
 47135  func (c *OrganizationsSitesApidocsGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsGetCall {
 47136  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47137  	return c
 47138  }
 47139  
 47140  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 47141  // object's ETag matches the given value. This is useful for getting updates
 47142  // only after the object has changed since the last request.
 47143  func (c *OrganizationsSitesApidocsGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsGetCall {
 47144  	c.ifNoneMatch_ = entityTag
 47145  	return c
 47146  }
 47147  
 47148  // Context sets the context to be used in this call's Do method.
 47149  func (c *OrganizationsSitesApidocsGetCall) Context(ctx context.Context) *OrganizationsSitesApidocsGetCall {
 47150  	c.ctx_ = ctx
 47151  	return c
 47152  }
 47153  
 47154  // Header returns a http.Header that can be modified by the caller to add
 47155  // headers to the request.
 47156  func (c *OrganizationsSitesApidocsGetCall) Header() http.Header {
 47157  	if c.header_ == nil {
 47158  		c.header_ = make(http.Header)
 47159  	}
 47160  	return c.header_
 47161  }
 47162  
 47163  func (c *OrganizationsSitesApidocsGetCall) doRequest(alt string) (*http.Response, error) {
 47164  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47165  	if c.ifNoneMatch_ != "" {
 47166  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 47167  	}
 47168  	var body io.Reader = nil
 47169  	c.urlParams_.Set("alt", alt)
 47170  	c.urlParams_.Set("prettyPrint", "false")
 47171  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 47172  	urls += "?" + c.urlParams_.Encode()
 47173  	req, err := http.NewRequest("GET", urls, body)
 47174  	if err != nil {
 47175  		return nil, err
 47176  	}
 47177  	req.Header = reqHeaders
 47178  	googleapi.Expand(req.URL, map[string]string{
 47179  		"name": c.name,
 47180  	})
 47181  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47182  }
 47183  
 47184  // Do executes the "apigee.organizations.sites.apidocs.get" call.
 47185  // Any non-2xx status code is an error. Response headers are in either
 47186  // *GoogleCloudApigeeV1ApiDocResponse.ServerResponse.Header or (if a response
 47187  // was returned at all) in error.(*googleapi.Error).Header. Use
 47188  // googleapi.IsNotModified to check whether the returned error was because
 47189  // http.StatusNotModified was returned.
 47190  func (c *OrganizationsSitesApidocsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, error) {
 47191  	gensupport.SetOptions(c.urlParams_, opts...)
 47192  	res, err := c.doRequest("json")
 47193  	if res != nil && res.StatusCode == http.StatusNotModified {
 47194  		if res.Body != nil {
 47195  			res.Body.Close()
 47196  		}
 47197  		return nil, gensupport.WrapError(&googleapi.Error{
 47198  			Code:   res.StatusCode,
 47199  			Header: res.Header,
 47200  		})
 47201  	}
 47202  	if err != nil {
 47203  		return nil, err
 47204  	}
 47205  	defer googleapi.CloseBody(res)
 47206  	if err := googleapi.CheckResponse(res); err != nil {
 47207  		return nil, gensupport.WrapError(err)
 47208  	}
 47209  	ret := &GoogleCloudApigeeV1ApiDocResponse{
 47210  		ServerResponse: googleapi.ServerResponse{
 47211  			Header:         res.Header,
 47212  			HTTPStatusCode: res.StatusCode,
 47213  		},
 47214  	}
 47215  	target := &ret
 47216  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47217  		return nil, err
 47218  	}
 47219  	return ret, nil
 47220  }
 47221  
 47222  type OrganizationsSitesApidocsGetDocumentationCall struct {
 47223  	s            *Service
 47224  	name         string
 47225  	urlParams_   gensupport.URLParams
 47226  	ifNoneMatch_ string
 47227  	ctx_         context.Context
 47228  	header_      http.Header
 47229  }
 47230  
 47231  // GetDocumentation: Gets the documentation for the specified catalog item.
 47232  //
 47233  //   - name: Resource name of the catalog item documentation. Use the following
 47234  //     structure in your request:
 47235  //     `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`.
 47236  func (r *OrganizationsSitesApidocsService) GetDocumentation(name string) *OrganizationsSitesApidocsGetDocumentationCall {
 47237  	c := &OrganizationsSitesApidocsGetDocumentationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47238  	c.name = name
 47239  	return c
 47240  }
 47241  
 47242  // Fields allows partial responses to be retrieved. See
 47243  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47244  // details.
 47245  func (c *OrganizationsSitesApidocsGetDocumentationCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsGetDocumentationCall {
 47246  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47247  	return c
 47248  }
 47249  
 47250  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 47251  // object's ETag matches the given value. This is useful for getting updates
 47252  // only after the object has changed since the last request.
 47253  func (c *OrganizationsSitesApidocsGetDocumentationCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsGetDocumentationCall {
 47254  	c.ifNoneMatch_ = entityTag
 47255  	return c
 47256  }
 47257  
 47258  // Context sets the context to be used in this call's Do method.
 47259  func (c *OrganizationsSitesApidocsGetDocumentationCall) Context(ctx context.Context) *OrganizationsSitesApidocsGetDocumentationCall {
 47260  	c.ctx_ = ctx
 47261  	return c
 47262  }
 47263  
 47264  // Header returns a http.Header that can be modified by the caller to add
 47265  // headers to the request.
 47266  func (c *OrganizationsSitesApidocsGetDocumentationCall) Header() http.Header {
 47267  	if c.header_ == nil {
 47268  		c.header_ = make(http.Header)
 47269  	}
 47270  	return c.header_
 47271  }
 47272  
 47273  func (c *OrganizationsSitesApidocsGetDocumentationCall) doRequest(alt string) (*http.Response, error) {
 47274  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47275  	if c.ifNoneMatch_ != "" {
 47276  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 47277  	}
 47278  	var body io.Reader = nil
 47279  	c.urlParams_.Set("alt", alt)
 47280  	c.urlParams_.Set("prettyPrint", "false")
 47281  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 47282  	urls += "?" + c.urlParams_.Encode()
 47283  	req, err := http.NewRequest("GET", urls, body)
 47284  	if err != nil {
 47285  		return nil, err
 47286  	}
 47287  	req.Header = reqHeaders
 47288  	googleapi.Expand(req.URL, map[string]string{
 47289  		"name": c.name,
 47290  	})
 47291  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47292  }
 47293  
 47294  // Do executes the "apigee.organizations.sites.apidocs.getDocumentation" call.
 47295  // Any non-2xx status code is an error. Response headers are in either
 47296  // *GoogleCloudApigeeV1ApiDocDocumentationResponse.ServerResponse.Header or (if
 47297  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 47298  // googleapi.IsNotModified to check whether the returned error was because
 47299  // http.StatusNotModified was returned.
 47300  func (c *OrganizationsSitesApidocsGetDocumentationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocDocumentationResponse, error) {
 47301  	gensupport.SetOptions(c.urlParams_, opts...)
 47302  	res, err := c.doRequest("json")
 47303  	if res != nil && res.StatusCode == http.StatusNotModified {
 47304  		if res.Body != nil {
 47305  			res.Body.Close()
 47306  		}
 47307  		return nil, gensupport.WrapError(&googleapi.Error{
 47308  			Code:   res.StatusCode,
 47309  			Header: res.Header,
 47310  		})
 47311  	}
 47312  	if err != nil {
 47313  		return nil, err
 47314  	}
 47315  	defer googleapi.CloseBody(res)
 47316  	if err := googleapi.CheckResponse(res); err != nil {
 47317  		return nil, gensupport.WrapError(err)
 47318  	}
 47319  	ret := &GoogleCloudApigeeV1ApiDocDocumentationResponse{
 47320  		ServerResponse: googleapi.ServerResponse{
 47321  			Header:         res.Header,
 47322  			HTTPStatusCode: res.StatusCode,
 47323  		},
 47324  	}
 47325  	target := &ret
 47326  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47327  		return nil, err
 47328  	}
 47329  	return ret, nil
 47330  }
 47331  
 47332  type OrganizationsSitesApidocsListCall struct {
 47333  	s            *Service
 47334  	parent       string
 47335  	urlParams_   gensupport.URLParams
 47336  	ifNoneMatch_ string
 47337  	ctx_         context.Context
 47338  	header_      http.Header
 47339  }
 47340  
 47341  // List: Returns the catalog items associated with a portal.
 47342  //
 47343  //   - parent: Name of the portal. Use the following structure in your request:
 47344  //     `organizations/{org}/sites/{site}`.
 47345  func (r *OrganizationsSitesApidocsService) List(parent string) *OrganizationsSitesApidocsListCall {
 47346  	c := &OrganizationsSitesApidocsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47347  	c.parent = parent
 47348  	return c
 47349  }
 47350  
 47351  // PageSize sets the optional parameter "pageSize": The maximum number of items
 47352  // to return. The service may return fewer than this value. If unspecified, at
 47353  // most 25 books will be returned. The maximum value is 100; values above 100
 47354  // will be coerced to 100.
 47355  func (c *OrganizationsSitesApidocsListCall) PageSize(pageSize int64) *OrganizationsSitesApidocsListCall {
 47356  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 47357  	return c
 47358  }
 47359  
 47360  // PageToken sets the optional parameter "pageToken": A page token, received
 47361  // from a previous `ListApiDocs` call. Provide this to retrieve the subsequent
 47362  // page.
 47363  func (c *OrganizationsSitesApidocsListCall) PageToken(pageToken string) *OrganizationsSitesApidocsListCall {
 47364  	c.urlParams_.Set("pageToken", pageToken)
 47365  	return c
 47366  }
 47367  
 47368  // Fields allows partial responses to be retrieved. See
 47369  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47370  // details.
 47371  func (c *OrganizationsSitesApidocsListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsListCall {
 47372  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47373  	return c
 47374  }
 47375  
 47376  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 47377  // object's ETag matches the given value. This is useful for getting updates
 47378  // only after the object has changed since the last request.
 47379  func (c *OrganizationsSitesApidocsListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsListCall {
 47380  	c.ifNoneMatch_ = entityTag
 47381  	return c
 47382  }
 47383  
 47384  // Context sets the context to be used in this call's Do method.
 47385  func (c *OrganizationsSitesApidocsListCall) Context(ctx context.Context) *OrganizationsSitesApidocsListCall {
 47386  	c.ctx_ = ctx
 47387  	return c
 47388  }
 47389  
 47390  // Header returns a http.Header that can be modified by the caller to add
 47391  // headers to the request.
 47392  func (c *OrganizationsSitesApidocsListCall) Header() http.Header {
 47393  	if c.header_ == nil {
 47394  		c.header_ = make(http.Header)
 47395  	}
 47396  	return c.header_
 47397  }
 47398  
 47399  func (c *OrganizationsSitesApidocsListCall) doRequest(alt string) (*http.Response, error) {
 47400  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47401  	if c.ifNoneMatch_ != "" {
 47402  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 47403  	}
 47404  	var body io.Reader = nil
 47405  	c.urlParams_.Set("alt", alt)
 47406  	c.urlParams_.Set("prettyPrint", "false")
 47407  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apidocs")
 47408  	urls += "?" + c.urlParams_.Encode()
 47409  	req, err := http.NewRequest("GET", urls, body)
 47410  	if err != nil {
 47411  		return nil, err
 47412  	}
 47413  	req.Header = reqHeaders
 47414  	googleapi.Expand(req.URL, map[string]string{
 47415  		"parent": c.parent,
 47416  	})
 47417  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47418  }
 47419  
 47420  // Do executes the "apigee.organizations.sites.apidocs.list" call.
 47421  // Any non-2xx status code is an error. Response headers are in either
 47422  // *GoogleCloudApigeeV1ListApiDocsResponse.ServerResponse.Header or (if a
 47423  // response was returned at all) in error.(*googleapi.Error).Header. Use
 47424  // googleapi.IsNotModified to check whether the returned error was because
 47425  // http.StatusNotModified was returned.
 47426  func (c *OrganizationsSitesApidocsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiDocsResponse, error) {
 47427  	gensupport.SetOptions(c.urlParams_, opts...)
 47428  	res, err := c.doRequest("json")
 47429  	if res != nil && res.StatusCode == http.StatusNotModified {
 47430  		if res.Body != nil {
 47431  			res.Body.Close()
 47432  		}
 47433  		return nil, gensupport.WrapError(&googleapi.Error{
 47434  			Code:   res.StatusCode,
 47435  			Header: res.Header,
 47436  		})
 47437  	}
 47438  	if err != nil {
 47439  		return nil, err
 47440  	}
 47441  	defer googleapi.CloseBody(res)
 47442  	if err := googleapi.CheckResponse(res); err != nil {
 47443  		return nil, gensupport.WrapError(err)
 47444  	}
 47445  	ret := &GoogleCloudApigeeV1ListApiDocsResponse{
 47446  		ServerResponse: googleapi.ServerResponse{
 47447  			Header:         res.Header,
 47448  			HTTPStatusCode: res.StatusCode,
 47449  		},
 47450  	}
 47451  	target := &ret
 47452  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47453  		return nil, err
 47454  	}
 47455  	return ret, nil
 47456  }
 47457  
 47458  // Pages invokes f for each page of results.
 47459  // A non-nil error returned from f will halt the iteration.
 47460  // The provided context supersedes any context provided to the Context method.
 47461  func (c *OrganizationsSitesApidocsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListApiDocsResponse) error) error {
 47462  	c.ctx_ = ctx
 47463  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 47464  	for {
 47465  		x, err := c.Do()
 47466  		if err != nil {
 47467  			return err
 47468  		}
 47469  		if err := f(x); err != nil {
 47470  			return err
 47471  		}
 47472  		if x.NextPageToken == "" {
 47473  			return nil
 47474  		}
 47475  		c.PageToken(x.NextPageToken)
 47476  	}
 47477  }
 47478  
 47479  type OrganizationsSitesApidocsUpdateCall struct {
 47480  	s                         *Service
 47481  	name                      string
 47482  	googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc
 47483  	urlParams_                gensupport.URLParams
 47484  	ctx_                      context.Context
 47485  	header_                   http.Header
 47486  }
 47487  
 47488  // Update: Updates a catalog item.
 47489  //
 47490  //   - name: Name of the catalog item. Use the following structure in your
 47491  //     request: `organizations/{org}/sites/{site}/apidocs/{apidoc}`.
 47492  func (r *OrganizationsSitesApidocsService) Update(name string, googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc) *OrganizationsSitesApidocsUpdateCall {
 47493  	c := &OrganizationsSitesApidocsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47494  	c.name = name
 47495  	c.googlecloudapigeev1apidoc = googlecloudapigeev1apidoc
 47496  	return c
 47497  }
 47498  
 47499  // Fields allows partial responses to be retrieved. See
 47500  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47501  // details.
 47502  func (c *OrganizationsSitesApidocsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsUpdateCall {
 47503  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47504  	return c
 47505  }
 47506  
 47507  // Context sets the context to be used in this call's Do method.
 47508  func (c *OrganizationsSitesApidocsUpdateCall) Context(ctx context.Context) *OrganizationsSitesApidocsUpdateCall {
 47509  	c.ctx_ = ctx
 47510  	return c
 47511  }
 47512  
 47513  // Header returns a http.Header that can be modified by the caller to add
 47514  // headers to the request.
 47515  func (c *OrganizationsSitesApidocsUpdateCall) Header() http.Header {
 47516  	if c.header_ == nil {
 47517  		c.header_ = make(http.Header)
 47518  	}
 47519  	return c.header_
 47520  }
 47521  
 47522  func (c *OrganizationsSitesApidocsUpdateCall) doRequest(alt string) (*http.Response, error) {
 47523  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47524  	var body io.Reader = nil
 47525  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apidoc)
 47526  	if err != nil {
 47527  		return nil, err
 47528  	}
 47529  	c.urlParams_.Set("alt", alt)
 47530  	c.urlParams_.Set("prettyPrint", "false")
 47531  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 47532  	urls += "?" + c.urlParams_.Encode()
 47533  	req, err := http.NewRequest("PUT", urls, body)
 47534  	if err != nil {
 47535  		return nil, err
 47536  	}
 47537  	req.Header = reqHeaders
 47538  	googleapi.Expand(req.URL, map[string]string{
 47539  		"name": c.name,
 47540  	})
 47541  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47542  }
 47543  
 47544  // Do executes the "apigee.organizations.sites.apidocs.update" call.
 47545  // Any non-2xx status code is an error. Response headers are in either
 47546  // *GoogleCloudApigeeV1ApiDocResponse.ServerResponse.Header or (if a response
 47547  // was returned at all) in error.(*googleapi.Error).Header. Use
 47548  // googleapi.IsNotModified to check whether the returned error was because
 47549  // http.StatusNotModified was returned.
 47550  func (c *OrganizationsSitesApidocsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, error) {
 47551  	gensupport.SetOptions(c.urlParams_, opts...)
 47552  	res, err := c.doRequest("json")
 47553  	if res != nil && res.StatusCode == http.StatusNotModified {
 47554  		if res.Body != nil {
 47555  			res.Body.Close()
 47556  		}
 47557  		return nil, gensupport.WrapError(&googleapi.Error{
 47558  			Code:   res.StatusCode,
 47559  			Header: res.Header,
 47560  		})
 47561  	}
 47562  	if err != nil {
 47563  		return nil, err
 47564  	}
 47565  	defer googleapi.CloseBody(res)
 47566  	if err := googleapi.CheckResponse(res); err != nil {
 47567  		return nil, gensupport.WrapError(err)
 47568  	}
 47569  	ret := &GoogleCloudApigeeV1ApiDocResponse{
 47570  		ServerResponse: googleapi.ServerResponse{
 47571  			Header:         res.Header,
 47572  			HTTPStatusCode: res.StatusCode,
 47573  		},
 47574  	}
 47575  	target := &ret
 47576  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47577  		return nil, err
 47578  	}
 47579  	return ret, nil
 47580  }
 47581  
 47582  type OrganizationsSitesApidocsUpdateDocumentationCall struct {
 47583  	s                                      *Service
 47584  	name                                   string
 47585  	googlecloudapigeev1apidocdocumentation *GoogleCloudApigeeV1ApiDocDocumentation
 47586  	urlParams_                             gensupport.URLParams
 47587  	ctx_                                   context.Context
 47588  	header_                                http.Header
 47589  }
 47590  
 47591  // UpdateDocumentation: Updates the documentation for the specified catalog
 47592  // item. Note that the documentation file contents will not be populated in the
 47593  // return message.
 47594  //
 47595  //   - name: Resource name of the catalog item documentation. Use the following
 47596  //     structure in your request:
 47597  //     `organizations/{org}/sites/{site}/apidocs/{apidoc}/documentation`.
 47598  func (r *OrganizationsSitesApidocsService) UpdateDocumentation(name string, googlecloudapigeev1apidocdocumentation *GoogleCloudApigeeV1ApiDocDocumentation) *OrganizationsSitesApidocsUpdateDocumentationCall {
 47599  	c := &OrganizationsSitesApidocsUpdateDocumentationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47600  	c.name = name
 47601  	c.googlecloudapigeev1apidocdocumentation = googlecloudapigeev1apidocdocumentation
 47602  	return c
 47603  }
 47604  
 47605  // Fields allows partial responses to be retrieved. See
 47606  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47607  // details.
 47608  func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsUpdateDocumentationCall {
 47609  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47610  	return c
 47611  }
 47612  
 47613  // Context sets the context to be used in this call's Do method.
 47614  func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Context(ctx context.Context) *OrganizationsSitesApidocsUpdateDocumentationCall {
 47615  	c.ctx_ = ctx
 47616  	return c
 47617  }
 47618  
 47619  // Header returns a http.Header that can be modified by the caller to add
 47620  // headers to the request.
 47621  func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Header() http.Header {
 47622  	if c.header_ == nil {
 47623  		c.header_ = make(http.Header)
 47624  	}
 47625  	return c.header_
 47626  }
 47627  
 47628  func (c *OrganizationsSitesApidocsUpdateDocumentationCall) doRequest(alt string) (*http.Response, error) {
 47629  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47630  	var body io.Reader = nil
 47631  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apidocdocumentation)
 47632  	if err != nil {
 47633  		return nil, err
 47634  	}
 47635  	c.urlParams_.Set("alt", alt)
 47636  	c.urlParams_.Set("prettyPrint", "false")
 47637  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 47638  	urls += "?" + c.urlParams_.Encode()
 47639  	req, err := http.NewRequest("PATCH", urls, body)
 47640  	if err != nil {
 47641  		return nil, err
 47642  	}
 47643  	req.Header = reqHeaders
 47644  	googleapi.Expand(req.URL, map[string]string{
 47645  		"name": c.name,
 47646  	})
 47647  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47648  }
 47649  
 47650  // Do executes the "apigee.organizations.sites.apidocs.updateDocumentation" call.
 47651  // Any non-2xx status code is an error. Response headers are in either
 47652  // *GoogleCloudApigeeV1ApiDocDocumentationResponse.ServerResponse.Header or (if
 47653  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 47654  // googleapi.IsNotModified to check whether the returned error was because
 47655  // http.StatusNotModified was returned.
 47656  func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocDocumentationResponse, error) {
 47657  	gensupport.SetOptions(c.urlParams_, opts...)
 47658  	res, err := c.doRequest("json")
 47659  	if res != nil && res.StatusCode == http.StatusNotModified {
 47660  		if res.Body != nil {
 47661  			res.Body.Close()
 47662  		}
 47663  		return nil, gensupport.WrapError(&googleapi.Error{
 47664  			Code:   res.StatusCode,
 47665  			Header: res.Header,
 47666  		})
 47667  	}
 47668  	if err != nil {
 47669  		return nil, err
 47670  	}
 47671  	defer googleapi.CloseBody(res)
 47672  	if err := googleapi.CheckResponse(res); err != nil {
 47673  		return nil, gensupport.WrapError(err)
 47674  	}
 47675  	ret := &GoogleCloudApigeeV1ApiDocDocumentationResponse{
 47676  		ServerResponse: googleapi.ServerResponse{
 47677  			Header:         res.Header,
 47678  			HTTPStatusCode: res.StatusCode,
 47679  		},
 47680  	}
 47681  	target := &ret
 47682  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47683  		return nil, err
 47684  	}
 47685  	return ret, nil
 47686  }
 47687  
 47688  type ProjectsProvisionOrganizationCall struct {
 47689  	s                                               *Service
 47690  	project                                         string
 47691  	googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
 47692  	urlParams_                                      gensupport.URLParams
 47693  	ctx_                                            context.Context
 47694  	header_                                         http.Header
 47695  }
 47696  
 47697  // ProvisionOrganization: Provisions a new Apigee organization with a
 47698  // functioning runtime. This is the standard way to create trial organizations
 47699  // for a free Apigee trial.
 47700  //
 47701  //   - project: Name of the GCP project with which to associate the Apigee
 47702  //     organization.
 47703  func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
 47704  	c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47705  	c.project = project
 47706  	c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
 47707  	return c
 47708  }
 47709  
 47710  // Fields allows partial responses to be retrieved. See
 47711  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47712  // details.
 47713  func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
 47714  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47715  	return c
 47716  }
 47717  
 47718  // Context sets the context to be used in this call's Do method.
 47719  func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
 47720  	c.ctx_ = ctx
 47721  	return c
 47722  }
 47723  
 47724  // Header returns a http.Header that can be modified by the caller to add
 47725  // headers to the request.
 47726  func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
 47727  	if c.header_ == nil {
 47728  		c.header_ = make(http.Header)
 47729  	}
 47730  	return c.header_
 47731  }
 47732  
 47733  func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
 47734  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47735  	var body io.Reader = nil
 47736  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
 47737  	if err != nil {
 47738  		return nil, err
 47739  	}
 47740  	c.urlParams_.Set("alt", alt)
 47741  	c.urlParams_.Set("prettyPrint", "false")
 47742  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
 47743  	urls += "?" + c.urlParams_.Encode()
 47744  	req, err := http.NewRequest("POST", urls, body)
 47745  	if err != nil {
 47746  		return nil, err
 47747  	}
 47748  	req.Header = reqHeaders
 47749  	googleapi.Expand(req.URL, map[string]string{
 47750  		"project": c.project,
 47751  	})
 47752  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47753  }
 47754  
 47755  // Do executes the "apigee.projects.provisionOrganization" call.
 47756  // Any non-2xx status code is an error. Response headers are in either
 47757  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 47758  // returned at all) in error.(*googleapi.Error).Header. Use
 47759  // googleapi.IsNotModified to check whether the returned error was because
 47760  // http.StatusNotModified was returned.
 47761  func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 47762  	gensupport.SetOptions(c.urlParams_, opts...)
 47763  	res, err := c.doRequest("json")
 47764  	if res != nil && res.StatusCode == http.StatusNotModified {
 47765  		if res.Body != nil {
 47766  			res.Body.Close()
 47767  		}
 47768  		return nil, gensupport.WrapError(&googleapi.Error{
 47769  			Code:   res.StatusCode,
 47770  			Header: res.Header,
 47771  		})
 47772  	}
 47773  	if err != nil {
 47774  		return nil, err
 47775  	}
 47776  	defer googleapi.CloseBody(res)
 47777  	if err := googleapi.CheckResponse(res); err != nil {
 47778  		return nil, gensupport.WrapError(err)
 47779  	}
 47780  	ret := &GoogleLongrunningOperation{
 47781  		ServerResponse: googleapi.ServerResponse{
 47782  			Header:         res.Header,
 47783  			HTTPStatusCode: res.StatusCode,
 47784  		},
 47785  	}
 47786  	target := &ret
 47787  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47788  		return nil, err
 47789  	}
 47790  	return ret, nil
 47791  }
 47792  

View as plain text