1// Copyright 2021 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// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/apigee/v1"
16//   ...
17//   ctx := context.Background()
18//   apigeeService, err := apigee.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   apigeeService, err := apigee.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   apigeeService, err := apigee.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package apigee // import "google.golang.org/api/apigee/v1"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	googleapi "google.golang.org/api/googleapi"
53	gensupport "google.golang.org/api/internal/gensupport"
54	option "google.golang.org/api/option"
55	internaloption "google.golang.org/api/option/internaloption"
56	htransport "google.golang.org/api/transport/http"
57)
58
59// Always reference these packages, just in case the auto-generated code
60// below doesn't.
61var _ = bytes.NewBuffer
62var _ = strconv.Itoa
63var _ = fmt.Sprintf
64var _ = json.NewDecoder
65var _ = io.Copy
66var _ = url.Parse
67var _ = gensupport.MarshalJSON
68var _ = googleapi.Version
69var _ = errors.New
70var _ = strings.Replace
71var _ = context.Canceled
72var _ = internaloption.WithDefaultEndpoint
73
74const apiId = "apigee:v1"
75const apiName = "apigee"
76const apiVersion = "v1"
77const basePath = "https://apigee.googleapis.com/"
78const mtlsBasePath = "https://apigee.mtls.googleapis.com/"
79
80// OAuth2 scopes used by this API.
81const (
82	// View and manage your data across Google Cloud Platform services
83	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
84)
85
86// NewService creates a new Service.
87func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
88	scopesOption := option.WithScopes(
89		"https://www.googleapis.com/auth/cloud-platform",
90	)
91	// NOTE: prepend, so we don't override user-specified scopes.
92	opts = append([]option.ClientOption{scopesOption}, opts...)
93	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
94	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
95	client, endpoint, err := htransport.NewClient(ctx, opts...)
96	if err != nil {
97		return nil, err
98	}
99	s, err := New(client)
100	if err != nil {
101		return nil, err
102	}
103	if endpoint != "" {
104		s.BasePath = endpoint
105	}
106	return s, nil
107}
108
109// New creates a new Service. It uses the provided http.Client for requests.
110//
111// Deprecated: please use NewService instead.
112// To provide a custom HTTP client, use option.WithHTTPClient.
113// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
114func New(client *http.Client) (*Service, error) {
115	if client == nil {
116		return nil, errors.New("client is nil")
117	}
118	s := &Service{client: client, BasePath: basePath}
119	s.Hybrid = NewHybridService(s)
120	s.Organizations = NewOrganizationsService(s)
121	s.Projects = NewProjectsService(s)
122	return s, nil
123}
124
125type Service struct {
126	client    *http.Client
127	BasePath  string // API endpoint base URL
128	UserAgent string // optional additional User-Agent fragment
129
130	Hybrid *HybridService
131
132	Organizations *OrganizationsService
133
134	Projects *ProjectsService
135}
136
137func (s *Service) userAgent() string {
138	if s.UserAgent == "" {
139		return googleapi.UserAgent
140	}
141	return googleapi.UserAgent + " " + s.UserAgent
142}
143
144func NewHybridService(s *Service) *HybridService {
145	rs := &HybridService{s: s}
146	rs.Issuers = NewHybridIssuersService(s)
147	return rs
148}
149
150type HybridService struct {
151	s *Service
152
153	Issuers *HybridIssuersService
154}
155
156func NewHybridIssuersService(s *Service) *HybridIssuersService {
157	rs := &HybridIssuersService{s: s}
158	return rs
159}
160
161type HybridIssuersService struct {
162	s *Service
163}
164
165func NewOrganizationsService(s *Service) *OrganizationsService {
166	rs := &OrganizationsService{s: s}
167	rs.Analytics = NewOrganizationsAnalyticsService(s)
168	rs.Apiproducts = NewOrganizationsApiproductsService(s)
169	rs.Apis = NewOrganizationsApisService(s)
170	rs.Apps = NewOrganizationsAppsService(s)
171	rs.Datacollectors = NewOrganizationsDatacollectorsService(s)
172	rs.Deployments = NewOrganizationsDeploymentsService(s)
173	rs.Developers = NewOrganizationsDevelopersService(s)
174	rs.Envgroups = NewOrganizationsEnvgroupsService(s)
175	rs.Environments = NewOrganizationsEnvironmentsService(s)
176	rs.HostQueries = NewOrganizationsHostQueriesService(s)
177	rs.HostStats = NewOrganizationsHostStatsService(s)
178	rs.Instances = NewOrganizationsInstancesService(s)
179	rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
180	rs.Operations = NewOrganizationsOperationsService(s)
181	rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s)
182	rs.Reports = NewOrganizationsReportsService(s)
183	rs.Sharedflows = NewOrganizationsSharedflowsService(s)
184	rs.Sites = NewOrganizationsSitesService(s)
185	return rs
186}
187
188type OrganizationsService struct {
189	s *Service
190
191	Analytics *OrganizationsAnalyticsService
192
193	Apiproducts *OrganizationsApiproductsService
194
195	Apis *OrganizationsApisService
196
197	Apps *OrganizationsAppsService
198
199	Datacollectors *OrganizationsDatacollectorsService
200
201	Deployments *OrganizationsDeploymentsService
202
203	Developers *OrganizationsDevelopersService
204
205	Envgroups *OrganizationsEnvgroupsService
206
207	Environments *OrganizationsEnvironmentsService
208
209	HostQueries *OrganizationsHostQueriesService
210
211	HostStats *OrganizationsHostStatsService
212
213	Instances *OrganizationsInstancesService
214
215	Keyvaluemaps *OrganizationsKeyvaluemapsService
216
217	Operations *OrganizationsOperationsService
218
219	OptimizedHostStats *OrganizationsOptimizedHostStatsService
220
221	Reports *OrganizationsReportsService
222
223	Sharedflows *OrganizationsSharedflowsService
224
225	Sites *OrganizationsSitesService
226}
227
228func NewOrganizationsAnalyticsService(s *Service) *OrganizationsAnalyticsService {
229	rs := &OrganizationsAnalyticsService{s: s}
230	rs.Datastores = NewOrganizationsAnalyticsDatastoresService(s)
231	return rs
232}
233
234type OrganizationsAnalyticsService struct {
235	s *Service
236
237	Datastores *OrganizationsAnalyticsDatastoresService
238}
239
240func NewOrganizationsAnalyticsDatastoresService(s *Service) *OrganizationsAnalyticsDatastoresService {
241	rs := &OrganizationsAnalyticsDatastoresService{s: s}
242	return rs
243}
244
245type OrganizationsAnalyticsDatastoresService struct {
246	s *Service
247}
248
249func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
250	rs := &OrganizationsApiproductsService{s: s}
251	rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
252	return rs
253}
254
255type OrganizationsApiproductsService struct {
256	s *Service
257
258	Attributes_ *OrganizationsApiproductsAttributesService
259}
260
261func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
262	rs := &OrganizationsApiproductsAttributesService{s: s}
263	return rs
264}
265
266type OrganizationsApiproductsAttributesService struct {
267	s *Service
268}
269
270func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
271	rs := &OrganizationsApisService{s: s}
272	rs.Deployments = NewOrganizationsApisDeploymentsService(s)
273	rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
274	rs.Revisions = NewOrganizationsApisRevisionsService(s)
275	return rs
276}
277
278type OrganizationsApisService struct {
279	s *Service
280
281	Deployments *OrganizationsApisDeploymentsService
282
283	Keyvaluemaps *OrganizationsApisKeyvaluemapsService
284
285	Revisions *OrganizationsApisRevisionsService
286}
287
288func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
289	rs := &OrganizationsApisDeploymentsService{s: s}
290	return rs
291}
292
293type OrganizationsApisDeploymentsService struct {
294	s *Service
295}
296
297func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
298	rs := &OrganizationsApisKeyvaluemapsService{s: s}
299	return rs
300}
301
302type OrganizationsApisKeyvaluemapsService struct {
303	s *Service
304}
305
306func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
307	rs := &OrganizationsApisRevisionsService{s: s}
308	rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
309	return rs
310}
311
312type OrganizationsApisRevisionsService struct {
313	s *Service
314
315	Deployments *OrganizationsApisRevisionsDeploymentsService
316}
317
318func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
319	rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
320	return rs
321}
322
323type OrganizationsApisRevisionsDeploymentsService struct {
324	s *Service
325}
326
327func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
328	rs := &OrganizationsAppsService{s: s}
329	return rs
330}
331
332type OrganizationsAppsService struct {
333	s *Service
334}
335
336func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService {
337	rs := &OrganizationsDatacollectorsService{s: s}
338	return rs
339}
340
341type OrganizationsDatacollectorsService struct {
342	s *Service
343}
344
345func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
346	rs := &OrganizationsDeploymentsService{s: s}
347	return rs
348}
349
350type OrganizationsDeploymentsService struct {
351	s *Service
352}
353
354func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
355	rs := &OrganizationsDevelopersService{s: s}
356	rs.Apps = NewOrganizationsDevelopersAppsService(s)
357	rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
358	return rs
359}
360
361type OrganizationsDevelopersService struct {
362	s *Service
363
364	Apps *OrganizationsDevelopersAppsService
365
366	Attributes_ *OrganizationsDevelopersAttributesService
367}
368
369func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
370	rs := &OrganizationsDevelopersAppsService{s: s}
371	rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
372	rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
373	return rs
374}
375
376type OrganizationsDevelopersAppsService struct {
377	s *Service
378
379	Attributes_ *OrganizationsDevelopersAppsAttributesService
380
381	Keys *OrganizationsDevelopersAppsKeysService
382}
383
384func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
385	rs := &OrganizationsDevelopersAppsAttributesService{s: s}
386	return rs
387}
388
389type OrganizationsDevelopersAppsAttributesService struct {
390	s *Service
391}
392
393func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
394	rs := &OrganizationsDevelopersAppsKeysService{s: s}
395	rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
396	rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
397	return rs
398}
399
400type OrganizationsDevelopersAppsKeysService struct {
401	s *Service
402
403	Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
404
405	Create_ *OrganizationsDevelopersAppsKeysCreateService
406}
407
408func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
409	rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
410	return rs
411}
412
413type OrganizationsDevelopersAppsKeysApiproductsService struct {
414	s *Service
415}
416
417func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
418	rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
419	return rs
420}
421
422type OrganizationsDevelopersAppsKeysCreateService struct {
423	s *Service
424}
425
426func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
427	rs := &OrganizationsDevelopersAttributesService{s: s}
428	return rs
429}
430
431type OrganizationsDevelopersAttributesService struct {
432	s *Service
433}
434
435func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService {
436	rs := &OrganizationsEnvgroupsService{s: s}
437	rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s)
438	return rs
439}
440
441type OrganizationsEnvgroupsService struct {
442	s *Service
443
444	Attachments *OrganizationsEnvgroupsAttachmentsService
445}
446
447func NewOrganizationsEnvgroupsAttachmentsService(s *Service) *OrganizationsEnvgroupsAttachmentsService {
448	rs := &OrganizationsEnvgroupsAttachmentsService{s: s}
449	return rs
450}
451
452type OrganizationsEnvgroupsAttachmentsService struct {
453	s *Service
454}
455
456func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
457	rs := &OrganizationsEnvironmentsService{s: s}
458	rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
459	rs.Apis = NewOrganizationsEnvironmentsApisService(s)
460	rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
461	rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
462	rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
463	rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
464	rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
465	rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
466	rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
467	rs.References = NewOrganizationsEnvironmentsReferencesService(s)
468	rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
469	rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
470	rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
471	rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
472	rs.TraceConfig = NewOrganizationsEnvironmentsTraceConfigService(s)
473	return rs
474}
475
476type OrganizationsEnvironmentsService struct {
477	s *Service
478
479	Analytics *OrganizationsEnvironmentsAnalyticsService
480
481	Apis *OrganizationsEnvironmentsApisService
482
483	Caches *OrganizationsEnvironmentsCachesService
484
485	Deployments *OrganizationsEnvironmentsDeploymentsService
486
487	Flowhooks *OrganizationsEnvironmentsFlowhooksService
488
489	Keystores *OrganizationsEnvironmentsKeystoresService
490
491	Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
492
493	OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
494
495	Queries *OrganizationsEnvironmentsQueriesService
496
497	References *OrganizationsEnvironmentsReferencesService
498
499	Resourcefiles *OrganizationsEnvironmentsResourcefilesService
500
501	Sharedflows *OrganizationsEnvironmentsSharedflowsService
502
503	Stats *OrganizationsEnvironmentsStatsService
504
505	Targetservers *OrganizationsEnvironmentsTargetserversService
506
507	TraceConfig *OrganizationsEnvironmentsTraceConfigService
508}
509
510func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
511	rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
512	rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
513	rs.Exports = NewOrganizationsEnvironmentsAnalyticsExportsService(s)
514	return rs
515}
516
517type OrganizationsEnvironmentsAnalyticsService struct {
518	s *Service
519
520	Admin *OrganizationsEnvironmentsAnalyticsAdminService
521
522	Exports *OrganizationsEnvironmentsAnalyticsExportsService
523}
524
525func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
526	rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
527	return rs
528}
529
530type OrganizationsEnvironmentsAnalyticsAdminService struct {
531	s *Service
532}
533
534func NewOrganizationsEnvironmentsAnalyticsExportsService(s *Service) *OrganizationsEnvironmentsAnalyticsExportsService {
535	rs := &OrganizationsEnvironmentsAnalyticsExportsService{s: s}
536	return rs
537}
538
539type OrganizationsEnvironmentsAnalyticsExportsService struct {
540	s *Service
541}
542
543func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
544	rs := &OrganizationsEnvironmentsApisService{s: s}
545	rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
546	rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
547	return rs
548}
549
550type OrganizationsEnvironmentsApisService struct {
551	s *Service
552
553	Deployments *OrganizationsEnvironmentsApisDeploymentsService
554
555	Revisions *OrganizationsEnvironmentsApisRevisionsService
556}
557
558func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
559	rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
560	return rs
561}
562
563type OrganizationsEnvironmentsApisDeploymentsService struct {
564	s *Service
565}
566
567func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
568	rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
569	rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
570	rs.Deployments = NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s)
571	return rs
572}
573
574type OrganizationsEnvironmentsApisRevisionsService struct {
575	s *Service
576
577	Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
578
579	Deployments *OrganizationsEnvironmentsApisRevisionsDeploymentsService
580}
581
582func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
583	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
584	rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
585	return rs
586}
587
588type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
589	s *Service
590
591	Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
592}
593
594func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
595	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
596	return rs
597}
598
599type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
600	s *Service
601}
602
603func NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDeploymentsService {
604	rs := &OrganizationsEnvironmentsApisRevisionsDeploymentsService{s: s}
605	return rs
606}
607
608type OrganizationsEnvironmentsApisRevisionsDeploymentsService struct {
609	s *Service
610}
611
612func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
613	rs := &OrganizationsEnvironmentsCachesService{s: s}
614	return rs
615}
616
617type OrganizationsEnvironmentsCachesService struct {
618	s *Service
619}
620
621func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
622	rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
623	return rs
624}
625
626type OrganizationsEnvironmentsDeploymentsService struct {
627	s *Service
628}
629
630func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
631	rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
632	return rs
633}
634
635type OrganizationsEnvironmentsFlowhooksService struct {
636	s *Service
637}
638
639func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
640	rs := &OrganizationsEnvironmentsKeystoresService{s: s}
641	rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
642	return rs
643}
644
645type OrganizationsEnvironmentsKeystoresService struct {
646	s *Service
647
648	Aliases *OrganizationsEnvironmentsKeystoresAliasesService
649}
650
651func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
652	rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
653	return rs
654}
655
656type OrganizationsEnvironmentsKeystoresAliasesService struct {
657	s *Service
658}
659
660func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
661	rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
662	return rs
663}
664
665type OrganizationsEnvironmentsKeyvaluemapsService struct {
666	s *Service
667}
668
669func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
670	rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
671	return rs
672}
673
674type OrganizationsEnvironmentsOptimizedStatsService struct {
675	s *Service
676}
677
678func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
679	rs := &OrganizationsEnvironmentsQueriesService{s: s}
680	return rs
681}
682
683type OrganizationsEnvironmentsQueriesService struct {
684	s *Service
685}
686
687func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
688	rs := &OrganizationsEnvironmentsReferencesService{s: s}
689	return rs
690}
691
692type OrganizationsEnvironmentsReferencesService struct {
693	s *Service
694}
695
696func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
697	rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
698	return rs
699}
700
701type OrganizationsEnvironmentsResourcefilesService struct {
702	s *Service
703}
704
705func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
706	rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
707	rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
708	rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
709	return rs
710}
711
712type OrganizationsEnvironmentsSharedflowsService struct {
713	s *Service
714
715	Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
716
717	Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
718}
719
720func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
721	rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
722	return rs
723}
724
725type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
726	s *Service
727}
728
729func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
730	rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
731	return rs
732}
733
734type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
735	s *Service
736}
737
738func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
739	rs := &OrganizationsEnvironmentsStatsService{s: s}
740	return rs
741}
742
743type OrganizationsEnvironmentsStatsService struct {
744	s *Service
745}
746
747func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
748	rs := &OrganizationsEnvironmentsTargetserversService{s: s}
749	return rs
750}
751
752type OrganizationsEnvironmentsTargetserversService struct {
753	s *Service
754}
755
756func NewOrganizationsEnvironmentsTraceConfigService(s *Service) *OrganizationsEnvironmentsTraceConfigService {
757	rs := &OrganizationsEnvironmentsTraceConfigService{s: s}
758	rs.Overrides = NewOrganizationsEnvironmentsTraceConfigOverridesService(s)
759	return rs
760}
761
762type OrganizationsEnvironmentsTraceConfigService struct {
763	s *Service
764
765	Overrides *OrganizationsEnvironmentsTraceConfigOverridesService
766}
767
768func NewOrganizationsEnvironmentsTraceConfigOverridesService(s *Service) *OrganizationsEnvironmentsTraceConfigOverridesService {
769	rs := &OrganizationsEnvironmentsTraceConfigOverridesService{s: s}
770	return rs
771}
772
773type OrganizationsEnvironmentsTraceConfigOverridesService struct {
774	s *Service
775}
776
777func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService {
778	rs := &OrganizationsHostQueriesService{s: s}
779	return rs
780}
781
782type OrganizationsHostQueriesService struct {
783	s *Service
784}
785
786func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService {
787	rs := &OrganizationsHostStatsService{s: s}
788	return rs
789}
790
791type OrganizationsHostStatsService struct {
792	s *Service
793}
794
795func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService {
796	rs := &OrganizationsInstancesService{s: s}
797	rs.Attachments = NewOrganizationsInstancesAttachmentsService(s)
798	rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s)
799	rs.NatAddresses = NewOrganizationsInstancesNatAddressesService(s)
800	return rs
801}
802
803type OrganizationsInstancesService struct {
804	s *Service
805
806	Attachments *OrganizationsInstancesAttachmentsService
807
808	Canaryevaluations *OrganizationsInstancesCanaryevaluationsService
809
810	NatAddresses *OrganizationsInstancesNatAddressesService
811}
812
813func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService {
814	rs := &OrganizationsInstancesAttachmentsService{s: s}
815	return rs
816}
817
818type OrganizationsInstancesAttachmentsService struct {
819	s *Service
820}
821
822func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService {
823	rs := &OrganizationsInstancesCanaryevaluationsService{s: s}
824	return rs
825}
826
827type OrganizationsInstancesCanaryevaluationsService struct {
828	s *Service
829}
830
831func NewOrganizationsInstancesNatAddressesService(s *Service) *OrganizationsInstancesNatAddressesService {
832	rs := &OrganizationsInstancesNatAddressesService{s: s}
833	return rs
834}
835
836type OrganizationsInstancesNatAddressesService struct {
837	s *Service
838}
839
840func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
841	rs := &OrganizationsKeyvaluemapsService{s: s}
842	return rs
843}
844
845type OrganizationsKeyvaluemapsService struct {
846	s *Service
847}
848
849func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
850	rs := &OrganizationsOperationsService{s: s}
851	return rs
852}
853
854type OrganizationsOperationsService struct {
855	s *Service
856}
857
858func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService {
859	rs := &OrganizationsOptimizedHostStatsService{s: s}
860	return rs
861}
862
863type OrganizationsOptimizedHostStatsService struct {
864	s *Service
865}
866
867func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
868	rs := &OrganizationsReportsService{s: s}
869	return rs
870}
871
872type OrganizationsReportsService struct {
873	s *Service
874}
875
876func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
877	rs := &OrganizationsSharedflowsService{s: s}
878	rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
879	rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
880	return rs
881}
882
883type OrganizationsSharedflowsService struct {
884	s *Service
885
886	Deployments *OrganizationsSharedflowsDeploymentsService
887
888	Revisions *OrganizationsSharedflowsRevisionsService
889}
890
891func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
892	rs := &OrganizationsSharedflowsDeploymentsService{s: s}
893	return rs
894}
895
896type OrganizationsSharedflowsDeploymentsService struct {
897	s *Service
898}
899
900func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
901	rs := &OrganizationsSharedflowsRevisionsService{s: s}
902	rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
903	return rs
904}
905
906type OrganizationsSharedflowsRevisionsService struct {
907	s *Service
908
909	Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
910}
911
912func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
913	rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
914	return rs
915}
916
917type OrganizationsSharedflowsRevisionsDeploymentsService struct {
918	s *Service
919}
920
921func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService {
922	rs := &OrganizationsSitesService{s: s}
923	rs.Apicategories = NewOrganizationsSitesApicategoriesService(s)
924	return rs
925}
926
927type OrganizationsSitesService struct {
928	s *Service
929
930	Apicategories *OrganizationsSitesApicategoriesService
931}
932
933func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService {
934	rs := &OrganizationsSitesApicategoriesService{s: s}
935	return rs
936}
937
938type OrganizationsSitesApicategoriesService struct {
939	s *Service
940}
941
942func NewProjectsService(s *Service) *ProjectsService {
943	rs := &ProjectsService{s: s}
944	return rs
945}
946
947type ProjectsService struct {
948	s *Service
949}
950
951// GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It
952// should only be used for payload formats that can't be represented as
953// JSON, such as raw binary or an HTML page. This message can be used
954// both in streaming and non-streaming API methods in the request as
955// well as the response. It can be used as a top-level request field,
956// which is convenient if one wants to extract parameters from either
957// the URL or HTTP template into the request fields and also want access
958// to the raw HTTP body. Example: message GetResourceRequest { // A
959// unique request id. string request_id = 1; // The raw HTTP body is
960// bound to this field. google.api.HttpBody http_body = 2; } service
961// ResourceService { rpc GetResource(GetResourceRequest) returns
962// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody)
963// returns (google.protobuf.Empty); } Example with streaming methods:
964// service CaldavService { rpc GetCalendar(stream google.api.HttpBody)
965// returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
966// google.api.HttpBody) returns (stream google.api.HttpBody); } Use of
967// this type only changes how the request and response bodies are
968// handled, all other features will continue to work unchanged.
969type GoogleApiHttpBody struct {
970	// ContentType: The HTTP Content-Type header value specifying the
971	// content type of the body.
972	ContentType string `json:"contentType,omitempty"`
973
974	// Data: The HTTP request/response body as raw binary.
975	Data string `json:"data,omitempty"`
976
977	// Extensions: Application specific response metadata. Must be set in
978	// the first response for streaming APIs.
979	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
980
981	// ServerResponse contains the HTTP response code and headers from the
982	// server.
983	googleapi.ServerResponse `json:"-"`
984
985	// ForceSendFields is a list of field names (e.g. "ContentType") to
986	// unconditionally include in API requests. By default, fields with
987	// empty values are omitted from API requests. However, any non-pointer,
988	// non-interface field appearing in ForceSendFields will be sent to the
989	// server regardless of whether the field is empty or not. This may be
990	// used to include empty fields in Patch requests.
991	ForceSendFields []string `json:"-"`
992
993	// NullFields is a list of field names (e.g. "ContentType") to include
994	// in API requests with the JSON null value. By default, fields with
995	// empty values are omitted from API requests. However, any field with
996	// an empty value appearing in NullFields will be sent to the server as
997	// null. It is an error if a field in this list has a non-empty value.
998	// This may be used to include null fields in Patch requests.
999	NullFields []string `json:"-"`
1000}
1001
1002func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
1003	type NoMethod GoogleApiHttpBody
1004	raw := NoMethod(*s)
1005	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1006}
1007
1008type GoogleCloudApigeeV1Access struct {
1009	Get *GoogleCloudApigeeV1AccessGet `json:"Get,omitempty"`
1010
1011	Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
1012
1013	Set *GoogleCloudApigeeV1AccessSet `json:"Set,omitempty"`
1014
1015	// ForceSendFields is a list of field names (e.g. "Get") to
1016	// unconditionally include in API requests. By default, fields with
1017	// empty values are omitted from API requests. However, any non-pointer,
1018	// non-interface field appearing in ForceSendFields will be sent to the
1019	// server regardless of whether the field is empty or not. This may be
1020	// used to include empty fields in Patch requests.
1021	ForceSendFields []string `json:"-"`
1022
1023	// NullFields is a list of field names (e.g. "Get") to include in API
1024	// requests with the JSON null value. By default, fields with empty
1025	// values are omitted from API requests. However, any field with an
1026	// empty value appearing in NullFields will be sent to the server as
1027	// null. It is an error if a field in this list has a non-empty value.
1028	// This may be used to include null fields in Patch requests.
1029	NullFields []string `json:"-"`
1030}
1031
1032func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
1033	type NoMethod GoogleCloudApigeeV1Access
1034	raw := NoMethod(*s)
1035	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1036}
1037
1038// GoogleCloudApigeeV1AccessGet: Get action. For example, "Get" : {
1039// "name" : "target.name", "value" : "default" }
1040type GoogleCloudApigeeV1AccessGet struct {
1041	Name string `json:"name,omitempty"`
1042
1043	Value string `json:"value,omitempty"`
1044
1045	// ForceSendFields is a list of field names (e.g. "Name") to
1046	// unconditionally include in API requests. By default, fields with
1047	// empty values are omitted from API requests. However, any non-pointer,
1048	// non-interface field appearing in ForceSendFields will be sent to the
1049	// server regardless of whether the field is empty or not. This may be
1050	// used to include empty fields in Patch requests.
1051	ForceSendFields []string `json:"-"`
1052
1053	// NullFields is a list of field names (e.g. "Name") to include in API
1054	// requests with the JSON null value. By default, fields with empty
1055	// values are omitted from API requests. However, any field with an
1056	// empty value appearing in NullFields will be sent to the server as
1057	// null. It is an error if a field in this list has a non-empty value.
1058	// This may be used to include null fields in Patch requests.
1059	NullFields []string `json:"-"`
1060}
1061
1062func (s *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
1063	type NoMethod GoogleCloudApigeeV1AccessGet
1064	raw := NoMethod(*s)
1065	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1066}
1067
1068// GoogleCloudApigeeV1AccessRemove: Remove action. For example, "Remove"
1069// : { "name" : "target.name", "success" : true }
1070type GoogleCloudApigeeV1AccessRemove struct {
1071	Name string `json:"name,omitempty"`
1072
1073	Success bool `json:"success,omitempty"`
1074
1075	// ForceSendFields is a list of field names (e.g. "Name") to
1076	// unconditionally include in API requests. By default, fields with
1077	// empty values are omitted from API requests. However, any non-pointer,
1078	// non-interface field appearing in ForceSendFields will be sent to the
1079	// server regardless of whether the field is empty or not. This may be
1080	// used to include empty fields in Patch requests.
1081	ForceSendFields []string `json:"-"`
1082
1083	// NullFields is a list of field names (e.g. "Name") to include in API
1084	// requests with the JSON null value. By default, fields with empty
1085	// values are omitted from API requests. However, any field with an
1086	// empty value appearing in NullFields will be sent to the server as
1087	// null. It is an error if a field in this list has a non-empty value.
1088	// This may be used to include null fields in Patch requests.
1089	NullFields []string `json:"-"`
1090}
1091
1092func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
1093	type NoMethod GoogleCloudApigeeV1AccessRemove
1094	raw := NoMethod(*s)
1095	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1096}
1097
1098// GoogleCloudApigeeV1AccessSet: Set action. For example, "Set" : {
1099// "name" : "target.name", "success" : true, "value" : "default" }
1100type GoogleCloudApigeeV1AccessSet struct {
1101	Name string `json:"name,omitempty"`
1102
1103	Success bool `json:"success,omitempty"`
1104
1105	Value string `json:"value,omitempty"`
1106
1107	// ForceSendFields is a list of field names (e.g. "Name") to
1108	// unconditionally include in API requests. By default, fields with
1109	// empty values are omitted from API requests. However, any non-pointer,
1110	// non-interface field appearing in ForceSendFields will be sent to the
1111	// server regardless of whether the field is empty or not. This may be
1112	// used to include empty fields in Patch requests.
1113	ForceSendFields []string `json:"-"`
1114
1115	// NullFields is a list of field names (e.g. "Name") to include in API
1116	// requests with the JSON null value. By default, fields with empty
1117	// values are omitted from API requests. However, any field with an
1118	// empty value appearing in NullFields will be sent to the server as
1119	// null. It is an error if a field in this list has a non-empty value.
1120	// This may be used to include null fields in Patch requests.
1121	NullFields []string `json:"-"`
1122}
1123
1124func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
1125	type NoMethod GoogleCloudApigeeV1AccessSet
1126	raw := NoMethod(*s)
1127	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1128}
1129
1130// GoogleCloudApigeeV1ActivateNatAddressRequest: Request for
1131// ActivateNatAddressRequest. Activate the nat address request.
1132type GoogleCloudApigeeV1ActivateNatAddressRequest struct {
1133}
1134
1135// GoogleCloudApigeeV1Alias: Reference to a certificate or
1136// key/certificate pair.
1137type GoogleCloudApigeeV1Alias struct {
1138	// Alias: Resource ID for this alias. Values must match the regular
1139	// expression `[^/]{1,255}`.
1140	Alias string `json:"alias,omitempty"`
1141
1142	// CertsInfo: Chain of certificates under this alias.
1143	CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
1144
1145	// Type: Type of alias.
1146	//
1147	// Possible values:
1148	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1149	//   "CERT" - Certificate.
1150	//   "KEY_CERT" - Key/certificate pair.
1151	Type string `json:"type,omitempty"`
1152
1153	// ServerResponse contains the HTTP response code and headers from the
1154	// server.
1155	googleapi.ServerResponse `json:"-"`
1156
1157	// ForceSendFields is a list of field names (e.g. "Alias") to
1158	// unconditionally include in API requests. By default, fields with
1159	// empty values are omitted from API requests. However, any non-pointer,
1160	// non-interface field appearing in ForceSendFields will be sent to the
1161	// server regardless of whether the field is empty or not. This may be
1162	// used to include empty fields in Patch requests.
1163	ForceSendFields []string `json:"-"`
1164
1165	// NullFields is a list of field names (e.g. "Alias") to include in API
1166	// requests with the JSON null value. By default, fields with empty
1167	// values are omitted from API requests. However, any field with an
1168	// empty value appearing in NullFields will be sent to the server as
1169	// null. It is an error if a field in this list has a non-empty value.
1170	// This may be used to include null fields in Patch requests.
1171	NullFields []string `json:"-"`
1172}
1173
1174func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
1175	type NoMethod GoogleCloudApigeeV1Alias
1176	raw := NoMethod(*s)
1177	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1178}
1179
1180type GoogleCloudApigeeV1AliasRevisionConfig struct {
1181	// Location: Location of the alias file. For example, a Google Cloud
1182	// Storage URI.
1183	Location string `json:"location,omitempty"`
1184
1185	// Name: Name of the alias revision included in the keystore in the
1186	// following format:
1187	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
1188	// alias}/revisions/{rev}`
1189	Name string `json:"name,omitempty"`
1190
1191	// Possible values:
1192	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1193	//   "CERT" - Certificate.
1194	//   "KEY_CERT" - Key/certificate pair.
1195	Type string `json:"type,omitempty"`
1196
1197	// ForceSendFields is a list of field names (e.g. "Location") to
1198	// unconditionally include in API requests. By default, fields with
1199	// empty values are omitted from API requests. However, any non-pointer,
1200	// non-interface field appearing in ForceSendFields will be sent to the
1201	// server regardless of whether the field is empty or not. This may be
1202	// used to include empty fields in Patch requests.
1203	ForceSendFields []string `json:"-"`
1204
1205	// NullFields is a list of field names (e.g. "Location") to include in
1206	// API requests with the JSON null value. By default, fields with empty
1207	// values are omitted from API requests. However, any field with an
1208	// empty value appearing in NullFields will be sent to the server as
1209	// null. It is an error if a field in this list has a non-empty value.
1210	// This may be used to include null fields in Patch requests.
1211	NullFields []string `json:"-"`
1212}
1213
1214func (s *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
1215	type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
1216	raw := NoMethod(*s)
1217	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1218}
1219
1220// GoogleCloudApigeeV1ApiCategory: the Api category resource wrapped
1221// with response status, error_code etc.
1222type GoogleCloudApigeeV1ApiCategory struct {
1223	// Data: Details of category.
1224	Data *GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
1225
1226	// ErrorCode: ID that can be used to find errors in the log files.
1227	ErrorCode string `json:"errorCode,omitempty"`
1228
1229	// Message: Description of the operation.
1230	Message string `json:"message,omitempty"`
1231
1232	// RequestId: ID that can be used to find request details in the log
1233	// files.
1234	RequestId string `json:"requestId,omitempty"`
1235
1236	// Status: Status of the operation.
1237	Status string `json:"status,omitempty"`
1238
1239	// ServerResponse contains the HTTP response code and headers from the
1240	// server.
1241	googleapi.ServerResponse `json:"-"`
1242
1243	// ForceSendFields is a list of field names (e.g. "Data") to
1244	// unconditionally include in API requests. By default, fields with
1245	// empty values are omitted from API requests. However, any non-pointer,
1246	// non-interface field appearing in ForceSendFields will be sent to the
1247	// server regardless of whether the field is empty or not. This may be
1248	// used to include empty fields in Patch requests.
1249	ForceSendFields []string `json:"-"`
1250
1251	// NullFields is a list of field names (e.g. "Data") to include in API
1252	// requests with the JSON null value. By default, fields with empty
1253	// values are omitted from API requests. However, any field with an
1254	// empty value appearing in NullFields will be sent to the server as
1255	// null. It is an error if a field in this list has a non-empty value.
1256	// This may be used to include null fields in Patch requests.
1257	NullFields []string `json:"-"`
1258}
1259
1260func (s *GoogleCloudApigeeV1ApiCategory) MarshalJSON() ([]byte, error) {
1261	type NoMethod GoogleCloudApigeeV1ApiCategory
1262	raw := NoMethod(*s)
1263	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1264}
1265
1266// GoogleCloudApigeeV1ApiCategoryData: the Api category resource.
1267type GoogleCloudApigeeV1ApiCategoryData struct {
1268	// Id: ID of the category (a UUID).
1269	Id string `json:"id,omitempty"`
1270
1271	// Name: Name of the category.
1272	Name string `json:"name,omitempty"`
1273
1274	// SiteId: Name of the portal.
1275	SiteId string `json:"siteId,omitempty"`
1276
1277	// UpdateTime: Time the category was last modified in milliseconds since
1278	// epoch.
1279	UpdateTime int64 `json:"updateTime,omitempty,string"`
1280
1281	// ForceSendFields is a list of field names (e.g. "Id") to
1282	// unconditionally include in API requests. By default, fields with
1283	// empty values are omitted from API requests. However, any non-pointer,
1284	// non-interface field appearing in ForceSendFields will be sent to the
1285	// server regardless of whether the field is empty or not. This may be
1286	// used to include empty fields in Patch requests.
1287	ForceSendFields []string `json:"-"`
1288
1289	// NullFields is a list of field names (e.g. "Id") to include in API
1290	// requests with the JSON null value. By default, fields with empty
1291	// values are omitted from API requests. However, any field with an
1292	// empty value appearing in NullFields will be sent to the server as
1293	// null. It is an error if a field in this list has a non-empty value.
1294	// This may be used to include null fields in Patch requests.
1295	NullFields []string `json:"-"`
1296}
1297
1298func (s *GoogleCloudApigeeV1ApiCategoryData) MarshalJSON() ([]byte, error) {
1299	type NoMethod GoogleCloudApigeeV1ApiCategoryData
1300	raw := NoMethod(*s)
1301	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1302}
1303
1304type GoogleCloudApigeeV1ApiProduct struct {
1305	ApiResources []string `json:"apiResources,omitempty"`
1306
1307	// ApprovalType: Flag that specifies how API keys are approved to access
1308	// the APIs defined by the API product. If set to `manual`, the consumer
1309	// key is generated and returned in "pending" state. In this case, the
1310	// API keys won't work until they have been explicitly approved. If set
1311	// to `auto`, the consumer key is generated and returned in "approved"
1312	// state and can be used immediately. **Note:** Typically, `auto` is
1313	// used to provide access to free or trial API products that provide
1314	// limited quota or capabilities.
1315	ApprovalType string `json:"approvalType,omitempty"`
1316
1317	// Attributes: Array of attributes that may be used to extend the
1318	// default API product profile with customer-specific metadata. You can
1319	// specify a maximum of 18 attributes. Use this property to specify the
1320	// access level of the API product as either `public`, `private`, or
1321	// `internal`. Only products marked `public` are available to developers
1322	// in the Apigee developer portal. For example, you can set a product to
1323	// `internal` while it is in development and then change access to
1324	// `public` when it is ready to release on the portal. API products
1325	// marked as `private` do not appear on the portal, but can be accessed
1326	// by external developers.
1327	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1328
1329	// CreatedAt: Response only. Creation time of this environment as
1330	// milliseconds since epoch.
1331	CreatedAt int64 `json:"createdAt,omitempty,string"`
1332
1333	// Description: Description of the API product. Include key information
1334	// about the API product that is not captured by other fields.
1335	// Comma-separated list of API resources to be bundled in the API
1336	// product. By default, the resource paths are mapped from the
1337	// `proxy.pathsuffix` variable. The proxy path suffix is defined as the
1338	// URI fragment following the ProxyEndpoint base path. For example, if
1339	// the `apiResources` element is defined to be `/forecastrss` and the
1340	// base path defined for the API proxy is `/weather`, then only requests
1341	// to `/weather/forecastrss` are permitted by the API product. You can
1342	// select a specific path, or you can select all subpaths with the
1343	// following wildcard: - `/**`: Indicates that all sub-URIs are
1344	// included. - `/*` : Indicates that only URIs one level down are
1345	// included. By default, / supports the same resources as /** as well as
1346	// the base path defined by the API proxy. For example, if the base path
1347	// of the API proxy is `/v1/weatherapikey`, then the API product
1348	// supports requests to `/v1/weatherapikey` and to any sub-URIs, such as
1349	// `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and
1350	// so on. For more information, see Managing API products.
1351	Description string `json:"description,omitempty"`
1352
1353	// DisplayName: Name displayed in the UI or developer portal to
1354	// developers registering for API access.
1355	DisplayName string `json:"displayName,omitempty"`
1356
1357	// Environments: Comma-separated list of environment names to which the
1358	// API product is bound. Requests to environments that are not listed
1359	// are rejected. By specifying one or more environments, you can bind
1360	// the resources listed in the API product to a specific environment,
1361	// preventing developers from accessing those resources through API
1362	// proxies deployed in another environment. This setting is used, for
1363	// example, to prevent resources associated with API proxies in `prod`
1364	// from being accessed by API proxies deployed in `test`.
1365	Environments []string `json:"environments,omitempty"`
1366
1367	// GraphqlOperationGroup: Configuration used to group Apigee proxies or
1368	// remote services with graphQL operation name, graphQL operation type
1369	// and quotas. This grouping allows us to precisely set quota for a
1370	// particular combination of graphQL name and operation type for a
1371	// particular proxy request. If graphQL name is not set, this would
1372	// imply quota will be applied on all graphQL requests matching the
1373	// operation type.
1374	GraphqlOperationGroup *GoogleCloudApigeeV1GraphQLOperationGroup `json:"graphqlOperationGroup,omitempty"`
1375
1376	// LastModifiedAt: Response only. Modified time of this environment as
1377	// milliseconds since epoch.
1378	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1379
1380	// Name: Internal name of the API product. Characters you can use in the
1381	// name are restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name
1382	// cannot be edited when updating the API product.
1383	Name string `json:"name,omitempty"`
1384
1385	// OperationGroup: Configuration used to group Apigee proxies or remote
1386	// services with resources, method types, and quotas. The resource
1387	// refers to the resource URI (excluding the base path). With this
1388	// grouping, the API product creator is able to fine-tune and give
1389	// precise control over which REST methods have access to specific
1390	// resources and how many calls can be made (using the `quota` setting).
1391	// **Note:** The `api_resources` setting cannot be specified for both
1392	// the API product and operation group; otherwise the call will fail.
1393	OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"`
1394
1395	// Proxies: Comma-separated list of API proxy names to which this API
1396	// product is bound. By specifying API proxies, you can associate
1397	// resources in the API product with specific API proxies, preventing
1398	// developers from accessing those resources through other API proxies.
1399	// Apigee rejects requests to API proxies that are not listed. **Note:**
1400	// The API proxy names must already exist in the specified environment
1401	// as they will be validated upon creation.
1402	Proxies []string `json:"proxies,omitempty"`
1403
1404	// Quota: Number of request messages permitted per app by this API
1405	// product for the specified `quotaInterval` and `quotaTimeUnit`. For
1406	// example, a `quota` of 50, for a `quotaInterval` of 12 and a
1407	// `quotaTimeUnit` of hours means 50 requests are allowed every 12
1408	// hours.
1409	Quota string `json:"quota,omitempty"`
1410
1411	// QuotaInterval: Time interval over which the number of request
1412	// messages is calculated.
1413	QuotaInterval string `json:"quotaInterval,omitempty"`
1414
1415	// QuotaTimeUnit: Time unit defined for the `quotaInterval`. Valid
1416	// values include `minute`, `hour`, `day`, or `month`.
1417	QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
1418
1419	// Scopes: Comma-separated list of OAuth scopes that are validated at
1420	// runtime. Apigee validates that the scopes in any access token
1421	// presented match the scopes defined in the OAuth policy associated
1422	// with the API product.
1423	Scopes []string `json:"scopes,omitempty"`
1424
1425	// ServerResponse contains the HTTP response code and headers from the
1426	// server.
1427	googleapi.ServerResponse `json:"-"`
1428
1429	// ForceSendFields is a list of field names (e.g. "ApiResources") to
1430	// unconditionally include in API requests. By default, fields with
1431	// empty values are omitted from API requests. However, any non-pointer,
1432	// non-interface field appearing in ForceSendFields will be sent to the
1433	// server regardless of whether the field is empty or not. This may be
1434	// used to include empty fields in Patch requests.
1435	ForceSendFields []string `json:"-"`
1436
1437	// NullFields is a list of field names (e.g. "ApiResources") to include
1438	// in API requests with the JSON null value. By default, fields with
1439	// empty values are omitted from API requests. However, any field with
1440	// an empty value appearing in NullFields will be sent to the server as
1441	// null. It is an error if a field in this list has a non-empty value.
1442	// This may be used to include null fields in Patch requests.
1443	NullFields []string `json:"-"`
1444}
1445
1446func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
1447	type NoMethod GoogleCloudApigeeV1ApiProduct
1448	raw := NoMethod(*s)
1449	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1450}
1451
1452type GoogleCloudApigeeV1ApiProductRef struct {
1453	// Apiproduct: Name of the API product.
1454	Apiproduct string `json:"apiproduct,omitempty"`
1455
1456	// Status: Status of the API product.
1457	Status string `json:"status,omitempty"`
1458
1459	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
1460	// unconditionally include in API requests. By default, fields with
1461	// empty values are omitted from API requests. However, any non-pointer,
1462	// non-interface field appearing in ForceSendFields will be sent to the
1463	// server regardless of whether the field is empty or not. This may be
1464	// used to include empty fields in Patch requests.
1465	ForceSendFields []string `json:"-"`
1466
1467	// NullFields is a list of field names (e.g. "Apiproduct") to include in
1468	// API requests with the JSON null value. By default, fields with empty
1469	// values are omitted from API requests. However, any field with an
1470	// empty value appearing in NullFields will be sent to the server as
1471	// null. It is an error if a field in this list has a non-empty value.
1472	// This may be used to include null fields in Patch requests.
1473	NullFields []string `json:"-"`
1474}
1475
1476func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
1477	type NoMethod GoogleCloudApigeeV1ApiProductRef
1478	raw := NoMethod(*s)
1479	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1480}
1481
1482// GoogleCloudApigeeV1ApiProxy: Metadata describing the API proxy
1483type GoogleCloudApigeeV1ApiProxy struct {
1484	// LatestRevisionId: The id of the most recently created revision for
1485	// this api proxy.
1486	LatestRevisionId string `json:"latestRevisionId,omitempty"`
1487
1488	// MetaData: Metadata describing the API proxy.
1489	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
1490
1491	// Name: Name of the API proxy.
1492	Name string `json:"name,omitempty"`
1493
1494	// Revision: List of revisons defined for the API proxy.
1495	Revision []string `json:"revision,omitempty"`
1496
1497	// ServerResponse contains the HTTP response code and headers from the
1498	// server.
1499	googleapi.ServerResponse `json:"-"`
1500
1501	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
1502	// unconditionally include in API requests. By default, fields with
1503	// empty values are omitted from API requests. However, any non-pointer,
1504	// non-interface field appearing in ForceSendFields will be sent to the
1505	// server regardless of whether the field is empty or not. This may be
1506	// used to include empty fields in Patch requests.
1507	ForceSendFields []string `json:"-"`
1508
1509	// NullFields is a list of field names (e.g. "LatestRevisionId") to
1510	// include in API requests with the JSON null value. By default, fields
1511	// with empty values are omitted from API requests. However, any field
1512	// with an empty value appearing in NullFields will be sent to the
1513	// server as null. It is an error if a field in this list has a
1514	// non-empty value. This may be used to include null fields in Patch
1515	// requests.
1516	NullFields []string `json:"-"`
1517}
1518
1519func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
1520	type NoMethod GoogleCloudApigeeV1ApiProxy
1521	raw := NoMethod(*s)
1522	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1523}
1524
1525// GoogleCloudApigeeV1ApiProxyRevision: API proxy revision.
1526type GoogleCloudApigeeV1ApiProxyRevision struct {
1527	// Basepaths: Base URL of the API proxy.
1528	Basepaths []string `json:"basepaths,omitempty"`
1529
1530	// ConfigurationVersion: Version of the API proxy configuration schema
1531	// to which the API proxy conforms. Currently, the only supported value
1532	// is 4.0 (`majorVersion.minorVersion`). This setting may be used in the
1533	// future to track the evolution of the API proxy format.
1534	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
1535
1536	// ContextInfo: Revision number, app name, and organization for the API
1537	// proxy.
1538	ContextInfo string `json:"contextInfo,omitempty"`
1539
1540	// CreatedAt: Time that the API proxy revision was created in
1541	// milliseconds since epoch.
1542	CreatedAt int64 `json:"createdAt,omitempty,string"`
1543
1544	// Description: Description of the API proxy revision.
1545	Description string `json:"description,omitempty"`
1546
1547	// DisplayName: Human-readable name of the API proxy.
1548	DisplayName string `json:"displayName,omitempty"`
1549
1550	// EntityMetaDataAsProperties: Metadata describing the API proxy
1551	// revision as a key-value map.
1552	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
1553
1554	// LastModifiedAt: Time that the API proxy revision was last modified in
1555	// milliseconds since epoch.
1556	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1557
1558	// Name: Name of the API proxy.
1559	Name string `json:"name,omitempty"`
1560
1561	// Policies: List of policy names included in the API proxy revision..
1562	Policies []string `json:"policies,omitempty"`
1563
1564	// Proxies: List of proxy names included in the API proxy revision.
1565	Proxies []string `json:"proxies,omitempty"`
1566
1567	// ProxyEndpoints: List of ProxyEndpoints in the `/proxies` directory of
1568	// the API proxy. Typically, this element is included only when the API
1569	// proxy was created using the Edge UI. This is a 'manifest' setting
1570	// designed to provide visibility into the contents of the API proxy.
1571	ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
1572
1573	// ResourceFiles: List of resource files included in the API proxy
1574	// revision.
1575	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
1576
1577	// Resources: List of the resources included in the API proxy revision
1578	// formatted as "{type}://{name}".
1579	Resources []string `json:"resources,omitempty"`
1580
1581	// Revision: API proxy revision.
1582	Revision string `json:"revision,omitempty"`
1583
1584	// SharedFlows: List of the shared flows included in the API proxy
1585	// revision.
1586	SharedFlows []string `json:"sharedFlows,omitempty"`
1587
1588	// Spec: OpenAPI Specification that is associated with the API proxy.
1589	// The value is set to a URL or to a path in the specification store.
1590	Spec string `json:"spec,omitempty"`
1591
1592	// TargetEndpoints: List of TargetEndpoints in the `/targets` directory
1593	// of the API proxy. Typically, this element is included only when the
1594	// API proxy was created using the Edge UI. This is a 'manifest' setting
1595	// designed to provide visibility into the contents of the API proxy.
1596	TargetEndpoints []string `json:"targetEndpoints,omitempty"`
1597
1598	// TargetServers: List of TargetServers referenced in any TargetEndpoint
1599	// in the API proxy. Typically, you will see this element only when the
1600	// API proxy was created using the Edge UI. This is a 'manifest' setting
1601	// designed to provide visibility into the contents of the API proxy.
1602	TargetServers []string `json:"targetServers,omitempty"`
1603
1604	// Targets: List of the targets included in the API proxy revision.
1605	Targets []string `json:"targets,omitempty"`
1606
1607	// Teams: List of the teams included in the API proxy revision.
1608	Teams []string `json:"teams,omitempty"`
1609
1610	// Type: Type. Set to `Application`. Maintained for compatibility with
1611	// the Apigee Edge API.
1612	Type string `json:"type,omitempty"`
1613
1614	// ServerResponse contains the HTTP response code and headers from the
1615	// server.
1616	googleapi.ServerResponse `json:"-"`
1617
1618	// ForceSendFields is a list of field names (e.g. "Basepaths") to
1619	// unconditionally include in API requests. By default, fields with
1620	// empty values are omitted from API requests. However, any non-pointer,
1621	// non-interface field appearing in ForceSendFields will be sent to the
1622	// server regardless of whether the field is empty or not. This may be
1623	// used to include empty fields in Patch requests.
1624	ForceSendFields []string `json:"-"`
1625
1626	// NullFields is a list of field names (e.g. "Basepaths") to include in
1627	// API requests with the JSON null value. By default, fields with empty
1628	// values are omitted from API requests. However, any field with an
1629	// empty value appearing in NullFields will be sent to the server as
1630	// null. It is an error if a field in this list has a non-empty value.
1631	// This may be used to include null fields in Patch requests.
1632	NullFields []string `json:"-"`
1633}
1634
1635func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
1636	type NoMethod GoogleCloudApigeeV1ApiProxyRevision
1637	raw := NoMethod(*s)
1638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1639}
1640
1641type GoogleCloudApigeeV1ApiResponseWrapper struct {
1642	// ErrorCode: ID that can be used to find errors in the log files.
1643	ErrorCode string `json:"errorCode,omitempty"`
1644
1645	// Message: Description of the operation.
1646	Message string `json:"message,omitempty"`
1647
1648	// RequestId: ID that can be used to find request details in the log
1649	// files.
1650	RequestId string `json:"requestId,omitempty"`
1651
1652	// Status: Status of the operation.
1653	Status string `json:"status,omitempty"`
1654
1655	// ServerResponse contains the HTTP response code and headers from the
1656	// server.
1657	googleapi.ServerResponse `json:"-"`
1658
1659	// ForceSendFields is a list of field names (e.g. "ErrorCode") to
1660	// unconditionally include in API requests. By default, fields with
1661	// empty values are omitted from API requests. However, any non-pointer,
1662	// non-interface field appearing in ForceSendFields will be sent to the
1663	// server regardless of whether the field is empty or not. This may be
1664	// used to include empty fields in Patch requests.
1665	ForceSendFields []string `json:"-"`
1666
1667	// NullFields is a list of field names (e.g. "ErrorCode") to include in
1668	// API requests with the JSON null value. By default, fields with empty
1669	// values are omitted from API requests. However, any field with an
1670	// empty value appearing in NullFields will be sent to the server as
1671	// null. It is an error if a field in this list has a non-empty value.
1672	// This may be used to include null fields in Patch requests.
1673	NullFields []string `json:"-"`
1674}
1675
1676func (s *GoogleCloudApigeeV1ApiResponseWrapper) MarshalJSON() ([]byte, error) {
1677	type NoMethod GoogleCloudApigeeV1ApiResponseWrapper
1678	raw := NoMethod(*s)
1679	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1680}
1681
1682type GoogleCloudApigeeV1App struct {
1683	// ApiProducts: List of API products associated with the app.
1684	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
1685
1686	// AppId: ID of the app.
1687	AppId string `json:"appId,omitempty"`
1688
1689	// Attributes: List of attributes.
1690	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1691
1692	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
1693	// communicate authorization codes back to apps.
1694	CallbackUrl string `json:"callbackUrl,omitempty"`
1695
1696	// CompanyName: Name of the company that owns the app.
1697	CompanyName string `json:"companyName,omitempty"`
1698
1699	// CreatedAt: Output only. Unix time when the app was created.
1700	CreatedAt int64 `json:"createdAt,omitempty,string"`
1701
1702	// Credentials: Output only. Set of credentials for the app. Credentials
1703	// are API key/secret pairs associated with API products.
1704	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
1705
1706	// DeveloperId: ID of the developer.
1707	DeveloperId string `json:"developerId,omitempty"`
1708
1709	// KeyExpiresIn: Duration, in milliseconds, of the consumer key that
1710	// will be generated for the app. The default value, -1, indicates an
1711	// infinite validity period. Once set, the expiration can't be updated.
1712	// json key: keyExpiresIn
1713	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
1714
1715	// LastModifiedAt: Output only. Last modified time as milliseconds since
1716	// epoch.
1717	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1718
1719	// Name: Name of the app.
1720	Name string `json:"name,omitempty"`
1721
1722	// Scopes: Scopes to apply to the app. The specified scope names must
1723	// already exist on the API product that you associate with the app.
1724	Scopes []string `json:"scopes,omitempty"`
1725
1726	// Status: Status of the credential.
1727	Status string `json:"status,omitempty"`
1728
1729	// ServerResponse contains the HTTP response code and headers from the
1730	// server.
1731	googleapi.ServerResponse `json:"-"`
1732
1733	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
1734	// unconditionally include in API requests. By default, fields with
1735	// empty values are omitted from API requests. However, any non-pointer,
1736	// non-interface field appearing in ForceSendFields will be sent to the
1737	// server regardless of whether the field is empty or not. This may be
1738	// used to include empty fields in Patch requests.
1739	ForceSendFields []string `json:"-"`
1740
1741	// NullFields is a list of field names (e.g. "ApiProducts") to include
1742	// in API requests with the JSON null value. By default, fields with
1743	// empty values are omitted from API requests. However, any field with
1744	// an empty value appearing in NullFields will be sent to the server as
1745	// null. It is an error if a field in this list has a non-empty value.
1746	// This may be used to include null fields in Patch requests.
1747	NullFields []string `json:"-"`
1748}
1749
1750func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
1751	type NoMethod GoogleCloudApigeeV1App
1752	raw := NoMethod(*s)
1753	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1754}
1755
1756type GoogleCloudApigeeV1AsyncQuery struct {
1757	// Created: Creation time of the query.
1758	Created string `json:"created,omitempty"`
1759
1760	// EnvgroupHostname: Hostname is available only when query is executed
1761	// at host level.
1762	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
1763
1764	// Error: Error is set when query fails.
1765	Error string `json:"error,omitempty"`
1766
1767	// ExecutionTime: ExecutionTime is available only after the query is
1768	// completed.
1769	ExecutionTime string `json:"executionTime,omitempty"`
1770
1771	// Name: Asynchronous Query Name.
1772	Name string `json:"name,omitempty"`
1773
1774	// QueryParams: Contains information like metrics, dimenstions etc of
1775	// the AsyncQuery.
1776	QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
1777
1778	// ReportDefinitionId: Asynchronous Report ID.
1779	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
1780
1781	// Result: Result is available only after the query is completed.
1782	Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
1783
1784	// ResultFileSize: ResultFileSize is available only after the query is
1785	// completed.
1786	ResultFileSize string `json:"resultFileSize,omitempty"`
1787
1788	// ResultRows: ResultRows is available only after the query is
1789	// completed.
1790	ResultRows int64 `json:"resultRows,omitempty,string"`
1791
1792	// Self: Self link of the query. Example:
1793	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
1794	// 6f-318d0cb961bd` or following format if query is running at host
1795	// level:
1796	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
1797	// `
1798	Self string `json:"self,omitempty"`
1799
1800	// State: Query state could be "enqueued", "running", "completed",
1801	// "failed".
1802	State string `json:"state,omitempty"`
1803
1804	// Updated: Last updated timestamp for the query.
1805	Updated string `json:"updated,omitempty"`
1806
1807	// ServerResponse contains the HTTP response code and headers from the
1808	// server.
1809	googleapi.ServerResponse `json:"-"`
1810
1811	// ForceSendFields is a list of field names (e.g. "Created") to
1812	// unconditionally include in API requests. By default, fields with
1813	// empty values are omitted from API requests. However, any non-pointer,
1814	// non-interface field appearing in ForceSendFields will be sent to the
1815	// server regardless of whether the field is empty or not. This may be
1816	// used to include empty fields in Patch requests.
1817	ForceSendFields []string `json:"-"`
1818
1819	// NullFields is a list of field names (e.g. "Created") to include in
1820	// API requests with the JSON null value. By default, fields with empty
1821	// values are omitted from API requests. However, any field with an
1822	// empty value appearing in NullFields will be sent to the server as
1823	// null. It is an error if a field in this list has a non-empty value.
1824	// This may be used to include null fields in Patch requests.
1825	NullFields []string `json:"-"`
1826}
1827
1828func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
1829	type NoMethod GoogleCloudApigeeV1AsyncQuery
1830	raw := NoMethod(*s)
1831	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1832}
1833
1834type GoogleCloudApigeeV1AsyncQueryResult struct {
1835	// Expires: Query result will be unaccessable after this time.
1836	Expires string `json:"expires,omitempty"`
1837
1838	// Self: Self link of the query results. Example:
1839	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
1840	// 6f-318d0cb961bd/result` or following format if query is running at
1841	// host level:
1842	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
1843	// /result`
1844	Self string `json:"self,omitempty"`
1845
1846	// ForceSendFields is a list of field names (e.g. "Expires") to
1847	// unconditionally include in API requests. By default, fields with
1848	// empty values are omitted from API requests. However, any non-pointer,
1849	// non-interface field appearing in ForceSendFields will be sent to the
1850	// server regardless of whether the field is empty or not. This may be
1851	// used to include empty fields in Patch requests.
1852	ForceSendFields []string `json:"-"`
1853
1854	// NullFields is a list of field names (e.g. "Expires") to include in
1855	// API requests with the JSON null value. By default, fields with empty
1856	// values are omitted from API requests. However, any field with an
1857	// empty value appearing in NullFields will be sent to the server as
1858	// null. It is an error if a field in this list has a non-empty value.
1859	// This may be used to include null fields in Patch requests.
1860	NullFields []string `json:"-"`
1861}
1862
1863func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
1864	type NoMethod GoogleCloudApigeeV1AsyncQueryResult
1865	raw := NoMethod(*s)
1866	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1867}
1868
1869type GoogleCloudApigeeV1AsyncQueryResultView struct {
1870	// Code: Error code when there is a failure.
1871	Code int64 `json:"code,omitempty"`
1872
1873	// Error: Error message when there is a failure.
1874	Error string `json:"error,omitempty"`
1875
1876	// Metadata: Metadata contains information like metrics, dimenstions etc
1877	// of the AsyncQuery.
1878	Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
1879
1880	// Rows: Rows of query result. Each row is a JSON object. Example:
1881	// {sum(message_count): 1, developer_app: "(not set)",…}
1882	Rows []interface{} `json:"rows,omitempty"`
1883
1884	// State: State of retrieving ResultView.
1885	State string `json:"state,omitempty"`
1886
1887	// ServerResponse contains the HTTP response code and headers from the
1888	// server.
1889	googleapi.ServerResponse `json:"-"`
1890
1891	// ForceSendFields is a list of field names (e.g. "Code") to
1892	// unconditionally include in API requests. By default, fields with
1893	// empty values are omitted from API requests. However, any non-pointer,
1894	// non-interface field appearing in ForceSendFields will be sent to the
1895	// server regardless of whether the field is empty or not. This may be
1896	// used to include empty fields in Patch requests.
1897	ForceSendFields []string `json:"-"`
1898
1899	// NullFields is a list of field names (e.g. "Code") to include in API
1900	// requests with the JSON null value. By default, fields with empty
1901	// values are omitted from API requests. However, any field with an
1902	// empty value appearing in NullFields will be sent to the server as
1903	// null. It is an error if a field in this list has a non-empty value.
1904	// This may be used to include null fields in Patch requests.
1905	NullFields []string `json:"-"`
1906}
1907
1908func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
1909	type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
1910	raw := NoMethod(*s)
1911	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1912}
1913
1914// GoogleCloudApigeeV1Attribute: Key-value pair to store extra metadata.
1915type GoogleCloudApigeeV1Attribute struct {
1916	// Name: API key of the attribute.
1917	Name string `json:"name,omitempty"`
1918
1919	// Value: Value of the attribute.
1920	Value string `json:"value,omitempty"`
1921
1922	// ServerResponse contains the HTTP response code and headers from the
1923	// server.
1924	googleapi.ServerResponse `json:"-"`
1925
1926	// ForceSendFields is a list of field names (e.g. "Name") to
1927	// unconditionally include in API requests. By default, fields with
1928	// empty values are omitted from API requests. However, any non-pointer,
1929	// non-interface field appearing in ForceSendFields will be sent to the
1930	// server regardless of whether the field is empty or not. This may be
1931	// used to include empty fields in Patch requests.
1932	ForceSendFields []string `json:"-"`
1933
1934	// NullFields is a list of field names (e.g. "Name") to include in API
1935	// requests with the JSON null value. By default, fields with empty
1936	// values are omitted from API requests. However, any field with an
1937	// empty value appearing in NullFields will be sent to the server as
1938	// null. It is an error if a field in this list has a non-empty value.
1939	// This may be used to include null fields in Patch requests.
1940	NullFields []string `json:"-"`
1941}
1942
1943func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
1944	type NoMethod GoogleCloudApigeeV1Attribute
1945	raw := NoMethod(*s)
1946	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1947}
1948
1949type GoogleCloudApigeeV1Attributes struct {
1950	// Attribute: List of attributes.
1951	Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
1952
1953	// ServerResponse contains the HTTP response code and headers from the
1954	// server.
1955	googleapi.ServerResponse `json:"-"`
1956
1957	// ForceSendFields is a list of field names (e.g. "Attribute") to
1958	// unconditionally include in API requests. By default, fields with
1959	// empty values are omitted from API requests. However, any non-pointer,
1960	// non-interface field appearing in ForceSendFields will be sent to the
1961	// server regardless of whether the field is empty or not. This may be
1962	// used to include empty fields in Patch requests.
1963	ForceSendFields []string `json:"-"`
1964
1965	// NullFields is a list of field names (e.g. "Attribute") to include in
1966	// API requests with the JSON null value. By default, fields with empty
1967	// values are omitted from API requests. However, any field with an
1968	// empty value appearing in NullFields will be sent to the server as
1969	// null. It is an error if a field in this list has a non-empty value.
1970	// This may be used to include null fields in Patch requests.
1971	NullFields []string `json:"-"`
1972}
1973
1974func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
1975	type NoMethod GoogleCloudApigeeV1Attributes
1976	raw := NoMethod(*s)
1977	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1978}
1979
1980// GoogleCloudApigeeV1CanaryEvaluation: CanaryEvaluation represents the
1981// canary analysis between two versions of the runtime that is serving
1982// requests.
1983type GoogleCloudApigeeV1CanaryEvaluation struct {
1984	// Control: Required. The stable version that is serving requests.
1985	Control string `json:"control,omitempty"`
1986
1987	// CreateTime: Output only. Create time of the canary evaluation.
1988	CreateTime string `json:"createTime,omitempty"`
1989
1990	// EndTime: Required. End time for the evaluation's analysis.
1991	EndTime string `json:"endTime,omitempty"`
1992
1993	// MetricLabels: Required. Labels used to filter the metrics used for a
1994	// canary evaluation.
1995	MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"`
1996
1997	// Name: Output only. Name of the canary evalution.
1998	Name string `json:"name,omitempty"`
1999
2000	// StartTime: Required. Start time for the canary evaluation's analysis.
2001	StartTime string `json:"startTime,omitempty"`
2002
2003	// State: Output only. The current state of the canary evaluation.
2004	//
2005	// Possible values:
2006	//   "STATE_UNSPECIFIED" - No state has been specified.
2007	//   "RUNNING" - The canary evaluation is still in progress.
2008	//   "SUCCEEDED" - The canary evaluation has finished.
2009	State string `json:"state,omitempty"`
2010
2011	// Treatment: Required. The newer version that is serving requests.
2012	Treatment string `json:"treatment,omitempty"`
2013
2014	// Verdict: Output only. The resulting verdict of the canary
2015	// evaluations: NONE, PASS, or FAIL.
2016	//
2017	// Possible values:
2018	//   "VERDICT_UNSPECIFIED" - Verdict is not available yet.
2019	//   "NONE" - No verdict reached.
2020	//   "FAIL" - Evaluation is not good.
2021	//   "PASS" - Evaluation is good.
2022	Verdict string `json:"verdict,omitempty"`
2023
2024	// ServerResponse contains the HTTP response code and headers from the
2025	// server.
2026	googleapi.ServerResponse `json:"-"`
2027
2028	// ForceSendFields is a list of field names (e.g. "Control") to
2029	// unconditionally include in API requests. By default, fields with
2030	// empty values are omitted from API requests. However, any non-pointer,
2031	// non-interface field appearing in ForceSendFields will be sent to the
2032	// server regardless of whether the field is empty or not. This may be
2033	// used to include empty fields in Patch requests.
2034	ForceSendFields []string `json:"-"`
2035
2036	// NullFields is a list of field names (e.g. "Control") to include in
2037	// API requests with the JSON null value. By default, fields with empty
2038	// values are omitted from API requests. However, any field with an
2039	// empty value appearing in NullFields will be sent to the server as
2040	// null. It is an error if a field in this list has a non-empty value.
2041	// This may be used to include null fields in Patch requests.
2042	NullFields []string `json:"-"`
2043}
2044
2045func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) {
2046	type NoMethod GoogleCloudApigeeV1CanaryEvaluation
2047	raw := NoMethod(*s)
2048	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2049}
2050
2051// GoogleCloudApigeeV1CanaryEvaluationMetricLabels: Labels that can be
2052// used to filter Apigee metrics.
2053type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct {
2054	// Env: The environment ID associated with the metrics.
2055	Env string `json:"env,omitempty"`
2056
2057	// InstanceId: Required. The instance ID associated with the metrics. In
2058	// Apigee Hybrid, the value is configured during installation.
2059	InstanceId string `json:"instance_id,omitempty"`
2060
2061	// Location: Required. The location associated with the metrics.
2062	Location string `json:"location,omitempty"`
2063
2064	// ForceSendFields is a list of field names (e.g. "Env") to
2065	// unconditionally include in API requests. By default, fields with
2066	// empty values are omitted from API requests. However, any non-pointer,
2067	// non-interface field appearing in ForceSendFields will be sent to the
2068	// server regardless of whether the field is empty or not. This may be
2069	// used to include empty fields in Patch requests.
2070	ForceSendFields []string `json:"-"`
2071
2072	// NullFields is a list of field names (e.g. "Env") to include in API
2073	// requests with the JSON null value. By default, fields with empty
2074	// values are omitted from API requests. However, any field with an
2075	// empty value appearing in NullFields will be sent to the server as
2076	// null. It is an error if a field in this list has a non-empty value.
2077	// This may be used to include null fields in Patch requests.
2078	NullFields []string `json:"-"`
2079}
2080
2081func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) {
2082	type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels
2083	raw := NoMethod(*s)
2084	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2085}
2086
2087// GoogleCloudApigeeV1CertInfo: X.509 certificate as defined in RFC
2088// 5280.
2089type GoogleCloudApigeeV1CertInfo struct {
2090	// BasicConstraints: X.509 basic constraints extension.
2091	BasicConstraints string `json:"basicConstraints,omitempty"`
2092
2093	// ExpiryDate: X.509 `notAfter` validity period in milliseconds since
2094	// epoch.
2095	ExpiryDate int64 `json:"expiryDate,omitempty,string"`
2096
2097	// IsValid: Flag that specifies whether the certificate is valid. Flag
2098	// is set to `Yes` if the certificate is valid, `No` if expired, or `Not
2099	// yet` if not yet valid.
2100	IsValid string `json:"isValid,omitempty"`
2101
2102	// Issuer: X.509 issuer.
2103	Issuer string `json:"issuer,omitempty"`
2104
2105	// PublicKey: Public key component of the X.509 subject public key info.
2106	PublicKey string `json:"publicKey,omitempty"`
2107
2108	// SerialNumber: X.509 serial number.
2109	SerialNumber string `json:"serialNumber,omitempty"`
2110
2111	// SigAlgName: X.509 signatureAlgorithm.
2112	SigAlgName string `json:"sigAlgName,omitempty"`
2113
2114	// Subject: X.509 subject.
2115	Subject string `json:"subject,omitempty"`
2116
2117	// SubjectAlternativeNames: X.509 subject alternative names (SANs)
2118	// extension.
2119	SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
2120
2121	// ValidFrom: X.509 `notBefore` validity period in milliseconds since
2122	// epoch.
2123	ValidFrom int64 `json:"validFrom,omitempty,string"`
2124
2125	// Version: X.509 version.
2126	Version int64 `json:"version,omitempty"`
2127
2128	// ForceSendFields is a list of field names (e.g. "BasicConstraints") to
2129	// unconditionally include in API requests. By default, fields with
2130	// empty values are omitted from API requests. However, any non-pointer,
2131	// non-interface field appearing in ForceSendFields will be sent to the
2132	// server regardless of whether the field is empty or not. This may be
2133	// used to include empty fields in Patch requests.
2134	ForceSendFields []string `json:"-"`
2135
2136	// NullFields is a list of field names (e.g. "BasicConstraints") to
2137	// include in API requests with the JSON null value. By default, fields
2138	// with empty values are omitted from API requests. However, any field
2139	// with an empty value appearing in NullFields will be sent to the
2140	// server as null. It is an error if a field in this list has a
2141	// non-empty value. This may be used to include null fields in Patch
2142	// requests.
2143	NullFields []string `json:"-"`
2144}
2145
2146func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
2147	type NoMethod GoogleCloudApigeeV1CertInfo
2148	raw := NoMethod(*s)
2149	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2150}
2151
2152type GoogleCloudApigeeV1Certificate struct {
2153	// CertInfo: Chain of certificates under this name.
2154	CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
2155
2156	// ForceSendFields is a list of field names (e.g. "CertInfo") to
2157	// unconditionally include in API requests. By default, fields with
2158	// empty values are omitted from API requests. However, any non-pointer,
2159	// non-interface field appearing in ForceSendFields will be sent to the
2160	// server regardless of whether the field is empty or not. This may be
2161	// used to include empty fields in Patch requests.
2162	ForceSendFields []string `json:"-"`
2163
2164	// NullFields is a list of field names (e.g. "CertInfo") to include in
2165	// API requests with the JSON null value. By default, fields with empty
2166	// values are omitted from API requests. However, any field with an
2167	// empty value appearing in NullFields will be sent to the server as
2168	// null. It is an error if a field in this list has a non-empty value.
2169	// This may be used to include null fields in Patch requests.
2170	NullFields []string `json:"-"`
2171}
2172
2173func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
2174	type NoMethod GoogleCloudApigeeV1Certificate
2175	raw := NoMethod(*s)
2176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2177}
2178
2179type GoogleCloudApigeeV1CommonNameConfig struct {
2180	MatchWildCards bool `json:"matchWildCards,omitempty"`
2181
2182	Name string `json:"name,omitempty"`
2183
2184	// ForceSendFields is a list of field names (e.g. "MatchWildCards") to
2185	// unconditionally include in API requests. By default, fields with
2186	// empty values are omitted from API requests. However, any non-pointer,
2187	// non-interface field appearing in ForceSendFields will be sent to the
2188	// server regardless of whether the field is empty or not. This may be
2189	// used to include empty fields in Patch requests.
2190	ForceSendFields []string `json:"-"`
2191
2192	// NullFields is a list of field names (e.g. "MatchWildCards") to
2193	// include in API requests with the JSON null value. By default, fields
2194	// with empty values are omitted from API requests. However, any field
2195	// with an empty value appearing in NullFields will be sent to the
2196	// server as null. It is an error if a field in this list has a
2197	// non-empty value. This may be used to include null fields in Patch
2198	// requests.
2199	NullFields []string `json:"-"`
2200}
2201
2202func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
2203	type NoMethod GoogleCloudApigeeV1CommonNameConfig
2204	raw := NoMethod(*s)
2205	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2206}
2207
2208// GoogleCloudApigeeV1ConfigVersion: Version of the API proxy
2209// configuration schema. Currently, only 4.0 is supported.
2210type GoogleCloudApigeeV1ConfigVersion struct {
2211	// MajorVersion: Major version of the API proxy configuration schema.
2212	MajorVersion int64 `json:"majorVersion,omitempty"`
2213
2214	// MinorVersion: Minor version of the API proxy configuration schema.
2215	MinorVersion int64 `json:"minorVersion,omitempty"`
2216
2217	// ForceSendFields is a list of field names (e.g. "MajorVersion") to
2218	// unconditionally include in API requests. By default, fields with
2219	// empty values are omitted from API requests. However, any non-pointer,
2220	// non-interface field appearing in ForceSendFields will be sent to the
2221	// server regardless of whether the field is empty or not. This may be
2222	// used to include empty fields in Patch requests.
2223	ForceSendFields []string `json:"-"`
2224
2225	// NullFields is a list of field names (e.g. "MajorVersion") to include
2226	// in API requests with the JSON null value. By default, fields with
2227	// empty values are omitted from API requests. However, any field with
2228	// an empty value appearing in NullFields will be sent to the server as
2229	// null. It is an error if a field in this list has a non-empty value.
2230	// This may be used to include null fields in Patch requests.
2231	NullFields []string `json:"-"`
2232}
2233
2234func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
2235	type NoMethod GoogleCloudApigeeV1ConfigVersion
2236	raw := NoMethod(*s)
2237	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2238}
2239
2240type GoogleCloudApigeeV1Credential struct {
2241	// ApiProducts: List of API products this credential can be used for.
2242	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
2243
2244	// Attributes: List of attributes associated with this credential.
2245	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2246
2247	// ConsumerKey: Consumer key.
2248	ConsumerKey string `json:"consumerKey,omitempty"`
2249
2250	// ConsumerSecret: Secret key.
2251	ConsumerSecret string `json:"consumerSecret,omitempty"`
2252
2253	// ExpiresAt: Time the credential will expire in milliseconds since
2254	// epoch.
2255	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2256
2257	// IssuedAt: Time the credential was issued in milliseconds since epoch.
2258	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2259
2260	// Scopes: List of scopes to apply to the app. Specified scopes must
2261	// already exist on the API product that you associate with the app.
2262	Scopes []string `json:"scopes,omitempty"`
2263
2264	// Status: Status of the credential.
2265	Status string `json:"status,omitempty"`
2266
2267	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2268	// unconditionally include in API requests. By default, fields with
2269	// empty values are omitted from API requests. However, any non-pointer,
2270	// non-interface field appearing in ForceSendFields will be sent to the
2271	// server regardless of whether the field is empty or not. This may be
2272	// used to include empty fields in Patch requests.
2273	ForceSendFields []string `json:"-"`
2274
2275	// NullFields is a list of field names (e.g. "ApiProducts") to include
2276	// in API requests with the JSON null value. By default, fields with
2277	// empty values are omitted from API requests. However, any field with
2278	// an empty value appearing in NullFields will be sent to the server as
2279	// null. It is an error if a field in this list has a non-empty value.
2280	// This may be used to include null fields in Patch requests.
2281	NullFields []string `json:"-"`
2282}
2283
2284func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
2285	type NoMethod GoogleCloudApigeeV1Credential
2286	raw := NoMethod(*s)
2287	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2288}
2289
2290type GoogleCloudApigeeV1CustomReport struct {
2291	// ChartType: This field contains the chart type for the report
2292	ChartType string `json:"chartType,omitempty"`
2293
2294	// Comments: Legacy field: not used. This field contains a list of
2295	// comments associated with custom report
2296	Comments []string `json:"comments,omitempty"`
2297
2298	// CreatedAt: Output only. Unix time when the app was created json key:
2299	// createdAt
2300	CreatedAt int64 `json:"createdAt,omitempty,string"`
2301
2302	// Dimensions: This contains the list of dimensions for the report
2303	Dimensions []string `json:"dimensions,omitempty"`
2304
2305	// DisplayName: This is the display name for the report
2306	DisplayName string `json:"displayName,omitempty"`
2307
2308	// Environment: Output only. Environment name
2309	Environment string `json:"environment,omitempty"`
2310
2311	// Filter: This field contains the filter expression
2312	Filter string `json:"filter,omitempty"`
2313
2314	// FromTime: Legacy field: not used. Contains the from time for the
2315	// report
2316	FromTime string `json:"fromTime,omitempty"`
2317
2318	// LastModifiedAt: Output only. Modified time of this entity as
2319	// milliseconds since epoch. json key: lastModifiedAt
2320	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2321
2322	// LastViewedAt: Output only. Last viewed time of this entity as
2323	// milliseconds since epoch
2324	LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
2325
2326	// Limit: Legacy field: not used This field contains the limit for the
2327	// result retrieved
2328	Limit string `json:"limit,omitempty"`
2329
2330	// Metrics: Required. This contains the list of metrics
2331	Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
2332
2333	// Name: Required. Unique identifier for the report T his is a legacy
2334	// field used to encode custom report unique id
2335	Name string `json:"name,omitempty"`
2336
2337	// Offset: Legacy field: not used. This field contains the offset for
2338	// the data
2339	Offset string `json:"offset,omitempty"`
2340
2341	// Organization: Output only. Organization name
2342	Organization string `json:"organization,omitempty"`
2343
2344	// Properties: This field contains report properties such as ui metadata
2345	// etc.
2346	Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
2347
2348	// SortByCols: Legacy field: not used much. Contains the list of sort by
2349	// columns
2350	SortByCols []string `json:"sortByCols,omitempty"`
2351
2352	// SortOrder: Legacy field: not used much. Contains the sort order for
2353	// the sort columns
2354	SortOrder string `json:"sortOrder,omitempty"`
2355
2356	// Tags: Legacy field: not used. This field contains a list of tags
2357	// associated with custom report
2358	Tags []string `json:"tags,omitempty"`
2359
2360	// TimeUnit: This field contains the time unit of aggregation for the
2361	// report
2362	TimeUnit string `json:"timeUnit,omitempty"`
2363
2364	// ToTime: Legacy field: not used. Contains the end time for the report
2365	ToTime string `json:"toTime,omitempty"`
2366
2367	// Topk: Legacy field: not used. This field contains the top k parameter
2368	// value for restricting the result
2369	Topk string `json:"topk,omitempty"`
2370
2371	// ServerResponse contains the HTTP response code and headers from the
2372	// server.
2373	googleapi.ServerResponse `json:"-"`
2374
2375	// ForceSendFields is a list of field names (e.g. "ChartType") to
2376	// unconditionally include in API requests. By default, fields with
2377	// empty values are omitted from API requests. However, any non-pointer,
2378	// non-interface field appearing in ForceSendFields will be sent to the
2379	// server regardless of whether the field is empty or not. This may be
2380	// used to include empty fields in Patch requests.
2381	ForceSendFields []string `json:"-"`
2382
2383	// NullFields is a list of field names (e.g. "ChartType") to include in
2384	// API requests with the JSON null value. By default, fields with empty
2385	// values are omitted from API requests. However, any field with an
2386	// empty value appearing in NullFields will be sent to the server as
2387	// null. It is an error if a field in this list has a non-empty value.
2388	// This may be used to include null fields in Patch requests.
2389	NullFields []string `json:"-"`
2390}
2391
2392func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
2393	type NoMethod GoogleCloudApigeeV1CustomReport
2394	raw := NoMethod(*s)
2395	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2396}
2397
2398// GoogleCloudApigeeV1CustomReportMetric: This encapsulates a metric
2399// property of the form sum(message_count) where name is message_count
2400// and function is sum
2401type GoogleCloudApigeeV1CustomReportMetric struct {
2402	// Function: aggregate function
2403	Function string `json:"function,omitempty"`
2404
2405	// Name: name of the metric
2406	Name string `json:"name,omitempty"`
2407
2408	// ForceSendFields is a list of field names (e.g. "Function") to
2409	// unconditionally include in API requests. By default, fields with
2410	// empty values are omitted from API requests. However, any non-pointer,
2411	// non-interface field appearing in ForceSendFields will be sent to the
2412	// server regardless of whether the field is empty or not. This may be
2413	// used to include empty fields in Patch requests.
2414	ForceSendFields []string `json:"-"`
2415
2416	// NullFields is a list of field names (e.g. "Function") to include in
2417	// API requests with the JSON null value. By default, fields with empty
2418	// values are omitted from API requests. However, any field with an
2419	// empty value appearing in NullFields will be sent to the server as
2420	// null. It is an error if a field in this list has a non-empty value.
2421	// This may be used to include null fields in Patch requests.
2422	NullFields []string `json:"-"`
2423}
2424
2425func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
2426	type NoMethod GoogleCloudApigeeV1CustomReportMetric
2427	raw := NoMethod(*s)
2428	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2429}
2430
2431// GoogleCloudApigeeV1DataCollector: Data collector configuration.
2432type GoogleCloudApigeeV1DataCollector struct {
2433	// CreatedAt: Output only. The time at which the data collector was
2434	// created in milliseconds since the epoch.
2435	CreatedAt int64 `json:"createdAt,omitempty,string"`
2436
2437	// Description: A description of the data collector.
2438	Description string `json:"description,omitempty"`
2439
2440	// LastModifiedAt: Output only. The time at which the Data Collector was
2441	// last updated in milliseconds since the epoch.
2442	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2443
2444	// Name: ID of the data collector. Must begin with `dc_`.
2445	Name string `json:"name,omitempty"`
2446
2447	// Type: Immutable. The type of data this data collector will collect.
2448	//
2449	// Possible values:
2450	//   "TYPE_UNSPECIFIED" - For future compatibility.
2451	//   "INTEGER" - For integer values.
2452	//   "FLOAT" - For float values.
2453	//   "STRING" - For string values.
2454	//   "BOOLEAN" - For boolean values.
2455	//   "DATETIME" - For datetime values.
2456	Type string `json:"type,omitempty"`
2457
2458	// ServerResponse contains the HTTP response code and headers from the
2459	// server.
2460	googleapi.ServerResponse `json:"-"`
2461
2462	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
2463	// unconditionally include in API requests. By default, fields with
2464	// empty values are omitted from API requests. However, any non-pointer,
2465	// non-interface field appearing in ForceSendFields will be sent to the
2466	// server regardless of whether the field is empty or not. This may be
2467	// used to include empty fields in Patch requests.
2468	ForceSendFields []string `json:"-"`
2469
2470	// NullFields is a list of field names (e.g. "CreatedAt") to include in
2471	// API requests with the JSON null value. By default, fields with empty
2472	// values are omitted from API requests. However, any field with an
2473	// empty value appearing in NullFields will be sent to the server as
2474	// null. It is an error if a field in this list has a non-empty value.
2475	// This may be used to include null fields in Patch requests.
2476	NullFields []string `json:"-"`
2477}
2478
2479func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) {
2480	type NoMethod GoogleCloudApigeeV1DataCollector
2481	raw := NoMethod(*s)
2482	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2483}
2484
2485// GoogleCloudApigeeV1DataCollectorConfig: Data collector and its
2486// configuration.
2487type GoogleCloudApigeeV1DataCollectorConfig struct {
2488	// Name: Name of the data collector in the following format:
2489	// `organizations/{org}/datacollectors/{datacollector}`
2490	Name string `json:"name,omitempty"`
2491
2492	// Type: Data type accepted by the data collector.
2493	//
2494	// Possible values:
2495	//   "TYPE_UNSPECIFIED" - For future compatibility.
2496	//   "INTEGER" - For integer values.
2497	//   "FLOAT" - For float values.
2498	//   "STRING" - For string values.
2499	//   "BOOLEAN" - For boolean values.
2500	//   "DATETIME" - For datetime values.
2501	Type string `json:"type,omitempty"`
2502
2503	// ForceSendFields is a list of field names (e.g. "Name") to
2504	// unconditionally include in API requests. By default, fields with
2505	// empty values are omitted from API requests. However, any non-pointer,
2506	// non-interface field appearing in ForceSendFields will be sent to the
2507	// server regardless of whether the field is empty or not. This may be
2508	// used to include empty fields in Patch requests.
2509	ForceSendFields []string `json:"-"`
2510
2511	// NullFields is a list of field names (e.g. "Name") to include in API
2512	// requests with the JSON null value. By default, fields with empty
2513	// values are omitted from API requests. However, any field with an
2514	// empty value appearing in NullFields will be sent to the server as
2515	// null. It is an error if a field in this list has a non-empty value.
2516	// This may be used to include null fields in Patch requests.
2517	NullFields []string `json:"-"`
2518}
2519
2520func (s *GoogleCloudApigeeV1DataCollectorConfig) MarshalJSON() ([]byte, error) {
2521	type NoMethod GoogleCloudApigeeV1DataCollectorConfig
2522	raw := NoMethod(*s)
2523	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2524}
2525
2526// GoogleCloudApigeeV1Datastore: The data store defines the connection
2527// to export data repository (Cloud Storage, BigQuery), including the
2528// credentials used to access the data repository.
2529type GoogleCloudApigeeV1Datastore struct {
2530	// CreateTime: Output only. Datastore create time, in milliseconds since
2531	// the epoch of 1970-01-01T00:00:00Z
2532	CreateTime int64 `json:"createTime,omitempty,string"`
2533
2534	// DatastoreConfig: Datastore Configurations.
2535	DatastoreConfig *GoogleCloudApigeeV1DatastoreConfig `json:"datastoreConfig,omitempty"`
2536
2537	// DisplayName: Required. Display name in UI
2538	DisplayName string `json:"displayName,omitempty"`
2539
2540	// LastUpdateTime: Output only. Datastore last update time, in
2541	// milliseconds since the epoch of 1970-01-01T00:00:00Z
2542	LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"`
2543
2544	// Org: Output only. Organization that the datastore belongs to
2545	Org string `json:"org,omitempty"`
2546
2547	// Self: Output only. Resource link of Datastore. Example:
2548	// `/organizations/{org}/analytics/datastores/{uuid}`
2549	Self string `json:"self,omitempty"`
2550
2551	// TargetType: Destination storage type. Supported types `gcs` or
2552	// `bigquery`.
2553	TargetType string `json:"targetType,omitempty"`
2554
2555	// ServerResponse contains the HTTP response code and headers from the
2556	// server.
2557	googleapi.ServerResponse `json:"-"`
2558
2559	// ForceSendFields is a list of field names (e.g. "CreateTime") to
2560	// unconditionally include in API requests. By default, fields with
2561	// empty values are omitted from API requests. However, any non-pointer,
2562	// non-interface field appearing in ForceSendFields will be sent to the
2563	// server regardless of whether the field is empty or not. This may be
2564	// used to include empty fields in Patch requests.
2565	ForceSendFields []string `json:"-"`
2566
2567	// NullFields is a list of field names (e.g. "CreateTime") to include in
2568	// API requests with the JSON null value. By default, fields with empty
2569	// values are omitted from API requests. However, any field with an
2570	// empty value appearing in NullFields will be sent to the server as
2571	// null. It is an error if a field in this list has a non-empty value.
2572	// This may be used to include null fields in Patch requests.
2573	NullFields []string `json:"-"`
2574}
2575
2576func (s *GoogleCloudApigeeV1Datastore) MarshalJSON() ([]byte, error) {
2577	type NoMethod GoogleCloudApigeeV1Datastore
2578	raw := NoMethod(*s)
2579	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2580}
2581
2582// GoogleCloudApigeeV1DatastoreConfig: Configuration detail for
2583// datastore
2584type GoogleCloudApigeeV1DatastoreConfig struct {
2585	// BucketName: Name of the Cloud Storage bucket. Required for `gcs`
2586	// target_type.
2587	BucketName string `json:"bucketName,omitempty"`
2588
2589	// DatasetName: BigQuery dataset name Required for `bigquery`
2590	// target_type.
2591	DatasetName string `json:"datasetName,omitempty"`
2592
2593	// Path: Path of Cloud Storage bucket Required for `gcs` target_type.
2594	Path string `json:"path,omitempty"`
2595
2596	// ProjectId: Required. GCP project in which the datastore exists
2597	ProjectId string `json:"projectId,omitempty"`
2598
2599	// TablePrefix: Prefix of BigQuery table Required for `bigquery`
2600	// target_type.
2601	TablePrefix string `json:"tablePrefix,omitempty"`
2602
2603	// ForceSendFields is a list of field names (e.g. "BucketName") to
2604	// unconditionally include in API requests. By default, fields with
2605	// empty values are omitted from API requests. However, any non-pointer,
2606	// non-interface field appearing in ForceSendFields will be sent to the
2607	// server regardless of whether the field is empty or not. This may be
2608	// used to include empty fields in Patch requests.
2609	ForceSendFields []string `json:"-"`
2610
2611	// NullFields is a list of field names (e.g. "BucketName") to include in
2612	// API requests with the JSON null value. By default, fields with empty
2613	// values are omitted from API requests. However, any field with an
2614	// empty value appearing in NullFields will be sent to the server as
2615	// null. It is an error if a field in this list has a non-empty value.
2616	// This may be used to include null fields in Patch requests.
2617	NullFields []string `json:"-"`
2618}
2619
2620func (s *GoogleCloudApigeeV1DatastoreConfig) MarshalJSON() ([]byte, error) {
2621	type NoMethod GoogleCloudApigeeV1DatastoreConfig
2622	raw := NoMethod(*s)
2623	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2624}
2625
2626// GoogleCloudApigeeV1DateRange: Date range of the data to export.
2627type GoogleCloudApigeeV1DateRange struct {
2628	// End: Required. End date (exclusive) of the data to export in the
2629	// format `yyyy-mm-dd`. The date range ends at 00:00:00 UTC on the end
2630	// date- which will not be in the output.
2631	End string `json:"end,omitempty"`
2632
2633	// Start: Required. Start date of the data to export in the format
2634	// `yyyy-mm-dd`. The date range begins at 00:00:00 UTC on the start
2635	// date.
2636	Start string `json:"start,omitempty"`
2637
2638	// ForceSendFields is a list of field names (e.g. "End") to
2639	// unconditionally include in API requests. By default, fields with
2640	// empty values are omitted from API requests. However, any non-pointer,
2641	// non-interface field appearing in ForceSendFields will be sent to the
2642	// server regardless of whether the field is empty or not. This may be
2643	// used to include empty fields in Patch requests.
2644	ForceSendFields []string `json:"-"`
2645
2646	// NullFields is a list of field names (e.g. "End") to include in API
2647	// requests with the JSON null value. By default, fields with empty
2648	// values are omitted from API requests. However, any field with an
2649	// empty value appearing in NullFields will be sent to the server as
2650	// null. It is an error if a field in this list has a non-empty value.
2651	// This may be used to include null fields in Patch requests.
2652	NullFields []string `json:"-"`
2653}
2654
2655func (s *GoogleCloudApigeeV1DateRange) MarshalJSON() ([]byte, error) {
2656	type NoMethod GoogleCloudApigeeV1DateRange
2657	raw := NoMethod(*s)
2658	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2659}
2660
2661type GoogleCloudApigeeV1DebugMask struct {
2662	// FaultJSONPaths: List of JSON paths that specify the JSON elements to
2663	// be filtered from JSON payloads in error flows.
2664	FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
2665
2666	// FaultXPaths: List of XPaths that specify the XML elements to be
2667	// filtered from XML payloads in error flows.
2668	FaultXPaths []string `json:"faultXPaths,omitempty"`
2669
2670	// Name: Name of the debug mask.
2671	Name string `json:"name,omitempty"`
2672
2673	// Namespaces: Map of namespaces to URIs.
2674	Namespaces map[string]string `json:"namespaces,omitempty"`
2675
2676	// RequestJSONPaths: List of JSON paths that specify the JSON elements
2677	// to be filtered from JSON request message payloads.
2678	RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
2679
2680	// RequestXPaths: List of XPaths that specify the XML elements to be
2681	// filtered from XML request message payloads.
2682	RequestXPaths []string `json:"requestXPaths,omitempty"`
2683
2684	// ResponseJSONPaths: List of JSON paths that specify the JSON elements
2685	// to be filtered from JSON response message payloads.
2686	ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
2687
2688	// ResponseXPaths: List of XPaths that specify the XML elements to be
2689	// filtered from XML response message payloads.
2690	ResponseXPaths []string `json:"responseXPaths,omitempty"`
2691
2692	// Variables: List of variables that should be masked from the debug
2693	// output.
2694	Variables []string `json:"variables,omitempty"`
2695
2696	// ServerResponse contains the HTTP response code and headers from the
2697	// server.
2698	googleapi.ServerResponse `json:"-"`
2699
2700	// ForceSendFields is a list of field names (e.g. "FaultJSONPaths") to
2701	// unconditionally include in API requests. By default, fields with
2702	// empty values are omitted from API requests. However, any non-pointer,
2703	// non-interface field appearing in ForceSendFields will be sent to the
2704	// server regardless of whether the field is empty or not. This may be
2705	// used to include empty fields in Patch requests.
2706	ForceSendFields []string `json:"-"`
2707
2708	// NullFields is a list of field names (e.g. "FaultJSONPaths") to
2709	// include in API requests with the JSON null value. By default, fields
2710	// with empty values are omitted from API requests. However, any field
2711	// with an empty value appearing in NullFields will be sent to the
2712	// server as null. It is an error if a field in this list has a
2713	// non-empty value. This may be used to include null fields in Patch
2714	// requests.
2715	NullFields []string `json:"-"`
2716}
2717
2718func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
2719	type NoMethod GoogleCloudApigeeV1DebugMask
2720	raw := NoMethod(*s)
2721	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2722}
2723
2724type GoogleCloudApigeeV1DebugSession struct {
2725	// Count: Optional. The number of request to be traced. Min = 1, Max =
2726	// 15, Default = 10.
2727	Count int64 `json:"count,omitempty"`
2728
2729	// Filter: Optional. A conditional statement which is evaluated against
2730	// the request message to determine if it should be traced. Syntax
2731	// matches that of on API Proxy bundle flow Condition.
2732	Filter string `json:"filter,omitempty"`
2733
2734	// Name: A unique ID for this DebugSession.
2735	Name string `json:"name,omitempty"`
2736
2737	// Timeout: Optional. The time in seconds after which this DebugSession
2738	// should end. This value will override the value in query param, if
2739	// both are provided.
2740	Timeout int64 `json:"timeout,omitempty,string"`
2741
2742	// Tracesize: Optional. The maximum number of bytes captured from the
2743	// response payload. Min = 0, Max = 5120, Default = 5120.
2744	Tracesize int64 `json:"tracesize,omitempty"`
2745
2746	// Validity: Optional. The length of time, in seconds, that this debug
2747	// session is valid, starting from when it's received in the control
2748	// plane. Min = 1, Max = 15, Default = 10.
2749	Validity int64 `json:"validity,omitempty"`
2750
2751	// ServerResponse contains the HTTP response code and headers from the
2752	// server.
2753	googleapi.ServerResponse `json:"-"`
2754
2755	// ForceSendFields is a list of field names (e.g. "Count") to
2756	// unconditionally include in API requests. By default, fields with
2757	// empty values are omitted from API requests. However, any non-pointer,
2758	// non-interface field appearing in ForceSendFields will be sent to the
2759	// server regardless of whether the field is empty or not. This may be
2760	// used to include empty fields in Patch requests.
2761	ForceSendFields []string `json:"-"`
2762
2763	// NullFields is a list of field names (e.g. "Count") to include in API
2764	// requests with the JSON null value. By default, fields with empty
2765	// values are omitted from API requests. However, any field with an
2766	// empty value appearing in NullFields will be sent to the server as
2767	// null. It is an error if a field in this list has a non-empty value.
2768	// This may be used to include null fields in Patch requests.
2769	NullFields []string `json:"-"`
2770}
2771
2772func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
2773	type NoMethod GoogleCloudApigeeV1DebugSession
2774	raw := NoMethod(*s)
2775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2776}
2777
2778// GoogleCloudApigeeV1DebugSessionTransaction: A transaction contains
2779// all of the debug information of the entire message flow of an API
2780// call processed by the runtime plane. The information is collected and
2781// recorded at critical points of the message flow in the runtime
2782// apiproxy.
2783type GoogleCloudApigeeV1DebugSessionTransaction struct {
2784	// Completed: Flag indicating whether a transaction is completed or not
2785	Completed bool `json:"completed,omitempty"`
2786
2787	// Point: List of debug data collected by runtime plane at various
2788	// defined points in the flow.
2789	Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
2790
2791	// ServerResponse contains the HTTP response code and headers from the
2792	// server.
2793	googleapi.ServerResponse `json:"-"`
2794
2795	// ForceSendFields is a list of field names (e.g. "Completed") to
2796	// unconditionally include in API requests. By default, fields with
2797	// empty values are omitted from API requests. However, any non-pointer,
2798	// non-interface field appearing in ForceSendFields will be sent to the
2799	// server regardless of whether the field is empty or not. This may be
2800	// used to include empty fields in Patch requests.
2801	ForceSendFields []string `json:"-"`
2802
2803	// NullFields is a list of field names (e.g. "Completed") to include in
2804	// API requests with the JSON null value. By default, fields with empty
2805	// values are omitted from API requests. However, any field with an
2806	// empty value appearing in NullFields will be sent to the server as
2807	// null. It is an error if a field in this list has a non-empty value.
2808	// This may be used to include null fields in Patch requests.
2809	NullFields []string `json:"-"`
2810}
2811
2812func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
2813	type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
2814	raw := NoMethod(*s)
2815	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2816}
2817
2818type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
2819	// Message: The response contains only a message field.
2820	Message string `json:"message,omitempty"`
2821
2822	// ServerResponse contains the HTTP response code and headers from the
2823	// server.
2824	googleapi.ServerResponse `json:"-"`
2825
2826	// ForceSendFields is a list of field names (e.g. "Message") to
2827	// unconditionally include in API requests. By default, fields with
2828	// empty values are omitted from API requests. However, any non-pointer,
2829	// non-interface field appearing in ForceSendFields will be sent to the
2830	// server regardless of whether the field is empty or not. This may be
2831	// used to include empty fields in Patch requests.
2832	ForceSendFields []string `json:"-"`
2833
2834	// NullFields is a list of field names (e.g. "Message") to include in
2835	// API requests with the JSON null value. By default, fields with empty
2836	// values are omitted from API requests. However, any field with an
2837	// empty value appearing in NullFields will be sent to the server as
2838	// null. It is an error if a field in this list has a non-empty value.
2839	// This may be used to include null fields in Patch requests.
2840	NullFields []string `json:"-"`
2841}
2842
2843func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
2844	type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
2845	raw := NoMethod(*s)
2846	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2847}
2848
2849type GoogleCloudApigeeV1Deployment struct {
2850	// ApiProxy: API proxy.
2851	ApiProxy string `json:"apiProxy,omitempty"`
2852
2853	// DeployStartTime: Time the API proxy was marked `deployed` in the
2854	// control plane in millisconds since epoch.
2855	DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
2856
2857	// Environment: Environment.
2858	Environment string `json:"environment,omitempty"`
2859
2860	// Errors: Errors reported for this deployment. Populated only when
2861	// state == ERROR. This field is not populated in List APIs.
2862	Errors []*GoogleRpcStatus `json:"errors,omitempty"`
2863
2864	// Instances: Status reported by each runtime instance. This field is
2865	// not populated in List APIs.
2866	Instances []*GoogleCloudApigeeV1InstanceDeploymentStatus `json:"instances,omitempty"`
2867
2868	// Pods: Status reported by runtime pods. This field is not populated
2869	// for List APIs. **Note**: **This field is deprecated**. Runtime
2870	// versions 1.3 and above report instance level status rather than pod
2871	// status.
2872	Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
2873
2874	// Revision: API proxy revision.
2875	Revision string `json:"revision,omitempty"`
2876
2877	// RouteConflicts: Conflicts in the desired state routing configuration.
2878	// The presence of conflicts does not cause the state to be `ERROR`, but
2879	// it will mean that some of the deployment's base paths are not routed
2880	// to its environment. If the conflicts change, the state will
2881	// transition to `PROGRESSING` until the latest configuration is rolled
2882	// out to all instances. This field is not populated in List APIs.
2883	RouteConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routeConflicts,omitempty"`
2884
2885	// State: Current state of the deployment. This field is not populated
2886	// in List APIs.
2887	//
2888	// Possible values:
2889	//   "RUNTIME_STATE_UNSPECIFIED" - This value should never be returned.
2890	//   "READY" - Runtime has loaded the deployment.
2891	//   "PROGRESSING" - Deployment is not fully ready in the runtime.
2892	//   "ERROR" - Encountered an error with the deployment that requires
2893	// intervention.
2894	State string `json:"state,omitempty"`
2895
2896	// ServerResponse contains the HTTP response code and headers from the
2897	// server.
2898	googleapi.ServerResponse `json:"-"`
2899
2900	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
2901	// unconditionally include in API requests. By default, fields with
2902	// empty values are omitted from API requests. However, any non-pointer,
2903	// non-interface field appearing in ForceSendFields will be sent to the
2904	// server regardless of whether the field is empty or not. This may be
2905	// used to include empty fields in Patch requests.
2906	ForceSendFields []string `json:"-"`
2907
2908	// NullFields is a list of field names (e.g. "ApiProxy") to include in
2909	// API requests with the JSON null value. By default, fields with empty
2910	// values are omitted from API requests. However, any field with an
2911	// empty value appearing in NullFields will be sent to the server as
2912	// null. It is an error if a field in this list has a non-empty value.
2913	// This may be used to include null fields in Patch requests.
2914	NullFields []string `json:"-"`
2915}
2916
2917func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
2918	type NoMethod GoogleCloudApigeeV1Deployment
2919	raw := NoMethod(*s)
2920	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2921}
2922
2923// GoogleCloudApigeeV1DeploymentChangeReport: Response for
2924// GenerateDeployChangeReport and GenerateUndeployChangeReport. This
2925// report contains any validation failures that would cause the
2926// deployment to be rejected, as well changes and conflicts in routing
2927// that may occur due to the new deployment. The existence of a routing
2928// warning does not necessarily imply that the deployment request is
2929// bad, if the desired state of the deployment request is to effect a
2930// routing change. The primary purposes of the routing messages are: 1)
2931// To inform users of routing changes that may have an effect on traffic
2932// currently being routed to other existing deployments. 2) To warn
2933// users if some base path in the proxy will not receive traffic due to
2934// an existing deployment having already claimed that base path. The
2935// presence of routing conflicts/changes will not cause non-dry-run
2936// DeployApiProxy/UndeployApiProxy requests to be rejected.
2937type GoogleCloudApigeeV1DeploymentChangeReport struct {
2938	// RoutingChanges: All routing changes that may result from a deployment
2939	// request.
2940	RoutingChanges []*GoogleCloudApigeeV1DeploymentChangeReportRoutingChange `json:"routingChanges,omitempty"`
2941
2942	// RoutingConflicts: All base path conflicts detected for a deployment
2943	// request.
2944	RoutingConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routingConflicts,omitempty"`
2945
2946	// ValidationErrors: Validation errors that would cause the deployment
2947	// change request to be rejected.
2948	ValidationErrors *GoogleRpcPreconditionFailure `json:"validationErrors,omitempty"`
2949
2950	// ServerResponse contains the HTTP response code and headers from the
2951	// server.
2952	googleapi.ServerResponse `json:"-"`
2953
2954	// ForceSendFields is a list of field names (e.g. "RoutingChanges") to
2955	// unconditionally include in API requests. By default, fields with
2956	// empty values are omitted from API requests. However, any non-pointer,
2957	// non-interface field appearing in ForceSendFields will be sent to the
2958	// server regardless of whether the field is empty or not. This may be
2959	// used to include empty fields in Patch requests.
2960	ForceSendFields []string `json:"-"`
2961
2962	// NullFields is a list of field names (e.g. "RoutingChanges") to
2963	// include in API requests with the JSON null value. By default, fields
2964	// with empty values are omitted from API requests. However, any field
2965	// with an empty value appearing in NullFields will be sent to the
2966	// server as null. It is an error if a field in this list has a
2967	// non-empty value. This may be used to include null fields in Patch
2968	// requests.
2969	NullFields []string `json:"-"`
2970}
2971
2972func (s *GoogleCloudApigeeV1DeploymentChangeReport) MarshalJSON() ([]byte, error) {
2973	type NoMethod GoogleCloudApigeeV1DeploymentChangeReport
2974	raw := NoMethod(*s)
2975	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2976}
2977
2978// GoogleCloudApigeeV1DeploymentChangeReportRoutingChange: Describes a
2979// potential routing change that may occur as a result of some
2980// deployment operation.
2981type GoogleCloudApigeeV1DeploymentChangeReportRoutingChange struct {
2982	// Description: Human-readable description of this routing change.
2983	Description string `json:"description,omitempty"`
2984
2985	// EnvironmentGroup: Name of the environment group affected by this
2986	// routing change.
2987	EnvironmentGroup string `json:"environmentGroup,omitempty"`
2988
2989	// FromDeployment: Base path/deployment that may stop receiving some
2990	// traffic.
2991	FromDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"fromDeployment,omitempty"`
2992
2993	// ShouldSequenceRollout: Set to `true` if using sequenced rollout would
2994	// make this routing change safer. **Note**: This does not necessarily
2995	// imply that automated sequenced rollout mode is supported for the
2996	// operation.
2997	ShouldSequenceRollout bool `json:"shouldSequenceRollout,omitempty"`
2998
2999	// ToDeployment: Base path/deployment that may start receiving that
3000	// traffic. May be null if no deployment is able to receive the traffic.
3001	ToDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"toDeployment,omitempty"`
3002
3003	// ForceSendFields is a list of field names (e.g. "Description") to
3004	// unconditionally include in API requests. By default, fields with
3005	// empty values are omitted from API requests. However, any non-pointer,
3006	// non-interface field appearing in ForceSendFields will be sent to the
3007	// server regardless of whether the field is empty or not. This may be
3008	// used to include empty fields in Patch requests.
3009	ForceSendFields []string `json:"-"`
3010
3011	// NullFields is a list of field names (e.g. "Description") to include
3012	// in API requests with the JSON null value. By default, fields with
3013	// empty values are omitted from API requests. However, any field with
3014	// an empty value appearing in NullFields will be sent to the server as
3015	// null. It is an error if a field in this list has a non-empty value.
3016	// This may be used to include null fields in Patch requests.
3017	NullFields []string `json:"-"`
3018}
3019
3020func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingChange) MarshalJSON() ([]byte, error) {
3021	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingChange
3022	raw := NoMethod(*s)
3023	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3024}
3025
3026// GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict: Describes a
3027// routing conflict that may cause a deployment not to receive traffic
3028// at some base path.
3029type GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict struct {
3030	// ConflictingDeployment: Existing base path/deployment causing the
3031	// conflict.
3032	ConflictingDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"conflictingDeployment,omitempty"`
3033
3034	// Description: Human-readable description of this conflict.
3035	Description string `json:"description,omitempty"`
3036
3037	// EnvironmentGroup: Name of the environment group in which this
3038	// conflict exists.
3039	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3040
3041	// ForceSendFields is a list of field names (e.g.
3042	// "ConflictingDeployment") to unconditionally include in API requests.
3043	// By default, fields with empty values are omitted from API requests.
3044	// However, any non-pointer, non-interface field appearing in
3045	// ForceSendFields will be sent to the server regardless of whether the
3046	// field is empty or not. This may be used to include empty fields in
3047	// Patch requests.
3048	ForceSendFields []string `json:"-"`
3049
3050	// NullFields is a list of field names (e.g. "ConflictingDeployment") to
3051	// include in API requests with the JSON null value. By default, fields
3052	// with empty values are omitted from API requests. However, any field
3053	// with an empty value appearing in NullFields will be sent to the
3054	// server as null. It is an error if a field in this list has a
3055	// non-empty value. This may be used to include null fields in Patch
3056	// requests.
3057	NullFields []string `json:"-"`
3058}
3059
3060func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict) MarshalJSON() ([]byte, error) {
3061	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
3062	raw := NoMethod(*s)
3063	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3064}
3065
3066// GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment: Tuple
3067// representing a base path and the deployment containing it.
3068type GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment struct {
3069	// ApiProxy: Name of the deployed API proxy revision containing the base
3070	// path.
3071	ApiProxy string `json:"apiProxy,omitempty"`
3072
3073	// Basepath: Base path receiving traffic.
3074	Basepath string `json:"basepath,omitempty"`
3075
3076	// Environment: Name of the environment in which the proxy is deployed.
3077	Environment string `json:"environment,omitempty"`
3078
3079	// Revision: Name of the deployed API proxy revision containing the base
3080	// path.
3081	Revision string `json:"revision,omitempty"`
3082
3083	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
3084	// unconditionally include in API requests. By default, fields with
3085	// empty values are omitted from API requests. However, any non-pointer,
3086	// non-interface field appearing in ForceSendFields will be sent to the
3087	// server regardless of whether the field is empty or not. This may be
3088	// used to include empty fields in Patch requests.
3089	ForceSendFields []string `json:"-"`
3090
3091	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3092	// API requests with the JSON null value. By default, fields with empty
3093	// values are omitted from API requests. However, any field with an
3094	// empty value appearing in NullFields will be sent to the server as
3095	// null. It is an error if a field in this list has a non-empty value.
3096	// This may be used to include null fields in Patch requests.
3097	NullFields []string `json:"-"`
3098}
3099
3100func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON() ([]byte, error) {
3101	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment
3102	raw := NoMethod(*s)
3103	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3104}
3105
3106type GoogleCloudApigeeV1DeploymentConfig struct {
3107	// Attributes: Additional key-value metadata for the deployment.
3108	Attributes map[string]string `json:"attributes,omitempty"`
3109
3110	// BasePath: Base path where the application will be hosted. Defaults to
3111	// "/".
3112	BasePath string `json:"basePath,omitempty"`
3113
3114	// Location: Location of the API proxy bundle as a URI.
3115	Location string `json:"location,omitempty"`
3116
3117	// Name: Name of the API or shared flow revision to be deployed in the
3118	// following format: `organizations/{org}/apis/{api}/revisions/{rev}` or
3119	// `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
3120	Name string `json:"name,omitempty"`
3121
3122	// ProxyUid: Unique ID of the API proxy revision.
3123	ProxyUid string `json:"proxyUid,omitempty"`
3124
3125	// Uid: Unique ID. The ID will only change if the deployment is deleted
3126	// and recreated.
3127	Uid string `json:"uid,omitempty"`
3128
3129	// ForceSendFields is a list of field names (e.g. "Attributes") to
3130	// unconditionally include in API requests. By default, fields with
3131	// empty values are omitted from API requests. However, any non-pointer,
3132	// non-interface field appearing in ForceSendFields will be sent to the
3133	// server regardless of whether the field is empty or not. This may be
3134	// used to include empty fields in Patch requests.
3135	ForceSendFields []string `json:"-"`
3136
3137	// NullFields is a list of field names (e.g. "Attributes") to include in
3138	// API requests with the JSON null value. By default, fields with empty
3139	// values are omitted from API requests. However, any field with an
3140	// empty value appearing in NullFields will be sent to the server as
3141	// null. It is an error if a field in this list has a non-empty value.
3142	// This may be used to include null fields in Patch requests.
3143	NullFields []string `json:"-"`
3144}
3145
3146func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
3147	type NoMethod GoogleCloudApigeeV1DeploymentConfig
3148	raw := NoMethod(*s)
3149	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3150}
3151
3152type GoogleCloudApigeeV1Developer struct {
3153	// AccessType: Access type.
3154	AccessType string `json:"accessType,omitempty"`
3155
3156	// AppFamily: Developer app family.
3157	AppFamily string `json:"appFamily,omitempty"`
3158
3159	// Apps: List of apps associated with the developer.
3160	Apps []string `json:"apps,omitempty"`
3161
3162	// Attributes: Optional. Developer attributes (name/value pairs). The
3163	// custom attribute limit is 18.
3164	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3165
3166	// Companies: List of companies associated with the developer.
3167	Companies []string `json:"companies,omitempty"`
3168
3169	// CreatedAt: Output only. Time at which the developer was created in
3170	// milliseconds since epoch.
3171	CreatedAt int64 `json:"createdAt,omitempty,string"`
3172
3173	// DeveloperId: ID of the developer. **Note**: IDs are generated
3174	// internally by Apigee and are not guaranteed to stay the same over
3175	// time.
3176	DeveloperId string `json:"developerId,omitempty"`
3177
3178	// Email: Required. Email address of the developer. This value is used
3179	// to uniquely identify the developer in Apigee hybrid. Note that the
3180	// email address has to be in lowercase only.
3181	Email string `json:"email,omitempty"`
3182
3183	// FirstName: Required. First name of the developer.
3184	FirstName string `json:"firstName,omitempty"`
3185
3186	// LastModifiedAt: Output only. Time at which the developer was last
3187	// modified in milliseconds since epoch.
3188	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3189
3190	// LastName: Required. Last name of the developer.
3191	LastName string `json:"lastName,omitempty"`
3192
3193	// OrganizationName: Output only. Name of the Apigee organization in
3194	// which the developer resides.
3195	OrganizationName string `json:"organizationName,omitempty"`
3196
3197	// Status: Output only. Status of the developer. Valid values are
3198	// `active` and `inactive`.
3199	Status string `json:"status,omitempty"`
3200
3201	// UserName: Required. User name of the developer. Not used by Apigee
3202	// hybrid.
3203	UserName string `json:"userName,omitempty"`
3204
3205	// ServerResponse contains the HTTP response code and headers from the
3206	// server.
3207	googleapi.ServerResponse `json:"-"`
3208
3209	// ForceSendFields is a list of field names (e.g. "AccessType") to
3210	// unconditionally include in API requests. By default, fields with
3211	// empty values are omitted from API requests. However, any non-pointer,
3212	// non-interface field appearing in ForceSendFields will be sent to the
3213	// server regardless of whether the field is empty or not. This may be
3214	// used to include empty fields in Patch requests.
3215	ForceSendFields []string `json:"-"`
3216
3217	// NullFields is a list of field names (e.g. "AccessType") to include in
3218	// API requests with the JSON null value. By default, fields with empty
3219	// values are omitted from API requests. However, any field with an
3220	// empty value appearing in NullFields will be sent to the server as
3221	// null. It is an error if a field in this list has a non-empty value.
3222	// This may be used to include null fields in Patch requests.
3223	NullFields []string `json:"-"`
3224}
3225
3226func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
3227	type NoMethod GoogleCloudApigeeV1Developer
3228	raw := NoMethod(*s)
3229	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3230}
3231
3232type GoogleCloudApigeeV1DeveloperApp struct {
3233	// ApiProducts: List of API products associated with the developer app.
3234	ApiProducts []string `json:"apiProducts,omitempty"`
3235
3236	// AppFamily: Developer app family.
3237	AppFamily string `json:"appFamily,omitempty"`
3238
3239	// AppId: ID of the developer app.
3240	AppId string `json:"appId,omitempty"`
3241
3242	// Attributes: List of attributes for the developer app.
3243	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3244
3245	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
3246	// communicate authorization codes back to developer apps.
3247	CallbackUrl string `json:"callbackUrl,omitempty"`
3248
3249	// CreatedAt: Output only. Time the developer app was created in
3250	// milliseconds since epoch.
3251	CreatedAt int64 `json:"createdAt,omitempty,string"`
3252
3253	// Credentials: Output only. Set of credentials for the developer app
3254	// consisting of the consumer key/secret pairs associated with the API
3255	// products.
3256	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
3257
3258	// DeveloperId: ID of the developer.
3259	DeveloperId string `json:"developerId,omitempty"`
3260
3261	// KeyExpiresIn: Expiration time, in milliseconds, for the consumer key
3262	// that is generated for the developer app. If not set or left to the
3263	// default value of `-1`, the API key never expires. The expiration time
3264	// can't be updated after it is set.
3265	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
3266
3267	// LastModifiedAt: Output only. Time the developer app was modified in
3268	// milliseconds since epoch.
3269	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3270
3271	// Name: Name of the developer app.
3272	Name string `json:"name,omitempty"`
3273
3274	// Scopes: Scopes to apply to the developer app. The specified scopes
3275	// must already exist for the API product that you associate with the
3276	// developer app.
3277	Scopes []string `json:"scopes,omitempty"`
3278
3279	// Status: Status of the credential. Valid values include `approved` or
3280	// `revoked`.
3281	Status string `json:"status,omitempty"`
3282
3283	// ServerResponse contains the HTTP response code and headers from the
3284	// server.
3285	googleapi.ServerResponse `json:"-"`
3286
3287	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3288	// unconditionally include in API requests. By default, fields with
3289	// empty values are omitted from API requests. However, any non-pointer,
3290	// non-interface field appearing in ForceSendFields will be sent to the
3291	// server regardless of whether the field is empty or not. This may be
3292	// used to include empty fields in Patch requests.
3293	ForceSendFields []string `json:"-"`
3294
3295	// NullFields is a list of field names (e.g. "ApiProducts") to include
3296	// in API requests with the JSON null value. By default, fields with
3297	// empty values are omitted from API requests. However, any field with
3298	// an empty value appearing in NullFields will be sent to the server as
3299	// null. It is an error if a field in this list has a non-empty value.
3300	// This may be used to include null fields in Patch requests.
3301	NullFields []string `json:"-"`
3302}
3303
3304func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
3305	type NoMethod GoogleCloudApigeeV1DeveloperApp
3306	raw := NoMethod(*s)
3307	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3308}
3309
3310type GoogleCloudApigeeV1DeveloperAppKey struct {
3311	// ApiProducts: List of API products for which the credential can be
3312	// used. **Note**: Do not specify the list of API products when creating
3313	// a consumer key and secret for a developer app. Instead, use the
3314	// UpdateDeveloperAppKey API to make the association after the consumer
3315	// key and secret are created.
3316	ApiProducts []interface{} `json:"apiProducts,omitempty"`
3317
3318	// Attributes: List of attributes associated with the credential.
3319	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3320
3321	// ConsumerKey: Consumer key.
3322	ConsumerKey string `json:"consumerKey,omitempty"`
3323
3324	// ConsumerSecret: Secret key.
3325	ConsumerSecret string `json:"consumerSecret,omitempty"`
3326
3327	// ExpiresAt: Time the developer app expires in milliseconds since
3328	// epoch.
3329	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3330
3331	// ExpiresInSeconds: Input only. Expiration time, in seconds, for the
3332	// consumer key. If not set or left to the default value of `-1`, the
3333	// API key never expires. The expiration time can't be updated after it
3334	// is set.
3335	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
3336
3337	// IssuedAt: Time the developer app was created in milliseconds since
3338	// epoch.
3339	IssuedAt int64 `json:"issuedAt,omitempty,string"`
3340
3341	// Scopes: Scopes to apply to the app. The specified scope names must
3342	// already be defined for the API product that you associate with the
3343	// app.
3344	Scopes []string `json:"scopes,omitempty"`
3345
3346	// Status: Status of the credential. Valid values include `approved` or
3347	// `revoked`.
3348	Status string `json:"status,omitempty"`
3349
3350	// ServerResponse contains the HTTP response code and headers from the
3351	// server.
3352	googleapi.ServerResponse `json:"-"`
3353
3354	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3355	// unconditionally include in API requests. By default, fields with
3356	// empty values are omitted from API requests. However, any non-pointer,
3357	// non-interface field appearing in ForceSendFields will be sent to the
3358	// server regardless of whether the field is empty or not. This may be
3359	// used to include empty fields in Patch requests.
3360	ForceSendFields []string `json:"-"`
3361
3362	// NullFields is a list of field names (e.g. "ApiProducts") to include
3363	// in API requests with the JSON null value. By default, fields with
3364	// empty values are omitted from API requests. However, any field with
3365	// an empty value appearing in NullFields will be sent to the server as
3366	// null. It is an error if a field in this list has a non-empty value.
3367	// This may be used to include null fields in Patch requests.
3368	NullFields []string `json:"-"`
3369}
3370
3371func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
3372	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
3373	raw := NoMethod(*s)
3374	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3375}
3376
3377// GoogleCloudApigeeV1DimensionMetric: This message type encapsulates a
3378// metric grouped by dimension.
3379type GoogleCloudApigeeV1DimensionMetric struct {
3380	// Metrics: This field contains a list of metrics.
3381	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
3382
3383	// Name: This field contains the name of the dimension.
3384	Name string `json:"name,omitempty"`
3385
3386	// ForceSendFields is a list of field names (e.g. "Metrics") to
3387	// unconditionally include in API requests. By default, fields with
3388	// empty values are omitted from API requests. However, any non-pointer,
3389	// non-interface field appearing in ForceSendFields will be sent to the
3390	// server regardless of whether the field is empty or not. This may be
3391	// used to include empty fields in Patch requests.
3392	ForceSendFields []string `json:"-"`
3393
3394	// NullFields is a list of field names (e.g. "Metrics") to include in
3395	// API requests with the JSON null value. By default, fields with empty
3396	// values are omitted from API requests. However, any field with an
3397	// empty value appearing in NullFields will be sent to the server as
3398	// null. It is an error if a field in this list has a non-empty value.
3399	// This may be used to include null fields in Patch requests.
3400	NullFields []string `json:"-"`
3401}
3402
3403func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
3404	type NoMethod GoogleCloudApigeeV1DimensionMetric
3405	raw := NoMethod(*s)
3406	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3407}
3408
3409// GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities
3410// in this API.
3411type GoogleCloudApigeeV1EntityMetadata struct {
3412	// CreatedAt: Time at which the API proxy was created, in milliseconds
3413	// since epoch.
3414	CreatedAt int64 `json:"createdAt,omitempty,string"`
3415
3416	// LastModifiedAt: Time at which the API proxy was most recently
3417	// modified, in milliseconds since epoch.
3418	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3419
3420	// SubType: The type of entity described
3421	SubType string `json:"subType,omitempty"`
3422
3423	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3424	// unconditionally include in API requests. By default, fields with
3425	// empty values are omitted from API requests. However, any non-pointer,
3426	// non-interface field appearing in ForceSendFields will be sent to the
3427	// server regardless of whether the field is empty or not. This may be
3428	// used to include empty fields in Patch requests.
3429	ForceSendFields []string `json:"-"`
3430
3431	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3432	// API requests with the JSON null value. By default, fields with empty
3433	// values are omitted from API requests. However, any field with an
3434	// empty value appearing in NullFields will be sent to the server as
3435	// null. It is an error if a field in this list has a non-empty value.
3436	// This may be used to include null fields in Patch requests.
3437	NullFields []string `json:"-"`
3438}
3439
3440func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
3441	type NoMethod GoogleCloudApigeeV1EntityMetadata
3442	raw := NoMethod(*s)
3443	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3444}
3445
3446type GoogleCloudApigeeV1Environment struct {
3447	// CreatedAt: Output only. Creation time of this environment as
3448	// milliseconds since epoch.
3449	CreatedAt int64 `json:"createdAt,omitempty,string"`
3450
3451	// Description: Optional. Description of the environment.
3452	Description string `json:"description,omitempty"`
3453
3454	// DisplayName: Optional. Display name for this environment.
3455	DisplayName string `json:"displayName,omitempty"`
3456
3457	// LastModifiedAt: Output only. Last modification time of this
3458	// environment as milliseconds since epoch.
3459	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3460
3461	// Name: Required. Name of the environment. Values must match the
3462	// regular expression `^[.\\p{Alnum}-_]{1,255}$`
3463	Name string `json:"name,omitempty"`
3464
3465	// Properties: Optional. Key-value pairs that may be used for
3466	// customizing the environment.
3467	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
3468
3469	// State: Output only. State of the environment. Values other than
3470	// ACTIVE means the resource is not ready to use.
3471	//
3472	// Possible values:
3473	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3474	//   "CREATING" - Resource is being created.
3475	//   "ACTIVE" - Resource is provisioned and ready to use.
3476	//   "DELETING" - The resource is being deleted.
3477	State string `json:"state,omitempty"`
3478
3479	// ServerResponse contains the HTTP response code and headers from the
3480	// server.
3481	googleapi.ServerResponse `json:"-"`
3482
3483	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3484	// unconditionally include in API requests. By default, fields with
3485	// empty values are omitted from API requests. However, any non-pointer,
3486	// non-interface field appearing in ForceSendFields will be sent to the
3487	// server regardless of whether the field is empty or not. This may be
3488	// used to include empty fields in Patch requests.
3489	ForceSendFields []string `json:"-"`
3490
3491	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3492	// API requests with the JSON null value. By default, fields with empty
3493	// values are omitted from API requests. However, any field with an
3494	// empty value appearing in NullFields will be sent to the server as
3495	// null. It is an error if a field in this list has a non-empty value.
3496	// This may be used to include null fields in Patch requests.
3497	NullFields []string `json:"-"`
3498}
3499
3500func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
3501	type NoMethod GoogleCloudApigeeV1Environment
3502	raw := NoMethod(*s)
3503	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3504}
3505
3506type GoogleCloudApigeeV1EnvironmentConfig struct {
3507	// CreateTime: Time that the environment configuration was created.
3508	CreateTime string `json:"createTime,omitempty"`
3509
3510	// DataCollectors: List of data collectors used by the deployments in
3511	// the environment.
3512	DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
3513
3514	// DebugMask: Debug mask that applies to all deployments in the
3515	// environment.
3516	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
3517
3518	// Deployments: List of deployments in the environment.
3519	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
3520
3521	// FeatureFlags: Feature flags inherited from the organization and
3522	// environment.
3523	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
3524
3525	// Flowhooks: List of flow hooks in the environment.
3526	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
3527
3528	// Keystores: List of keystores in the environment.
3529	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
3530
3531	// Name: Name of the environment configuration in the following format:
3532	// `organizations/{org}/environments/{env}/configs/{config}`
3533	Name string `json:"name,omitempty"`
3534
3535	// Provider: Used by the Control plane to add context information to
3536	// help detect the source of the document during diagnostics and
3537	// debugging.
3538	Provider string `json:"provider,omitempty"`
3539
3540	// PubsubTopic: Name of the PubSub topic for the environment.
3541	PubsubTopic string `json:"pubsubTopic,omitempty"`
3542
3543	// ResourceReferences: List of resource references in the environment.
3544	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
3545
3546	// Resources: List of resource versions in the environment.
3547	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
3548
3549	// RevisionId: Revision ID of the environment configuration. The higher
3550	// the value, the more recently the configuration was deployed.
3551	RevisionId int64 `json:"revisionId,omitempty,string"`
3552
3553	// SequenceNumber: DEPRECATED: Use revision_id.
3554	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
3555
3556	// Targets: List of target servers in the environment. Disabled target
3557	// servers are not displayed.
3558	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
3559
3560	// TraceConfig: Trace configurations. Contains config for the
3561	// environment and config overrides for specific API proxies.
3562	TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
3563
3564	// Uid: Unique ID for the environment configuration. The ID will only
3565	// change if the environment is deleted and recreated.
3566	Uid string `json:"uid,omitempty"`
3567
3568	// ServerResponse contains the HTTP response code and headers from the
3569	// server.
3570	googleapi.ServerResponse `json:"-"`
3571
3572	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3573	// unconditionally include in API requests. By default, fields with
3574	// empty values are omitted from API requests. However, any non-pointer,
3575	// non-interface field appearing in ForceSendFields will be sent to the
3576	// server regardless of whether the field is empty or not. This may be
3577	// used to include empty fields in Patch requests.
3578	ForceSendFields []string `json:"-"`
3579
3580	// NullFields is a list of field names (e.g. "CreateTime") to include in
3581	// API requests with the JSON null value. By default, fields with empty
3582	// values are omitted from API requests. However, any field with an
3583	// empty value appearing in NullFields will be sent to the server as
3584	// null. It is an error if a field in this list has a non-empty value.
3585	// This may be used to include null fields in Patch requests.
3586	NullFields []string `json:"-"`
3587}
3588
3589func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
3590	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
3591	raw := NoMethod(*s)
3592	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3593}
3594
3595// GoogleCloudApigeeV1EnvironmentGroup: EnvironmentGroup configuration.
3596// An environment group is used to group one or more Apigee environments
3597// under a single host name.
3598type GoogleCloudApigeeV1EnvironmentGroup struct {
3599	// CreatedAt: Output only. The time at which the environment group was
3600	// created as milliseconds since epoch.
3601	CreatedAt int64 `json:"createdAt,omitempty,string"`
3602
3603	// Hostnames: Required. Host names for this environment group.
3604	Hostnames []string `json:"hostnames,omitempty"`
3605
3606	// LastModifiedAt: Output only. The time at which the environment group
3607	// was last updated as milliseconds since epoch.
3608	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3609
3610	// Name: ID of the environment group.
3611	Name string `json:"name,omitempty"`
3612
3613	// State: Output only. State of the environment group. Values other than
3614	// ACTIVE means the resource is not ready to use.
3615	//
3616	// Possible values:
3617	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3618	//   "CREATING" - Resource is being created.
3619	//   "ACTIVE" - Resource is provisioned and ready to use.
3620	//   "DELETING" - The resource is being deleted.
3621	State string `json:"state,omitempty"`
3622
3623	// ServerResponse contains the HTTP response code and headers from the
3624	// server.
3625	googleapi.ServerResponse `json:"-"`
3626
3627	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3628	// unconditionally include in API requests. By default, fields with
3629	// empty values are omitted from API requests. However, any non-pointer,
3630	// non-interface field appearing in ForceSendFields will be sent to the
3631	// server regardless of whether the field is empty or not. This may be
3632	// used to include empty fields in Patch requests.
3633	ForceSendFields []string `json:"-"`
3634
3635	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3636	// API requests with the JSON null value. By default, fields with empty
3637	// values are omitted from API requests. However, any field with an
3638	// empty value appearing in NullFields will be sent to the server as
3639	// null. It is an error if a field in this list has a non-empty value.
3640	// This may be used to include null fields in Patch requests.
3641	NullFields []string `json:"-"`
3642}
3643
3644func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
3645	type NoMethod GoogleCloudApigeeV1EnvironmentGroup
3646	raw := NoMethod(*s)
3647	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3648}
3649
3650// GoogleCloudApigeeV1EnvironmentGroupAttachment:
3651// EnvironmentGroupAttachment is a resource which defines an attachment
3652// of an environment to an environment group.
3653type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
3654	// CreatedAt: Output only. The time at which the environment group
3655	// attachment was created as milliseconds since epoch.
3656	CreatedAt int64 `json:"createdAt,omitempty,string"`
3657
3658	// Environment: Required. ID of the attached environment.
3659	Environment string `json:"environment,omitempty"`
3660
3661	// Name: ID of the environment group attachment.
3662	Name string `json:"name,omitempty"`
3663
3664	// ServerResponse contains the HTTP response code and headers from the
3665	// server.
3666	googleapi.ServerResponse `json:"-"`
3667
3668	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3669	// unconditionally include in API requests. By default, fields with
3670	// empty values are omitted from API requests. However, any non-pointer,
3671	// non-interface field appearing in ForceSendFields will be sent to the
3672	// server regardless of whether the field is empty or not. This may be
3673	// used to include empty fields in Patch requests.
3674	ForceSendFields []string `json:"-"`
3675
3676	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3677	// API requests with the JSON null value. By default, fields with empty
3678	// values are omitted from API requests. However, any field with an
3679	// empty value appearing in NullFields will be sent to the server as
3680	// null. It is an error if a field in this list has a non-empty value.
3681	// This may be used to include null fields in Patch requests.
3682	NullFields []string `json:"-"`
3683}
3684
3685func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
3686	type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
3687	raw := NoMethod(*s)
3688	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3689}
3690
3691// GoogleCloudApigeeV1EnvironmentGroupConfig: EnvironmentGroupConfig is
3692// a revisioned snapshot of an EnvironmentGroup and its associated
3693// routing rules.
3694type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
3695	// Hostnames: Host names for the environment group.
3696	Hostnames []string `json:"hostnames,omitempty"`
3697
3698	// Name: Name of the environment group in the following format:
3699	// `organizations/{org}/envgroups/{envgroup}`.
3700	Name string `json:"name,omitempty"`
3701
3702	// RevisionId: Revision id that defines the ordering of the
3703	// EnvironmentGroupConfig resource. The higher the revision, the more
3704	// recently the configuration was deployed.
3705	RevisionId int64 `json:"revisionId,omitempty,string"`
3706
3707	// RoutingRules: Ordered list of routing rules defining how traffic to
3708	// this environment group's hostnames should be routed to different
3709	// environments.
3710	RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
3711
3712	// Uid: A unique id for the environment group config that will only
3713	// change if the environment group is deleted and recreated.
3714	Uid string `json:"uid,omitempty"`
3715
3716	// ForceSendFields is a list of field names (e.g. "Hostnames") to
3717	// unconditionally include in API requests. By default, fields with
3718	// empty values are omitted from API requests. However, any non-pointer,
3719	// non-interface field appearing in ForceSendFields will be sent to the
3720	// server regardless of whether the field is empty or not. This may be
3721	// used to include empty fields in Patch requests.
3722	ForceSendFields []string `json:"-"`
3723
3724	// NullFields is a list of field names (e.g. "Hostnames") to include in
3725	// API requests with the JSON null value. By default, fields with empty
3726	// values are omitted from API requests. However, any field with an
3727	// empty value appearing in NullFields will be sent to the server as
3728	// null. It is an error if a field in this list has a non-empty value.
3729	// This may be used to include null fields in Patch requests.
3730	NullFields []string `json:"-"`
3731}
3732
3733func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
3734	type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
3735	raw := NoMethod(*s)
3736	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3737}
3738
3739// GoogleCloudApigeeV1Export: Details of an export job.
3740type GoogleCloudApigeeV1Export struct {
3741	// Created: Output only. Time the export job was created.
3742	Created string `json:"created,omitempty"`
3743
3744	// DatastoreName: Name of the datastore that is the destination of the
3745	// export job [datastore]
3746	DatastoreName string `json:"datastoreName,omitempty"`
3747
3748	// Description: Description of the export job.
3749	Description string `json:"description,omitempty"`
3750
3751	// Error: Output only. Error is set when export fails
3752	Error string `json:"error,omitempty"`
3753
3754	// ExecutionTime: Output only. Execution time for this export job. If
3755	// the job is still in progress, it will be set to the amount of time
3756	// that has elapsed since`created`, in seconds. Else, it will set to
3757	// (`updated` - `created`), in seconds.
3758	ExecutionTime string `json:"executionTime,omitempty"`
3759
3760	// Name: Display name of the export job.
3761	Name string `json:"name,omitempty"`
3762
3763	// Self: Output only. Self link of the export job. A URI that can be
3764	// used to retrieve the status of an export job. Example:
3765	// `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f
3766	// 30-46d6-ae6f-318d0cb961bd`
3767	Self string `json:"self,omitempty"`
3768
3769	// State: Output only. Status of the export job. Valid values include
3770	// `enqueued`, `running`, `completed`, and `failed`.
3771	State string `json:"state,omitempty"`
3772
3773	// Updated: Output only. Time the export job was last updated.
3774	Updated string `json:"updated,omitempty"`
3775
3776	// ServerResponse contains the HTTP response code and headers from the
3777	// server.
3778	googleapi.ServerResponse `json:"-"`
3779
3780	// ForceSendFields is a list of field names (e.g. "Created") to
3781	// unconditionally include in API requests. By default, fields with
3782	// empty values are omitted from API requests. However, any non-pointer,
3783	// non-interface field appearing in ForceSendFields will be sent to the
3784	// server regardless of whether the field is empty or not. This may be
3785	// used to include empty fields in Patch requests.
3786	ForceSendFields []string `json:"-"`
3787
3788	// NullFields is a list of field names (e.g. "Created") to include in
3789	// API requests with the JSON null value. By default, fields with empty
3790	// values are omitted from API requests. However, any field with an
3791	// empty value appearing in NullFields will be sent to the server as
3792	// null. It is an error if a field in this list has a non-empty value.
3793	// This may be used to include null fields in Patch requests.
3794	NullFields []string `json:"-"`
3795}
3796
3797func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
3798	type NoMethod GoogleCloudApigeeV1Export
3799	raw := NoMethod(*s)
3800	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3801}
3802
3803// GoogleCloudApigeeV1ExportRequest: Request body for
3804// [CreateExportRequest]
3805type GoogleCloudApigeeV1ExportRequest struct {
3806	// CsvDelimiter: Optional. Delimiter used in the CSV file, if
3807	// `outputFormat` is set to `csv`. Defaults to the `,` (comma)
3808	// character. Supported delimiter characters include comma (`,`), pipe
3809	// (`|`), and tab (`\t`).
3810	CsvDelimiter string `json:"csvDelimiter,omitempty"`
3811
3812	// DatastoreName: Required. Name of the preconfigured datastore.
3813	DatastoreName string `json:"datastoreName,omitempty"`
3814
3815	// DateRange: Required. Date range of the data to export.
3816	DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
3817
3818	// Description: Optional. Description of the export job.
3819	Description string `json:"description,omitempty"`
3820
3821	// Name: Required. Display name of the export job.
3822	Name string `json:"name,omitempty"`
3823
3824	// OutputFormat: Optional. Output format of the export. Valid values
3825	// include: `csv` or `json`. Defaults to `json`. Note: Configure the
3826	// delimiter for CSV output using the `csvDelimiter` property.
3827	OutputFormat string `json:"outputFormat,omitempty"`
3828
3829	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
3830	// unconditionally include in API requests. By default, fields with
3831	// empty values are omitted from API requests. However, any non-pointer,
3832	// non-interface field appearing in ForceSendFields will be sent to the
3833	// server regardless of whether the field is empty or not. This may be
3834	// used to include empty fields in Patch requests.
3835	ForceSendFields []string `json:"-"`
3836
3837	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
3838	// in API requests with the JSON null value. By default, fields with
3839	// empty values are omitted from API requests. However, any field with
3840	// an empty value appearing in NullFields will be sent to the server as
3841	// null. It is an error if a field in this list has a non-empty value.
3842	// This may be used to include null fields in Patch requests.
3843	NullFields []string `json:"-"`
3844}
3845
3846func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
3847	type NoMethod GoogleCloudApigeeV1ExportRequest
3848	raw := NoMethod(*s)
3849	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3850}
3851
3852type GoogleCloudApigeeV1FlowHook struct {
3853	// ContinueOnError: Optional. Flag that specifies whether execution
3854	// should continue if the flow hook throws an exception. Set to `true`
3855	// to continue execution. Set to `false` to stop execution if the flow
3856	// hook throws an exception. Defaults to `true`.
3857	ContinueOnError bool `json:"continueOnError,omitempty"`
3858
3859	// Description: Description of the flow hook.
3860	Description string `json:"description,omitempty"`
3861
3862	// FlowHookPoint: Output only. Where in the API call flow the flow hook
3863	// is invoked. Must be one of `PreProxyFlowHook`, `PostProxyFlowHook`,
3864	// `PreTargetFlowHook`, or `PostTargetFlowHook`.
3865	FlowHookPoint string `json:"flowHookPoint,omitempty"`
3866
3867	// SharedFlow: Shared flow attached to this flow hook, or empty if there
3868	// is none attached.
3869	SharedFlow string `json:"sharedFlow,omitempty"`
3870
3871	// ServerResponse contains the HTTP response code and headers from the
3872	// server.
3873	googleapi.ServerResponse `json:"-"`
3874
3875	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
3876	// unconditionally include in API requests. By default, fields with
3877	// empty values are omitted from API requests. However, any non-pointer,
3878	// non-interface field appearing in ForceSendFields will be sent to the
3879	// server regardless of whether the field is empty or not. This may be
3880	// used to include empty fields in Patch requests.
3881	ForceSendFields []string `json:"-"`
3882
3883	// NullFields is a list of field names (e.g. "ContinueOnError") to
3884	// include in API requests with the JSON null value. By default, fields
3885	// with empty values are omitted from API requests. However, any field
3886	// with an empty value appearing in NullFields will be sent to the
3887	// server as null. It is an error if a field in this list has a
3888	// non-empty value. This may be used to include null fields in Patch
3889	// requests.
3890	NullFields []string `json:"-"`
3891}
3892
3893func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
3894	type NoMethod GoogleCloudApigeeV1FlowHook
3895	raw := NoMethod(*s)
3896	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3897}
3898
3899type GoogleCloudApigeeV1FlowHookConfig struct {
3900	// ContinueOnError: Flag that specifies whether the flow should abort
3901	// after an error in the flow hook. Defaults to `true` (continue on
3902	// error).
3903	ContinueOnError bool `json:"continueOnError,omitempty"`
3904
3905	// Name: Name of the flow hook in the following format:
3906	// `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid
3907	// `point` values include: `PreProxyFlowHook`, `PostProxyFlowHook`,
3908	// `PreTargetFlowHook`, and `PostTargetFlowHook`
3909	Name string `json:"name,omitempty"`
3910
3911	// SharedFlowName: Name of the shared flow to invoke in the following
3912	// format: `organizations/{org}/sharedflows/{sharedflow}`
3913	SharedFlowName string `json:"sharedFlowName,omitempty"`
3914
3915	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
3916	// unconditionally include in API requests. By default, fields with
3917	// empty values are omitted from API requests. However, any non-pointer,
3918	// non-interface field appearing in ForceSendFields will be sent to the
3919	// server regardless of whether the field is empty or not. This may be
3920	// used to include empty fields in Patch requests.
3921	ForceSendFields []string `json:"-"`
3922
3923	// NullFields is a list of field names (e.g. "ContinueOnError") to
3924	// include in API requests with the JSON null value. By default, fields
3925	// with empty values are omitted from API requests. However, any field
3926	// with an empty value appearing in NullFields will be sent to the
3927	// server as null. It is an error if a field in this list has a
3928	// non-empty value. This may be used to include null fields in Patch
3929	// requests.
3930	NullFields []string `json:"-"`
3931}
3932
3933func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
3934	type NoMethod GoogleCloudApigeeV1FlowHookConfig
3935	raw := NoMethod(*s)
3936	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3937}
3938
3939// GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for
3940// GetSyncAuthorization.
3941type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
3942}
3943
3944// GoogleCloudApigeeV1GraphQLOperation: GraphQLOperation represents the
3945// pairing of graphQL operation types and the graphQL operation name.
3946type GoogleCloudApigeeV1GraphQLOperation struct {
3947	// Operation: GraphQL operation name, along with operation type which
3948	// will be used to associate quotas with. If no name is specified, the
3949	// quota will be applied to all graphQL operations irrespective of their
3950	// operation names in the payload.
3951	Operation string `json:"operation,omitempty"`
3952
3953	// OperationType: Required. `query`, `mutation` and `subscription` are
3954	// the three operation types offered by graphQL. Currently we support
3955	// only `query` and `mutation`.
3956	OperationType []string `json:"operationType,omitempty"`
3957
3958	// ForceSendFields is a list of field names (e.g. "Operation") to
3959	// unconditionally include in API requests. By default, fields with
3960	// empty values are omitted from API requests. However, any non-pointer,
3961	// non-interface field appearing in ForceSendFields will be sent to the
3962	// server regardless of whether the field is empty or not. This may be
3963	// used to include empty fields in Patch requests.
3964	ForceSendFields []string `json:"-"`
3965
3966	// NullFields is a list of field names (e.g. "Operation") to include in
3967	// API requests with the JSON null value. By default, fields with empty
3968	// values are omitted from API requests. However, any field with an
3969	// empty value appearing in NullFields will be sent to the server as
3970	// null. It is an error if a field in this list has a non-empty value.
3971	// This may be used to include null fields in Patch requests.
3972	NullFields []string `json:"-"`
3973}
3974
3975func (s *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
3976	type NoMethod GoogleCloudApigeeV1GraphQLOperation
3977	raw := NoMethod(*s)
3978	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3979}
3980
3981// GoogleCloudApigeeV1GraphQLOperationConfig: GraphQLOperationConfig
3982// binds the resources in a proxy or remote service with the graphQL
3983// operation and its associated quota enforcement.
3984type GoogleCloudApigeeV1GraphQLOperationConfig struct {
3985	// ApiSource: Required. API proxy endpoint or remote service name with
3986	// which the graphQL operation, and quota are associated.
3987	ApiSource string `json:"apiSource,omitempty"`
3988
3989	// Attributes: Custom attributes associated with the operation.
3990	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3991
3992	// Operations: Required. List of graphQL name/Operation type pairs for
3993	// the proxy/remote service, upon which quota will applied. If
3994	// GraphQLOperation operation has only the operation type(s), that would
3995	// imply that quota will be applied on all graphQL requests irrespective
3996	// of the graphQL name. **Note**: Currently, we can specify only a
3997	// single GraphQLOperation. Specifying more than one will result in
3998	// failure of the operation.
3999	Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
4000
4001	// Quota: Quota parameters to be enforced for the resources, methods,
4002	// api_source combination. If none are specified, quota enforcement will
4003	// not be done.
4004	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
4005
4006	// ForceSendFields is a list of field names (e.g. "ApiSource") to
4007	// unconditionally include in API requests. By default, fields with
4008	// empty values are omitted from API requests. However, any non-pointer,
4009	// non-interface field appearing in ForceSendFields will be sent to the
4010	// server regardless of whether the field is empty or not. This may be
4011	// used to include empty fields in Patch requests.
4012	ForceSendFields []string `json:"-"`
4013
4014	// NullFields is a list of field names (e.g. "ApiSource") to include in
4015	// API requests with the JSON null value. By default, fields with empty
4016	// values are omitted from API requests. However, any field with an
4017	// empty value appearing in NullFields will be sent to the server as
4018	// null. It is an error if a field in this list has a non-empty value.
4019	// This may be used to include null fields in Patch requests.
4020	NullFields []string `json:"-"`
4021}
4022
4023func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
4024	type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
4025	raw := NoMethod(*s)
4026	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4027}
4028
4029// GoogleCloudApigeeV1GraphQLOperationGroup: List of graphQL operation
4030// configuration details associated with Apigee API proxies or remote
4031// services. Remote services are non-Apigee proxies, such as
4032// Istio-Envoy.
4033type GoogleCloudApigeeV1GraphQLOperationGroup struct {
4034	// OperationConfigType: Flag that specifes whether the configuration is
4035	// for Apigee API proxy or a remote service. Valid values are `proxy` or
4036	// `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API
4037	// proxies are associated with the API product. Set to `remoteservice`
4038	// when non-Apigee proxies like Istio-Envoy are associated with the API
4039	// product.
4040	OperationConfigType string `json:"operationConfigType,omitempty"`
4041
4042	// OperationConfigs: Required. List of operation configurations for
4043	// either Apigee API proxies or other remote services that are
4044	// associated with this API product.
4045	OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
4046
4047	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
4048	// to unconditionally include in API requests. By default, fields with
4049	// empty values are omitted from API requests. However, any non-pointer,
4050	// non-interface field appearing in ForceSendFields will be sent to the
4051	// server regardless of whether the field is empty or not. This may be
4052	// used to include empty fields in Patch requests.
4053	ForceSendFields []string `json:"-"`
4054
4055	// NullFields is a list of field names (e.g. "OperationConfigType") to
4056	// include in API requests with the JSON null value. By default, fields
4057	// with empty values are omitted from API requests. However, any field
4058	// with an empty value appearing in NullFields will be sent to the
4059	// server as null. It is an error if a field in this list has a
4060	// non-empty value. This may be used to include null fields in Patch
4061	// requests.
4062	NullFields []string `json:"-"`
4063}
4064
4065func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
4066	type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
4067	raw := NoMethod(*s)
4068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4069}
4070
4071type GoogleCloudApigeeV1IngressConfig struct {
4072	// EnvironmentGroups: List of environment groups in the organization.
4073	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
4074
4075	// Name: Name of the resource in the following format:
4076	// `organizations/{org}/deployedIngressConfig`.
4077	Name string `json:"name,omitempty"`
4078
4079	// RevisionCreateTime: Time at which the IngressConfig revision was
4080	// created.
4081	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
4082
4083	// RevisionId: Revision id that defines the ordering on IngressConfig
4084	// resources. The higher the revision, the more recently the
4085	// configuration was deployed.
4086	RevisionId int64 `json:"revisionId,omitempty,string"`
4087
4088	// Uid: A unique id for the ingress config that will only change if the
4089	// organization is deleted and recreated.
4090	Uid string `json:"uid,omitempty"`
4091
4092	// ServerResponse contains the HTTP response code and headers from the
4093	// server.
4094	googleapi.ServerResponse `json:"-"`
4095
4096	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
4097	// to unconditionally include in API requests. By default, fields with
4098	// empty values are omitted from API requests. However, any non-pointer,
4099	// non-interface field appearing in ForceSendFields will be sent to the
4100	// server regardless of whether the field is empty or not. This may be
4101	// used to include empty fields in Patch requests.
4102	ForceSendFields []string `json:"-"`
4103
4104	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
4105	// include in API requests with the JSON null value. By default, fields
4106	// with empty values are omitted from API requests. However, any field
4107	// with an empty value appearing in NullFields will be sent to the
4108	// server as null. It is an error if a field in this list has a
4109	// non-empty value. This may be used to include null fields in Patch
4110	// requests.
4111	NullFields []string `json:"-"`
4112}
4113
4114func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
4115	type NoMethod GoogleCloudApigeeV1IngressConfig
4116	raw := NoMethod(*s)
4117	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4118}
4119
4120// GoogleCloudApigeeV1Instance: Apigee runtime instance.
4121type GoogleCloudApigeeV1Instance struct {
4122	// CreatedAt: Output only. Time the instance was created in milliseconds
4123	// since epoch.
4124	CreatedAt int64 `json:"createdAt,omitempty,string"`
4125
4126	// Description: Optional. Description of the instance.
4127	Description string `json:"description,omitempty"`
4128
4129	// DiskEncryptionKeyName: Customer Managed Encryption Key (CMEK) used
4130	// for disk and volume encryption. Required for Apigee paid
4131	// subscriptions only. Use the following format:
4132	// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+
4133	// )`
4134	DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
4135
4136	// DisplayName: Optional. Display name for the instance.
4137	DisplayName string `json:"displayName,omitempty"`
4138
4139	// Host: Output only. Internal hostname or IP address of the Apigee
4140	// endpoint used by clients to connect to the service.
4141	Host string `json:"host,omitempty"`
4142
4143	// LastModifiedAt: Output only. Time the instance was last modified in
4144	// milliseconds since epoch.
4145	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4146
4147	// Location: Required. Compute Engine location where the instance
4148	// resides.
4149	Location string `json:"location,omitempty"`
4150
4151	// Name: Required. Resource ID of the instance. Values must match the
4152	// regular expression `^a-z{0,30}[a-z\d]$`.
4153	Name string `json:"name,omitempty"`
4154
4155	// PeeringCidrRange: Optional. Size of the CIDR block range that will be
4156	// reserved by the instance. PAID organizations support `SLASH_16` to
4157	// `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations
4158	// support only `SLASH_23`.
4159	//
4160	// Possible values:
4161	//   "CIDR_RANGE_UNSPECIFIED" - Range not specified.
4162	//   "SLASH_16" - `/16` CIDR range.
4163	//   "SLASH_20" - `/20` CIDR range.
4164	PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
4165
4166	// Port: Output only. Port number of the exposed Apigee endpoint.
4167	Port string `json:"port,omitempty"`
4168
4169	// State: Output only. State of the instance. Values other than `ACTIVE`
4170	// means the resource is not ready to use.
4171	//
4172	// Possible values:
4173	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
4174	//   "CREATING" - Resource is being created.
4175	//   "ACTIVE" - Resource is provisioned and ready to use.
4176	//   "DELETING" - The resource is being deleted.
4177	State string `json:"state,omitempty"`
4178
4179	// ServerResponse contains the HTTP response code and headers from the
4180	// server.
4181	googleapi.ServerResponse `json:"-"`
4182
4183	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4184	// unconditionally include in API requests. By default, fields with
4185	// empty values are omitted from API requests. However, any non-pointer,
4186	// non-interface field appearing in ForceSendFields will be sent to the
4187	// server regardless of whether the field is empty or not. This may be
4188	// used to include empty fields in Patch requests.
4189	ForceSendFields []string `json:"-"`
4190
4191	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4192	// API requests with the JSON null value. By default, fields with empty
4193	// values are omitted from API requests. However, any field with an
4194	// empty value appearing in NullFields will be sent to the server as
4195	// null. It is an error if a field in this list has a non-empty value.
4196	// This may be used to include null fields in Patch requests.
4197	NullFields []string `json:"-"`
4198}
4199
4200func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
4201	type NoMethod GoogleCloudApigeeV1Instance
4202	raw := NoMethod(*s)
4203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4204}
4205
4206// GoogleCloudApigeeV1InstanceAttachment: InstanceAttachment represents
4207// the installation of an environment onto an instance.
4208type GoogleCloudApigeeV1InstanceAttachment struct {
4209	// CreatedAt: Output only. Time the attachment was created in
4210	// milliseconds since epoch.
4211	CreatedAt int64 `json:"createdAt,omitempty,string"`
4212
4213	// Environment: ID of the attached environment.
4214	Environment string `json:"environment,omitempty"`
4215
4216	// Name: Output only. ID of the attachment.
4217	Name string `json:"name,omitempty"`
4218
4219	// ServerResponse contains the HTTP response code and headers from the
4220	// server.
4221	googleapi.ServerResponse `json:"-"`
4222
4223	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4224	// unconditionally include in API requests. By default, fields with
4225	// empty values are omitted from API requests. However, any non-pointer,
4226	// non-interface field appearing in ForceSendFields will be sent to the
4227	// server regardless of whether the field is empty or not. This may be
4228	// used to include empty fields in Patch requests.
4229	ForceSendFields []string `json:"-"`
4230
4231	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4232	// API requests with the JSON null value. By default, fields with empty
4233	// values are omitted from API requests. However, any field with an
4234	// empty value appearing in NullFields will be sent to the server as
4235	// null. It is an error if a field in this list has a non-empty value.
4236	// This may be used to include null fields in Patch requests.
4237	NullFields []string `json:"-"`
4238}
4239
4240func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
4241	type NoMethod GoogleCloudApigeeV1InstanceAttachment
4242	raw := NoMethod(*s)
4243	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4244}
4245
4246// GoogleCloudApigeeV1InstanceDeploymentStatus: The status of a
4247// deployment as reported by a single instance.
4248type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
4249	// DeployedRevisions: Revisions currently deployed in MPs.
4250	DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
4251
4252	// DeployedRoutes: Current routes deployed in the ingress routing table.
4253	// A route which is missing will appear in `missing_routes`.
4254	DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
4255
4256	// Instance: ID of the instance reporting the status.
4257	Instance string `json:"instance,omitempty"`
4258
4259	// ForceSendFields is a list of field names (e.g. "DeployedRevisions")
4260	// to unconditionally include in API requests. By default, fields with
4261	// empty values are omitted from API requests. However, any non-pointer,
4262	// non-interface field appearing in ForceSendFields will be sent to the
4263	// server regardless of whether the field is empty or not. This may be
4264	// used to include empty fields in Patch requests.
4265	ForceSendFields []string `json:"-"`
4266
4267	// NullFields is a list of field names (e.g. "DeployedRevisions") to
4268	// include in API requests with the JSON null value. By default, fields
4269	// with empty values are omitted from API requests. However, any field
4270	// with an empty value appearing in NullFields will be sent to the
4271	// server as null. It is an error if a field in this list has a
4272	// non-empty value. This may be used to include null fields in Patch
4273	// requests.
4274	NullFields []string `json:"-"`
4275}
4276
4277func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
4278	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
4279	raw := NoMethod(*s)
4280	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4281}
4282
4283// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision:
4284// Revisions deployed in the MPs.
4285type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
4286	// Percentage: Percentage of MP replicas reporting this revision.
4287	Percentage int64 `json:"percentage,omitempty"`
4288
4289	// Revision: API proxy revision reported as deployed.
4290	Revision string `json:"revision,omitempty"`
4291
4292	// ForceSendFields is a list of field names (e.g. "Percentage") to
4293	// unconditionally include in API requests. By default, fields with
4294	// empty values are omitted from API requests. However, any non-pointer,
4295	// non-interface field appearing in ForceSendFields will be sent to the
4296	// server regardless of whether the field is empty or not. This may be
4297	// used to include empty fields in Patch requests.
4298	ForceSendFields []string `json:"-"`
4299
4300	// NullFields is a list of field names (e.g. "Percentage") to include in
4301	// API requests with the JSON null value. By default, fields with empty
4302	// values are omitted from API requests. However, any field with an
4303	// empty value appearing in NullFields will be sent to the server as
4304	// null. It is an error if a field in this list has a non-empty value.
4305	// This may be used to include null fields in Patch requests.
4306	NullFields []string `json:"-"`
4307}
4308
4309func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
4310	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
4311	raw := NoMethod(*s)
4312	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4313}
4314
4315// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute: Route
4316// deployed in the ingress routing table.
4317type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
4318	// Basepath: Base path in the routing table.
4319	Basepath string `json:"basepath,omitempty"`
4320
4321	// Envgroup: Environment group where this route is installed.
4322	Envgroup string `json:"envgroup,omitempty"`
4323
4324	// Environment: Destination environment. This will be empty if the route
4325	// is not yet reported.
4326	Environment string `json:"environment,omitempty"`
4327
4328	// Percentage: Percentage of ingress replicas reporting this route.
4329	Percentage int64 `json:"percentage,omitempty"`
4330
4331	// ForceSendFields is a list of field names (e.g. "Basepath") to
4332	// unconditionally include in API requests. By default, fields with
4333	// empty values are omitted from API requests. However, any non-pointer,
4334	// non-interface field appearing in ForceSendFields will be sent to the
4335	// server regardless of whether the field is empty or not. This may be
4336	// used to include empty fields in Patch requests.
4337	ForceSendFields []string `json:"-"`
4338
4339	// NullFields is a list of field names (e.g. "Basepath") to include in
4340	// API requests with the JSON null value. By default, fields with empty
4341	// values are omitted from API requests. However, any field with an
4342	// empty value appearing in NullFields will be sent to the server as
4343	// null. It is an error if a field in this list has a non-empty value.
4344	// This may be used to include null fields in Patch requests.
4345	NullFields []string `json:"-"`
4346}
4347
4348func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
4349	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
4350	raw := NoMethod(*s)
4351	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4352}
4353
4354type GoogleCloudApigeeV1KeyAliasReference struct {
4355	// AliasId: Alias ID. Must exist in the keystore referred to by the
4356	// reference.
4357	AliasId string `json:"aliasId,omitempty"`
4358
4359	// Reference: Reference name in the following format:
4360	// `organizations/{org}/environments/{env}/references/{reference}`
4361	Reference string `json:"reference,omitempty"`
4362
4363	// ForceSendFields is a list of field names (e.g. "AliasId") to
4364	// unconditionally include in API requests. By default, fields with
4365	// empty values are omitted from API requests. However, any non-pointer,
4366	// non-interface field appearing in ForceSendFields will be sent to the
4367	// server regardless of whether the field is empty or not. This may be
4368	// used to include empty fields in Patch requests.
4369	ForceSendFields []string `json:"-"`
4370
4371	// NullFields is a list of field names (e.g. "AliasId") to include in
4372	// API requests with the JSON null value. By default, fields with empty
4373	// values are omitted from API requests. However, any field with an
4374	// empty value appearing in NullFields will be sent to the server as
4375	// null. It is an error if a field in this list has a non-empty value.
4376	// This may be used to include null fields in Patch requests.
4377	NullFields []string `json:"-"`
4378}
4379
4380func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
4381	type NoMethod GoogleCloudApigeeV1KeyAliasReference
4382	raw := NoMethod(*s)
4383	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4384}
4385
4386// GoogleCloudApigeeV1KeyValueMap: A collection of key, value string
4387// pairs
4388type GoogleCloudApigeeV1KeyValueMap struct {
4389	// Encrypted: Optional. If `true` entry values will be encrypted.
4390	Encrypted bool `json:"encrypted,omitempty"`
4391
4392	// Name: Required. The id of the key value map.
4393	Name string `json:"name,omitempty"`
4394
4395	// ServerResponse contains the HTTP response code and headers from the
4396	// server.
4397	googleapi.ServerResponse `json:"-"`
4398
4399	// ForceSendFields is a list of field names (e.g. "Encrypted") to
4400	// unconditionally include in API requests. By default, fields with
4401	// empty values are omitted from API requests. However, any non-pointer,
4402	// non-interface field appearing in ForceSendFields will be sent to the
4403	// server regardless of whether the field is empty or not. This may be
4404	// used to include empty fields in Patch requests.
4405	ForceSendFields []string `json:"-"`
4406
4407	// NullFields is a list of field names (e.g. "Encrypted") to include in
4408	// API requests with the JSON null value. By default, fields with empty
4409	// values are omitted from API requests. However, any field with an
4410	// empty value appearing in NullFields will be sent to the server as
4411	// null. It is an error if a field in this list has a non-empty value.
4412	// This may be used to include null fields in Patch requests.
4413	NullFields []string `json:"-"`
4414}
4415
4416func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
4417	type NoMethod GoogleCloudApigeeV1KeyValueMap
4418	raw := NoMethod(*s)
4419	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4420}
4421
4422// GoogleCloudApigeeV1Keystore: Datastore for Certificates and Aliases.
4423type GoogleCloudApigeeV1Keystore struct {
4424	// Aliases: Output only. Aliases in this keystore.
4425	Aliases []string `json:"aliases,omitempty"`
4426
4427	// Name: Required. Resource ID for this keystore. Values must match the
4428	// regular expression `[\w[:space:]-.]{1,255}`.
4429	Name string `json:"name,omitempty"`
4430
4431	// ServerResponse contains the HTTP response code and headers from the
4432	// server.
4433	googleapi.ServerResponse `json:"-"`
4434
4435	// ForceSendFields is a list of field names (e.g. "Aliases") to
4436	// unconditionally include in API requests. By default, fields with
4437	// empty values are omitted from API requests. However, any non-pointer,
4438	// non-interface field appearing in ForceSendFields will be sent to the
4439	// server regardless of whether the field is empty or not. This may be
4440	// used to include empty fields in Patch requests.
4441	ForceSendFields []string `json:"-"`
4442
4443	// NullFields is a list of field names (e.g. "Aliases") to include in
4444	// API requests with the JSON null value. By default, fields with empty
4445	// values are omitted from API requests. However, any field with an
4446	// empty value appearing in NullFields will be sent to the server as
4447	// null. It is an error if a field in this list has a non-empty value.
4448	// This may be used to include null fields in Patch requests.
4449	NullFields []string `json:"-"`
4450}
4451
4452func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
4453	type NoMethod GoogleCloudApigeeV1Keystore
4454	raw := NoMethod(*s)
4455	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4456}
4457
4458type GoogleCloudApigeeV1KeystoreConfig struct {
4459	// Aliases: Aliases in the keystore.
4460	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
4461
4462	// Name: Resource name in the following format:
4463	// `organizations/{org}/environments/{env}/keystores/{keystore}`
4464	Name string `json:"name,omitempty"`
4465
4466	// ForceSendFields is a list of field names (e.g. "Aliases") to
4467	// unconditionally include in API requests. By default, fields with
4468	// empty values are omitted from API requests. However, any non-pointer,
4469	// non-interface field appearing in ForceSendFields will be sent to the
4470	// server regardless of whether the field is empty or not. This may be
4471	// used to include empty fields in Patch requests.
4472	ForceSendFields []string `json:"-"`
4473
4474	// NullFields is a list of field names (e.g. "Aliases") to include in
4475	// API requests with the JSON null value. By default, fields with empty
4476	// values are omitted from API requests. However, any field with an
4477	// empty value appearing in NullFields will be sent to the server as
4478	// null. It is an error if a field in this list has a non-empty value.
4479	// This may be used to include null fields in Patch requests.
4480	NullFields []string `json:"-"`
4481}
4482
4483func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
4484	type NoMethod GoogleCloudApigeeV1KeystoreConfig
4485	raw := NoMethod(*s)
4486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4487}
4488
4489// GoogleCloudApigeeV1ListApiCategoriesResponse: the response for
4490// ListApiCategoriesRequest.
4491type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
4492	// Data: Details of categories.
4493	Data []*GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
4494
4495	// ErrorCode: ID that can be used to find errors in the log files.
4496	ErrorCode string `json:"errorCode,omitempty"`
4497
4498	// Message: Description of the operation.
4499	Message string `json:"message,omitempty"`
4500
4501	// RequestId: ID that can be used to find request details in the log
4502	// files.
4503	RequestId string `json:"requestId,omitempty"`
4504
4505	// Status: Status of the operation.
4506	Status string `json:"status,omitempty"`
4507
4508	// ServerResponse contains the HTTP response code and headers from the
4509	// server.
4510	googleapi.ServerResponse `json:"-"`
4511
4512	// ForceSendFields is a list of field names (e.g. "Data") to
4513	// unconditionally include in API requests. By default, fields with
4514	// empty values are omitted from API requests. However, any non-pointer,
4515	// non-interface field appearing in ForceSendFields will be sent to the
4516	// server regardless of whether the field is empty or not. This may be
4517	// used to include empty fields in Patch requests.
4518	ForceSendFields []string `json:"-"`
4519
4520	// NullFields is a list of field names (e.g. "Data") to include in API
4521	// requests with the JSON null value. By default, fields with empty
4522	// values are omitted from API requests. However, any field with an
4523	// empty value appearing in NullFields will be sent to the server as
4524	// null. It is an error if a field in this list has a non-empty value.
4525	// This may be used to include null fields in Patch requests.
4526	NullFields []string `json:"-"`
4527}
4528
4529func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
4530	type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
4531	raw := NoMethod(*s)
4532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4533}
4534
4535type GoogleCloudApigeeV1ListApiProductsResponse struct {
4536	// ApiProduct: Lists all API product names defined for an organization.
4537	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
4538
4539	// ServerResponse contains the HTTP response code and headers from the
4540	// server.
4541	googleapi.ServerResponse `json:"-"`
4542
4543	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
4544	// unconditionally include in API requests. By default, fields with
4545	// empty values are omitted from API requests. However, any non-pointer,
4546	// non-interface field appearing in ForceSendFields will be sent to the
4547	// server regardless of whether the field is empty or not. This may be
4548	// used to include empty fields in Patch requests.
4549	ForceSendFields []string `json:"-"`
4550
4551	// NullFields is a list of field names (e.g. "ApiProduct") to include in
4552	// API requests with the JSON null value. By default, fields with empty
4553	// values are omitted from API requests. However, any field with an
4554	// empty value appearing in NullFields will be sent to the server as
4555	// null. It is an error if a field in this list has a non-empty value.
4556	// This may be used to include null fields in Patch requests.
4557	NullFields []string `json:"-"`
4558}
4559
4560func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
4561	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
4562	raw := NoMethod(*s)
4563	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4564}
4565
4566type GoogleCloudApigeeV1ListApiProxiesResponse struct {
4567	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
4568
4569	// ServerResponse contains the HTTP response code and headers from the
4570	// server.
4571	googleapi.ServerResponse `json:"-"`
4572
4573	// ForceSendFields is a list of field names (e.g. "Proxies") to
4574	// unconditionally include in API requests. By default, fields with
4575	// empty values are omitted from API requests. However, any non-pointer,
4576	// non-interface field appearing in ForceSendFields will be sent to the
4577	// server regardless of whether the field is empty or not. This may be
4578	// used to include empty fields in Patch requests.
4579	ForceSendFields []string `json:"-"`
4580
4581	// NullFields is a list of field names (e.g. "Proxies") to include in
4582	// API requests with the JSON null value. By default, fields with empty
4583	// values are omitted from API requests. However, any field with an
4584	// empty value appearing in NullFields will be sent to the server as
4585	// null. It is an error if a field in this list has a non-empty value.
4586	// This may be used to include null fields in Patch requests.
4587	NullFields []string `json:"-"`
4588}
4589
4590func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
4591	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
4592	raw := NoMethod(*s)
4593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4594}
4595
4596type GoogleCloudApigeeV1ListAppsResponse struct {
4597	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
4598
4599	// ServerResponse contains the HTTP response code and headers from the
4600	// server.
4601	googleapi.ServerResponse `json:"-"`
4602
4603	// ForceSendFields is a list of field names (e.g. "App") to
4604	// unconditionally include in API requests. By default, fields with
4605	// empty values are omitted from API requests. However, any non-pointer,
4606	// non-interface field appearing in ForceSendFields will be sent to the
4607	// server regardless of whether the field is empty or not. This may be
4608	// used to include empty fields in Patch requests.
4609	ForceSendFields []string `json:"-"`
4610
4611	// NullFields is a list of field names (e.g. "App") to include in API
4612	// requests with the JSON null value. By default, fields with empty
4613	// values are omitted from API requests. However, any field with an
4614	// empty value appearing in NullFields will be sent to the server as
4615	// null. It is an error if a field in this list has a non-empty value.
4616	// This may be used to include null fields in Patch requests.
4617	NullFields []string `json:"-"`
4618}
4619
4620func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
4621	type NoMethod GoogleCloudApigeeV1ListAppsResponse
4622	raw := NoMethod(*s)
4623	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4624}
4625
4626// GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
4627// ListAsyncQueries.
4628type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
4629	// Queries: The asynchronous queries belong to requested resource name.
4630	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
4631
4632	// ServerResponse contains the HTTP response code and headers from the
4633	// server.
4634	googleapi.ServerResponse `json:"-"`
4635
4636	// ForceSendFields is a list of field names (e.g. "Queries") to
4637	// unconditionally include in API requests. By default, fields with
4638	// empty values are omitted from API requests. However, any non-pointer,
4639	// non-interface field appearing in ForceSendFields will be sent to the
4640	// server regardless of whether the field is empty or not. This may be
4641	// used to include empty fields in Patch requests.
4642	ForceSendFields []string `json:"-"`
4643
4644	// NullFields is a list of field names (e.g. "Queries") to include in
4645	// API requests with the JSON null value. By default, fields with empty
4646	// values are omitted from API requests. However, any field with an
4647	// empty value appearing in NullFields will be sent to the server as
4648	// null. It is an error if a field in this list has a non-empty value.
4649	// This may be used to include null fields in Patch requests.
4650	NullFields []string `json:"-"`
4651}
4652
4653func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
4654	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
4655	raw := NoMethod(*s)
4656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4657}
4658
4659// GoogleCloudApigeeV1ListCustomReportsResponse: This message
4660// encapsulates a list of custom report definitions
4661type GoogleCloudApigeeV1ListCustomReportsResponse struct {
4662	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
4663
4664	// ServerResponse contains the HTTP response code and headers from the
4665	// server.
4666	googleapi.ServerResponse `json:"-"`
4667
4668	// ForceSendFields is a list of field names (e.g. "Qualifier") to
4669	// unconditionally include in API requests. By default, fields with
4670	// empty values are omitted from API requests. However, any non-pointer,
4671	// non-interface field appearing in ForceSendFields will be sent to the
4672	// server regardless of whether the field is empty or not. This may be
4673	// used to include empty fields in Patch requests.
4674	ForceSendFields []string `json:"-"`
4675
4676	// NullFields is a list of field names (e.g. "Qualifier") to include in
4677	// API requests with the JSON null value. By default, fields with empty
4678	// values are omitted from API requests. However, any field with an
4679	// empty value appearing in NullFields will be sent to the server as
4680	// null. It is an error if a field in this list has a non-empty value.
4681	// This may be used to include null fields in Patch requests.
4682	NullFields []string `json:"-"`
4683}
4684
4685func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
4686	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
4687	raw := NoMethod(*s)
4688	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4689}
4690
4691// GoogleCloudApigeeV1ListDataCollectorsResponse: Response for
4692// ListDataCollectors.
4693type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
4694	// DataCollectors: Data collectors in the specified organization.
4695	DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
4696
4697	// NextPageToken: Page token that you can include in a
4698	// ListDataCollectors request to retrieve the next page. If omitted, no
4699	// subsequent pages exist.
4700	NextPageToken string `json:"nextPageToken,omitempty"`
4701
4702	// ServerResponse contains the HTTP response code and headers from the
4703	// server.
4704	googleapi.ServerResponse `json:"-"`
4705
4706	// ForceSendFields is a list of field names (e.g. "DataCollectors") to
4707	// unconditionally include in API requests. By default, fields with
4708	// empty values are omitted from API requests. However, any non-pointer,
4709	// non-interface field appearing in ForceSendFields will be sent to the
4710	// server regardless of whether the field is empty or not. This may be
4711	// used to include empty fields in Patch requests.
4712	ForceSendFields []string `json:"-"`
4713
4714	// NullFields is a list of field names (e.g. "DataCollectors") to
4715	// include in API requests with the JSON null value. By default, fields
4716	// with empty values are omitted from API requests. However, any field
4717	// with an empty value appearing in NullFields will be sent to the
4718	// server as null. It is an error if a field in this list has a
4719	// non-empty value. This may be used to include null fields in Patch
4720	// requests.
4721	NullFields []string `json:"-"`
4722}
4723
4724func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
4725	type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
4726	raw := NoMethod(*s)
4727	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4728}
4729
4730// GoogleCloudApigeeV1ListDatastoresResponse: The response for
4731// ListDatastores
4732type GoogleCloudApigeeV1ListDatastoresResponse struct {
4733	// Datastores: A list of datastores
4734	Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
4735
4736	// ServerResponse contains the HTTP response code and headers from the
4737	// server.
4738	googleapi.ServerResponse `json:"-"`
4739
4740	// ForceSendFields is a list of field names (e.g. "Datastores") to
4741	// unconditionally include in API requests. By default, fields with
4742	// empty values are omitted from API requests. However, any non-pointer,
4743	// non-interface field appearing in ForceSendFields will be sent to the
4744	// server regardless of whether the field is empty or not. This may be
4745	// used to include empty fields in Patch requests.
4746	ForceSendFields []string `json:"-"`
4747
4748	// NullFields is a list of field names (e.g. "Datastores") to include in
4749	// API requests with the JSON null value. By default, fields with empty
4750	// values are omitted from API requests. However, any field with an
4751	// empty value appearing in NullFields will be sent to the server as
4752	// null. It is an error if a field in this list has a non-empty value.
4753	// This may be used to include null fields in Patch requests.
4754	NullFields []string `json:"-"`
4755}
4756
4757func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
4758	type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
4759	raw := NoMethod(*s)
4760	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4761}
4762
4763type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
4764	// NextPageToken: Page token that you can include in a
4765	// ListDebugSessionsRequest to retrieve the next page. If omitted, no
4766	// subsequent pages exist.
4767	NextPageToken string `json:"nextPageToken,omitempty"`
4768
4769	// Sessions: Session info that includes debug session ID and the first
4770	// transaction creation timestamp.
4771	Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
4772
4773	// ServerResponse contains the HTTP response code and headers from the
4774	// server.
4775	googleapi.ServerResponse `json:"-"`
4776
4777	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
4778	// unconditionally include in API requests. By default, fields with
4779	// empty values are omitted from API requests. However, any non-pointer,
4780	// non-interface field appearing in ForceSendFields will be sent to the
4781	// server regardless of whether the field is empty or not. This may be
4782	// used to include empty fields in Patch requests.
4783	ForceSendFields []string `json:"-"`
4784
4785	// NullFields is a list of field names (e.g. "NextPageToken") to include
4786	// in API requests with the JSON null value. By default, fields with
4787	// empty values are omitted from API requests. However, any field with
4788	// an empty value appearing in NullFields will be sent to the server as
4789	// null. It is an error if a field in this list has a non-empty value.
4790	// This may be used to include null fields in Patch requests.
4791	NullFields []string `json:"-"`
4792}
4793
4794func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
4795	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
4796	raw := NoMethod(*s)
4797	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4798}
4799
4800type GoogleCloudApigeeV1ListDeploymentsResponse struct {
4801	// Deployments: List of deployments.
4802	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
4803
4804	// ServerResponse contains the HTTP response code and headers from the
4805	// server.
4806	googleapi.ServerResponse `json:"-"`
4807
4808	// ForceSendFields is a list of field names (e.g. "Deployments") to
4809	// unconditionally include in API requests. By default, fields with
4810	// empty values are omitted from API requests. However, any non-pointer,
4811	// non-interface field appearing in ForceSendFields will be sent to the
4812	// server regardless of whether the field is empty or not. This may be
4813	// used to include empty fields in Patch requests.
4814	ForceSendFields []string `json:"-"`
4815
4816	// NullFields is a list of field names (e.g. "Deployments") to include
4817	// in API requests with the JSON null value. By default, fields with
4818	// empty values are omitted from API requests. However, any field with
4819	// an empty value appearing in NullFields will be sent to the server as
4820	// null. It is an error if a field in this list has a non-empty value.
4821	// This may be used to include null fields in Patch requests.
4822	NullFields []string `json:"-"`
4823}
4824
4825func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
4826	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
4827	raw := NoMethod(*s)
4828	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4829}
4830
4831type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
4832	// App: List of developer apps and their credentials.
4833	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
4834
4835	// ServerResponse contains the HTTP response code and headers from the
4836	// server.
4837	googleapi.ServerResponse `json:"-"`
4838
4839	// ForceSendFields is a list of field names (e.g. "App") to
4840	// unconditionally include in API requests. By default, fields with
4841	// empty values are omitted from API requests. However, any non-pointer,
4842	// non-interface field appearing in ForceSendFields will be sent to the
4843	// server regardless of whether the field is empty or not. This may be
4844	// used to include empty fields in Patch requests.
4845	ForceSendFields []string `json:"-"`
4846
4847	// NullFields is a list of field names (e.g. "App") to include in API
4848	// requests with the JSON null value. By default, fields with empty
4849	// values are omitted from API requests. However, any field with an
4850	// empty value appearing in NullFields will be sent to the server as
4851	// null. It is an error if a field in this list has a non-empty value.
4852	// This may be used to include null fields in Patch requests.
4853	NullFields []string `json:"-"`
4854}
4855
4856func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
4857	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
4858	raw := NoMethod(*s)
4859	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4860}
4861
4862// GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response
4863// for ListEnvironmentGroupAttachments.
4864type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
4865	// EnvironmentGroupAttachments: EnvironmentGroupAttachments for the
4866	// specified environment group.
4867	EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
4868
4869	// NextPageToken: Page token that you can include in a
4870	// ListEnvironmentGroupAttachments request to retrieve the next page. If
4871	// omitted, no subsequent pages exist.
4872	NextPageToken string `json:"nextPageToken,omitempty"`
4873
4874	// ServerResponse contains the HTTP response code and headers from the
4875	// server.
4876	googleapi.ServerResponse `json:"-"`
4877
4878	// ForceSendFields is a list of field names (e.g.
4879	// "EnvironmentGroupAttachments") to unconditionally include in API
4880	// requests. By default, fields with empty values are omitted from API
4881	// requests. However, any non-pointer, non-interface field appearing in
4882	// ForceSendFields will be sent to the server regardless of whether the
4883	// field is empty or not. This may be used to include empty fields in
4884	// Patch requests.
4885	ForceSendFields []string `json:"-"`
4886
4887	// NullFields is a list of field names (e.g.
4888	// "EnvironmentGroupAttachments") to include in API requests with the
4889	// JSON null value. By default, fields with empty values are omitted
4890	// from API requests. However, any field with an empty value appearing
4891	// in NullFields will be sent to the server as null. It is an error if a
4892	// field in this list has a non-empty value. This may be used to include
4893	// null fields in Patch requests.
4894	NullFields []string `json:"-"`
4895}
4896
4897func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
4898	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
4899	raw := NoMethod(*s)
4900	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4901}
4902
4903// GoogleCloudApigeeV1ListEnvironmentGroupsResponse: Response for
4904// ListEnvironmentGroups.
4905type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
4906	// EnvironmentGroups: EnvironmentGroups in the specified organization.
4907	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
4908
4909	// NextPageToken: Page token that you can include in a
4910	// ListEnvironmentGroups request to retrieve the next page. If omitted,
4911	// no subsequent pages exist.
4912	NextPageToken string `json:"nextPageToken,omitempty"`
4913
4914	// ServerResponse contains the HTTP response code and headers from the
4915	// server.
4916	googleapi.ServerResponse `json:"-"`
4917
4918	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
4919	// to unconditionally include in API requests. By default, fields with
4920	// empty values are omitted from API requests. However, any non-pointer,
4921	// non-interface field appearing in ForceSendFields will be sent to the
4922	// server regardless of whether the field is empty or not. This may be
4923	// used to include empty fields in Patch requests.
4924	ForceSendFields []string `json:"-"`
4925
4926	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
4927	// include in API requests with the JSON null value. By default, fields
4928	// with empty values are omitted from API requests. However, any field
4929	// with an empty value appearing in NullFields will be sent to the
4930	// server as null. It is an error if a field in this list has a
4931	// non-empty value. This may be used to include null fields in Patch
4932	// requests.
4933	NullFields []string `json:"-"`
4934}
4935
4936func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
4937	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
4938	raw := NoMethod(*s)
4939	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4940}
4941
4942// GoogleCloudApigeeV1ListEnvironmentResourcesResponse: Response for
4943// ListEnvironmentResources
4944type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
4945	// ResourceFile: List of resources files.
4946	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
4947
4948	// ServerResponse contains the HTTP response code and headers from the
4949	// server.
4950	googleapi.ServerResponse `json:"-"`
4951
4952	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
4953	// unconditionally include in API requests. By default, fields with
4954	// empty values are omitted from API requests. However, any non-pointer,
4955	// non-interface field appearing in ForceSendFields will be sent to the
4956	// server regardless of whether the field is empty or not. This may be
4957	// used to include empty fields in Patch requests.
4958	ForceSendFields []string `json:"-"`
4959
4960	// NullFields is a list of field names (e.g. "ResourceFile") to include
4961	// in API requests with the JSON null value. By default, fields with
4962	// empty values are omitted from API requests. However, any field with
4963	// an empty value appearing in NullFields will be sent to the server as
4964	// null. It is an error if a field in this list has a non-empty value.
4965	// This may be used to include null fields in Patch requests.
4966	NullFields []string `json:"-"`
4967}
4968
4969func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
4970	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
4971	raw := NoMethod(*s)
4972	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4973}
4974
4975// GoogleCloudApigeeV1ListExportsResponse: The response for ListExports
4976type GoogleCloudApigeeV1ListExportsResponse struct {
4977	// Exports: Details of the export jobs.
4978	Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
4979
4980	// ServerResponse contains the HTTP response code and headers from the
4981	// server.
4982	googleapi.ServerResponse `json:"-"`
4983
4984	// ForceSendFields is a list of field names (e.g. "Exports") to
4985	// unconditionally include in API requests. By default, fields with
4986	// empty values are omitted from API requests. However, any non-pointer,
4987	// non-interface field appearing in ForceSendFields will be sent to the
4988	// server regardless of whether the field is empty or not. This may be
4989	// used to include empty fields in Patch requests.
4990	ForceSendFields []string `json:"-"`
4991
4992	// NullFields is a list of field names (e.g. "Exports") to include in
4993	// API requests with the JSON null value. By default, fields with empty
4994	// values are omitted from API requests. However, any field with an
4995	// empty value appearing in NullFields will be sent to the server as
4996	// null. It is an error if a field in this list has a non-empty value.
4997	// This may be used to include null fields in Patch requests.
4998	NullFields []string `json:"-"`
4999}
5000
5001func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
5002	type NoMethod GoogleCloudApigeeV1ListExportsResponse
5003	raw := NoMethod(*s)
5004	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5005}
5006
5007type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
5008	// Issuers: Lists of hybrid services and its trusted issuer email ids.
5009	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
5010
5011	// ServerResponse contains the HTTP response code and headers from the
5012	// server.
5013	googleapi.ServerResponse `json:"-"`
5014
5015	// ForceSendFields is a list of field names (e.g. "Issuers") to
5016	// unconditionally include in API requests. By default, fields with
5017	// empty values are omitted from API requests. However, any non-pointer,
5018	// non-interface field appearing in ForceSendFields will be sent to the
5019	// server regardless of whether the field is empty or not. This may be
5020	// used to include empty fields in Patch requests.
5021	ForceSendFields []string `json:"-"`
5022
5023	// NullFields is a list of field names (e.g. "Issuers") to include in
5024	// API requests with the JSON null value. By default, fields with empty
5025	// values are omitted from API requests. However, any field with an
5026	// empty value appearing in NullFields will be sent to the server as
5027	// null. It is an error if a field in this list has a non-empty value.
5028	// This may be used to include null fields in Patch requests.
5029	NullFields []string `json:"-"`
5030}
5031
5032func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
5033	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
5034	raw := NoMethod(*s)
5035	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5036}
5037
5038// GoogleCloudApigeeV1ListInstanceAttachmentsResponse: Response for
5039// ListInstanceAttachments.
5040type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
5041	// Attachments: Attachments for the instance.
5042	Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
5043
5044	// NextPageToken: Page token that you can include in a
5045	// ListInstanceAttachments request to retrieve the next page of content.
5046	// If omitted, no subsequent pages exist.
5047	NextPageToken string `json:"nextPageToken,omitempty"`
5048
5049	// ServerResponse contains the HTTP response code and headers from the
5050	// server.
5051	googleapi.ServerResponse `json:"-"`
5052
5053	// ForceSendFields is a list of field names (e.g. "Attachments") to
5054	// unconditionally include in API requests. By default, fields with
5055	// empty values are omitted from API requests. However, any non-pointer,
5056	// non-interface field appearing in ForceSendFields will be sent to the
5057	// server regardless of whether the field is empty or not. This may be
5058	// used to include empty fields in Patch requests.
5059	ForceSendFields []string `json:"-"`
5060
5061	// NullFields is a list of field names (e.g. "Attachments") to include
5062	// in API requests with the JSON null value. By default, fields with
5063	// empty values are omitted from API requests. However, any field with
5064	// an empty value appearing in NullFields will be sent to the server as
5065	// null. It is an error if a field in this list has a non-empty value.
5066	// This may be used to include null fields in Patch requests.
5067	NullFields []string `json:"-"`
5068}
5069
5070func (s *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
5071	type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
5072	raw := NoMethod(*s)
5073	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5074}
5075
5076// GoogleCloudApigeeV1ListInstancesResponse: Response for ListInstances.
5077type GoogleCloudApigeeV1ListInstancesResponse struct {
5078	// Instances: Instances in the specified organization.
5079	Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
5080
5081	// NextPageToken: Page token that you can include in a ListInstance
5082	// request to retrieve the next page of content. If omitted, no
5083	// subsequent pages exist.
5084	NextPageToken string `json:"nextPageToken,omitempty"`
5085
5086	// ServerResponse contains the HTTP response code and headers from the
5087	// server.
5088	googleapi.ServerResponse `json:"-"`
5089
5090	// ForceSendFields is a list of field names (e.g. "Instances") to
5091	// unconditionally include in API requests. By default, fields with
5092	// empty values are omitted from API requests. However, any non-pointer,
5093	// non-interface field appearing in ForceSendFields will be sent to the
5094	// server regardless of whether the field is empty or not. This may be
5095	// used to include empty fields in Patch requests.
5096	ForceSendFields []string `json:"-"`
5097
5098	// NullFields is a list of field names (e.g. "Instances") to include in
5099	// API requests with the JSON null value. By default, fields with empty
5100	// values are omitted from API requests. However, any field with an
5101	// empty value appearing in NullFields will be sent to the server as
5102	// null. It is an error if a field in this list has a non-empty value.
5103	// This may be used to include null fields in Patch requests.
5104	NullFields []string `json:"-"`
5105}
5106
5107func (s *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
5108	type NoMethod GoogleCloudApigeeV1ListInstancesResponse
5109	raw := NoMethod(*s)
5110	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5111}
5112
5113// GoogleCloudApigeeV1ListNatAddressesResponse: Response for
5114// ListNatAddresses.
5115type GoogleCloudApigeeV1ListNatAddressesResponse struct {
5116	// NatAddresses: List of NAT Addresses for the instance.
5117	NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
5118
5119	// NextPageToken: Page token that you can include in a ListNatAddresses
5120	// request to retrieve the next page of content. If omitted, no
5121	// subsequent pages exist.
5122	NextPageToken string `json:"nextPageToken,omitempty"`
5123
5124	// ServerResponse contains the HTTP response code and headers from the
5125	// server.
5126	googleapi.ServerResponse `json:"-"`
5127
5128	// ForceSendFields is a list of field names (e.g. "NatAddresses") to
5129	// unconditionally include in API requests. By default, fields with
5130	// empty values are omitted from API requests. However, any non-pointer,
5131	// non-interface field appearing in ForceSendFields will be sent to the
5132	// server regardless of whether the field is empty or not. This may be
5133	// used to include empty fields in Patch requests.
5134	ForceSendFields []string `json:"-"`
5135
5136	// NullFields is a list of field names (e.g. "NatAddresses") to include
5137	// in API requests with the JSON null value. By default, fields with
5138	// empty values are omitted from API requests. However, any field with
5139	// an empty value appearing in NullFields will be sent to the server as
5140	// null. It is an error if a field in this list has a non-empty value.
5141	// This may be used to include null fields in Patch requests.
5142	NullFields []string `json:"-"`
5143}
5144
5145func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
5146	type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
5147	raw := NoMethod(*s)
5148	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5149}
5150
5151type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
5152	// Developer: List of developers.
5153	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
5154
5155	// ServerResponse contains the HTTP response code and headers from the
5156	// server.
5157	googleapi.ServerResponse `json:"-"`
5158
5159	// ForceSendFields is a list of field names (e.g. "Developer") to
5160	// unconditionally include in API requests. By default, fields with
5161	// empty values are omitted from API requests. However, any non-pointer,
5162	// non-interface field appearing in ForceSendFields will be sent to the
5163	// server regardless of whether the field is empty or not. This may be
5164	// used to include empty fields in Patch requests.
5165	ForceSendFields []string `json:"-"`
5166
5167	// NullFields is a list of field names (e.g. "Developer") to include in
5168	// API requests with the JSON null value. By default, fields with empty
5169	// values are omitted from API requests. However, any field with an
5170	// empty value appearing in NullFields will be sent to the server as
5171	// null. It is an error if a field in this list has a non-empty value.
5172	// This may be used to include null fields in Patch requests.
5173	NullFields []string `json:"-"`
5174}
5175
5176func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
5177	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
5178	raw := NoMethod(*s)
5179	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5180}
5181
5182type GoogleCloudApigeeV1ListOrganizationsResponse struct {
5183	// Organizations: List of Apigee organizations and associated GCP
5184	// projects.
5185	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
5186
5187	// ServerResponse contains the HTTP response code and headers from the
5188	// server.
5189	googleapi.ServerResponse `json:"-"`
5190
5191	// ForceSendFields is a list of field names (e.g. "Organizations") to
5192	// unconditionally include in API requests. By default, fields with
5193	// empty values are omitted from API requests. However, any non-pointer,
5194	// non-interface field appearing in ForceSendFields will be sent to the
5195	// server regardless of whether the field is empty or not. This may be
5196	// used to include empty fields in Patch requests.
5197	ForceSendFields []string `json:"-"`
5198
5199	// NullFields is a list of field names (e.g. "Organizations") to include
5200	// in API requests with the JSON null value. By default, fields with
5201	// empty values are omitted from API requests. However, any field with
5202	// an empty value appearing in NullFields will be sent to the server as
5203	// null. It is an error if a field in this list has a non-empty value.
5204	// This may be used to include null fields in Patch requests.
5205	NullFields []string `json:"-"`
5206}
5207
5208func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
5209	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
5210	raw := NoMethod(*s)
5211	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5212}
5213
5214type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
5215	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
5216
5217	// ServerResponse contains the HTTP response code and headers from the
5218	// server.
5219	googleapi.ServerResponse `json:"-"`
5220
5221	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
5222	// unconditionally include in API requests. By default, fields with
5223	// empty values are omitted from API requests. However, any non-pointer,
5224	// non-interface field appearing in ForceSendFields will be sent to the
5225	// server regardless of whether the field is empty or not. This may be
5226	// used to include empty fields in Patch requests.
5227	ForceSendFields []string `json:"-"`
5228
5229	// NullFields is a list of field names (e.g. "SharedFlows") to include
5230	// in API requests with the JSON null value. By default, fields with
5231	// empty values are omitted from API requests. However, any field with
5232	// an empty value appearing in NullFields will be sent to the server as
5233	// null. It is an error if a field in this list has a non-empty value.
5234	// This may be used to include null fields in Patch requests.
5235	NullFields []string `json:"-"`
5236}
5237
5238func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
5239	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
5240	raw := NoMethod(*s)
5241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5242}
5243
5244// GoogleCloudApigeeV1ListTraceConfigOverridesResponse: Response for
5245// ListTraceConfigOverrides.
5246type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
5247	// NextPageToken: Token value that can be passed as `page_token` to
5248	// retrieve the next page of content.
5249	NextPageToken string `json:"nextPageToken,omitempty"`
5250
5251	// TraceConfigOverrides: List all trace configuration overrides in an
5252	// environment.
5253	TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
5254
5255	// ServerResponse contains the HTTP response code and headers from the
5256	// server.
5257	googleapi.ServerResponse `json:"-"`
5258
5259	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5260	// unconditionally include in API requests. By default, fields with
5261	// empty values are omitted from API requests. However, any non-pointer,
5262	// non-interface field appearing in ForceSendFields will be sent to the
5263	// server regardless of whether the field is empty or not. This may be
5264	// used to include empty fields in Patch requests.
5265	ForceSendFields []string `json:"-"`
5266
5267	// NullFields is a list of field names (e.g. "NextPageToken") to include
5268	// in API requests with the JSON null value. By default, fields with
5269	// empty values are omitted from API requests. However, any field with
5270	// an empty value appearing in NullFields will be sent to the server as
5271	// null. It is an error if a field in this list has a non-empty value.
5272	// This may be used to include null fields in Patch requests.
5273	NullFields []string `json:"-"`
5274}
5275
5276func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
5277	type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
5278	raw := NoMethod(*s)
5279	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5280}
5281
5282// GoogleCloudApigeeV1Metadata: This message type encapsulates
5283// additional information about query execution.
5284type GoogleCloudApigeeV1Metadata struct {
5285	// Errors: List of error messages as strings.
5286	Errors []string `json:"errors,omitempty"`
5287
5288	// Notices: List of additional information such as data source, if
5289	// result was truncated etc. E.g "notices": [ "Source:Postgres", "PG
5290	// Host:uappg0rw.e2e.apigeeks.net", "query served
5291	// by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed", "Table used:
5292	// edge.api.uapgroup2.agg_api" ]
5293	Notices []string `json:"notices,omitempty"`
5294
5295	// ForceSendFields is a list of field names (e.g. "Errors") to
5296	// unconditionally include in API requests. By default, fields with
5297	// empty values are omitted from API requests. However, any non-pointer,
5298	// non-interface field appearing in ForceSendFields will be sent to the
5299	// server regardless of whether the field is empty or not. This may be
5300	// used to include empty fields in Patch requests.
5301	ForceSendFields []string `json:"-"`
5302
5303	// NullFields is a list of field names (e.g. "Errors") to include in API
5304	// requests with the JSON null value. By default, fields with empty
5305	// values are omitted from API requests. However, any field with an
5306	// empty value appearing in NullFields will be sent to the server as
5307	// null. It is an error if a field in this list has a non-empty value.
5308	// This may be used to include null fields in Patch requests.
5309	NullFields []string `json:"-"`
5310}
5311
5312func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
5313	type NoMethod GoogleCloudApigeeV1Metadata
5314	raw := NoMethod(*s)
5315	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5316}
5317
5318// GoogleCloudApigeeV1Metric: This message type encapsulates the metric
5319// data point. Example: { "name": "sum(message_count)", "values" : [ {
5320// "timestamp": 1549004400000, "value": "39.0" }, { "timestamp" :
5321// 1548997200000, "value" : "0.0" } ] } or { "name":
5322// "sum(message_count)", "values" : ["39.0"] }
5323type GoogleCloudApigeeV1Metric struct {
5324	// Name: This field contains the metric name.
5325	Name string `json:"name,omitempty"`
5326
5327	// Values: List of metric values. Possible value format:
5328	// "values":["39.0"] or "values":[ { "value": "39.0", "timestamp":
5329	// 1232434354} ]
5330	Values []interface{} `json:"values,omitempty"`
5331
5332	// ForceSendFields is a list of field names (e.g. "Name") to
5333	// unconditionally include in API requests. By default, fields with
5334	// empty values are omitted from API requests. However, any non-pointer,
5335	// non-interface field appearing in ForceSendFields will be sent to the
5336	// server regardless of whether the field is empty or not. This may be
5337	// used to include empty fields in Patch requests.
5338	ForceSendFields []string `json:"-"`
5339
5340	// NullFields is a list of field names (e.g. "Name") to include in API
5341	// requests with the JSON null value. By default, fields with empty
5342	// values are omitted from API requests. However, any field with an
5343	// empty value appearing in NullFields will be sent to the server as
5344	// null. It is an error if a field in this list has a non-empty value.
5345	// This may be used to include null fields in Patch requests.
5346	NullFields []string `json:"-"`
5347}
5348
5349func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
5350	type NoMethod GoogleCloudApigeeV1Metric
5351	raw := NoMethod(*s)
5352	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5353}
5354
5355// GoogleCloudApigeeV1NatAddress: Apigee NAT(network address
5356// translation) address. A NAT address is a static external IP address
5357// used for Internet egress traffic.
5358type GoogleCloudApigeeV1NatAddress struct {
5359	// IpAddress: Output only. The static IPV4 address.
5360	IpAddress string `json:"ipAddress,omitempty"`
5361
5362	// Name: Required. Resource ID of the NAT address.
5363	Name string `json:"name,omitempty"`
5364
5365	// State: Output only. State of the nat address.
5366	//
5367	// Possible values:
5368	//   "STATE_UNSPECIFIED" - The resource is in an unspecified state.
5369	//   "CREATING" - The NAT address is being created.
5370	//   "RESERVED" - The NAT address is reserved but not yet used for
5371	// Internet egress.
5372	//   "ACTIVE" - The NAT address is active and used for Internet egress.
5373	//   "DELETING" - The NAT address is being deleted.
5374	State string `json:"state,omitempty"`
5375
5376	// ServerResponse contains the HTTP response code and headers from the
5377	// server.
5378	googleapi.ServerResponse `json:"-"`
5379
5380	// ForceSendFields is a list of field names (e.g. "IpAddress") to
5381	// unconditionally include in API requests. By default, fields with
5382	// empty values are omitted from API requests. However, any non-pointer,
5383	// non-interface field appearing in ForceSendFields will be sent to the
5384	// server regardless of whether the field is empty or not. This may be
5385	// used to include empty fields in Patch requests.
5386	ForceSendFields []string `json:"-"`
5387
5388	// NullFields is a list of field names (e.g. "IpAddress") to include in
5389	// API requests with the JSON null value. By default, fields with empty
5390	// values are omitted from API requests. However, any field with an
5391	// empty value appearing in NullFields will be sent to the server as
5392	// null. It is an error if a field in this list has a non-empty value.
5393	// This may be used to include null fields in Patch requests.
5394	NullFields []string `json:"-"`
5395}
5396
5397func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
5398	type NoMethod GoogleCloudApigeeV1NatAddress
5399	raw := NoMethod(*s)
5400	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5401}
5402
5403// GoogleCloudApigeeV1Operation: Operation represents the pairing of
5404// REST resource path and the actions (verbs) allowed on the resource
5405// path.
5406type GoogleCloudApigeeV1Operation struct {
5407	// Methods: methods refers to the REST verbs as in
5408	// https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. When none
5409	// specified, all verb types are allowed.
5410	Methods []string `json:"methods,omitempty"`
5411
5412	// Resource: Required. resource represents REST resource path associated
5413	// with the proxy/remote service.
5414	Resource string `json:"resource,omitempty"`
5415
5416	// ForceSendFields is a list of field names (e.g. "Methods") to
5417	// unconditionally include in API requests. By default, fields with
5418	// empty values are omitted from API requests. However, any non-pointer,
5419	// non-interface field appearing in ForceSendFields will be sent to the
5420	// server regardless of whether the field is empty or not. This may be
5421	// used to include empty fields in Patch requests.
5422	ForceSendFields []string `json:"-"`
5423
5424	// NullFields is a list of field names (e.g. "Methods") to include in
5425	// API requests with the JSON null value. By default, fields with empty
5426	// values are omitted from API requests. However, any field with an
5427	// empty value appearing in NullFields will be sent to the server as
5428	// null. It is an error if a field in this list has a non-empty value.
5429	// This may be used to include null fields in Patch requests.
5430	NullFields []string `json:"-"`
5431}
5432
5433func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
5434	type NoMethod GoogleCloudApigeeV1Operation
5435	raw := NoMethod(*s)
5436	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5437}
5438
5439// GoogleCloudApigeeV1OperationConfig: OperationConfig binds the
5440// resources in a proxy or remote service with the allowed REST methods
5441// and its associated quota enforcement.
5442type GoogleCloudApigeeV1OperationConfig struct {
5443	// ApiSource: Required. API proxy or remote service name with which the
5444	// resources, methods, and quota are associated.
5445	ApiSource string `json:"apiSource,omitempty"`
5446
5447	// Attributes: Custom attributes associated with the operation.
5448	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
5449
5450	// Operations: List of resource/method pairs for the proxy/remote
5451	// service, upon which quota will applied. **Note**: Currently, you can
5452	// specify only a single resource/method pair. The call will fail if
5453	// more than one resource/method pair is provided.
5454	Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
5455
5456	// Quota: Quota parameters to be enforced for the resources, methods,
5457	// api_source combination. If none are specified, quota enforcement will
5458	// not be done.
5459	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
5460
5461	// ForceSendFields is a list of field names (e.g. "ApiSource") to
5462	// unconditionally include in API requests. By default, fields with
5463	// empty values are omitted from API requests. However, any non-pointer,
5464	// non-interface field appearing in ForceSendFields will be sent to the
5465	// server regardless of whether the field is empty or not. This may be
5466	// used to include empty fields in Patch requests.
5467	ForceSendFields []string `json:"-"`
5468
5469	// NullFields is a list of field names (e.g. "ApiSource") to include in
5470	// API requests with the JSON null value. By default, fields with empty
5471	// values are omitted from API requests. However, any field with an
5472	// empty value appearing in NullFields will be sent to the server as
5473	// null. It is an error if a field in this list has a non-empty value.
5474	// This may be used to include null fields in Patch requests.
5475	NullFields []string `json:"-"`
5476}
5477
5478func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
5479	type NoMethod GoogleCloudApigeeV1OperationConfig
5480	raw := NoMethod(*s)
5481	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5482}
5483
5484// GoogleCloudApigeeV1OperationGroup: List of operation configuration
5485// details associated with Apigee API proxies or remote services. Remote
5486// services are non-Apigee proxies, such as Istio-Envoy.
5487type GoogleCloudApigeeV1OperationGroup struct {
5488	// OperationConfigType: Flag that specifes whether the configuration is
5489	// for Apigee API proxy or a remote service. Valid values are `proxy` or
5490	// `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API
5491	// proxies are associated with the API product. Set to `remoteservice`
5492	// when non-Apigee proxies like Istio-Envoy are associated with the API
5493	// product.
5494	OperationConfigType string `json:"operationConfigType,omitempty"`
5495
5496	// OperationConfigs: Required. List of operation configurations for
5497	// either Apigee API proxies or other remote services that are
5498	// associated with this API product.
5499	OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
5500
5501	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
5502	// to unconditionally include in API requests. By default, fields with
5503	// empty values are omitted from API requests. However, any non-pointer,
5504	// non-interface field appearing in ForceSendFields will be sent to the
5505	// server regardless of whether the field is empty or not. This may be
5506	// used to include empty fields in Patch requests.
5507	ForceSendFields []string `json:"-"`
5508
5509	// NullFields is a list of field names (e.g. "OperationConfigType") to
5510	// include in API requests with the JSON null value. By default, fields
5511	// with empty values are omitted from API requests. However, any field
5512	// with an empty value appearing in NullFields will be sent to the
5513	// server as null. It is an error if a field in this list has a
5514	// non-empty value. This may be used to include null fields in Patch
5515	// requests.
5516	NullFields []string `json:"-"`
5517}
5518
5519func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
5520	type NoMethod GoogleCloudApigeeV1OperationGroup
5521	raw := NoMethod(*s)
5522	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5523}
5524
5525// GoogleCloudApigeeV1OperationMetadata: Metadata describing an
5526// Operation.
5527type GoogleCloudApigeeV1OperationMetadata struct {
5528	// Possible values:
5529	//   "OPERATION_TYPE_UNSPECIFIED"
5530	//   "INSERT"
5531	//   "DELETE"
5532	//   "UPDATE"
5533	OperationType string `json:"operationType,omitempty"`
5534
5535	// Possible values:
5536	//   "STATE_UNSPECIFIED"
5537	//   "NOT_STARTED"
5538	//   "IN_PROGRESS"
5539	//   "FINISHED"
5540	State string `json:"state,omitempty"`
5541
5542	// TargetResourceName: Name of the resource for which the operation is
5543	// operating on.
5544	TargetResourceName string `json:"targetResourceName,omitempty"`
5545
5546	// ForceSendFields is a list of field names (e.g. "OperationType") to
5547	// unconditionally include in API requests. By default, fields with
5548	// empty values are omitted from API requests. However, any non-pointer,
5549	// non-interface field appearing in ForceSendFields will be sent to the
5550	// server regardless of whether the field is empty or not. This may be
5551	// used to include empty fields in Patch requests.
5552	ForceSendFields []string `json:"-"`
5553
5554	// NullFields is a list of field names (e.g. "OperationType") to include
5555	// in API requests with the JSON null value. By default, fields with
5556	// empty values are omitted from API requests. However, any field with
5557	// an empty value appearing in NullFields will be sent to the server as
5558	// null. It is an error if a field in this list has a non-empty value.
5559	// This may be used to include null fields in Patch requests.
5560	NullFields []string `json:"-"`
5561}
5562
5563func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
5564	type NoMethod GoogleCloudApigeeV1OperationMetadata
5565	raw := NoMethod(*s)
5566	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5567}
5568
5569type GoogleCloudApigeeV1OptimizedStats struct {
5570	// Response: This field wraps the stats response for Js Optimized
5571	// Scenario with a Response key. E.g. { "Response": { "TimeUnit": [],
5572	// "metaData": { "errors": [], "notices": [ "Source:Postgres", "Table
5573	// used: edge.api.aaxgroup001.agg_api", "PG
5574	// Host:ruappg08-ro.production.apigeeks.net", "query served
5575	// by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated":
5576	// false, "stats": { "data": [ { "identifier": { "names": [ "apiproxy"
5577	// ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod", "name":
5578	// "sum(message_count)", "values": [ 36.0 ] }, { "env": "prod", "name":
5579	// "sum(is_error)", "values": [ 36.0 ] } ] } ] } } }
5580	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
5581
5582	// ServerResponse contains the HTTP response code and headers from the
5583	// server.
5584	googleapi.ServerResponse `json:"-"`
5585
5586	// ForceSendFields is a list of field names (e.g. "Response") to
5587	// unconditionally include in API requests. By default, fields with
5588	// empty values are omitted from API requests. However, any non-pointer,
5589	// non-interface field appearing in ForceSendFields will be sent to the
5590	// server regardless of whether the field is empty or not. This may be
5591	// used to include empty fields in Patch requests.
5592	ForceSendFields []string `json:"-"`
5593
5594	// NullFields is a list of field names (e.g. "Response") to include in
5595	// API requests with the JSON null value. By default, fields with empty
5596	// values are omitted from API requests. However, any field with an
5597	// empty value appearing in NullFields will be sent to the server as
5598	// null. It is an error if a field in this list has a non-empty value.
5599	// This may be used to include null fields in Patch requests.
5600	NullFields []string `json:"-"`
5601}
5602
5603func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
5604	type NoMethod GoogleCloudApigeeV1OptimizedStats
5605	raw := NoMethod(*s)
5606	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5607}
5608
5609// GoogleCloudApigeeV1OptimizedStatsNode: This message type encapsulates
5610// a data node as represented below: { "identifier": { "names": [
5611// "apiproxy" ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod",
5612// "name": "sum(message_count)", "values": [ 36.0 ] } ] } OR { "env":
5613// "prod", "name": "sum(message_count)", "values": [ 36.0 ] } Depending
5614// on whether a dimension is present in the query or not the data node
5615// type can be a simple metric value or dimension identifier with list
5616// of metrics.
5617type GoogleCloudApigeeV1OptimizedStatsNode struct {
5618	Data []interface{} `json:"data,omitempty"`
5619
5620	// ForceSendFields is a list of field names (e.g. "Data") to
5621	// unconditionally include in API requests. By default, fields with
5622	// empty values are omitted from API requests. However, any non-pointer,
5623	// non-interface field appearing in ForceSendFields will be sent to the
5624	// server regardless of whether the field is empty or not. This may be
5625	// used to include empty fields in Patch requests.
5626	ForceSendFields []string `json:"-"`
5627
5628	// NullFields is a list of field names (e.g. "Data") to include in API
5629	// requests with the JSON null value. By default, fields with empty
5630	// values are omitted from API requests. However, any field with an
5631	// empty value appearing in NullFields will be sent to the server as
5632	// null. It is an error if a field in this list has a non-empty value.
5633	// This may be used to include null fields in Patch requests.
5634	NullFields []string `json:"-"`
5635}
5636
5637func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
5638	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
5639	raw := NoMethod(*s)
5640	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5641}
5642
5643// GoogleCloudApigeeV1OptimizedStatsResponse: This message type
5644// encapsulates a response format for Js Optimized Scenario.
5645type GoogleCloudApigeeV1OptimizedStatsResponse struct {
5646	// TimeUnit: This field contains a list of time unit values. Time unit
5647	// refers to an epoch timestamp value.
5648	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
5649
5650	// MetaData: This field contains metadata information about the query
5651	// executed
5652	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
5653
5654	// ResultTruncated: This ia a boolean field to indicate if the results
5655	// were truncated based on the limit parameter.
5656	ResultTruncated bool `json:"resultTruncated,omitempty"`
5657
5658	// Stats: This field contains a stats results.
5659	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
5660
5661	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
5662	// unconditionally include in API requests. By default, fields with
5663	// empty values are omitted from API requests. However, any non-pointer,
5664	// non-interface field appearing in ForceSendFields will be sent to the
5665	// server regardless of whether the field is empty or not. This may be
5666	// used to include empty fields in Patch requests.
5667	ForceSendFields []string `json:"-"`
5668
5669	// NullFields is a list of field names (e.g. "TimeUnit") to include in
5670	// API requests with the JSON null value. By default, fields with empty
5671	// values are omitted from API requests. However, any field with an
5672	// empty value appearing in NullFields will be sent to the server as
5673	// null. It is an error if a field in this list has a non-empty value.
5674	// This may be used to include null fields in Patch requests.
5675	NullFields []string `json:"-"`
5676}
5677
5678func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
5679	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
5680	raw := NoMethod(*s)
5681	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5682}
5683
5684type GoogleCloudApigeeV1Organization struct {
5685	// AnalyticsRegion: Required. Primary GCP region for analytics data
5686	// storage. For valid values, see Create an Apigee organization
5687	// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
5688	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
5689
5690	// Attributes: Not used by Apigee.
5691	Attributes []string `json:"attributes,omitempty"`
5692
5693	// AuthorizedNetwork: Compute Engine network used for Service Networking
5694	// to be peered with Apigee runtime instances. See Getting started with
5695	// the Service Networking API
5696	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
5697	// Valid only when RuntimeType (#RuntimeType) is set to `CLOUD`. The
5698	// value must be set before the creation of a runtime instance and can
5699	// be updated only when there are no runtime instances. For example:
5700	// `default`. Apigee also supports shared VPC (that is, the host network
5701	// project is not the same as the one that is peering with Apigee). See
5702	// Shared VPC overview (https://cloud.google.com/vpc/docs/shared-vpc).
5703	// To use a shared VPC network, use the following format:
5704	// `projects/{host-project-id}/{region}/networks/{network-name}`. For
5705	// example: `projects/my-sharedvpc-host/global/networks/mynetwork`
5706	// **Note:** Not supported for Apigee hybrid.
5707	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
5708
5709	// BillingType: Output only. Billing type of the Apigee organization.
5710	// See Apigee pricing (https://cloud.google.com/apigee/pricing).
5711	//
5712	// Possible values:
5713	//   "BILLING_TYPE_UNSPECIFIED" - Billing type not specified.
5714	//   "SUBSCRIPTION" - A pre-paid subscription to Apigee.
5715	//   "EVALUATION" - Free and limited access to Apigee for evaluation
5716	// purposes only. only.
5717	BillingType string `json:"billingType,omitempty"`
5718
5719	// CaCertificate: Output only. Base64-encoded public certificate for the
5720	// root CA of the Apigee organization. Valid only when RuntimeType
5721	// (#RuntimeType) is `CLOUD`.
5722	CaCertificate string `json:"caCertificate,omitempty"`
5723
5724	// CreatedAt: Output only. Time that the Apigee organization was created
5725	// in milliseconds since epoch.
5726	CreatedAt int64 `json:"createdAt,omitempty,string"`
5727
5728	// CustomerName: Not used by Apigee.
5729	CustomerName string `json:"customerName,omitempty"`
5730
5731	// Description: Description of the Apigee organization.
5732	Description string `json:"description,omitempty"`
5733
5734	DisplayName string `json:"displayName,omitempty"`
5735
5736	// Environments: Output only. List of environments in the Apigee
5737	// organization.
5738	Environments []string `json:"environments,omitempty"`
5739
5740	// ExpiresAt: Output only. Time that the Apigee organization is
5741	// scheduled for deletion.
5742	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
5743
5744	// LastModifiedAt: Output only. Time that the Apigee organization was
5745	// last modified in milliseconds since epoch.
5746	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
5747
5748	// Name: Output only. Name of the Apigee organization.
5749	Name string `json:"name,omitempty"`
5750
5751	// ProjectId: Output only. Project ID associated with the Apigee
5752	// organization.
5753	ProjectId string `json:"projectId,omitempty"`
5754
5755	// Properties: Properties defined in the Apigee organization profile.
5756	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
5757
5758	// RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for
5759	// encrypting the data that is stored and replicated across runtime
5760	// instances. Update is not allowed after the organization is created.
5761	// Required when RuntimeType (#RuntimeType) is `CLOUD`. If not specified
5762	// when RuntimeType (#RuntimeType) is `TRIAL`, a Google-Managed
5763	// encryption key will be used. For example:
5764	// "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:**
5765	// Not supported for Apigee hybrid.
5766	RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
5767
5768	// RuntimeType: Required. Runtime type of the Apigee organization based
5769	// on the Apigee subscription purchased.
5770	//
5771	// Possible values:
5772	//   "RUNTIME_TYPE_UNSPECIFIED" - Runtime type not specified.
5773	//   "CLOUD" - Google-managed Apigee runtime.
5774	//   "HYBRID" - User-managed Apigee hybrid runtime.
5775	RuntimeType string `json:"runtimeType,omitempty"`
5776
5777	// State: Output only. State of the organization. Values other than
5778	// ACTIVE means the resource is not ready to use.
5779	//
5780	// Possible values:
5781	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
5782	//   "CREATING" - Resource is being created.
5783	//   "ACTIVE" - Resource is provisioned and ready to use.
5784	//   "DELETING" - The resource is being deleted.
5785	State string `json:"state,omitempty"`
5786
5787	// SubscriptionType: Output only. DEPRECATED: This will eventually be
5788	// replaced by BillingType. Subscription type of the Apigee
5789	// organization. Valid values include trial (free, limited, and for
5790	// evaluation purposes only) or paid (full subscription has been
5791	// purchased). See Apigee pricing
5792	// (https://cloud.google.com/apigee/pricing/).
5793	//
5794	// Possible values:
5795	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Subscription type not specified.
5796	//   "PAID" - Full subscription to Apigee has been purchased.
5797	//   "TRIAL" - Subscription to Apigee is free, limited, and used for
5798	// evaluation purposes only.
5799	SubscriptionType string `json:"subscriptionType,omitempty"`
5800
5801	// Type: Not used by Apigee.
5802	//
5803	// Possible values:
5804	//   "TYPE_UNSPECIFIED" - Subscription type not specified.
5805	//   "TYPE_TRIAL" - Subscription to Apigee is free, limited, and used
5806	// for evaluation purposes only.
5807	//   "TYPE_PAID" - Full subscription to Apigee has been purchased. See
5808	// [Apigee pricing](https://cloud.google.com/apigee/pricing/).
5809	//   "TYPE_INTERNAL" - For internal users only.
5810	Type string `json:"type,omitempty"`
5811
5812	// ServerResponse contains the HTTP response code and headers from the
5813	// server.
5814	googleapi.ServerResponse `json:"-"`
5815
5816	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
5817	// unconditionally include in API requests. By default, fields with
5818	// empty values are omitted from API requests. However, any non-pointer,
5819	// non-interface field appearing in ForceSendFields will be sent to the
5820	// server regardless of whether the field is empty or not. This may be
5821	// used to include empty fields in Patch requests.
5822	ForceSendFields []string `json:"-"`
5823
5824	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
5825	// include in API requests with the JSON null value. By default, fields
5826	// with empty values are omitted from API requests. However, any field
5827	// with an empty value appearing in NullFields will be sent to the
5828	// server as null. It is an error if a field in this list has a
5829	// non-empty value. This may be used to include null fields in Patch
5830	// requests.
5831	NullFields []string `json:"-"`
5832}
5833
5834func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
5835	type NoMethod GoogleCloudApigeeV1Organization
5836	raw := NoMethod(*s)
5837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5838}
5839
5840type GoogleCloudApigeeV1OrganizationProjectMapping struct {
5841	// Organization: Name of the Apigee organization.
5842	Organization string `json:"organization,omitempty"`
5843
5844	// ProjectIds: List of GCP projects associated with the Apigee
5845	// organization.
5846	ProjectIds []string `json:"projectIds,omitempty"`
5847
5848	// ForceSendFields is a list of field names (e.g. "Organization") to
5849	// unconditionally include in API requests. By default, fields with
5850	// empty values are omitted from API requests. However, any non-pointer,
5851	// non-interface field appearing in ForceSendFields will be sent to the
5852	// server regardless of whether the field is empty or not. This may be
5853	// used to include empty fields in Patch requests.
5854	ForceSendFields []string `json:"-"`
5855
5856	// NullFields is a list of field names (e.g. "Organization") to include
5857	// in API requests with the JSON null value. By default, fields with
5858	// empty values are omitted from API requests. However, any field with
5859	// an empty value appearing in NullFields will be sent to the server as
5860	// null. It is an error if a field in this list has a non-empty value.
5861	// This may be used to include null fields in Patch requests.
5862	NullFields []string `json:"-"`
5863}
5864
5865func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
5866	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
5867	raw := NoMethod(*s)
5868	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5869}
5870
5871type GoogleCloudApigeeV1PodStatus struct {
5872	// AppVersion: Version of the application running in the pod.
5873	AppVersion string `json:"appVersion,omitempty"`
5874
5875	// DeploymentStatus: Status of the deployment. Valid values include: -
5876	// `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not
5877	// yet reported on the deployment.
5878	DeploymentStatus string `json:"deploymentStatus,omitempty"`
5879
5880	// DeploymentStatusTime: Time the deployment status was reported in
5881	// milliseconds since epoch.
5882	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
5883
5884	// DeploymentTime: Time the proxy was deployed in milliseconds since
5885	// epoch.
5886	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
5887
5888	// PodName: Name of the pod which is reporting the status.
5889	PodName string `json:"podName,omitempty"`
5890
5891	// PodStatus: Overall status of the pod (not this specific deployment).
5892	// Valid values include: - `active`: Up to date. - `stale` : Recently
5893	// out of date. Pods that have not reported status in a long time are
5894	// excluded from the output.
5895	PodStatus string `json:"podStatus,omitempty"`
5896
5897	// PodStatusTime: Time the pod status was reported in milliseconds since
5898	// epoch.
5899	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
5900
5901	// StatusCode: Code associated with the deployment status.
5902	StatusCode string `json:"statusCode,omitempty"`
5903
5904	// StatusCodeDetails: Human-readable message associated with the status
5905	// code.
5906	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
5907
5908	// ForceSendFields is a list of field names (e.g. "AppVersion") to
5909	// unconditionally include in API requests. By default, fields with
5910	// empty values are omitted from API requests. However, any non-pointer,
5911	// non-interface field appearing in ForceSendFields will be sent to the
5912	// server regardless of whether the field is empty or not. This may be
5913	// used to include empty fields in Patch requests.
5914	ForceSendFields []string `json:"-"`
5915
5916	// NullFields is a list of field names (e.g. "AppVersion") to include in
5917	// API requests with the JSON null value. By default, fields with empty
5918	// values are omitted from API requests. However, any field with an
5919	// empty value appearing in NullFields will be sent to the server as
5920	// null. It is an error if a field in this list has a non-empty value.
5921	// This may be used to include null fields in Patch requests.
5922	NullFields []string `json:"-"`
5923}
5924
5925func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
5926	type NoMethod GoogleCloudApigeeV1PodStatus
5927	raw := NoMethod(*s)
5928	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5929}
5930
5931// GoogleCloudApigeeV1Point: Point is a group of information collected
5932// by runtime plane at critical points of the message flow of the
5933// processed API request. This is a list of supported point IDs,
5934// categorized to three major buckets. For each category, debug points
5935// that we are currently supporting are listed below: - Flow status
5936// debug points: StateChange FlowInfo Condition Execution DebugMask
5937// Error - Flow control debug points: FlowCallout Paused Resumed
5938// FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor
5939// FlowCalloutStepDefinition CustomTarget StepDefinition
5940// Oauth2ServicePoint RaiseFault NodeJS The detail information of the
5941// given debug point is stored in a list of results.
5942type GoogleCloudApigeeV1Point struct {
5943	// Id: Name of a step in the transaction.
5944	Id string `json:"id,omitempty"`
5945
5946	// Results: List of results extracted from a given debug point.
5947	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
5948
5949	// ForceSendFields is a list of field names (e.g. "Id") to
5950	// unconditionally include in API requests. By default, fields with
5951	// empty values are omitted from API requests. However, any non-pointer,
5952	// non-interface field appearing in ForceSendFields will be sent to the
5953	// server regardless of whether the field is empty or not. This may be
5954	// used to include empty fields in Patch requests.
5955	ForceSendFields []string `json:"-"`
5956
5957	// NullFields is a list of field names (e.g. "Id") to include in API
5958	// requests with the JSON null value. By default, fields with empty
5959	// values are omitted from API requests. However, any field with an
5960	// empty value appearing in NullFields will be sent to the server as
5961	// null. It is an error if a field in this list has a non-empty value.
5962	// This may be used to include null fields in Patch requests.
5963	NullFields []string `json:"-"`
5964}
5965
5966func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
5967	type NoMethod GoogleCloudApigeeV1Point
5968	raw := NoMethod(*s)
5969	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5970}
5971
5972// GoogleCloudApigeeV1Properties: Message for compatibility with legacy
5973// Edge specification for Java Properties object in JSON.
5974type GoogleCloudApigeeV1Properties struct {
5975	// Property: List of all properties in the object
5976	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
5977
5978	// ForceSendFields is a list of field names (e.g. "Property") to
5979	// unconditionally include in API requests. By default, fields with
5980	// empty values are omitted from API requests. However, any non-pointer,
5981	// non-interface field appearing in ForceSendFields will be sent to the
5982	// server regardless of whether the field is empty or not. This may be
5983	// used to include empty fields in Patch requests.
5984	ForceSendFields []string `json:"-"`
5985
5986	// NullFields is a list of field names (e.g. "Property") to include in
5987	// API requests with the JSON null value. By default, fields with empty
5988	// values are omitted from API requests. However, any field with an
5989	// empty value appearing in NullFields will be sent to the server as
5990	// null. It is an error if a field in this list has a non-empty value.
5991	// This may be used to include null fields in Patch requests.
5992	NullFields []string `json:"-"`
5993}
5994
5995func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
5996	type NoMethod GoogleCloudApigeeV1Properties
5997	raw := NoMethod(*s)
5998	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5999}
6000
6001// GoogleCloudApigeeV1Property: A single property entry in the
6002// Properties message.
6003type GoogleCloudApigeeV1Property struct {
6004	// Name: The property key
6005	Name string `json:"name,omitempty"`
6006
6007	// Value: The property value
6008	Value string `json:"value,omitempty"`
6009
6010	// ForceSendFields is a list of field names (e.g. "Name") to
6011	// unconditionally include in API requests. By default, fields with
6012	// empty values are omitted from API requests. However, any non-pointer,
6013	// non-interface field appearing in ForceSendFields will be sent to the
6014	// server regardless of whether the field is empty or not. This may be
6015	// used to include empty fields in Patch requests.
6016	ForceSendFields []string `json:"-"`
6017
6018	// NullFields is a list of field names (e.g. "Name") to include in API
6019	// requests with the JSON null value. By default, fields with empty
6020	// values are omitted from API requests. However, any field with an
6021	// empty value appearing in NullFields will be sent to the server as
6022	// null. It is an error if a field in this list has a non-empty value.
6023	// This may be used to include null fields in Patch requests.
6024	NullFields []string `json:"-"`
6025}
6026
6027func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
6028	type NoMethod GoogleCloudApigeeV1Property
6029	raw := NoMethod(*s)
6030	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6031}
6032
6033// GoogleCloudApigeeV1ProvisionOrganizationRequest: Request for
6034// ProvisionOrganization.
6035type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
6036	// AnalyticsRegion: Primary Cloud Platform region for analytics data
6037	// storage. For valid values, see Create an organization
6038	// (https://cloud.google.com/apigee/docs/hybrid/latest/precog-provision).
6039	// Defaults to `us-west1`.
6040	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6041
6042	// AuthorizedNetwork: Name of the customer project's VPC network. If
6043	// provided, the network needs to be peered through Service Networking.
6044	// If none is provided, the organization will have access only to the
6045	// public internet.
6046	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6047
6048	// RuntimeLocation: Cloud Platform location for the runtime instance.
6049	// Defaults to `us-west1-a`.
6050	RuntimeLocation string `json:"runtimeLocation,omitempty"`
6051
6052	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
6053	// unconditionally include in API requests. By default, fields with
6054	// empty values are omitted from API requests. However, any non-pointer,
6055	// non-interface field appearing in ForceSendFields will be sent to the
6056	// server regardless of whether the field is empty or not. This may be
6057	// used to include empty fields in Patch requests.
6058	ForceSendFields []string `json:"-"`
6059
6060	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
6061	// include in API requests with the JSON null value. By default, fields
6062	// with empty values are omitted from API requests. However, any field
6063	// with an empty value appearing in NullFields will be sent to the
6064	// server as null. It is an error if a field in this list has a
6065	// non-empty value. This may be used to include null fields in Patch
6066	// requests.
6067	NullFields []string `json:"-"`
6068}
6069
6070func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
6071	type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
6072	raw := NoMethod(*s)
6073	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6074}
6075
6076type GoogleCloudApigeeV1Query struct {
6077	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is
6078	// set to `csv`. Defaults to the `,` (comma) character. Supported
6079	// delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
6080	CsvDelimiter string `json:"csvDelimiter,omitempty"`
6081
6082	// Dimensions: A list of dimensions.
6083	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
6084	Dimensions []string `json:"dimensions,omitempty"`
6085
6086	// EnvgroupHostname: Hostname needs to be specified if query intends to
6087	// run at host level. This field is only allowed when query is submitted
6088	// by CreateHostAsyncQuery where analytics data will be grouped by
6089	// organization and hostname.
6090	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
6091
6092	// Filter: Boolean expression that can be used to filter data. Filter
6093	// expressions can be combined using AND/OR terms and should be fully
6094	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions,
6095	// and filters reference
6096	// https://docs.apigee.com/api-platform/analytics/analytics-reference
6097	// for more information on the fields available to filter on. For more
6098	// information on the tokens that you use to build filter expressions,
6099	// see Filter expression syntax.
6100	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
6101	Filter string `json:"filter,omitempty"`
6102
6103	// GroupByTimeUnit: Time unit used to group the result set. Valid values
6104	// include: second, minute, hour, day, week, or month. If a query
6105	// includes groupByTimeUnit, then the result is an aggregation based on
6106	// the specified time unit and the resultant timestamp does not include
6107	// milliseconds precision. If a query omits groupByTimeUnit, then the
6108	// resultant timestamp includes milliseconds precision.
6109	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
6110
6111	// Limit: Maximum number of rows that can be returned in the result.
6112	Limit int64 `json:"limit,omitempty"`
6113
6114	// Metrics: A list of Metrics.
6115	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
6116
6117	// Name: Asynchronous Query Name.
6118	Name string `json:"name,omitempty"`
6119
6120	// OutputFormat: Valid values include: `csv` or `json`. Defaults to
6121	// `json`. Note: Configure the delimiter for CSV output using the
6122	// csvDelimiter property.
6123	OutputFormat string `json:"outputFormat,omitempty"`
6124
6125	// ReportDefinitionId: Asynchronous Report ID.
6126	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
6127
6128	// TimeRange: Required. Time range for the query. Can use the following
6129	// predefined strings to specify the time range: `last60minutes`
6130	// `last24hours` `last7days` Or, specify the timeRange as a structure
6131	// describing start and end timestamps in the ISO format:
6132	// yyyy-mm-ddThh:mm:ssZ. Example: "timeRange": { "start":
6133	// "2018-07-29T00:13:00Z", "end": "2018-08-01T00:18:00Z" }
6134	TimeRange interface{} `json:"timeRange,omitempty"`
6135
6136	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
6137	// unconditionally include in API requests. By default, fields with
6138	// empty values are omitted from API requests. However, any non-pointer,
6139	// non-interface field appearing in ForceSendFields will be sent to the
6140	// server regardless of whether the field is empty or not. This may be
6141	// used to include empty fields in Patch requests.
6142	ForceSendFields []string `json:"-"`
6143
6144	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
6145	// in API requests with the JSON null value. By default, fields with
6146	// empty values are omitted from API requests. However, any field with
6147	// an empty value appearing in NullFields will be sent to the server as
6148	// null. It is an error if a field in this list has a non-empty value.
6149	// This may be used to include null fields in Patch requests.
6150	NullFields []string `json:"-"`
6151}
6152
6153func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
6154	type NoMethod GoogleCloudApigeeV1Query
6155	raw := NoMethod(*s)
6156	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6157}
6158
6159type GoogleCloudApigeeV1QueryMetadata struct {
6160	// Dimensions: Dimensions of the AsyncQuery.
6161	Dimensions []string `json:"dimensions,omitempty"`
6162
6163	// EndTimestamp: End timestamp of the query range.
6164	EndTimestamp string `json:"endTimestamp,omitempty"`
6165
6166	// Metrics: Metrics of the AsyncQuery. Example:
6167	// ["name:message_count,func:sum,alias:sum_message_count"]
6168	Metrics []string `json:"metrics,omitempty"`
6169
6170	// OutputFormat: Output format.
6171	OutputFormat string `json:"outputFormat,omitempty"`
6172
6173	// StartTimestamp: Start timestamp of the query range.
6174	StartTimestamp string `json:"startTimestamp,omitempty"`
6175
6176	// TimeUnit: Query GroupBy time unit.
6177	TimeUnit string `json:"timeUnit,omitempty"`
6178
6179	// ForceSendFields is a list of field names (e.g. "Dimensions") to
6180	// unconditionally include in API requests. By default, fields with
6181	// empty values are omitted from API requests. However, any non-pointer,
6182	// non-interface field appearing in ForceSendFields will be sent to the
6183	// server regardless of whether the field is empty or not. This may be
6184	// used to include empty fields in Patch requests.
6185	ForceSendFields []string `json:"-"`
6186
6187	// NullFields is a list of field names (e.g. "Dimensions") to include in
6188	// API requests with the JSON null value. By default, fields with empty
6189	// values are omitted from API requests. However, any field with an
6190	// empty value appearing in NullFields will be sent to the server as
6191	// null. It is an error if a field in this list has a non-empty value.
6192	// This may be used to include null fields in Patch requests.
6193	NullFields []string `json:"-"`
6194}
6195
6196func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
6197	type NoMethod GoogleCloudApigeeV1QueryMetadata
6198	raw := NoMethod(*s)
6199	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6200}
6201
6202// GoogleCloudApigeeV1QueryMetric: More info about Metric:
6203// https://docs.apigee.com/api-platform/analytics/analytics-reference#metrics
6204type GoogleCloudApigeeV1QueryMetric struct {
6205	// Alias: Alias for the metric. Alias will be used to replace metric
6206	// name in query results.
6207	Alias string `json:"alias,omitempty"`
6208
6209	// Function: Aggregation function: avg, min, max, or sum.
6210	Function string `json:"function,omitempty"`
6211
6212	// Name: Required. Metric name.
6213	Name string `json:"name,omitempty"`
6214
6215	// Operator: One of `+`, `-`, `/`, `%`, `*`.
6216	Operator string `json:"operator,omitempty"`
6217
6218	// Value: Operand value should be provided when operator is set.
6219	Value string `json:"value,omitempty"`
6220
6221	// ForceSendFields is a list of field names (e.g. "Alias") to
6222	// unconditionally include in API requests. By default, fields with
6223	// empty values are omitted from API requests. However, any non-pointer,
6224	// non-interface field appearing in ForceSendFields will be sent to the
6225	// server regardless of whether the field is empty or not. This may be
6226	// used to include empty fields in Patch requests.
6227	ForceSendFields []string `json:"-"`
6228
6229	// NullFields is a list of field names (e.g. "Alias") to include in API
6230	// requests with the JSON null value. By default, fields with empty
6231	// values are omitted from API requests. However, any field with an
6232	// empty value appearing in NullFields will be sent to the server as
6233	// null. It is an error if a field in this list has a non-empty value.
6234	// This may be used to include null fields in Patch requests.
6235	NullFields []string `json:"-"`
6236}
6237
6238func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
6239	type NoMethod GoogleCloudApigeeV1QueryMetric
6240	raw := NoMethod(*s)
6241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6242}
6243
6244// GoogleCloudApigeeV1Quota: Quota contains the essential parameters
6245// needed that can be applied on a proxy/remote service, resources and
6246// methods combination associated with this API product. While setting
6247// of Quota is optional, setting it prevents requests from exceeding the
6248// provisioned parameters.
6249type GoogleCloudApigeeV1Quota struct {
6250	// Interval: Required. Time interval over which the number of request
6251	// messages is calculated.
6252	Interval string `json:"interval,omitempty"`
6253
6254	// Limit: Required. Upper limit allowed for the time interval and time
6255	// unit specified. Requests exceeding this limit will be rejected.
6256	Limit string `json:"limit,omitempty"`
6257
6258	// TimeUnit: Time unit defined for the `interval`. Valid values include
6259	// `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are
6260	// valid, the default value is `hour`; otherwise, the default is null.
6261	TimeUnit string `json:"timeUnit,omitempty"`
6262
6263	// ForceSendFields is a list of field names (e.g. "Interval") to
6264	// unconditionally include in API requests. By default, fields with
6265	// empty values are omitted from API requests. However, any non-pointer,
6266	// non-interface field appearing in ForceSendFields will be sent to the
6267	// server regardless of whether the field is empty or not. This may be
6268	// used to include empty fields in Patch requests.
6269	ForceSendFields []string `json:"-"`
6270
6271	// NullFields is a list of field names (e.g. "Interval") to include in
6272	// API requests with the JSON null value. By default, fields with empty
6273	// values are omitted from API requests. However, any field with an
6274	// empty value appearing in NullFields will be sent to the server as
6275	// null. It is an error if a field in this list has a non-empty value.
6276	// This may be used to include null fields in Patch requests.
6277	NullFields []string `json:"-"`
6278}
6279
6280func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
6281	type NoMethod GoogleCloudApigeeV1Quota
6282	raw := NoMethod(*s)
6283	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6284}
6285
6286// GoogleCloudApigeeV1Reference: A Reference configuration. References
6287// must refer to a keystore that also exists in the parent environment.
6288type GoogleCloudApigeeV1Reference struct {
6289	// Description: Optional. A human-readable description of this
6290	// reference.
6291	Description string `json:"description,omitempty"`
6292
6293	// Name: Required. The resource id of this reference. Values must match
6294	// the regular expression [\w\s\-.]+.
6295	Name string `json:"name,omitempty"`
6296
6297	// Refers: Required. The id of the resource to which this reference
6298	// refers. Must be the id of a resource that exists in the parent
6299	// environment and is of the given resource_type.
6300	Refers string `json:"refers,omitempty"`
6301
6302	// ResourceType: The type of resource referred to by this reference.
6303	// Valid values are 'KeyStore' or 'TrustStore'.
6304	ResourceType string `json:"resourceType,omitempty"`
6305
6306	// ServerResponse contains the HTTP response code and headers from the
6307	// server.
6308	googleapi.ServerResponse `json:"-"`
6309
6310	// ForceSendFields is a list of field names (e.g. "Description") to
6311	// unconditionally include in API requests. By default, fields with
6312	// empty values are omitted from API requests. However, any non-pointer,
6313	// non-interface field appearing in ForceSendFields will be sent to the
6314	// server regardless of whether the field is empty or not. This may be
6315	// used to include empty fields in Patch requests.
6316	ForceSendFields []string `json:"-"`
6317
6318	// NullFields is a list of field names (e.g. "Description") to include
6319	// in API requests with the JSON null value. By default, fields with
6320	// empty values are omitted from API requests. However, any field with
6321	// an empty value appearing in NullFields will be sent to the server as
6322	// null. It is an error if a field in this list has a non-empty value.
6323	// This may be used to include null fields in Patch requests.
6324	NullFields []string `json:"-"`
6325}
6326
6327func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
6328	type NoMethod GoogleCloudApigeeV1Reference
6329	raw := NoMethod(*s)
6330	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6331}
6332
6333type GoogleCloudApigeeV1ReferenceConfig struct {
6334	// Name: Name of the reference in the following format:
6335	// `organizations/{org}/environments/{env}/references/{reference}`
6336	Name string `json:"name,omitempty"`
6337
6338	// ResourceName: Name of the referenced resource in the following
6339	// format: `organizations/{org}/environments/{env}/keystores/{keystore}`
6340	// Only references to keystore resources are supported.
6341	ResourceName string `json:"resourceName,omitempty"`
6342
6343	// ForceSendFields is a list of field names (e.g. "Name") to
6344	// unconditionally include in API requests. By default, fields with
6345	// empty values are omitted from API requests. However, any non-pointer,
6346	// non-interface field appearing in ForceSendFields will be sent to the
6347	// server regardless of whether the field is empty or not. This may be
6348	// used to include empty fields in Patch requests.
6349	ForceSendFields []string `json:"-"`
6350
6351	// NullFields is a list of field names (e.g. "Name") to include in API
6352	// requests with the JSON null value. By default, fields with empty
6353	// values are omitted from API requests. However, any field with an
6354	// empty value appearing in NullFields will be sent to the server as
6355	// null. It is an error if a field in this list has a non-empty value.
6356	// This may be used to include null fields in Patch requests.
6357	NullFields []string `json:"-"`
6358}
6359
6360func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
6361	type NoMethod GoogleCloudApigeeV1ReferenceConfig
6362	raw := NoMethod(*s)
6363	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6364}
6365
6366// GoogleCloudApigeeV1ReportInstanceStatusRequest: Request for
6367// ReportInstanceStatus.
6368type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
6369	// InstanceUid: A unique ID for the instance which is guaranteed to be
6370	// unique in case the user installs multiple hybrid runtimes with the
6371	// same instance ID.
6372	InstanceUid string `json:"instanceUid,omitempty"`
6373
6374	// ReportTime: The time the report was generated in the runtime. Used to
6375	// prevent an old status from overwriting a newer one. An instance
6376	// should space out it's status reports so that clock skew does not play
6377	// a factor.
6378	ReportTime string `json:"reportTime,omitempty"`
6379
6380	// Resources: Status for config resources
6381	Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
6382
6383	// ForceSendFields is a list of field names (e.g. "InstanceUid") to
6384	// unconditionally include in API requests. By default, fields with
6385	// empty values are omitted from API requests. However, any non-pointer,
6386	// non-interface field appearing in ForceSendFields will be sent to the
6387	// server regardless of whether the field is empty or not. This may be
6388	// used to include empty fields in Patch requests.
6389	ForceSendFields []string `json:"-"`
6390
6391	// NullFields is a list of field names (e.g. "InstanceUid") to include
6392	// in API requests with the JSON null value. By default, fields with
6393	// empty values are omitted from API requests. However, any field with
6394	// an empty value appearing in NullFields will be sent to the server as
6395	// null. It is an error if a field in this list has a non-empty value.
6396	// This may be used to include null fields in Patch requests.
6397	NullFields []string `json:"-"`
6398}
6399
6400func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
6401	type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
6402	raw := NoMethod(*s)
6403	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6404}
6405
6406// GoogleCloudApigeeV1ReportInstanceStatusResponse: Placeholder for
6407// future enhancements to status reporting protocol
6408type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
6409	// ServerResponse contains the HTTP response code and headers from the
6410	// server.
6411	googleapi.ServerResponse `json:"-"`
6412}
6413
6414type GoogleCloudApigeeV1ReportProperty struct {
6415	// Property: name of the property
6416	Property string `json:"property,omitempty"`
6417
6418	// Value: property values
6419	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
6420
6421	// ForceSendFields is a list of field names (e.g. "Property") to
6422	// unconditionally include in API requests. By default, fields with
6423	// empty values are omitted from API requests. However, any non-pointer,
6424	// non-interface field appearing in ForceSendFields will be sent to the
6425	// server regardless of whether the field is empty or not. This may be
6426	// used to include empty fields in Patch requests.
6427	ForceSendFields []string `json:"-"`
6428
6429	// NullFields is a list of field names (e.g. "Property") to include in
6430	// API requests with the JSON null value. By default, fields with empty
6431	// values are omitted from API requests. However, any field with an
6432	// empty value appearing in NullFields will be sent to the server as
6433	// null. It is an error if a field in this list has a non-empty value.
6434	// This may be used to include null fields in Patch requests.
6435	NullFields []string `json:"-"`
6436}
6437
6438func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
6439	type NoMethod GoogleCloudApigeeV1ReportProperty
6440	raw := NoMethod(*s)
6441	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6442}
6443
6444type GoogleCloudApigeeV1ResourceConfig struct {
6445	// Location: Location of the resource as a URI.
6446	Location string `json:"location,omitempty"`
6447
6448	// Name: Resource name in the following format:
6449	// `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/re
6450	// visions/{rev}` Only environment-scoped resource files are supported.
6451	Name string `json:"name,omitempty"`
6452
6453	// ForceSendFields is a list of field names (e.g. "Location") to
6454	// unconditionally include in API requests. By default, fields with
6455	// empty values are omitted from API requests. However, any non-pointer,
6456	// non-interface field appearing in ForceSendFields will be sent to the
6457	// server regardless of whether the field is empty or not. This may be
6458	// used to include empty fields in Patch requests.
6459	ForceSendFields []string `json:"-"`
6460
6461	// NullFields is a list of field names (e.g. "Location") to include in
6462	// API requests with the JSON null value. By default, fields with empty
6463	// values are omitted from API requests. However, any field with an
6464	// empty value appearing in NullFields will be sent to the server as
6465	// null. It is an error if a field in this list has a non-empty value.
6466	// This may be used to include null fields in Patch requests.
6467	NullFields []string `json:"-"`
6468}
6469
6470func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
6471	type NoMethod GoogleCloudApigeeV1ResourceConfig
6472	raw := NoMethod(*s)
6473	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6474}
6475
6476// GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
6477type GoogleCloudApigeeV1ResourceFile struct {
6478	// Name: ID of the resource file.
6479	Name string `json:"name,omitempty"`
6480
6481	// Type: Resource file type. {{ resource_file_type }}
6482	Type string `json:"type,omitempty"`
6483
6484	// ServerResponse contains the HTTP response code and headers from the
6485	// server.
6486	googleapi.ServerResponse `json:"-"`
6487
6488	// ForceSendFields is a list of field names (e.g. "Name") to
6489	// unconditionally include in API requests. By default, fields with
6490	// empty values are omitted from API requests. However, any non-pointer,
6491	// non-interface field appearing in ForceSendFields will be sent to the
6492	// server regardless of whether the field is empty or not. This may be
6493	// used to include empty fields in Patch requests.
6494	ForceSendFields []string `json:"-"`
6495
6496	// NullFields is a list of field names (e.g. "Name") to include in API
6497	// requests with the JSON null value. By default, fields with empty
6498	// values are omitted from API requests. However, any field with an
6499	// empty value appearing in NullFields will be sent to the server as
6500	// null. It is an error if a field in this list has a non-empty value.
6501	// This may be used to include null fields in Patch requests.
6502	NullFields []string `json:"-"`
6503}
6504
6505func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
6506	type NoMethod GoogleCloudApigeeV1ResourceFile
6507	raw := NoMethod(*s)
6508	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6509}
6510
6511// GoogleCloudApigeeV1ResourceFiles: List of resource files.
6512type GoogleCloudApigeeV1ResourceFiles struct {
6513	// ResourceFile: List of resource files.
6514	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
6515
6516	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
6517	// unconditionally include in API requests. By default, fields with
6518	// empty values are omitted from API requests. However, any non-pointer,
6519	// non-interface field appearing in ForceSendFields will be sent to the
6520	// server regardless of whether the field is empty or not. This may be
6521	// used to include empty fields in Patch requests.
6522	ForceSendFields []string `json:"-"`
6523
6524	// NullFields is a list of field names (e.g. "ResourceFile") to include
6525	// in API requests with the JSON null value. By default, fields with
6526	// empty values are omitted from API requests. However, any field with
6527	// an empty value appearing in NullFields will be sent to the server as
6528	// null. It is an error if a field in this list has a non-empty value.
6529	// This may be used to include null fields in Patch requests.
6530	NullFields []string `json:"-"`
6531}
6532
6533func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
6534	type NoMethod GoogleCloudApigeeV1ResourceFiles
6535	raw := NoMethod(*s)
6536	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6537}
6538
6539// GoogleCloudApigeeV1ResourceStatus: The status of a resource loaded in
6540// the runtime.
6541type GoogleCloudApigeeV1ResourceStatus struct {
6542	// Resource: The resource name. Currently only two resources are
6543	// supported: EnvironmentGroup -
6544	// organizations/{org}/envgroups/{envgroup} EnvironmentConfig -
6545	// organizations/{org}/environments/{environment}/deployedConfig
6546	Resource string `json:"resource,omitempty"`
6547
6548	// Revisions: Revisions of the resource currently deployed in the
6549	// instance.
6550	Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
6551
6552	// TotalReplicas: The total number of replicas that should have this
6553	// resource.
6554	TotalReplicas int64 `json:"totalReplicas,omitempty"`
6555
6556	// Uid: The uid of the resource. In the unexpected case that the
6557	// instance has multiple uids for the same name, they should be reported
6558	// under separate ResourceStatuses.
6559	Uid string `json:"uid,omitempty"`
6560
6561	// ForceSendFields is a list of field names (e.g. "Resource") to
6562	// unconditionally include in API requests. By default, fields with
6563	// empty values are omitted from API requests. However, any non-pointer,
6564	// non-interface field appearing in ForceSendFields will be sent to the
6565	// server regardless of whether the field is empty or not. This may be
6566	// used to include empty fields in Patch requests.
6567	ForceSendFields []string `json:"-"`
6568
6569	// NullFields is a list of field names (e.g. "Resource") to include in
6570	// API requests with the JSON null value. By default, fields with empty
6571	// values are omitted from API requests. However, any field with an
6572	// empty value appearing in NullFields will be sent to the server as
6573	// null. It is an error if a field in this list has a non-empty value.
6574	// This may be used to include null fields in Patch requests.
6575	NullFields []string `json:"-"`
6576}
6577
6578func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
6579	type NoMethod GoogleCloudApigeeV1ResourceStatus
6580	raw := NoMethod(*s)
6581	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6582}
6583
6584// GoogleCloudApigeeV1Result: Result is short for "action result", could
6585// be different types identified by "action_result" field. Supported
6586// types: 1. DebugInfo : generic debug info collected by runtime
6587// recorded as a list of properties. For example, the contents could be
6588// virtual host info, state change result, or execution metadata.
6589// Required fields : properties, timestamp 2. RequestMessage:
6590// information of a http request. Contains headers, request URI and http
6591// methods type.Required fields : headers, uri, verb 3. ResponseMessage:
6592// information of a http response. Contains headers, reason phrase and
6593// http status code. Required fields : headers, reasonPhrase, statusCode
6594// 4. ErrorMessage: information of a http error message. Contains detail
6595// error message, reason phrase and status code. Required fields :
6596// content, headers, reasonPhrase, statusCode 5. VariableAccess: a list
6597// of variable access actions, can be Get, Set and Remove. Required
6598// fields : accessList
6599type GoogleCloudApigeeV1Result struct {
6600	// ActionResult: Type of the action result. Can be one of the five:
6601	// DebugInfo, RequestMessage, ResponseMessage, ErrorMessage,
6602	// VariableAccess
6603	ActionResult string `json:"ActionResult,omitempty"`
6604
6605	// AccessList: A list of variable access actions agaist the api proxy.
6606	// Supported values: Get, Set, Remove.
6607	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
6608
6609	// Content: Error message content. for example, "content" :
6610	// "{\"fault\":{\"faultstring\":\"API timed
6611	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
6612	Content string `json:"content,omitempty"`
6613
6614	// Headers: A list of HTTP headers. for example, '"headers" : [ { "name"
6615	// : "Content-Length", "value" : "83" }, { "name" : "Content-Type",
6616	// "value" : "application/json" } ]'
6617	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
6618
6619	// Properties: Name value pairs used for DebugInfo ActionResult.
6620	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
6621
6622	// ReasonPhrase: HTTP response phrase
6623	ReasonPhrase string `json:"reasonPhrase,omitempty"`
6624
6625	// StatusCode: HTTP response code
6626	StatusCode string `json:"statusCode,omitempty"`
6627
6628	// Timestamp: Timestamp of when the result is recorded. Its format is
6629	// dd-mm-yy hh:mm:ss:xxx. For example, "timestamp" : "12-08-19
6630	// 00:31:59:960"
6631	Timestamp string `json:"timestamp,omitempty"`
6632
6633	// URI: The relative path of the api proxy. for example, "uRI" :
6634	// "/iloveapis"
6635	URI string `json:"uRI,omitempty"`
6636
6637	// Verb: HTTP method verb
6638	Verb string `json:"verb,omitempty"`
6639
6640	// ForceSendFields is a list of field names (e.g. "ActionResult") to
6641	// unconditionally include in API requests. By default, fields with
6642	// empty values are omitted from API requests. However, any non-pointer,
6643	// non-interface field appearing in ForceSendFields will be sent to the
6644	// server regardless of whether the field is empty or not. This may be
6645	// used to include empty fields in Patch requests.
6646	ForceSendFields []string `json:"-"`
6647
6648	// NullFields is a list of field names (e.g. "ActionResult") to include
6649	// in API requests with the JSON null value. By default, fields with
6650	// empty values are omitted from API requests. However, any field with
6651	// an empty value appearing in NullFields will be sent to the server as
6652	// null. It is an error if a field in this list has a non-empty value.
6653	// This may be used to include null fields in Patch requests.
6654	NullFields []string `json:"-"`
6655}
6656
6657func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
6658	type NoMethod GoogleCloudApigeeV1Result
6659	raw := NoMethod(*s)
6660	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6661}
6662
6663// GoogleCloudApigeeV1RevisionStatus: The status of a specific resource
6664// revision.
6665type GoogleCloudApigeeV1RevisionStatus struct {
6666	// Errors: Errors reported when attempting to load this revision.
6667	Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
6668
6669	// JsonSpec: The json content of the resource revision.
6670	JsonSpec string `json:"jsonSpec,omitempty"`
6671
6672	// Replicas: The number of replicas that have successfully loaded this
6673	// revision.
6674	Replicas int64 `json:"replicas,omitempty"`
6675
6676	// RevisionId: The revision of the resource.
6677	RevisionId string `json:"revisionId,omitempty"`
6678
6679	// ForceSendFields is a list of field names (e.g. "Errors") to
6680	// unconditionally include in API requests. By default, fields with
6681	// empty values are omitted from API requests. However, any non-pointer,
6682	// non-interface field appearing in ForceSendFields will be sent to the
6683	// server regardless of whether the field is empty or not. This may be
6684	// used to include empty fields in Patch requests.
6685	ForceSendFields []string `json:"-"`
6686
6687	// NullFields is a list of field names (e.g. "Errors") to include in API
6688	// requests with the JSON null value. By default, fields with empty
6689	// values are omitted from API requests. However, any field with an
6690	// empty value appearing in NullFields will be sent to the server as
6691	// null. It is an error if a field in this list has a non-empty value.
6692	// This may be used to include null fields in Patch requests.
6693	NullFields []string `json:"-"`
6694}
6695
6696func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
6697	type NoMethod GoogleCloudApigeeV1RevisionStatus
6698	raw := NoMethod(*s)
6699	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6700}
6701
6702type GoogleCloudApigeeV1RoutingRule struct {
6703	// Basepath: URI path prefix used to route to the specified environment.
6704	// May contain one or more wildcards. For example, path segments
6705	// consisting of a single `*` character will match any string.
6706	Basepath string `json:"basepath,omitempty"`
6707
6708	// EnvGroupRevision: The env group config revision_id when this rule was
6709	// added or last updated. This value is set when the rule is created and
6710	// will only update if the the environment_id changes. It is used to
6711	// determine if the runtime is up to date with respect to this rule.
6712	// This field is omitted from the IngressConfig unless the
6713	// GetDeployedIngressConfig API is called with view=FULL.
6714	EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
6715
6716	// Environment: Name of an environment bound to the environment group in
6717	// the following format: `organizations/{org}/environments/{env}`.
6718	Environment string `json:"environment,omitempty"`
6719
6720	// Receiver: The resource name of the proxy revision that is receiving
6721	// this basepath in the following format:
6722	// `organizations/{org}/apis/{api}/revisions/{rev}`. This field is
6723	// omitted from the IngressConfig unless the GetDeployedIngressConfig
6724	// API is called with view=FULL.
6725	Receiver string `json:"receiver,omitempty"`
6726
6727	// UpdateTime: The unix timestamp when this rule was updated. This is
6728	// updated whenever env_group_revision is updated. This field is omitted
6729	// from the IngressConfig unless the GetDeployedIngressConfig API is
6730	// called with view=FULL.
6731	UpdateTime string `json:"updateTime,omitempty"`
6732
6733	// ForceSendFields is a list of field names (e.g. "Basepath") to
6734	// unconditionally include in API requests. By default, fields with
6735	// empty values are omitted from API requests. However, any non-pointer,
6736	// non-interface field appearing in ForceSendFields will be sent to the
6737	// server regardless of whether the field is empty or not. This may be
6738	// used to include empty fields in Patch requests.
6739	ForceSendFields []string `json:"-"`
6740
6741	// NullFields is a list of field names (e.g. "Basepath") to include in
6742	// API requests with the JSON null value. By default, fields with empty
6743	// values are omitted from API requests. However, any field with an
6744	// empty value appearing in NullFields will be sent to the server as
6745	// null. It is an error if a field in this list has a non-empty value.
6746	// This may be used to include null fields in Patch requests.
6747	NullFields []string `json:"-"`
6748}
6749
6750func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
6751	type NoMethod GoogleCloudApigeeV1RoutingRule
6752	raw := NoMethod(*s)
6753	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6754}
6755
6756// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 8 RuntimeTraceConfig
6757// defines the configurations for distributed trace in an environment.
6758type GoogleCloudApigeeV1RuntimeTraceConfig struct {
6759	// Endpoint: Endpoint of the exporter.
6760	Endpoint string `json:"endpoint,omitempty"`
6761
6762	// Exporter: Exporter that is used to view the distributed trace
6763	// captured using OpenCensus. An exporter sends traces to any backend
6764	// that is capable of consuming them. Recorded spans can be exported by
6765	// registered exporters.
6766	//
6767	// Possible values:
6768	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
6769	//   "JAEGER" - Jaeger exporter
6770	//   "CLOUD_TRACE" - Cloudtrace exporter
6771	Exporter string `json:"exporter,omitempty"`
6772
6773	// Name: Name of the trace config in the following format:
6774	// `organizations/{org}/environment/{env}/traceConfig`
6775	Name string `json:"name,omitempty"`
6776
6777	// Overrides: List of trace configuration overrides for spicific API
6778	// proxies.
6779	Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
6780
6781	// RevisionCreateTime: The timestamp that the revision was created or
6782	// updated.
6783	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
6784
6785	// RevisionId: Revision number which can be used by the runtime to
6786	// detect if the trace config has changed between two versions.
6787	RevisionId string `json:"revisionId,omitempty"`
6788
6789	// SamplingConfig: Trace configuration for all API proxies in an
6790	// environment.
6791	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
6792
6793	// ForceSendFields is a list of field names (e.g. "Endpoint") to
6794	// unconditionally include in API requests. By default, fields with
6795	// empty values are omitted from API requests. However, any non-pointer,
6796	// non-interface field appearing in ForceSendFields will be sent to the
6797	// server regardless of whether the field is empty or not. This may be
6798	// used to include empty fields in Patch requests.
6799	ForceSendFields []string `json:"-"`
6800
6801	// NullFields is a list of field names (e.g. "Endpoint") to include in
6802	// API requests with the JSON null value. By default, fields with empty
6803	// values are omitted from API requests. However, any field with an
6804	// empty value appearing in NullFields will be sent to the server as
6805	// null. It is an error if a field in this list has a non-empty value.
6806	// This may be used to include null fields in Patch requests.
6807	NullFields []string `json:"-"`
6808}
6809
6810func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
6811	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
6812	raw := NoMethod(*s)
6813	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6814}
6815
6816// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 7 Trace
6817// configuration override for a specific API proxy in an environment.
6818type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
6819	// ApiProxy: Name of the API proxy that will have its trace
6820	// configuration overridden following format:
6821	// `organizations/{org}/apis/{api}`
6822	ApiProxy string `json:"apiProxy,omitempty"`
6823
6824	// Name: Name of the trace config override in the following format:
6825	// `organizations/{org}/environment/{env}/traceConfig/overrides/{override
6826	// }`
6827	Name string `json:"name,omitempty"`
6828
6829	// RevisionCreateTime: The timestamp that the revision was created or
6830	// updated.
6831	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
6832
6833	// RevisionId: Revision number which can be used by the runtime to
6834	// detect if the trace config override has changed between two versions.
6835	RevisionId string `json:"revisionId,omitempty"`
6836
6837	// SamplingConfig: Trace configuration override for a specific API proxy
6838	// in an environment.
6839	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
6840
6841	// Uid: Unique ID for the configuration override. The ID will only
6842	// change if the override is deleted and recreated. Corresponds to
6843	// name's "override" field.
6844	Uid string `json:"uid,omitempty"`
6845
6846	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
6847	// unconditionally include in API requests. By default, fields with
6848	// empty values are omitted from API requests. However, any non-pointer,
6849	// non-interface field appearing in ForceSendFields will be sent to the
6850	// server regardless of whether the field is empty or not. This may be
6851	// used to include empty fields in Patch requests.
6852	ForceSendFields []string `json:"-"`
6853
6854	// NullFields is a list of field names (e.g. "ApiProxy") to include in
6855	// API requests with the JSON null value. By default, fields with empty
6856	// values are omitted from API requests. However, any field with an
6857	// empty value appearing in NullFields will be sent to the server as
6858	// null. It is an error if a field in this list has a non-empty value.
6859	// This may be used to include null fields in Patch requests.
6860	NullFields []string `json:"-"`
6861}
6862
6863func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
6864	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
6865	raw := NoMethod(*s)
6866	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6867}
6868
6869// GoogleCloudApigeeV1RuntimeTraceSamplingConfig: NEXT ID: 3
6870// RuntimeTraceSamplingConfig represents the detail settings of
6871// distributed tracing. Only the fields that are defined in the
6872// distributed trace configuration can be overridden using the
6873// distribute trace configuration override APIs.
6874type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
6875	// Sampler: Sampler of distributed tracing. OFF is the default value.
6876	//
6877	// Possible values:
6878	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
6879	//   "OFF" - OFF means distributed trace is disabled, or the sampling
6880	// probability is 0.
6881	//   "PROBABILITY" - PROBABILITY means traces are captured on a
6882	// probability that defined by sampling_rate. The sampling rate is
6883	// limited to 0 to 0.5 when this is set.
6884	Sampler string `json:"sampler,omitempty"`
6885
6886	// SamplingRate: Field sampling rate. This value is only applicable when
6887	// using the PROBABILITY sampler. The supported values are > 0 and <=
6888	// 0.5.
6889	SamplingRate float64 `json:"samplingRate,omitempty"`
6890
6891	// ForceSendFields is a list of field names (e.g. "Sampler") to
6892	// unconditionally include in API requests. By default, fields with
6893	// empty values are omitted from API requests. However, any non-pointer,
6894	// non-interface field appearing in ForceSendFields will be sent to the
6895	// server regardless of whether the field is empty or not. This may be
6896	// used to include empty fields in Patch requests.
6897	ForceSendFields []string `json:"-"`
6898
6899	// NullFields is a list of field names (e.g. "Sampler") to include in
6900	// API requests with the JSON null value. By default, fields with empty
6901	// values are omitted from API requests. However, any field with an
6902	// empty value appearing in NullFields will be sent to the server as
6903	// null. It is an error if a field in this list has a non-empty value.
6904	// This may be used to include null fields in Patch requests.
6905	NullFields []string `json:"-"`
6906}
6907
6908func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
6909	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
6910	raw := NoMethod(*s)
6911	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6912}
6913
6914func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
6915	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
6916	var s1 struct {
6917		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
6918		*NoMethod
6919	}
6920	s1.NoMethod = (*NoMethod)(s)
6921	if err := json.Unmarshal(data, &s1); err != nil {
6922		return err
6923	}
6924	s.SamplingRate = float64(s1.SamplingRate)
6925	return nil
6926}
6927
6928// GoogleCloudApigeeV1Schema: Response for Schema call
6929type GoogleCloudApigeeV1Schema struct {
6930	// Dimensions: List of schema fiels grouped as dimensions.
6931	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
6932
6933	// Meta: Additional metadata associated with schema. This is a legacy
6934	// field and usually consists of an empty array of strings.
6935	Meta []string `json:"meta,omitempty"`
6936
6937	// Metrics: List of schema fields grouped as dimensions. These are
6938	// fields that can be used with an aggregate function such as sum, avg,
6939	// min, max.
6940	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
6941
6942	// ServerResponse contains the HTTP response code and headers from the
6943	// server.
6944	googleapi.ServerResponse `json:"-"`
6945
6946	// ForceSendFields is a list of field names (e.g. "Dimensions") to
6947	// unconditionally include in API requests. By default, fields with
6948	// empty values are omitted from API requests. However, any non-pointer,
6949	// non-interface field appearing in ForceSendFields will be sent to the
6950	// server regardless of whether the field is empty or not. This may be
6951	// used to include empty fields in Patch requests.
6952	ForceSendFields []string `json:"-"`
6953
6954	// NullFields is a list of field names (e.g. "Dimensions") to include in
6955	// API requests with the JSON null value. By default, fields with empty
6956	// values are omitted from API requests. However, any field with an
6957	// empty value appearing in NullFields will be sent to the server as
6958	// null. It is an error if a field in this list has a non-empty value.
6959	// This may be used to include null fields in Patch requests.
6960	NullFields []string `json:"-"`
6961}
6962
6963func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
6964	type NoMethod GoogleCloudApigeeV1Schema
6965	raw := NoMethod(*s)
6966	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6967}
6968
6969// GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema
6970// element
6971type GoogleCloudApigeeV1SchemaSchemaElement struct {
6972	// Name: Name of the field
6973	Name string `json:"name,omitempty"`
6974
6975	// Properties: Property of the schema field E.g. { "createTime":
6976	// "2016-02-26T10:23:09.592Z", "custom": "false", "type": "string" }
6977	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
6978
6979	// ForceSendFields is a list of field names (e.g. "Name") to
6980	// unconditionally include in API requests. By default, fields with
6981	// empty values are omitted from API requests. However, any non-pointer,
6982	// non-interface field appearing in ForceSendFields will be sent to the
6983	// server regardless of whether the field is empty or not. This may be
6984	// used to include empty fields in Patch requests.
6985	ForceSendFields []string `json:"-"`
6986
6987	// NullFields is a list of field names (e.g. "Name") to include in API
6988	// requests with the JSON null value. By default, fields with empty
6989	// values are omitted from API requests. However, any field with an
6990	// empty value appearing in NullFields will be sent to the server as
6991	// null. It is an error if a field in this list has a non-empty value.
6992	// This may be used to include null fields in Patch requests.
6993	NullFields []string `json:"-"`
6994}
6995
6996func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
6997	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
6998	raw := NoMethod(*s)
6999	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7000}
7001
7002// GoogleCloudApigeeV1SchemaSchemaProperty: Message type for schema
7003// property
7004type GoogleCloudApigeeV1SchemaSchemaProperty struct {
7005	// CreateTime: Creation time of the field
7006	CreateTime string `json:"createTime,omitempty"`
7007
7008	// Custom: Custom is a flag signifying if the field was provided as part
7009	// of the standard dataset or a custom field created by the customer
7010	Custom string `json:"custom,omitempty"`
7011
7012	// Type: Data type of the field.
7013	Type string `json:"type,omitempty"`
7014
7015	// ForceSendFields is a list of field names (e.g. "CreateTime") to
7016	// unconditionally include in API requests. By default, fields with
7017	// empty values are omitted from API requests. However, any non-pointer,
7018	// non-interface field appearing in ForceSendFields will be sent to the
7019	// server regardless of whether the field is empty or not. This may be
7020	// used to include empty fields in Patch requests.
7021	ForceSendFields []string `json:"-"`
7022
7023	// NullFields is a list of field names (e.g. "CreateTime") to include in
7024	// API requests with the JSON null value. By default, fields with empty
7025	// values are omitted from API requests. However, any field with an
7026	// empty value appearing in NullFields will be sent to the server as
7027	// null. It is an error if a field in this list has a non-empty value.
7028	// This may be used to include null fields in Patch requests.
7029	NullFields []string `json:"-"`
7030}
7031
7032func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
7033	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
7034	raw := NoMethod(*s)
7035	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7036}
7037
7038type GoogleCloudApigeeV1ServiceIssuersMapping struct {
7039	// EmailIds: List of trusted issuer email ids.
7040	EmailIds []string `json:"emailIds,omitempty"`
7041
7042	// Service: String indicating the Apigee service name.
7043	Service string `json:"service,omitempty"`
7044
7045	// ForceSendFields is a list of field names (e.g. "EmailIds") to
7046	// unconditionally include in API requests. By default, fields with
7047	// empty values are omitted from API requests. However, any non-pointer,
7048	// non-interface field appearing in ForceSendFields will be sent to the
7049	// server regardless of whether the field is empty or not. This may be
7050	// used to include empty fields in Patch requests.
7051	ForceSendFields []string `json:"-"`
7052
7053	// NullFields is a list of field names (e.g. "EmailIds") to include in
7054	// API requests with the JSON null value. By default, fields with empty
7055	// values are omitted from API requests. However, any field with an
7056	// empty value appearing in NullFields will be sent to the server as
7057	// null. It is an error if a field in this list has a non-empty value.
7058	// This may be used to include null fields in Patch requests.
7059	NullFields []string `json:"-"`
7060}
7061
7062func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
7063	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
7064	raw := NoMethod(*s)
7065	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7066}
7067
7068// GoogleCloudApigeeV1Session: Session carries the debug session id and
7069// its creation time.
7070type GoogleCloudApigeeV1Session struct {
7071	// Id: The debug session ID.
7072	Id string `json:"id,omitempty"`
7073
7074	// TimestampMs: The first transaction creation timestamp in millisecond,
7075	// recoreded by UAP.
7076	TimestampMs int64 `json:"timestampMs,omitempty,string"`
7077
7078	// ForceSendFields is a list of field names (e.g. "Id") to
7079	// unconditionally include in API requests. By default, fields with
7080	// empty values are omitted from API requests. However, any non-pointer,
7081	// non-interface field appearing in ForceSendFields will be sent to the
7082	// server regardless of whether the field is empty or not. This may be
7083	// used to include empty fields in Patch requests.
7084	ForceSendFields []string `json:"-"`
7085
7086	// NullFields is a list of field names (e.g. "Id") to include in API
7087	// requests with the JSON null value. By default, fields with empty
7088	// values are omitted from API requests. However, any field with an
7089	// empty value appearing in NullFields will be sent to the server as
7090	// null. It is an error if a field in this list has a non-empty value.
7091	// This may be used to include null fields in Patch requests.
7092	NullFields []string `json:"-"`
7093}
7094
7095func (s *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
7096	type NoMethod GoogleCloudApigeeV1Session
7097	raw := NoMethod(*s)
7098	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7099}
7100
7101// GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
7102type GoogleCloudApigeeV1SharedFlow struct {
7103	// LatestRevisionId: The id of the most recently created revision for
7104	// this shared flow.
7105	LatestRevisionId string `json:"latestRevisionId,omitempty"`
7106
7107	// MetaData: Metadata describing the shared flow.
7108	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
7109
7110	// Name: The ID of the shared flow.
7111	Name string `json:"name,omitempty"`
7112
7113	// Revision: A list of revisions of this shared flow.
7114	Revision []string `json:"revision,omitempty"`
7115
7116	// ServerResponse contains the HTTP response code and headers from the
7117	// server.
7118	googleapi.ServerResponse `json:"-"`
7119
7120	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
7121	// unconditionally include in API requests. By default, fields with
7122	// empty values are omitted from API requests. However, any non-pointer,
7123	// non-interface field appearing in ForceSendFields will be sent to the
7124	// server regardless of whether the field is empty or not. This may be
7125	// used to include empty fields in Patch requests.
7126	ForceSendFields []string `json:"-"`
7127
7128	// NullFields is a list of field names (e.g. "LatestRevisionId") to
7129	// include in API requests with the JSON null value. By default, fields
7130	// with empty values are omitted from API requests. However, any field
7131	// with an empty value appearing in NullFields will be sent to the
7132	// server as null. It is an error if a field in this list has a
7133	// non-empty value. This may be used to include null fields in Patch
7134	// requests.
7135	NullFields []string `json:"-"`
7136}
7137
7138func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
7139	type NoMethod GoogleCloudApigeeV1SharedFlow
7140	raw := NoMethod(*s)
7141	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7142}
7143
7144// GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a
7145// shared flow revision.
7146type GoogleCloudApigeeV1SharedFlowRevision struct {
7147	// ConfigurationVersion: The version of the configuration schema to
7148	// which this shared flow conforms. The only supported value currently
7149	// is majorVersion 4 and minorVersion 0. This setting may be used in the
7150	// future to enable evolution of the shared flow format.
7151	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
7152
7153	// ContextInfo: A textual description of the shared flow revision.
7154	ContextInfo string `json:"contextInfo,omitempty"`
7155
7156	// CreatedAt: Time at which this shared flow revision was created, in
7157	// milliseconds since epoch.
7158	CreatedAt int64 `json:"createdAt,omitempty,string"`
7159
7160	// Description: Description of the shared flow revision.
7161	Description string `json:"description,omitempty"`
7162
7163	// DisplayName: The human readable name of this shared flow.
7164	DisplayName string `json:"displayName,omitempty"`
7165
7166	// EntityMetaDataAsProperties: A Key-Value map of metadata about this
7167	// shared flow revision.
7168	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
7169
7170	// LastModifiedAt: Time at which this shared flow revision was most
7171	// recently modified, in milliseconds since epoch.
7172	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
7173
7174	// Name: The resource ID of the parent shared flow.
7175	Name string `json:"name,omitempty"`
7176
7177	// Policies: A list of policy names included in this shared flow
7178	// revision.
7179	Policies []string `json:"policies,omitempty"`
7180
7181	// ResourceFiles: The resource files included in this shared flow
7182	// revision.
7183	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
7184
7185	// Resources: A list of the resources included in this shared flow
7186	// revision formatted as "{type}://{name}".
7187	Resources []string `json:"resources,omitempty"`
7188
7189	// Revision: The resource ID of this revision.
7190	Revision string `json:"revision,omitempty"`
7191
7192	// SharedFlows: A list of the shared flow names included in this shared
7193	// flow revision.
7194	SharedFlows []string `json:"sharedFlows,omitempty"`
7195
7196	// Type: The string "Application"
7197	Type string `json:"type,omitempty"`
7198
7199	// ServerResponse contains the HTTP response code and headers from the
7200	// server.
7201	googleapi.ServerResponse `json:"-"`
7202
7203	// ForceSendFields is a list of field names (e.g.
7204	// "ConfigurationVersion") to unconditionally include in API requests.
7205	// By default, fields with empty values are omitted from API requests.
7206	// However, any non-pointer, non-interface field appearing in
7207	// ForceSendFields will be sent to the server regardless of whether the
7208	// field is empty or not. This may be used to include empty fields in
7209	// Patch requests.
7210	ForceSendFields []string `json:"-"`
7211
7212	// NullFields is a list of field names (e.g. "ConfigurationVersion") to
7213	// include in API requests with the JSON null value. By default, fields
7214	// with empty values are omitted from API requests. However, any field
7215	// with an empty value appearing in NullFields will be sent to the
7216	// server as null. It is an error if a field in this list has a
7217	// non-empty value. This may be used to include null fields in Patch
7218	// requests.
7219	NullFields []string `json:"-"`
7220}
7221
7222func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
7223	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
7224	raw := NoMethod(*s)
7225	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7226}
7227
7228// GoogleCloudApigeeV1Stats: This message type encapsulates a stats
7229// response.
7230type GoogleCloudApigeeV1Stats struct {
7231	// Environments: This field contains a list of query results on
7232	// environment level.
7233	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
7234
7235	// Hosts: This field contains a list of query results grouped by host.
7236	Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
7237
7238	// MetaData: This field contains the metadata information.
7239	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
7240
7241	// ServerResponse contains the HTTP response code and headers from the
7242	// server.
7243	googleapi.ServerResponse `json:"-"`
7244
7245	// ForceSendFields is a list of field names (e.g. "Environments") to
7246	// unconditionally include in API requests. By default, fields with
7247	// empty values are omitted from API requests. However, any non-pointer,
7248	// non-interface field appearing in ForceSendFields will be sent to the
7249	// server regardless of whether the field is empty or not. This may be
7250	// used to include empty fields in Patch requests.
7251	ForceSendFields []string `json:"-"`
7252
7253	// NullFields is a list of field names (e.g. "Environments") to include
7254	// in API requests with the JSON null value. By default, fields with
7255	// empty values are omitted from API requests. However, any field with
7256	// an empty value appearing in NullFields will be sent to the server as
7257	// null. It is an error if a field in this list has a non-empty value.
7258	// This may be used to include null fields in Patch requests.
7259	NullFields []string `json:"-"`
7260}
7261
7262func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
7263	type NoMethod GoogleCloudApigeeV1Stats
7264	raw := NoMethod(*s)
7265	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7266}
7267
7268// GoogleCloudApigeeV1StatsEnvironmentStats: This message type
7269// encapsulates the environment wrapper: "environments": [ { "metrics":
7270// [ { "name": "sum(message_count)", "values": [ "2.52056245E8" ] } ],
7271// "name": "prod" } ]
7272type GoogleCloudApigeeV1StatsEnvironmentStats struct {
7273	// Dimensions: This field contains the list of metrics grouped under
7274	// dimensions.
7275	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
7276
7277	// Metrics: In the final response, only one of the following fields will
7278	// be present based on the dimensions provided. If no dimensions are
7279	// provided, then only a top level metrics is provided. If dimensions
7280	// are included, then there will be a top level dimensions field under
7281	// environments which will contain metrics values and the dimension
7282	// name. Example: "environments": [ { "dimensions": [ { "metrics": [ {
7283	// "name": "sum(message_count)", "values": [ "2.14049521E8" ] } ],
7284	// "name": "nit_proxy" } ], "name": "prod" } ] OR "environments": [ {
7285	// "metrics": [ { "name": "sum(message_count)", "values": [
7286	// "2.19026331E8" ] } ], "name": "prod" } ] This field contains the list
7287	// of metric values.
7288	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
7289
7290	Name string `json:"name,omitempty"`
7291
7292	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7293	// unconditionally include in API requests. By default, fields with
7294	// empty values are omitted from API requests. However, any non-pointer,
7295	// non-interface field appearing in ForceSendFields will be sent to the
7296	// server regardless of whether the field is empty or not. This may be
7297	// used to include empty fields in Patch requests.
7298	ForceSendFields []string `json:"-"`
7299
7300	// NullFields is a list of field names (e.g. "Dimensions") to include in
7301	// API requests with the JSON null value. By default, fields with empty
7302	// values are omitted from API requests. However, any field with an
7303	// empty value appearing in NullFields will be sent to the server as
7304	// null. It is an error if a field in this list has a non-empty value.
7305	// This may be used to include null fields in Patch requests.
7306	NullFields []string `json:"-"`
7307}
7308
7309func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
7310	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
7311	raw := NoMethod(*s)
7312	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7313}
7314
7315// GoogleCloudApigeeV1StatsHostStats: This message type encapsulates the
7316// hostname wrapper: "hosts": [ { "metrics": [ { "name":
7317// "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name":
7318// "example.com" } ]
7319type GoogleCloudApigeeV1StatsHostStats struct {
7320	// Dimensions: This field contains the list of metrics grouped under
7321	// dimensions.
7322	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
7323
7324	// Metrics: In the final response, only one of the following fields will
7325	// be present based on the dimensions provided. If no dimensions are
7326	// provided, then only a top level metrics is provided. If dimensions
7327	// are included, then there will be a top level dimensions field under
7328	// hostnames which will contain metrics values and the dimension name.
7329	// Example: "hosts": [ { "dimensions": [ { "metrics": [ { "name":
7330	// "sum(message_count)", "values": [ "2.14049521E8" ] } ], "name":
7331	// "nit_proxy" } ], "name": "example.com" } ] OR "hosts": [ { "metrics":
7332	// [ { "name": "sum(message_count)", "values": [ "2.19026331E8" ] } ],
7333	// "name": "example.com" } ] This field contains the list of metric
7334	// values.
7335	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
7336
7337	// Name: This field contains the hostname used in query.
7338	Name string `json:"name,omitempty"`
7339
7340	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7341	// unconditionally include in API requests. By default, fields with
7342	// empty values are omitted from API requests. However, any non-pointer,
7343	// non-interface field appearing in ForceSendFields will be sent to the
7344	// server regardless of whether the field is empty or not. This may be
7345	// used to include empty fields in Patch requests.
7346	ForceSendFields []string `json:"-"`
7347
7348	// NullFields is a list of field names (e.g. "Dimensions") to include in
7349	// API requests with the JSON null value. By default, fields with empty
7350	// values are omitted from API requests. However, any field with an
7351	// empty value appearing in NullFields will be sent to the server as
7352	// null. It is an error if a field in this list has a non-empty value.
7353	// This may be used to include null fields in Patch requests.
7354	NullFields []string `json:"-"`
7355}
7356
7357func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
7358	type NoMethod GoogleCloudApigeeV1StatsHostStats
7359	raw := NoMethod(*s)
7360	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7361}
7362
7363// GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an
7364// environment.
7365type GoogleCloudApigeeV1Subscription struct {
7366	// Name: Full name of the Pub/Sub subcription. Use the following
7367	// structure in your request: `subscription
7368	// "projects/foo/subscription/bar"
7369	Name string `json:"name,omitempty"`
7370
7371	// ServerResponse contains the HTTP response code and headers from the
7372	// server.
7373	googleapi.ServerResponse `json:"-"`
7374
7375	// ForceSendFields is a list of field names (e.g. "Name") to
7376	// unconditionally include in API requests. By default, fields with
7377	// empty values are omitted from API requests. However, any non-pointer,
7378	// non-interface field appearing in ForceSendFields will be sent to the
7379	// server regardless of whether the field is empty or not. This may be
7380	// used to include empty fields in Patch requests.
7381	ForceSendFields []string `json:"-"`
7382
7383	// NullFields is a list of field names (e.g. "Name") to include in API
7384	// requests with the JSON null value. By default, fields with empty
7385	// values are omitted from API requests. However, any field with an
7386	// empty value appearing in NullFields will be sent to the server as
7387	// null. It is an error if a field in this list has a non-empty value.
7388	// This may be used to include null fields in Patch requests.
7389	NullFields []string `json:"-"`
7390}
7391
7392func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
7393	type NoMethod GoogleCloudApigeeV1Subscription
7394	raw := NoMethod(*s)
7395	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7396}
7397
7398type GoogleCloudApigeeV1SyncAuthorization struct {
7399	// Etag: Entity tag (ETag) used for optimistic concurrency control as a
7400	// way to help prevent simultaneous updates from overwriting each other.
7401	// For example, when you call getSyncAuthorization
7402	// (organizations/getSyncAuthorization) an ETag is returned in the
7403	// response. Pass that ETag when calling the setSyncAuthorization
7404	// (organizations/setSyncAuthorization) to ensure that you are updating
7405	// the correct version. If you don't pass the ETag in the call to
7406	// `setSyncAuthorization`, then the existing authorization is
7407	// overwritten indiscriminately. **Note**: We strongly recommend that
7408	// you use the ETag in the read-modify-write cycle to avoid race
7409	// conditions.
7410	Etag string `json:"etag,omitempty"`
7411
7412	// Identities: Required. Array of service accounts to grant access to
7413	// control plane resources, each specified using the following format:
7414	// `serviceAccount:` service-account-name. The service-account-name is
7415	// formatted like an email address. For example:
7416	// `my-synchronizer-manager-service_account@my_project_id.iam.gserviceacc
7417	// ount.com` You might specify multiple service accounts, for example,
7418	// if you have multiple environments and wish to assign a unique service
7419	// account to each one. The service accounts must have **Apigee
7420	// Synchronizer Manager** role. See also Create service accounts
7421	// (https://cloud.google.com/apigee/docs/hybrid/latest/sa-about#create-the-service-accounts).
7422	Identities []string `json:"identities,omitempty"`
7423
7424	// ServerResponse contains the HTTP response code and headers from the
7425	// server.
7426	googleapi.ServerResponse `json:"-"`
7427
7428	// ForceSendFields is a list of field names (e.g. "Etag") to
7429	// unconditionally include in API requests. By default, fields with
7430	// empty values are omitted from API requests. However, any non-pointer,
7431	// non-interface field appearing in ForceSendFields will be sent to the
7432	// server regardless of whether the field is empty or not. This may be
7433	// used to include empty fields in Patch requests.
7434	ForceSendFields []string `json:"-"`
7435
7436	// NullFields is a list of field names (e.g. "Etag") to include in API
7437	// requests with the JSON null value. By default, fields with empty
7438	// values are omitted from API requests. However, any field with an
7439	// empty value appearing in NullFields will be sent to the server as
7440	// null. It is an error if a field in this list has a non-empty value.
7441	// This may be used to include null fields in Patch requests.
7442	NullFields []string `json:"-"`
7443}
7444
7445func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
7446	type NoMethod GoogleCloudApigeeV1SyncAuthorization
7447	raw := NoMethod(*s)
7448	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7449}
7450
7451// GoogleCloudApigeeV1TargetServer: TargetServer configuration.
7452// TargetServers are used to decouple a proxy's TargetEndpoint
7453// HTTPTargetConnections from concrete URLs for backend services.
7454type GoogleCloudApigeeV1TargetServer struct {
7455	// Description: Optional. A human-readable description of this
7456	// TargetServer.
7457	Description string `json:"description,omitempty"`
7458
7459	// Host: Required. The host name this target connects to. Value must be
7460	// a valid hostname as described by RFC-1123.
7461	Host string `json:"host,omitempty"`
7462
7463	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
7464	// TargetServers are used in load balancing configurations, and one or
7465	// more TargetServers need to taken out of rotation periodically.
7466	// Defaults to true.
7467	IsEnabled bool `json:"isEnabled,omitempty"`
7468
7469	// Name: Required. The resource id of this target server. Values must
7470	// match the regular expression
7471	Name string `json:"name,omitempty"`
7472
7473	// Port: Required. The port number this target connects to on the given
7474	// host. Value must be between 1 and 65535, inclusive.
7475	Port int64 `json:"port,omitempty"`
7476
7477	// SSLInfo: Optional. Specifies TLS configuration info for this
7478	// TargetServer. The JSON name is `sSLInfo` for legacy/backwards
7479	// compatibility reasons -- Edge originally supported SSL, and the name
7480	// is still used for TLS configuration.
7481	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
7482
7483	// ServerResponse contains the HTTP response code and headers from the
7484	// server.
7485	googleapi.ServerResponse `json:"-"`
7486
7487	// ForceSendFields is a list of field names (e.g. "Description") to
7488	// unconditionally include in API requests. By default, fields with
7489	// empty values are omitted from API requests. However, any non-pointer,
7490	// non-interface field appearing in ForceSendFields will be sent to the
7491	// server regardless of whether the field is empty or not. This may be
7492	// used to include empty fields in Patch requests.
7493	ForceSendFields []string `json:"-"`
7494
7495	// NullFields is a list of field names (e.g. "Description") to include
7496	// in API requests with the JSON null value. By default, fields with
7497	// empty values are omitted from API requests. However, any field with
7498	// an empty value appearing in NullFields will be sent to the server as
7499	// null. It is an error if a field in this list has a non-empty value.
7500	// This may be used to include null fields in Patch requests.
7501	NullFields []string `json:"-"`
7502}
7503
7504func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
7505	type NoMethod GoogleCloudApigeeV1TargetServer
7506	raw := NoMethod(*s)
7507	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7508}
7509
7510type GoogleCloudApigeeV1TargetServerConfig struct {
7511	// Host: Host name of the target server.
7512	Host string `json:"host,omitempty"`
7513
7514	// Name: Target server revision name in the following format:
7515	// `organizations/{org}/environments/{env}/targetservers/{targetserver}/r
7516	// evisions/{rev}`
7517	Name string `json:"name,omitempty"`
7518
7519	// Port: Port number for the target server.
7520	Port int64 `json:"port,omitempty"`
7521
7522	// TlsInfo: TLS settings for the target server.
7523	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
7524
7525	// ForceSendFields is a list of field names (e.g. "Host") to
7526	// unconditionally include in API requests. By default, fields with
7527	// empty values are omitted from API requests. However, any non-pointer,
7528	// non-interface field appearing in ForceSendFields will be sent to the
7529	// server regardless of whether the field is empty or not. This may be
7530	// used to include empty fields in Patch requests.
7531	ForceSendFields []string `json:"-"`
7532
7533	// NullFields is a list of field names (e.g. "Host") to include in API
7534	// requests with the JSON null value. By default, fields with empty
7535	// values are omitted from API requests. However, any field with an
7536	// empty value appearing in NullFields will be sent to the server as
7537	// null. It is an error if a field in this list has a non-empty value.
7538	// This may be used to include null fields in Patch requests.
7539	NullFields []string `json:"-"`
7540}
7541
7542func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
7543	type NoMethod GoogleCloudApigeeV1TargetServerConfig
7544	raw := NoMethod(*s)
7545	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7546}
7547
7548// GoogleCloudApigeeV1TestDatastoreResponse: The response for
7549// TestDatastore
7550type GoogleCloudApigeeV1TestDatastoreResponse struct {
7551	// Error: Output only. Error message of test connection failure
7552	Error string `json:"error,omitempty"`
7553
7554	// State: Output only. It could be `completed` or `failed`
7555	State string `json:"state,omitempty"`
7556
7557	// ServerResponse contains the HTTP response code and headers from the
7558	// server.
7559	googleapi.ServerResponse `json:"-"`
7560
7561	// ForceSendFields is a list of field names (e.g. "Error") to
7562	// unconditionally include in API requests. By default, fields with
7563	// empty values are omitted from API requests. However, any non-pointer,
7564	// non-interface field appearing in ForceSendFields will be sent to the
7565	// server regardless of whether the field is empty or not. This may be
7566	// used to include empty fields in Patch requests.
7567	ForceSendFields []string `json:"-"`
7568
7569	// NullFields is a list of field names (e.g. "Error") to include in API
7570	// requests with the JSON null value. By default, fields with empty
7571	// values are omitted from API requests. However, any field with an
7572	// empty value appearing in NullFields will be sent to the server as
7573	// null. It is an error if a field in this list has a non-empty value.
7574	// This may be used to include null fields in Patch requests.
7575	NullFields []string `json:"-"`
7576}
7577
7578func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
7579	type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
7580	raw := NoMethod(*s)
7581	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7582}
7583
7584// GoogleCloudApigeeV1TlsInfo: TLS configuration information for
7585// VirtualHosts and TargetServers.
7586type GoogleCloudApigeeV1TlsInfo struct {
7587	// Ciphers: The SSL/TLS cipher suites to be used. Must be one of the
7588	// cipher suite names listed in:
7589	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites
7590	Ciphers []string `json:"ciphers,omitempty"`
7591
7592	// ClientAuthEnabled: Optional. Enables two-way TLS.
7593	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
7594
7595	// CommonName: The TLS Common Name of the certificate.
7596	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
7597
7598	// Enabled: Required. Enables TLS. If false, neither one-way nor two-way
7599	// TLS will be enabled.
7600	Enabled bool `json:"enabled,omitempty"`
7601
7602	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors.
7603	// Valid when configuring TLS for target servers and target endpoints,
7604	// and when configuring virtual hosts that use 2-way TLS. When used with
7605	// a target endpoint/target server, if the backend system uses SNI and
7606	// returns a cert with a subject Distinguished Name (DN) that does not
7607	// match the hostname, there is no way to ignore the error and the
7608	// connection fails.
7609	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
7610
7611	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID
7612	// for the alias containing the private key and cert.
7613	KeyAlias string `json:"keyAlias,omitempty"`
7614
7615	// KeyStore: Required if `client_auth_enabled` is true. The resource ID
7616	// of the keystore. References not yet supported.
7617	KeyStore string `json:"keyStore,omitempty"`
7618
7619	// Protocols: The TLS versioins to be used.
7620	Protocols []string `json:"protocols,omitempty"`
7621
7622	// TrustStore: The resource ID of the truststore. References not yet
7623	// supported.
7624	TrustStore string `json:"trustStore,omitempty"`
7625
7626	// ForceSendFields is a list of field names (e.g. "Ciphers") to
7627	// unconditionally include in API requests. By default, fields with
7628	// empty values are omitted from API requests. However, any non-pointer,
7629	// non-interface field appearing in ForceSendFields will be sent to the
7630	// server regardless of whether the field is empty or not. This may be
7631	// used to include empty fields in Patch requests.
7632	ForceSendFields []string `json:"-"`
7633
7634	// NullFields is a list of field names (e.g. "Ciphers") to include in
7635	// API requests with the JSON null value. By default, fields with empty
7636	// values are omitted from API requests. However, any field with an
7637	// empty value appearing in NullFields will be sent to the server as
7638	// null. It is an error if a field in this list has a non-empty value.
7639	// This may be used to include null fields in Patch requests.
7640	NullFields []string `json:"-"`
7641}
7642
7643func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
7644	type NoMethod GoogleCloudApigeeV1TlsInfo
7645	raw := NoMethod(*s)
7646	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7647}
7648
7649type GoogleCloudApigeeV1TlsInfoCommonName struct {
7650	// Value: The TLS Common Name string of the certificate.
7651	Value string `json:"value,omitempty"`
7652
7653	// WildcardMatch: Indicates whether the cert should be matched against
7654	// as a wildcard cert.
7655	WildcardMatch bool `json:"wildcardMatch,omitempty"`
7656
7657	// ForceSendFields is a list of field names (e.g. "Value") to
7658	// unconditionally include in API requests. By default, fields with
7659	// empty values are omitted from API requests. However, any non-pointer,
7660	// non-interface field appearing in ForceSendFields will be sent to the
7661	// server regardless of whether the field is empty or not. This may be
7662	// used to include empty fields in Patch requests.
7663	ForceSendFields []string `json:"-"`
7664
7665	// NullFields is a list of field names (e.g. "Value") to include in API
7666	// requests with the JSON null value. By default, fields with empty
7667	// values are omitted from API requests. However, any field with an
7668	// empty value appearing in NullFields will be sent to the server as
7669	// null. It is an error if a field in this list has a non-empty value.
7670	// This may be used to include null fields in Patch requests.
7671	NullFields []string `json:"-"`
7672}
7673
7674func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
7675	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
7676	raw := NoMethod(*s)
7677	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7678}
7679
7680type GoogleCloudApigeeV1TlsInfoConfig struct {
7681	// Ciphers: List of ciphers that are granted access.
7682	Ciphers []string `json:"ciphers,omitempty"`
7683
7684	// ClientAuthEnabled: Flag that specifies whether client-side
7685	// authentication is enabled for the target server. Enables two-way TLS.
7686	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
7687
7688	// CommonName: Common name to validate the target server against.
7689	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
7690
7691	// Enabled: Flag that specifies whether one-way TLS is enabled. Set to
7692	// `true` to enable one-way TLS.
7693	Enabled bool `json:"enabled,omitempty"`
7694
7695	// IgnoreValidationErrors: Flag that specifies whether to ignore TLS
7696	// certificate validation errors. Set to `true` to ignore errors.
7697	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
7698
7699	// KeyAlias: Name of the alias used for client-side authentication in
7700	// the following format:
7701	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
7702	// alias}`
7703	KeyAlias string `json:"keyAlias,omitempty"`
7704
7705	// KeyAliasReference: Reference name and alias pair to use for
7706	// client-side authentication.
7707	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
7708
7709	// Protocols: List of TLS protocols that are granted access.
7710	Protocols []string `json:"protocols,omitempty"`
7711
7712	// TrustStore: Name of the keystore or keystore reference containing
7713	// trusted certificates for the server in the following format:
7714	// `organizations/{org}/environments/{env}/keystores/{keystore}` or
7715	// `organizations/{org}/environments/{env}/references/{reference}`
7716	TrustStore string `json:"trustStore,omitempty"`
7717
7718	// ForceSendFields is a list of field names (e.g. "Ciphers") to
7719	// unconditionally include in API requests. By default, fields with
7720	// empty values are omitted from API requests. However, any non-pointer,
7721	// non-interface field appearing in ForceSendFields will be sent to the
7722	// server regardless of whether the field is empty or not. This may be
7723	// used to include empty fields in Patch requests.
7724	ForceSendFields []string `json:"-"`
7725
7726	// NullFields is a list of field names (e.g. "Ciphers") to include in
7727	// API requests with the JSON null value. By default, fields with empty
7728	// values are omitted from API requests. However, any field with an
7729	// empty value appearing in NullFields will be sent to the server as
7730	// null. It is an error if a field in this list has a non-empty value.
7731	// This may be used to include null fields in Patch requests.
7732	NullFields []string `json:"-"`
7733}
7734
7735func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
7736	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
7737	raw := NoMethod(*s)
7738	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7739}
7740
7741// GoogleCloudApigeeV1TraceConfig: TraceConfig defines the
7742// configurations in an environment of distributed trace.
7743type GoogleCloudApigeeV1TraceConfig struct {
7744	// Endpoint: Required. Endpoint of the exporter.
7745	Endpoint string `json:"endpoint,omitempty"`
7746
7747	// Exporter: Required. Exporter that is used to view the distributed
7748	// trace captured using OpenCensus. An exporter sends traces to any
7749	// backend that is capable of consuming them. Recorded spans can be
7750	// exported by registered exporters.
7751	//
7752	// Possible values:
7753	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
7754	//   "JAEGER" - Jaeger exporter
7755	//   "CLOUD_TRACE" - Cloudtrace exporter
7756	Exporter string `json:"exporter,omitempty"`
7757
7758	// SamplingConfig: Distributed trace configuration for all API proxies
7759	// in an environment. You can also override the configuration for a
7760	// specific API proxy using the distributed trace configuration
7761	// overrides API.
7762	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
7763
7764	// ServerResponse contains the HTTP response code and headers from the
7765	// server.
7766	googleapi.ServerResponse `json:"-"`
7767
7768	// ForceSendFields is a list of field names (e.g. "Endpoint") to
7769	// unconditionally include in API requests. By default, fields with
7770	// empty values are omitted from API requests. However, any non-pointer,
7771	// non-interface field appearing in ForceSendFields will be sent to the
7772	// server regardless of whether the field is empty or not. This may be
7773	// used to include empty fields in Patch requests.
7774	ForceSendFields []string `json:"-"`
7775
7776	// NullFields is a list of field names (e.g. "Endpoint") to include in
7777	// API requests with the JSON null value. By default, fields with empty
7778	// values are omitted from API requests. However, any field with an
7779	// empty value appearing in NullFields will be sent to the server as
7780	// null. It is an error if a field in this list has a non-empty value.
7781	// This may be used to include null fields in Patch requests.
7782	NullFields []string `json:"-"`
7783}
7784
7785func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
7786	type NoMethod GoogleCloudApigeeV1TraceConfig
7787	raw := NoMethod(*s)
7788	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7789}
7790
7791// GoogleCloudApigeeV1TraceConfigOverride: A representation of a
7792// configuration override.
7793type GoogleCloudApigeeV1TraceConfigOverride struct {
7794	// ApiProxy: ID of the API proxy that will have its trace configuration
7795	// overridden.
7796	ApiProxy string `json:"apiProxy,omitempty"`
7797
7798	// Name: ID of the trace configuration override specified as a
7799	// system-generated UUID.
7800	Name string `json:"name,omitempty"`
7801
7802	// SamplingConfig: Trace configuration to override.
7803	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
7804
7805	// ServerResponse contains the HTTP response code and headers from the
7806	// server.
7807	googleapi.ServerResponse `json:"-"`
7808
7809	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
7810	// unconditionally include in API requests. By default, fields with
7811	// empty values are omitted from API requests. However, any non-pointer,
7812	// non-interface field appearing in ForceSendFields will be sent to the
7813	// server regardless of whether the field is empty or not. This may be
7814	// used to include empty fields in Patch requests.
7815	ForceSendFields []string `json:"-"`
7816
7817	// NullFields is a list of field names (e.g. "ApiProxy") to include in
7818	// API requests with the JSON null value. By default, fields with empty
7819	// values are omitted from API requests. However, any field with an
7820	// empty value appearing in NullFields will be sent to the server as
7821	// null. It is an error if a field in this list has a non-empty value.
7822	// This may be used to include null fields in Patch requests.
7823	NullFields []string `json:"-"`
7824}
7825
7826func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
7827	type NoMethod GoogleCloudApigeeV1TraceConfigOverride
7828	raw := NoMethod(*s)
7829	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7830}
7831
7832// GoogleCloudApigeeV1TraceSamplingConfig: TraceSamplingConfig
7833// represents the detail settings of distributed tracing. Only the
7834// fields that are defined in the distributed trace configuration can be
7835// overridden using the distribute trace configuration override APIs.
7836type GoogleCloudApigeeV1TraceSamplingConfig struct {
7837	// Sampler: Sampler of distributed tracing. OFF is the default value.
7838	//
7839	// Possible values:
7840	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
7841	//   "OFF" - OFF means distributed trace is disabled, or the sampling
7842	// probability is 0.
7843	//   "PROBABILITY" - PROBABILITY means traces are captured on a
7844	// probability that defined by sampling_rate. The sampling rate is
7845	// limited to 0 to 0.5 when this is set.
7846	Sampler string `json:"sampler,omitempty"`
7847
7848	// SamplingRate: Field sampling rate. This value is only applicable when
7849	// using the PROBABILITY sampler. The supported values are > 0 and <=
7850	// 0.5.
7851	SamplingRate float64 `json:"samplingRate,omitempty"`
7852
7853	// ForceSendFields is a list of field names (e.g. "Sampler") to
7854	// unconditionally include in API requests. By default, fields with
7855	// empty values are omitted from API requests. However, any non-pointer,
7856	// non-interface field appearing in ForceSendFields will be sent to the
7857	// server regardless of whether the field is empty or not. This may be
7858	// used to include empty fields in Patch requests.
7859	ForceSendFields []string `json:"-"`
7860
7861	// NullFields is a list of field names (e.g. "Sampler") to include in
7862	// API requests with the JSON null value. By default, fields with empty
7863	// values are omitted from API requests. However, any field with an
7864	// empty value appearing in NullFields will be sent to the server as
7865	// null. It is an error if a field in this list has a non-empty value.
7866	// This may be used to include null fields in Patch requests.
7867	NullFields []string `json:"-"`
7868}
7869
7870func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
7871	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
7872	raw := NoMethod(*s)
7873	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7874}
7875
7876func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
7877	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
7878	var s1 struct {
7879		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
7880		*NoMethod
7881	}
7882	s1.NoMethod = (*NoMethod)(s)
7883	if err := json.Unmarshal(data, &s1); err != nil {
7884		return err
7885	}
7886	s.SamplingRate = float64(s1.SamplingRate)
7887	return nil
7888}
7889
7890// GoogleCloudApigeeV1UpdateError: Details on why a resource update
7891// failed in the runtime.
7892type GoogleCloudApigeeV1UpdateError struct {
7893	// Code: Status code.
7894	//
7895	// Possible values:
7896	//   "OK" - Not an error; returned on success HTTP Mapping: 200 OK
7897	//   "CANCELLED" - The operation was cancelled, typically by the caller.
7898	// HTTP Mapping: 499 Client Closed Request
7899	//   "UNKNOWN" - Unknown error. For example, this error may be returned
7900	// when a `Status` value received from another address space belongs to
7901	// an error space that is not known in this address space. Also errors
7902	// raised by APIs that do not return enough error information may be
7903	// converted to this error. HTTP Mapping: 500 Internal Server Error
7904	//   "INVALID_ARGUMENT" - The client specified an invalid argument. Note
7905	// that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT`
7906	// indicates arguments that are problematic regardless of the state of
7907	// the system (e.g., a malformed file name). HTTP Mapping: 400 Bad
7908	// Request
7909	//   "DEADLINE_EXCEEDED" - The deadline expired before the operation
7910	// could complete. For operations that change the state of the system,
7911	// this error may be returned even if the operation has completed
7912	// successfully. For example, a successful response from a server could
7913	// have been delayed long enough for the deadline to expire. HTTP
7914	// Mapping: 504 Gateway Timeout
7915	//   "NOT_FOUND" - Some requested entity (e.g., file or directory) was
7916	// not found. Note to server developers: if a request is denied for an
7917	// entire class of users, such as gradual feature rollout or
7918	// undocumented allowlist, `NOT_FOUND` may be used. If a request is
7919	// denied for some users within a class of users, such as user-based
7920	// access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404
7921	// Not Found
7922	//   "ALREADY_EXISTS" - The entity that a client attempted to create
7923	// (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict
7924	//   "PERMISSION_DENIED" - The caller does not have permission to
7925	// execute the specified operation. `PERMISSION_DENIED` must not be used
7926	// for rejections caused by exhausting some resource (use
7927	// `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED`
7928	// must not be used if the caller can not be identified (use
7929	// `UNAUTHENTICATED` instead for those errors). This error code does not
7930	// imply the request is valid or the requested entity exists or
7931	// satisfies other pre-conditions. HTTP Mapping: 403 Forbidden
7932	//   "UNAUTHENTICATED" - The request does not have valid authentication
7933	// credentials for the operation. HTTP Mapping: 401 Unauthorized
7934	//   "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a
7935	// per-user quota, or perhaps the entire file system is out of space.
7936	// HTTP Mapping: 429 Too Many Requests
7937	//   "FAILED_PRECONDITION" - The operation was rejected because the
7938	// system is not in a state required for the operation's execution. For
7939	// example, the directory to be deleted is non-empty, an rmdir operation
7940	// is applied to a non-directory, etc. Service implementors can use the
7941	// following guidelines to decide between `FAILED_PRECONDITION`,
7942	// `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can
7943	// retry just the failing call. (b) Use `ABORTED` if the client should
7944	// retry at a higher level (e.g., when a client-specified test-and-set
7945	// fails, indicating the client should restart a read-modify-write
7946	// sequence). (c) Use `FAILED_PRECONDITION` if the client should not
7947	// retry until the system state has been explicitly fixed. E.g., if an
7948	// "rmdir" fails because the directory is non-empty,
7949	// `FAILED_PRECONDITION` should be returned since the client should not
7950	// retry unless the files are deleted from the directory. HTTP Mapping:
7951	// 400 Bad Request
7952	//   "ABORTED" - The operation was aborted, typically due to a
7953	// concurrency issue such as a sequencer check failure or transaction
7954	// abort. See the guidelines above for deciding between
7955	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
7956	// 409 Conflict
7957	//   "OUT_OF_RANGE" - The operation was attempted past the valid range.
7958	// E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`,
7959	// this error indicates a problem that may be fixed if the system state
7960	// changes. For example, a 32-bit file system will generate
7961	// `INVALID_ARGUMENT` if asked to read at an offset that is not in the
7962	// range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to
7963	// read from an offset past the current file size. There is a fair bit
7964	// of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
7965	// recommend using `OUT_OF_RANGE` (the more specific error) when it
7966	// applies so that callers who are iterating through a space can easily
7967	// look for an `OUT_OF_RANGE` error to detect when they are done. HTTP
7968	// Mapping: 400 Bad Request
7969	//   "UNIMPLEMENTED" - The operation is not implemented or is not
7970	// supported/enabled in this service. HTTP Mapping: 501 Not Implemented
7971	//   "INTERNAL" - Internal errors. This means that some invariants
7972	// expected by the underlying system have been broken. This error code
7973	// is reserved for serious errors. HTTP Mapping: 500 Internal Server
7974	// Error
7975	//   "UNAVAILABLE" - The service is currently unavailable. This is most
7976	// likely a transient condition, which can be corrected by retrying with
7977	// a backoff. Note that it is not always safe to retry non-idempotent
7978	// operations. See the guidelines above for deciding between
7979	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
7980	// 503 Service Unavailable
7981	//   "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping:
7982	// 500 Internal Server Error
7983	Code string `json:"code,omitempty"`
7984
7985	// Message: User-friendly error message.
7986	Message string `json:"message,omitempty"`
7987
7988	// Resource: The sub resource specific to this error (e.g. a proxy
7989	// deployed within the EnvironmentConfig). If empty the error refers to
7990	// the top level resource.
7991	Resource string `json:"resource,omitempty"`
7992
7993	// Type: A string that uniquely identifies the type of error. This
7994	// provides a more reliable means to deduplicate errors across revisions
7995	// and instances.
7996	Type string `json:"type,omitempty"`
7997
7998	// ForceSendFields is a list of field names (e.g. "Code") to
7999	// unconditionally include in API requests. By default, fields with
8000	// empty values are omitted from API requests. However, any non-pointer,
8001	// non-interface field appearing in ForceSendFields will be sent to the
8002	// server regardless of whether the field is empty or not. This may be
8003	// used to include empty fields in Patch requests.
8004	ForceSendFields []string `json:"-"`
8005
8006	// NullFields is a list of field names (e.g. "Code") to include in API
8007	// requests with the JSON null value. By default, fields with empty
8008	// values are omitted from API requests. However, any field with an
8009	// empty value appearing in NullFields will be sent to the server as
8010	// null. It is an error if a field in this list has a non-empty value.
8011	// This may be used to include null fields in Patch requests.
8012	NullFields []string `json:"-"`
8013}
8014
8015func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
8016	type NoMethod GoogleCloudApigeeV1UpdateError
8017	raw := NoMethod(*s)
8018	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8019}
8020
8021// GoogleIamV1AuditConfig: Specifies the audit configuration for a
8022// service. The configuration determines which permission types are
8023// logged, and what identities, if any, are exempted from logging. An
8024// AuditConfig must have one or more AuditLogConfigs. If there are
8025// AuditConfigs for both `allServices` and a specific service, the union
8026// of the two AuditConfigs is used for that service: the log_types
8027// specified in each AuditConfig are enabled, and the exempted_members
8028// in each AuditLogConfig are exempted. Example Policy with multiple
8029// AuditConfigs: { "audit_configs": [ { "service": "allServices",
8030// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members":
8031// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, {
8032// "log_type": "ADMIN_READ" } ] }, { "service":
8033// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type":
8034// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [
8035// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy
8036// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts
8037// jose@example.com from DATA_READ logging, and aliya@example.com from
8038// DATA_WRITE logging.
8039type GoogleIamV1AuditConfig struct {
8040	// AuditLogConfigs: The configuration for logging of each type of
8041	// permission.
8042	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
8043
8044	// Service: Specifies a service that will be enabled for audit logging.
8045	// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
8046	// `allServices` is a special value that covers all services.
8047	Service string `json:"service,omitempty"`
8048
8049	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
8050	// unconditionally include in API requests. By default, fields with
8051	// empty values are omitted from API requests. However, any non-pointer,
8052	// non-interface field appearing in ForceSendFields will be sent to the
8053	// server regardless of whether the field is empty or not. This may be
8054	// used to include empty fields in Patch requests.
8055	ForceSendFields []string `json:"-"`
8056
8057	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
8058	// include in API requests with the JSON null value. By default, fields
8059	// with empty values are omitted from API requests. However, any field
8060	// with an empty value appearing in NullFields will be sent to the
8061	// server as null. It is an error if a field in this list has a
8062	// non-empty value. This may be used to include null fields in Patch
8063	// requests.
8064	NullFields []string `json:"-"`
8065}
8066
8067func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
8068	type NoMethod GoogleIamV1AuditConfig
8069	raw := NoMethod(*s)
8070	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8071}
8072
8073// GoogleIamV1AuditLogConfig: Provides the configuration for logging a
8074// type of permissions. Example: { "audit_log_configs": [ { "log_type":
8075// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, {
8076// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and
8077// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ
8078// logging.
8079type GoogleIamV1AuditLogConfig struct {
8080	// ExemptedMembers: Specifies the identities that do not cause logging
8081	// for this type of permission. Follows the same format of
8082	// Binding.members.
8083	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
8084
8085	// LogType: The log type that this config enables.
8086	//
8087	// Possible values:
8088	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
8089	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
8090	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
8091	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
8092	LogType string `json:"logType,omitempty"`
8093
8094	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
8095	// unconditionally include in API requests. By default, fields with
8096	// empty values are omitted from API requests. However, any non-pointer,
8097	// non-interface field appearing in ForceSendFields will be sent to the
8098	// server regardless of whether the field is empty or not. This may be
8099	// used to include empty fields in Patch requests.
8100	ForceSendFields []string `json:"-"`
8101
8102	// NullFields is a list of field names (e.g. "ExemptedMembers") to
8103	// include in API requests with the JSON null value. By default, fields
8104	// with empty values are omitted from API requests. However, any field
8105	// with an empty value appearing in NullFields will be sent to the
8106	// server as null. It is an error if a field in this list has a
8107	// non-empty value. This may be used to include null fields in Patch
8108	// requests.
8109	NullFields []string `json:"-"`
8110}
8111
8112func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
8113	type NoMethod GoogleIamV1AuditLogConfig
8114	raw := NoMethod(*s)
8115	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8116}
8117
8118// GoogleIamV1Binding: Associates `members` with a `role`.
8119type GoogleIamV1Binding struct {
8120	// Condition: The condition that is associated with this binding. If the
8121	// condition evaluates to `true`, then this binding applies to the
8122	// current request. If the condition evaluates to `false`, then this
8123	// binding does not apply to the current request. However, a different
8124	// role binding might grant the same role to one or more of the members
8125	// in this binding. To learn which resources support conditions in their
8126	// IAM policies, see the IAM documentation
8127	// (https://cloud.google.com/iam/help/conditions/resource-policies).
8128	Condition *GoogleTypeExpr `json:"condition,omitempty"`
8129
8130	// Members: Specifies the identities requesting access for a Cloud
8131	// Platform resource. `members` can have the following values: *
8132	// `allUsers`: A special identifier that represents anyone who is on the
8133	// internet; with or without a Google account. *
8134	// `allAuthenticatedUsers`: A special identifier that represents anyone
8135	// who is authenticated with a Google account or a service account. *
8136	// `user:{emailid}`: An email address that represents a specific Google
8137	// account. For example, `alice@example.com` . *
8138	// `serviceAccount:{emailid}`: An email address that represents a
8139	// service account. For example,
8140	// `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An
8141	// email address that represents a Google group. For example,
8142	// `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An
8143	// email address (plus unique identifier) representing a user that has
8144	// been recently deleted. For example,
8145	// `alice@example.com?uid=123456789012345678901`. If the user is
8146	// recovered, this value reverts to `user:{emailid}` and the recovered
8147	// user retains the role in the binding. *
8148	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
8149	// (plus unique identifier) representing a service account that has been
8150	// recently deleted. For example,
8151	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
8152	// If the service account is undeleted, this value reverts to
8153	// `serviceAccount:{emailid}` and the undeleted service account retains
8154	// the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`:
8155	// An email address (plus unique identifier) representing a Google group
8156	// that has been recently deleted. For example,
8157	// `admins@example.com?uid=123456789012345678901`. If the group is
8158	// recovered, this value reverts to `group:{emailid}` and the recovered
8159	// group retains the role in the binding. * `domain:{domain}`: The G
8160	// Suite domain (primary) that represents all the users of that domain.
8161	// For example, `google.com` or `example.com`.
8162	Members []string `json:"members,omitempty"`
8163
8164	// Role: Role that is assigned to `members`. For example,
8165	// `roles/viewer`, `roles/editor`, or `roles/owner`.
8166	Role string `json:"role,omitempty"`
8167
8168	// ForceSendFields is a list of field names (e.g. "Condition") to
8169	// unconditionally include in API requests. By default, fields with
8170	// empty values are omitted from API requests. However, any non-pointer,
8171	// non-interface field appearing in ForceSendFields will be sent to the
8172	// server regardless of whether the field is empty or not. This may be
8173	// used to include empty fields in Patch requests.
8174	ForceSendFields []string `json:"-"`
8175
8176	// NullFields is a list of field names (e.g. "Condition") to include in
8177	// API requests with the JSON null value. By default, fields with empty
8178	// values are omitted from API requests. However, any field with an
8179	// empty value appearing in NullFields will be sent to the server as
8180	// null. It is an error if a field in this list has a non-empty value.
8181	// This may be used to include null fields in Patch requests.
8182	NullFields []string `json:"-"`
8183}
8184
8185func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
8186	type NoMethod GoogleIamV1Binding
8187	raw := NoMethod(*s)
8188	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8189}
8190
8191// GoogleIamV1Policy: An Identity and Access Management (IAM) policy,
8192// which specifies access controls for Google Cloud resources. A
8193// `Policy` is a collection of `bindings`. A `binding` binds one or more
8194// `members` to a single `role`. Members can be user accounts, service
8195// accounts, Google groups, and domains (such as G Suite). A `role` is a
8196// named list of permissions; each `role` can be an IAM predefined role
8197// or a user-created custom role. For some types of Google Cloud
8198// resources, a `binding` can also specify a `condition`, which is a
8199// logical expression that allows access to a resource only if the
8200// expression evaluates to `true`. A condition can add constraints based
8201// on attributes of the request, the resource, or both. To learn which
8202// resources support conditions in their IAM policies, see the IAM
8203// documentation
8204// (https://cloud.google.com/iam/help/conditions/resource-policies).
8205// **JSON example:** { "bindings": [ { "role":
8206// "roles/resourcemanager.organizationAdmin", "members": [
8207// "user:mike@example.com", "group:admins@example.com",
8208// "domain:google.com",
8209// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, {
8210// "role": "roles/resourcemanager.organizationViewer", "members": [
8211// "user:eve@example.com" ], "condition": { "title": "expirable access",
8212// "description": "Does not grant access after Sep 2020", "expression":
8213// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ],
8214// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: -
8215// members: - user:mike@example.com - group:admins@example.com -
8216// domain:google.com -
8217// serviceAccount:my-project-id@appspot.gserviceaccount.com role:
8218// roles/resourcemanager.organizationAdmin - members: -
8219// user:eve@example.com role: roles/resourcemanager.organizationViewer
8220// condition: title: expirable access description: Does not grant access
8221// after Sep 2020 expression: request.time <
8222// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version:
8223// 3 For a description of IAM and its features, see the IAM
8224// documentation (https://cloud.google.com/iam/docs/).
8225type GoogleIamV1Policy struct {
8226	// AuditConfigs: Specifies cloud audit logging configuration for this
8227	// policy.
8228	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
8229
8230	// Bindings: Associates a list of `members` to a `role`. Optionally, may
8231	// specify a `condition` that determines how and when the `bindings` are
8232	// applied. Each of the `bindings` must contain at least one member.
8233	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
8234
8235	// Etag: `etag` is used for optimistic concurrency control as a way to
8236	// help prevent simultaneous updates of a policy from overwriting each
8237	// other. It is strongly suggested that systems make use of the `etag`
8238	// in the read-modify-write cycle to perform policy updates in order to
8239	// avoid race conditions: An `etag` is returned in the response to
8240	// `getIamPolicy`, and systems are expected to put that etag in the
8241	// request to `setIamPolicy` to ensure that their change will be applied
8242	// to the same version of the policy. **Important:** If you use IAM
8243	// Conditions, you must include the `etag` field whenever you call
8244	// `setIamPolicy`. If you omit this field, then IAM allows you to
8245	// overwrite a version `3` policy with a version `1` policy, and all of
8246	// the conditions in the version `3` policy are lost.
8247	Etag string `json:"etag,omitempty"`
8248
8249	// Version: Specifies the format of the policy. Valid values are `0`,
8250	// `1`, and `3`. Requests that specify an invalid value are rejected.
8251	// Any operation that affects conditional role bindings must specify
8252	// version `3`. This requirement applies to the following operations: *
8253	// Getting a policy that includes a conditional role binding * Adding a
8254	// conditional role binding to a policy * Changing a conditional role
8255	// binding in a policy * Removing any role binding, with or without a
8256	// condition, from a policy that includes conditions **Important:** If
8257	// you use IAM Conditions, you must include the `etag` field whenever
8258	// you call `setIamPolicy`. If you omit this field, then IAM allows you
8259	// to overwrite a version `3` policy with a version `1` policy, and all
8260	// of the conditions in the version `3` policy are lost. If a policy
8261	// does not include any conditions, operations on that policy may
8262	// specify any valid version or leave the field unset. To learn which
8263	// resources support conditions in their IAM policies, see the IAM
8264	// documentation
8265	// (https://cloud.google.com/iam/help/conditions/resource-policies).
8266	Version int64 `json:"version,omitempty"`
8267
8268	// ServerResponse contains the HTTP response code and headers from the
8269	// server.
8270	googleapi.ServerResponse `json:"-"`
8271
8272	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
8273	// unconditionally include in API requests. By default, fields with
8274	// empty values are omitted from API requests. However, any non-pointer,
8275	// non-interface field appearing in ForceSendFields will be sent to the
8276	// server regardless of whether the field is empty or not. This may be
8277	// used to include empty fields in Patch requests.
8278	ForceSendFields []string `json:"-"`
8279
8280	// NullFields is a list of field names (e.g. "AuditConfigs") to include
8281	// in API requests with the JSON null value. By default, fields with
8282	// empty values are omitted from API requests. However, any field with
8283	// an empty value appearing in NullFields will be sent to the server as
8284	// null. It is an error if a field in this list has a non-empty value.
8285	// This may be used to include null fields in Patch requests.
8286	NullFields []string `json:"-"`
8287}
8288
8289func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
8290	type NoMethod GoogleIamV1Policy
8291	raw := NoMethod(*s)
8292	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8293}
8294
8295// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`
8296// method.
8297type GoogleIamV1SetIamPolicyRequest struct {
8298	// Policy: REQUIRED: The complete policy to be applied to the
8299	// `resource`. The size of the policy is limited to a few 10s of KB. An
8300	// empty policy is a valid policy but certain Cloud Platform services
8301	// (such as Projects) might reject them.
8302	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
8303
8304	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
8305	// policy to modify. Only the fields in the mask will be modified. If no
8306	// mask is provided, the following default mask is used: `paths:
8307	// "bindings, etag"
8308	UpdateMask string `json:"updateMask,omitempty"`
8309
8310	// ForceSendFields is a list of field names (e.g. "Policy") to
8311	// unconditionally include in API requests. By default, fields with
8312	// empty values are omitted from API requests. However, any non-pointer,
8313	// non-interface field appearing in ForceSendFields will be sent to the
8314	// server regardless of whether the field is empty or not. This may be
8315	// used to include empty fields in Patch requests.
8316	ForceSendFields []string `json:"-"`
8317
8318	// NullFields is a list of field names (e.g. "Policy") to include in API
8319	// requests with the JSON null value. By default, fields with empty
8320	// values are omitted from API requests. However, any field with an
8321	// empty value appearing in NullFields will be sent to the server as
8322	// null. It is an error if a field in this list has a non-empty value.
8323	// This may be used to include null fields in Patch requests.
8324	NullFields []string `json:"-"`
8325}
8326
8327func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
8328	type NoMethod GoogleIamV1SetIamPolicyRequest
8329	raw := NoMethod(*s)
8330	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8331}
8332
8333// GoogleIamV1TestIamPermissionsRequest: Request message for
8334// `TestIamPermissions` method.
8335type GoogleIamV1TestIamPermissionsRequest struct {
8336	// Permissions: The set of permissions to check for the `resource`.
8337	// Permissions with wildcards (such as '*' or 'storage.*') are not
8338	// allowed. For more information see IAM Overview
8339	// (https://cloud.google.com/iam/docs/overview#permissions).
8340	Permissions []string `json:"permissions,omitempty"`
8341
8342	// ForceSendFields is a list of field names (e.g. "Permissions") to
8343	// unconditionally include in API requests. By default, fields with
8344	// empty values are omitted from API requests. However, any non-pointer,
8345	// non-interface field appearing in ForceSendFields will be sent to the
8346	// server regardless of whether the field is empty or not. This may be
8347	// used to include empty fields in Patch requests.
8348	ForceSendFields []string `json:"-"`
8349
8350	// NullFields is a list of field names (e.g. "Permissions") to include
8351	// in API requests with the JSON null value. By default, fields with
8352	// empty values are omitted from API requests. However, any field with
8353	// an empty value appearing in NullFields will be sent to the server as
8354	// null. It is an error if a field in this list has a non-empty value.
8355	// This may be used to include null fields in Patch requests.
8356	NullFields []string `json:"-"`
8357}
8358
8359func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
8360	type NoMethod GoogleIamV1TestIamPermissionsRequest
8361	raw := NoMethod(*s)
8362	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8363}
8364
8365// GoogleIamV1TestIamPermissionsResponse: Response message for
8366// `TestIamPermissions` method.
8367type GoogleIamV1TestIamPermissionsResponse struct {
8368	// Permissions: A subset of `TestPermissionsRequest.permissions` that
8369	// the caller is allowed.
8370	Permissions []string `json:"permissions,omitempty"`
8371
8372	// ServerResponse contains the HTTP response code and headers from the
8373	// server.
8374	googleapi.ServerResponse `json:"-"`
8375
8376	// ForceSendFields is a list of field names (e.g. "Permissions") to
8377	// unconditionally include in API requests. By default, fields with
8378	// empty values are omitted from API requests. However, any non-pointer,
8379	// non-interface field appearing in ForceSendFields will be sent to the
8380	// server regardless of whether the field is empty or not. This may be
8381	// used to include empty fields in Patch requests.
8382	ForceSendFields []string `json:"-"`
8383
8384	// NullFields is a list of field names (e.g. "Permissions") to include
8385	// in API requests with the JSON null value. By default, fields with
8386	// empty values are omitted from API requests. However, any field with
8387	// an empty value appearing in NullFields will be sent to the server as
8388	// null. It is an error if a field in this list has a non-empty value.
8389	// This may be used to include null fields in Patch requests.
8390	NullFields []string `json:"-"`
8391}
8392
8393func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
8394	type NoMethod GoogleIamV1TestIamPermissionsResponse
8395	raw := NoMethod(*s)
8396	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8397}
8398
8399// GoogleLongrunningListOperationsResponse: The response message for
8400// Operations.ListOperations.
8401type GoogleLongrunningListOperationsResponse struct {
8402	// NextPageToken: The standard List next-page token.
8403	NextPageToken string `json:"nextPageToken,omitempty"`
8404
8405	// Operations: A list of operations that matches the specified filter in
8406	// the request.
8407	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
8408
8409	// ServerResponse contains the HTTP response code and headers from the
8410	// server.
8411	googleapi.ServerResponse `json:"-"`
8412
8413	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
8414	// unconditionally include in API requests. By default, fields with
8415	// empty values are omitted from API requests. However, any non-pointer,
8416	// non-interface field appearing in ForceSendFields will be sent to the
8417	// server regardless of whether the field is empty or not. This may be
8418	// used to include empty fields in Patch requests.
8419	ForceSendFields []string `json:"-"`
8420
8421	// NullFields is a list of field names (e.g. "NextPageToken") to include
8422	// in API requests with the JSON null value. By default, fields with
8423	// empty values are omitted from API requests. However, any field with
8424	// an empty value appearing in NullFields will be sent to the server as
8425	// null. It is an error if a field in this list has a non-empty value.
8426	// This may be used to include null fields in Patch requests.
8427	NullFields []string `json:"-"`
8428}
8429
8430func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
8431	type NoMethod GoogleLongrunningListOperationsResponse
8432	raw := NoMethod(*s)
8433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8434}
8435
8436// GoogleLongrunningOperation: This resource represents a long-running
8437// operation that is the result of a network API call.
8438type GoogleLongrunningOperation struct {
8439	// Done: If the value is `false`, it means the operation is still in
8440	// progress. If `true`, the operation is completed, and either `error`
8441	// or `response` is available.
8442	Done bool `json:"done,omitempty"`
8443
8444	// Error: The error result of the operation in case of failure or
8445	// cancellation.
8446	Error *GoogleRpcStatus `json:"error,omitempty"`
8447
8448	// Metadata: Service-specific metadata associated with the operation. It
8449	// typically contains progress information and common metadata such as
8450	// create time. Some services might not provide such metadata. Any
8451	// method that returns a long-running operation should document the
8452	// metadata type, if any.
8453	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
8454
8455	// Name: The server-assigned name, which is only unique within the same
8456	// service that originally returns it. If you use the default HTTP
8457	// mapping, the `name` should be a resource name ending with
8458	// `operations/{unique_id}`.
8459	Name string `json:"name,omitempty"`
8460
8461	// Response: The normal response of the operation in case of success. If
8462	// the original method returns no data on success, such as `Delete`, the
8463	// response is `google.protobuf.Empty`. If the original method is
8464	// standard `Get`/`Create`/`Update`, the response should be the
8465	// resource. For other methods, the response should have the type
8466	// `XxxResponse`, where `Xxx` is the original method name. For example,
8467	// if the original method name is `TakeSnapshot()`, the inferred
8468	// response type is `TakeSnapshotResponse`.
8469	Response googleapi.RawMessage `json:"response,omitempty"`
8470
8471	// ServerResponse contains the HTTP response code and headers from the
8472	// server.
8473	googleapi.ServerResponse `json:"-"`
8474
8475	// ForceSendFields is a list of field names (e.g. "Done") to
8476	// unconditionally include in API requests. By default, fields with
8477	// empty values are omitted from API requests. However, any non-pointer,
8478	// non-interface field appearing in ForceSendFields will be sent to the
8479	// server regardless of whether the field is empty or not. This may be
8480	// used to include empty fields in Patch requests.
8481	ForceSendFields []string `json:"-"`
8482
8483	// NullFields is a list of field names (e.g. "Done") to include in API
8484	// requests with the JSON null value. By default, fields with empty
8485	// values are omitted from API requests. However, any field with an
8486	// empty value appearing in NullFields will be sent to the server as
8487	// null. It is an error if a field in this list has a non-empty value.
8488	// This may be used to include null fields in Patch requests.
8489	NullFields []string `json:"-"`
8490}
8491
8492func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
8493	type NoMethod GoogleLongrunningOperation
8494	raw := NoMethod(*s)
8495	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8496}
8497
8498// GoogleProtobufEmpty: A generic empty message that you can re-use to
8499// avoid defining duplicated empty messages in your APIs. A typical
8500// example is to use it as the request or the response type of an API
8501// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
8502// returns (google.protobuf.Empty); } The JSON representation for
8503// `Empty` is empty JSON object `{}`.
8504type GoogleProtobufEmpty struct {
8505	// ServerResponse contains the HTTP response code and headers from the
8506	// server.
8507	googleapi.ServerResponse `json:"-"`
8508}
8509
8510// GoogleRpcPreconditionFailure: Describes what preconditions have
8511// failed. For example, if an RPC failed because it required the Terms
8512// of Service to be acknowledged, it could list the terms of service
8513// violation in the PreconditionFailure message.
8514type GoogleRpcPreconditionFailure struct {
8515	// Violations: Describes all precondition violations.
8516	Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
8517
8518	// ForceSendFields is a list of field names (e.g. "Violations") to
8519	// unconditionally include in API requests. By default, fields with
8520	// empty values are omitted from API requests. However, any non-pointer,
8521	// non-interface field appearing in ForceSendFields will be sent to the
8522	// server regardless of whether the field is empty or not. This may be
8523	// used to include empty fields in Patch requests.
8524	ForceSendFields []string `json:"-"`
8525
8526	// NullFields is a list of field names (e.g. "Violations") to include in
8527	// API requests with the JSON null value. By default, fields with empty
8528	// values are omitted from API requests. However, any field with an
8529	// empty value appearing in NullFields will be sent to the server as
8530	// null. It is an error if a field in this list has a non-empty value.
8531	// This may be used to include null fields in Patch requests.
8532	NullFields []string `json:"-"`
8533}
8534
8535func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
8536	type NoMethod GoogleRpcPreconditionFailure
8537	raw := NoMethod(*s)
8538	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8539}
8540
8541// GoogleRpcPreconditionFailureViolation: A message type used to
8542// describe a single precondition failure.
8543type GoogleRpcPreconditionFailureViolation struct {
8544	// Description: A description of how the precondition failed. Developers
8545	// can use this description to understand how to fix the failure. For
8546	// example: "Terms of service not accepted".
8547	Description string `json:"description,omitempty"`
8548
8549	// Subject: The subject, relative to the type, that failed. For example,
8550	// "google.com/cloud" relative to the "TOS" type would indicate which
8551	// terms of service is being referenced.
8552	Subject string `json:"subject,omitempty"`
8553
8554	// Type: The type of PreconditionFailure. We recommend using a
8555	// service-specific enum type to define the supported precondition
8556	// violation subjects. For example, "TOS" for "Terms of Service
8557	// violation".
8558	Type string `json:"type,omitempty"`
8559
8560	// ForceSendFields is a list of field names (e.g. "Description") to
8561	// unconditionally include in API requests. By default, fields with
8562	// empty values are omitted from API requests. However, any non-pointer,
8563	// non-interface field appearing in ForceSendFields will be sent to the
8564	// server regardless of whether the field is empty or not. This may be
8565	// used to include empty fields in Patch requests.
8566	ForceSendFields []string `json:"-"`
8567
8568	// NullFields is a list of field names (e.g. "Description") to include
8569	// in API requests with the JSON null value. By default, fields with
8570	// empty values are omitted from API requests. However, any field with
8571	// an empty value appearing in NullFields will be sent to the server as
8572	// null. It is an error if a field in this list has a non-empty value.
8573	// This may be used to include null fields in Patch requests.
8574	NullFields []string `json:"-"`
8575}
8576
8577func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
8578	type NoMethod GoogleRpcPreconditionFailureViolation
8579	raw := NoMethod(*s)
8580	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8581}
8582
8583// GoogleRpcStatus: The `Status` type defines a logical error model that
8584// is suitable for different programming environments, including REST
8585// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
8586// `Status` message contains three pieces of data: error code, error
8587// message, and error details. You can find out more about this error
8588// model and how to work with it in the API Design Guide
8589// (https://cloud.google.com/apis/design/errors).
8590type GoogleRpcStatus struct {
8591	// Code: The status code, which should be an enum value of
8592	// google.rpc.Code.
8593	Code int64 `json:"code,omitempty"`
8594
8595	// Details: A list of messages that carry the error details. There is a
8596	// common set of message types for APIs to use.
8597	Details []googleapi.RawMessage `json:"details,omitempty"`
8598
8599	// Message: A developer-facing error message, which should be in
8600	// English. Any user-facing error message should be localized and sent
8601	// in the google.rpc.Status.details field, or localized by the client.
8602	Message string `json:"message,omitempty"`
8603
8604	// ForceSendFields is a list of field names (e.g. "Code") to
8605	// unconditionally include in API requests. By default, fields with
8606	// empty values are omitted from API requests. However, any non-pointer,
8607	// non-interface field appearing in ForceSendFields will be sent to the
8608	// server regardless of whether the field is empty or not. This may be
8609	// used to include empty fields in Patch requests.
8610	ForceSendFields []string `json:"-"`
8611
8612	// NullFields is a list of field names (e.g. "Code") to include in API
8613	// requests with the JSON null value. By default, fields with empty
8614	// values are omitted from API requests. However, any field with an
8615	// empty value appearing in NullFields will be sent to the server as
8616	// null. It is an error if a field in this list has a non-empty value.
8617	// This may be used to include null fields in Patch requests.
8618	NullFields []string `json:"-"`
8619}
8620
8621func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
8622	type NoMethod GoogleRpcStatus
8623	raw := NoMethod(*s)
8624	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8625}
8626
8627// GoogleTypeExpr: Represents a textual expression in the Common
8628// Expression Language (CEL) syntax. CEL is a C-like expression
8629// language. The syntax and semantics of CEL are documented at
8630// https://github.com/google/cel-spec. Example (Comparison): title:
8631// "Summary size limit" description: "Determines if a summary is less
8632// than 100 chars" expression: "document.summary.size() < 100" Example
8633// (Equality): title: "Requestor is owner" description: "Determines if
8634// requestor is the document owner" expression: "document.owner ==
8635// request.auth.claims.email" Example (Logic): title: "Public documents"
8636// description: "Determine whether the document should be publicly
8637// visible" expression: "document.type != 'private' && document.type !=
8638// 'internal'" Example (Data Manipulation): title: "Notification string"
8639// description: "Create a notification string with a timestamp."
8640// expression: "'New message received at ' +
8641// string(document.create_time)" The exact variables and functions that
8642// may be referenced within an expression are determined by the service
8643// that evaluates it. See the service documentation for additional
8644// information.
8645type GoogleTypeExpr struct {
8646	// Description: Optional. Description of the expression. This is a
8647	// longer text which describes the expression, e.g. when hovered over it
8648	// in a UI.
8649	Description string `json:"description,omitempty"`
8650
8651	// Expression: Textual representation of an expression in Common
8652	// Expression Language syntax.
8653	Expression string `json:"expression,omitempty"`
8654
8655	// Location: Optional. String indicating the location of the expression
8656	// for error reporting, e.g. a file name and a position in the file.
8657	Location string `json:"location,omitempty"`
8658
8659	// Title: Optional. Title for the expression, i.e. a short string
8660	// describing its purpose. This can be used e.g. in UIs which allow to
8661	// enter the expression.
8662	Title string `json:"title,omitempty"`
8663
8664	// ForceSendFields is a list of field names (e.g. "Description") to
8665	// unconditionally include in API requests. By default, fields with
8666	// empty values are omitted from API requests. However, any non-pointer,
8667	// non-interface field appearing in ForceSendFields will be sent to the
8668	// server regardless of whether the field is empty or not. This may be
8669	// used to include empty fields in Patch requests.
8670	ForceSendFields []string `json:"-"`
8671
8672	// NullFields is a list of field names (e.g. "Description") to include
8673	// in API requests with the JSON null value. By default, fields with
8674	// empty values are omitted from API requests. However, any field with
8675	// an empty value appearing in NullFields will be sent to the server as
8676	// null. It is an error if a field in this list has a non-empty value.
8677	// This may be used to include null fields in Patch requests.
8678	NullFields []string `json:"-"`
8679}
8680
8681func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
8682	type NoMethod GoogleTypeExpr
8683	raw := NoMethod(*s)
8684	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8685}
8686
8687// method id "apigee.hybrid.issuers.list":
8688
8689type HybridIssuersListCall struct {
8690	s            *Service
8691	name         string
8692	urlParams_   gensupport.URLParams
8693	ifNoneMatch_ string
8694	ctx_         context.Context
8695	header_      http.Header
8696}
8697
8698// List: Lists hybrid services and its trusted issuers service account
8699// ids. This api is authenticated and unauthorized(allow all the users)
8700// and used by runtime authn-authz service to query control plane's
8701// issuer service account ids.
8702func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
8703	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8704	c.name = name
8705	return c
8706}
8707
8708// Fields allows partial responses to be retrieved. See
8709// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8710// for more information.
8711func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
8712	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8713	return c
8714}
8715
8716// IfNoneMatch sets the optional parameter which makes the operation
8717// fail if the object's ETag matches the given value. This is useful for
8718// getting updates only after the object has changed since the last
8719// request. Use googleapi.IsNotModified to check whether the response
8720// error from Do is the result of In-None-Match.
8721func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
8722	c.ifNoneMatch_ = entityTag
8723	return c
8724}
8725
8726// Context sets the context to be used in this call's Do method. Any
8727// pending HTTP request will be aborted if the provided context is
8728// canceled.
8729func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
8730	c.ctx_ = ctx
8731	return c
8732}
8733
8734// Header returns an http.Header that can be modified by the caller to
8735// add HTTP headers to the request.
8736func (c *HybridIssuersListCall) Header() http.Header {
8737	if c.header_ == nil {
8738		c.header_ = make(http.Header)
8739	}
8740	return c.header_
8741}
8742
8743func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
8744	reqHeaders := make(http.Header)
8745	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
8746	for k, v := range c.header_ {
8747		reqHeaders[k] = v
8748	}
8749	reqHeaders.Set("User-Agent", c.s.userAgent())
8750	if c.ifNoneMatch_ != "" {
8751		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8752	}
8753	var body io.Reader = nil
8754	c.urlParams_.Set("alt", alt)
8755	c.urlParams_.Set("prettyPrint", "false")
8756	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8757	urls += "?" + c.urlParams_.Encode()
8758	req, err := http.NewRequest("GET", urls, body)
8759	if err != nil {
8760		return nil, err
8761	}
8762	req.Header = reqHeaders
8763	googleapi.Expand(req.URL, map[string]string{
8764		"name": c.name,
8765	})
8766	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8767}
8768
8769// Do executes the "apigee.hybrid.issuers.list" call.
8770// Exactly one of *GoogleCloudApigeeV1ListHybridIssuersResponse or error
8771// will be non-nil. Any non-2xx status code is an error. Response
8772// headers are in either
8773// *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header
8774// or (if a response was returned at all) in
8775// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8776// whether the returned error was because http.StatusNotModified was
8777// returned.
8778func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
8779	gensupport.SetOptions(c.urlParams_, opts...)
8780	res, err := c.doRequest("json")
8781	if res != nil && res.StatusCode == http.StatusNotModified {
8782		if res.Body != nil {
8783			res.Body.Close()
8784		}
8785		return nil, &googleapi.Error{
8786			Code:   res.StatusCode,
8787			Header: res.Header,
8788		}
8789	}
8790	if err != nil {
8791		return nil, err
8792	}
8793	defer googleapi.CloseBody(res)
8794	if err := googleapi.CheckResponse(res); err != nil {
8795		return nil, err
8796	}
8797	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
8798		ServerResponse: googleapi.ServerResponse{
8799			Header:         res.Header,
8800			HTTPStatusCode: res.StatusCode,
8801		},
8802	}
8803	target := &ret
8804	if err := gensupport.DecodeResponse(target, res); err != nil {
8805		return nil, err
8806	}
8807	return ret, nil
8808	// {
8809	//   "description": "Lists hybrid services and its trusted issuers service account ids. This api is authenticated and unauthorized(allow all the users) and used by runtime authn-authz service to query control plane's issuer service account ids.",
8810	//   "flatPath": "v1/hybrid/issuers",
8811	//   "httpMethod": "GET",
8812	//   "id": "apigee.hybrid.issuers.list",
8813	//   "parameterOrder": [
8814	//     "name"
8815	//   ],
8816	//   "parameters": {
8817	//     "name": {
8818	//       "description": "Required. Must be of the form `hybrid/issuers`.",
8819	//       "location": "path",
8820	//       "pattern": "^hybrid/issuers$",
8821	//       "required": true,
8822	//       "type": "string"
8823	//     }
8824	//   },
8825	//   "path": "v1/{+name}",
8826	//   "response": {
8827	//     "$ref": "GoogleCloudApigeeV1ListHybridIssuersResponse"
8828	//   },
8829	//   "scopes": [
8830	//     "https://www.googleapis.com/auth/cloud-platform"
8831	//   ]
8832	// }
8833
8834}
8835
8836// method id "apigee.organizations.create":
8837
8838type OrganizationsCreateCall struct {
8839	s                               *Service
8840	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
8841	urlParams_                      gensupport.URLParams
8842	ctx_                            context.Context
8843	header_                         http.Header
8844}
8845
8846// Create: Creates an Apigee organization. See Create an Apigee
8847// organization
8848// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
8849func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
8850	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8851	c.googlecloudapigeev1organization = googlecloudapigeev1organization
8852	return c
8853}
8854
8855// Parent sets the optional parameter "parent": Required. Name of the
8856// GCP project in which to associate the Apigee organization. Pass the
8857// information as a query parameter using the following structure in
8858// your request: `projects/`
8859func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
8860	c.urlParams_.Set("parent", parent)
8861	return c
8862}
8863
8864// Fields allows partial responses to be retrieved. See
8865// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8866// for more information.
8867func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
8868	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8869	return c
8870}
8871
8872// Context sets the context to be used in this call's Do method. Any
8873// pending HTTP request will be aborted if the provided context is
8874// canceled.
8875func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
8876	c.ctx_ = ctx
8877	return c
8878}
8879
8880// Header returns an http.Header that can be modified by the caller to
8881// add HTTP headers to the request.
8882func (c *OrganizationsCreateCall) Header() http.Header {
8883	if c.header_ == nil {
8884		c.header_ = make(http.Header)
8885	}
8886	return c.header_
8887}
8888
8889func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
8890	reqHeaders := make(http.Header)
8891	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
8892	for k, v := range c.header_ {
8893		reqHeaders[k] = v
8894	}
8895	reqHeaders.Set("User-Agent", c.s.userAgent())
8896	var body io.Reader = nil
8897	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
8898	if err != nil {
8899		return nil, err
8900	}
8901	reqHeaders.Set("Content-Type", "application/json")
8902	c.urlParams_.Set("alt", alt)
8903	c.urlParams_.Set("prettyPrint", "false")
8904	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
8905	urls += "?" + c.urlParams_.Encode()
8906	req, err := http.NewRequest("POST", urls, body)
8907	if err != nil {
8908		return nil, err
8909	}
8910	req.Header = reqHeaders
8911	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8912}
8913
8914// Do executes the "apigee.organizations.create" call.
8915// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
8916// Any non-2xx status code is an error. Response headers are in either
8917// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
8918// was returned at all) in error.(*googleapi.Error).Header. Use
8919// googleapi.IsNotModified to check whether the returned error was
8920// because http.StatusNotModified was returned.
8921func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8922	gensupport.SetOptions(c.urlParams_, opts...)
8923	res, err := c.doRequest("json")
8924	if res != nil && res.StatusCode == http.StatusNotModified {
8925		if res.Body != nil {
8926			res.Body.Close()
8927		}
8928		return nil, &googleapi.Error{
8929			Code:   res.StatusCode,
8930			Header: res.Header,
8931		}
8932	}
8933	if err != nil {
8934		return nil, err
8935	}
8936	defer googleapi.CloseBody(res)
8937	if err := googleapi.CheckResponse(res); err != nil {
8938		return nil, err
8939	}
8940	ret := &GoogleLongrunningOperation{
8941		ServerResponse: googleapi.ServerResponse{
8942			Header:         res.Header,
8943			HTTPStatusCode: res.StatusCode,
8944		},
8945	}
8946	target := &ret
8947	if err := gensupport.DecodeResponse(target, res); err != nil {
8948		return nil, err
8949	}
8950	return ret, nil
8951	// {
8952	//   "description": "Creates an Apigee organization. See [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).",
8953	//   "flatPath": "v1/organizations",
8954	//   "httpMethod": "POST",
8955	//   "id": "apigee.organizations.create",
8956	//   "parameterOrder": [],
8957	//   "parameters": {
8958	//     "parent": {
8959	//       "description": "Required. Name of the GCP project in which to associate the Apigee organization. Pass the information as a query parameter using the following structure in your request: `projects/`",
8960	//       "location": "query",
8961	//       "type": "string"
8962	//     }
8963	//   },
8964	//   "path": "v1/organizations",
8965	//   "request": {
8966	//     "$ref": "GoogleCloudApigeeV1Organization"
8967	//   },
8968	//   "response": {
8969	//     "$ref": "GoogleLongrunningOperation"
8970	//   },
8971	//   "scopes": [
8972	//     "https://www.googleapis.com/auth/cloud-platform"
8973	//   ]
8974	// }
8975
8976}
8977
8978// method id "apigee.organizations.delete":
8979
8980type OrganizationsDeleteCall struct {
8981	s          *Service
8982	name       string
8983	urlParams_ gensupport.URLParams
8984	ctx_       context.Context
8985	header_    http.Header
8986}
8987
8988// Delete: Delete an Apigee organization. Only supported for
8989// SubscriptionType TRIAL.
8990func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
8991	c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8992	c.name = name
8993	return c
8994}
8995
8996// Fields allows partial responses to be retrieved. See
8997// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8998// for more information.
8999func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
9000	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9001	return c
9002}
9003
9004// Context sets the context to be used in this call's Do method. Any
9005// pending HTTP request will be aborted if the provided context is
9006// canceled.
9007func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
9008	c.ctx_ = ctx
9009	return c
9010}
9011
9012// Header returns an http.Header that can be modified by the caller to
9013// add HTTP headers to the request.
9014func (c *OrganizationsDeleteCall) Header() http.Header {
9015	if c.header_ == nil {
9016		c.header_ = make(http.Header)
9017	}
9018	return c.header_
9019}
9020
9021func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
9022	reqHeaders := make(http.Header)
9023	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9024	for k, v := range c.header_ {
9025		reqHeaders[k] = v
9026	}
9027	reqHeaders.Set("User-Agent", c.s.userAgent())
9028	var body io.Reader = nil
9029	c.urlParams_.Set("alt", alt)
9030	c.urlParams_.Set("prettyPrint", "false")
9031	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9032	urls += "?" + c.urlParams_.Encode()
9033	req, err := http.NewRequest("DELETE", urls, body)
9034	if err != nil {
9035		return nil, err
9036	}
9037	req.Header = reqHeaders
9038	googleapi.Expand(req.URL, map[string]string{
9039		"name": c.name,
9040	})
9041	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9042}
9043
9044// Do executes the "apigee.organizations.delete" call.
9045// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9046// Any non-2xx status code is an error. Response headers are in either
9047// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9048// was returned at all) in error.(*googleapi.Error).Header. Use
9049// googleapi.IsNotModified to check whether the returned error was
9050// because http.StatusNotModified was returned.
9051func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9052	gensupport.SetOptions(c.urlParams_, opts...)
9053	res, err := c.doRequest("json")
9054	if res != nil && res.StatusCode == http.StatusNotModified {
9055		if res.Body != nil {
9056			res.Body.Close()
9057		}
9058		return nil, &googleapi.Error{
9059			Code:   res.StatusCode,
9060			Header: res.Header,
9061		}
9062	}
9063	if err != nil {
9064		return nil, err
9065	}
9066	defer googleapi.CloseBody(res)
9067	if err := googleapi.CheckResponse(res); err != nil {
9068		return nil, err
9069	}
9070	ret := &GoogleLongrunningOperation{
9071		ServerResponse: googleapi.ServerResponse{
9072			Header:         res.Header,
9073			HTTPStatusCode: res.StatusCode,
9074		},
9075	}
9076	target := &ret
9077	if err := gensupport.DecodeResponse(target, res); err != nil {
9078		return nil, err
9079	}
9080	return ret, nil
9081	// {
9082	//   "description": "Delete an Apigee organization. Only supported for SubscriptionType TRIAL.",
9083	//   "flatPath": "v1/organizations/{organizationsId}",
9084	//   "httpMethod": "DELETE",
9085	//   "id": "apigee.organizations.delete",
9086	//   "parameterOrder": [
9087	//     "name"
9088	//   ],
9089	//   "parameters": {
9090	//     "name": {
9091	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
9092	//       "location": "path",
9093	//       "pattern": "^organizations/[^/]+$",
9094	//       "required": true,
9095	//       "type": "string"
9096	//     }
9097	//   },
9098	//   "path": "v1/{+name}",
9099	//   "response": {
9100	//     "$ref": "GoogleLongrunningOperation"
9101	//   },
9102	//   "scopes": [
9103	//     "https://www.googleapis.com/auth/cloud-platform"
9104	//   ]
9105	// }
9106
9107}
9108
9109// method id "apigee.organizations.get":
9110
9111type OrganizationsGetCall struct {
9112	s            *Service
9113	name         string
9114	urlParams_   gensupport.URLParams
9115	ifNoneMatch_ string
9116	ctx_         context.Context
9117	header_      http.Header
9118}
9119
9120// Get: Gets the profile for an Apigee organization. See Understanding
9121// organizations
9122// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
9123func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
9124	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9125	c.name = name
9126	return c
9127}
9128
9129// Fields allows partial responses to be retrieved. See
9130// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9131// for more information.
9132func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
9133	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9134	return c
9135}
9136
9137// IfNoneMatch sets the optional parameter which makes the operation
9138// fail if the object's ETag matches the given value. This is useful for
9139// getting updates only after the object has changed since the last
9140// request. Use googleapi.IsNotModified to check whether the response
9141// error from Do is the result of In-None-Match.
9142func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
9143	c.ifNoneMatch_ = entityTag
9144	return c
9145}
9146
9147// Context sets the context to be used in this call's Do method. Any
9148// pending HTTP request will be aborted if the provided context is
9149// canceled.
9150func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
9151	c.ctx_ = ctx
9152	return c
9153}
9154
9155// Header returns an http.Header that can be modified by the caller to
9156// add HTTP headers to the request.
9157func (c *OrganizationsGetCall) Header() http.Header {
9158	if c.header_ == nil {
9159		c.header_ = make(http.Header)
9160	}
9161	return c.header_
9162}
9163
9164func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
9165	reqHeaders := make(http.Header)
9166	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9167	for k, v := range c.header_ {
9168		reqHeaders[k] = v
9169	}
9170	reqHeaders.Set("User-Agent", c.s.userAgent())
9171	if c.ifNoneMatch_ != "" {
9172		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9173	}
9174	var body io.Reader = nil
9175	c.urlParams_.Set("alt", alt)
9176	c.urlParams_.Set("prettyPrint", "false")
9177	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9178	urls += "?" + c.urlParams_.Encode()
9179	req, err := http.NewRequest("GET", urls, body)
9180	if err != nil {
9181		return nil, err
9182	}
9183	req.Header = reqHeaders
9184	googleapi.Expand(req.URL, map[string]string{
9185		"name": c.name,
9186	})
9187	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9188}
9189
9190// Do executes the "apigee.organizations.get" call.
9191// Exactly one of *GoogleCloudApigeeV1Organization or error will be
9192// non-nil. Any non-2xx status code is an error. Response headers are in
9193// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
9194// a response was returned at all) in error.(*googleapi.Error).Header.
9195// Use googleapi.IsNotModified to check whether the returned error was
9196// because http.StatusNotModified was returned.
9197func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
9198	gensupport.SetOptions(c.urlParams_, opts...)
9199	res, err := c.doRequest("json")
9200	if res != nil && res.StatusCode == http.StatusNotModified {
9201		if res.Body != nil {
9202			res.Body.Close()
9203		}
9204		return nil, &googleapi.Error{
9205			Code:   res.StatusCode,
9206			Header: res.Header,
9207		}
9208	}
9209	if err != nil {
9210		return nil, err
9211	}
9212	defer googleapi.CloseBody(res)
9213	if err := googleapi.CheckResponse(res); err != nil {
9214		return nil, err
9215	}
9216	ret := &GoogleCloudApigeeV1Organization{
9217		ServerResponse: googleapi.ServerResponse{
9218			Header:         res.Header,
9219			HTTPStatusCode: res.StatusCode,
9220		},
9221	}
9222	target := &ret
9223	if err := gensupport.DecodeResponse(target, res); err != nil {
9224		return nil, err
9225	}
9226	return ret, nil
9227	// {
9228	//   "description": "Gets the profile for an Apigee organization. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).",
9229	//   "flatPath": "v1/organizations/{organizationsId}",
9230	//   "httpMethod": "GET",
9231	//   "id": "apigee.organizations.get",
9232	//   "parameterOrder": [
9233	//     "name"
9234	//   ],
9235	//   "parameters": {
9236	//     "name": {
9237	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
9238	//       "location": "path",
9239	//       "pattern": "^organizations/[^/]+$",
9240	//       "required": true,
9241	//       "type": "string"
9242	//     }
9243	//   },
9244	//   "path": "v1/{+name}",
9245	//   "response": {
9246	//     "$ref": "GoogleCloudApigeeV1Organization"
9247	//   },
9248	//   "scopes": [
9249	//     "https://www.googleapis.com/auth/cloud-platform"
9250	//   ]
9251	// }
9252
9253}
9254
9255// method id "apigee.organizations.getDeployedIngressConfig":
9256
9257type OrganizationsGetDeployedIngressConfigCall struct {
9258	s            *Service
9259	name         string
9260	urlParams_   gensupport.URLParams
9261	ifNoneMatch_ string
9262	ctx_         context.Context
9263	header_      http.Header
9264}
9265
9266// GetDeployedIngressConfig: Gets the deployed ingress configuration for
9267// an organization.
9268func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
9269	c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9270	c.name = name
9271	return c
9272}
9273
9274// View sets the optional parameter "view": When set to FULL, additional
9275// details about the specific deployments receiving traffic will be
9276// included in the IngressConfig response's RoutingRules.
9277//
9278// Possible values:
9279//   "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The
9280// API will default to the BASIC view.
9281//   "BASIC" - Include all ingress config data necessary for the runtime
9282// to configure ingress, but no more. Routing rules will include only
9283// basepath and destination environment. This the default value.
9284//   "FULL" - Include all ingress config data, including internal debug
9285// info for each routing rule such as the proxy claiming a particular
9286// basepath and when the routing rule first appeared in the env group.
9287func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
9288	c.urlParams_.Set("view", view)
9289	return c
9290}
9291
9292// Fields allows partial responses to be retrieved. See
9293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9294// for more information.
9295func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
9296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9297	return c
9298}
9299
9300// IfNoneMatch sets the optional parameter which makes the operation
9301// fail if the object's ETag matches the given value. This is useful for
9302// getting updates only after the object has changed since the last
9303// request. Use googleapi.IsNotModified to check whether the response
9304// error from Do is the result of In-None-Match.
9305func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
9306	c.ifNoneMatch_ = entityTag
9307	return c
9308}
9309
9310// Context sets the context to be used in this call's Do method. Any
9311// pending HTTP request will be aborted if the provided context is
9312// canceled.
9313func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
9314	c.ctx_ = ctx
9315	return c
9316}
9317
9318// Header returns an http.Header that can be modified by the caller to
9319// add HTTP headers to the request.
9320func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
9321	if c.header_ == nil {
9322		c.header_ = make(http.Header)
9323	}
9324	return c.header_
9325}
9326
9327func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
9328	reqHeaders := make(http.Header)
9329	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9330	for k, v := range c.header_ {
9331		reqHeaders[k] = v
9332	}
9333	reqHeaders.Set("User-Agent", c.s.userAgent())
9334	if c.ifNoneMatch_ != "" {
9335		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9336	}
9337	var body io.Reader = nil
9338	c.urlParams_.Set("alt", alt)
9339	c.urlParams_.Set("prettyPrint", "false")
9340	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9341	urls += "?" + c.urlParams_.Encode()
9342	req, err := http.NewRequest("GET", urls, body)
9343	if err != nil {
9344		return nil, err
9345	}
9346	req.Header = reqHeaders
9347	googleapi.Expand(req.URL, map[string]string{
9348		"name": c.name,
9349	})
9350	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9351}
9352
9353// Do executes the "apigee.organizations.getDeployedIngressConfig" call.
9354// Exactly one of *GoogleCloudApigeeV1IngressConfig or error will be
9355// non-nil. Any non-2xx status code is an error. Response headers are in
9356// either *GoogleCloudApigeeV1IngressConfig.ServerResponse.Header or (if
9357// a response was returned at all) in error.(*googleapi.Error).Header.
9358// Use googleapi.IsNotModified to check whether the returned error was
9359// because http.StatusNotModified was returned.
9360func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
9361	gensupport.SetOptions(c.urlParams_, opts...)
9362	res, err := c.doRequest("json")
9363	if res != nil && res.StatusCode == http.StatusNotModified {
9364		if res.Body != nil {
9365			res.Body.Close()
9366		}
9367		return nil, &googleapi.Error{
9368			Code:   res.StatusCode,
9369			Header: res.Header,
9370		}
9371	}
9372	if err != nil {
9373		return nil, err
9374	}
9375	defer googleapi.CloseBody(res)
9376	if err := googleapi.CheckResponse(res); err != nil {
9377		return nil, err
9378	}
9379	ret := &GoogleCloudApigeeV1IngressConfig{
9380		ServerResponse: googleapi.ServerResponse{
9381			Header:         res.Header,
9382			HTTPStatusCode: res.StatusCode,
9383		},
9384	}
9385	target := &ret
9386	if err := gensupport.DecodeResponse(target, res); err != nil {
9387		return nil, err
9388	}
9389	return ret, nil
9390	// {
9391	//   "description": "Gets the deployed ingress configuration for an organization.",
9392	//   "flatPath": "v1/organizations/{organizationsId}/deployedIngressConfig",
9393	//   "httpMethod": "GET",
9394	//   "id": "apigee.organizations.getDeployedIngressConfig",
9395	//   "parameterOrder": [
9396	//     "name"
9397	//   ],
9398	//   "parameters": {
9399	//     "name": {
9400	//       "description": "Required. Name of the deployed configuration for the organization in the following format: 'organizations/{org}/deployedIngressConfig'.",
9401	//       "location": "path",
9402	//       "pattern": "^organizations/[^/]+/deployedIngressConfig$",
9403	//       "required": true,
9404	//       "type": "string"
9405	//     },
9406	//     "view": {
9407	//       "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.",
9408	//       "enum": [
9409	//         "INGRESS_CONFIG_VIEW_UNSPECIFIED",
9410	//         "BASIC",
9411	//         "FULL"
9412	//       ],
9413	//       "enumDescriptions": [
9414	//         "The default/unset value. The API will default to the BASIC view.",
9415	//         "Include all ingress config data necessary for the runtime to configure ingress, but no more. Routing rules will include only basepath and destination environment. This the default value.",
9416	//         "Include all ingress config data, including internal debug info for each routing rule such as the proxy claiming a particular basepath and when the routing rule first appeared in the env group."
9417	//       ],
9418	//       "location": "query",
9419	//       "type": "string"
9420	//     }
9421	//   },
9422	//   "path": "v1/{+name}",
9423	//   "response": {
9424	//     "$ref": "GoogleCloudApigeeV1IngressConfig"
9425	//   },
9426	//   "scopes": [
9427	//     "https://www.googleapis.com/auth/cloud-platform"
9428	//   ]
9429	// }
9430
9431}
9432
9433// method id "apigee.organizations.getSyncAuthorization":
9434
9435type OrganizationsGetSyncAuthorizationCall struct {
9436	s                                              *Service
9437	name                                           string
9438	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
9439	urlParams_                                     gensupport.URLParams
9440	ctx_                                           context.Context
9441	header_                                        http.Header
9442}
9443
9444// GetSyncAuthorization: Lists the service accounts with the permissions
9445// required to allow the Synchronizer to download environment data from
9446// the control plane. An ETag is returned in the response to
9447// `getSyncAuthorization`. Pass that ETag when calling
9448// setSyncAuthorization (setSyncAuthorization) to ensure that you are
9449// updating the correct version. If you don't pass the ETag in the call
9450// to `setSyncAuthorization`, then the existing authorization is
9451// overwritten indiscriminately. For more information, see Configure the
9452// Synchronizer
9453// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
9454// **Note**: Available to Apigee hybrid only.
9455func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
9456	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9457	c.name = name
9458	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
9459	return c
9460}
9461
9462// Fields allows partial responses to be retrieved. See
9463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9464// for more information.
9465func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
9466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9467	return c
9468}
9469
9470// Context sets the context to be used in this call's Do method. Any
9471// pending HTTP request will be aborted if the provided context is
9472// canceled.
9473func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
9474	c.ctx_ = ctx
9475	return c
9476}
9477
9478// Header returns an http.Header that can be modified by the caller to
9479// add HTTP headers to the request.
9480func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
9481	if c.header_ == nil {
9482		c.header_ = make(http.Header)
9483	}
9484	return c.header_
9485}
9486
9487func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
9488	reqHeaders := make(http.Header)
9489	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9490	for k, v := range c.header_ {
9491		reqHeaders[k] = v
9492	}
9493	reqHeaders.Set("User-Agent", c.s.userAgent())
9494	var body io.Reader = nil
9495	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
9496	if err != nil {
9497		return nil, err
9498	}
9499	reqHeaders.Set("Content-Type", "application/json")
9500	c.urlParams_.Set("alt", alt)
9501	c.urlParams_.Set("prettyPrint", "false")
9502	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
9503	urls += "?" + c.urlParams_.Encode()
9504	req, err := http.NewRequest("POST", urls, body)
9505	if err != nil {
9506		return nil, err
9507	}
9508	req.Header = reqHeaders
9509	googleapi.Expand(req.URL, map[string]string{
9510		"name": c.name,
9511	})
9512	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9513}
9514
9515// Do executes the "apigee.organizations.getSyncAuthorization" call.
9516// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
9517// non-nil. Any non-2xx status code is an error. Response headers are in
9518// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
9519// (if a response was returned at all) in
9520// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9521// whether the returned error was because http.StatusNotModified was
9522// returned.
9523func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
9524	gensupport.SetOptions(c.urlParams_, opts...)
9525	res, err := c.doRequest("json")
9526	if res != nil && res.StatusCode == http.StatusNotModified {
9527		if res.Body != nil {
9528			res.Body.Close()
9529		}
9530		return nil, &googleapi.Error{
9531			Code:   res.StatusCode,
9532			Header: res.Header,
9533		}
9534	}
9535	if err != nil {
9536		return nil, err
9537	}
9538	defer googleapi.CloseBody(res)
9539	if err := googleapi.CheckResponse(res); err != nil {
9540		return nil, err
9541	}
9542	ret := &GoogleCloudApigeeV1SyncAuthorization{
9543		ServerResponse: googleapi.ServerResponse{
9544			Header:         res.Header,
9545			HTTPStatusCode: res.StatusCode,
9546		},
9547	}
9548	target := &ret
9549	if err := gensupport.DecodeResponse(target, res); err != nil {
9550		return nil, err
9551	}
9552	return ret, nil
9553	// {
9554	//   "description": "Lists the service accounts with the permissions required to allow the Synchronizer to download environment data from the control plane. An ETag is returned in the response to `getSyncAuthorization`. Pass that ETag when calling [setSyncAuthorization](setSyncAuthorization) to ensure that you are updating the correct version. If you don't pass the ETag in the call to `setSyncAuthorization`, then the existing authorization is overwritten indiscriminately. For more information, see [Configure the Synchronizer](https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access). **Note**: Available to Apigee hybrid only.",
9555	//   "flatPath": "v1/organizations/{organizationsId}:getSyncAuthorization",
9556	//   "httpMethod": "POST",
9557	//   "id": "apigee.organizations.getSyncAuthorization",
9558	//   "parameterOrder": [
9559	//     "name"
9560	//   ],
9561	//   "parameters": {
9562	//     "name": {
9563	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
9564	//       "location": "path",
9565	//       "pattern": "^organizations/[^/]+$",
9566	//       "required": true,
9567	//       "type": "string"
9568	//     }
9569	//   },
9570	//   "path": "v1/{+name}:getSyncAuthorization",
9571	//   "request": {
9572	//     "$ref": "GoogleCloudApigeeV1GetSyncAuthorizationRequest"
9573	//   },
9574	//   "response": {
9575	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
9576	//   },
9577	//   "scopes": [
9578	//     "https://www.googleapis.com/auth/cloud-platform"
9579	//   ]
9580	// }
9581
9582}
9583
9584// method id "apigee.organizations.list":
9585
9586type OrganizationsListCall struct {
9587	s            *Service
9588	parent       string
9589	urlParams_   gensupport.URLParams
9590	ifNoneMatch_ string
9591	ctx_         context.Context
9592	header_      http.Header
9593}
9594
9595// List: Lists the Apigee organizations and associated GCP projects that
9596// you have permission to access. See Understanding organizations
9597// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
9598func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
9599	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9600	c.parent = parent
9601	return c
9602}
9603
9604// Fields allows partial responses to be retrieved. See
9605// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9606// for more information.
9607func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
9608	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9609	return c
9610}
9611
9612// IfNoneMatch sets the optional parameter which makes the operation
9613// fail if the object's ETag matches the given value. This is useful for
9614// getting updates only after the object has changed since the last
9615// request. Use googleapi.IsNotModified to check whether the response
9616// error from Do is the result of In-None-Match.
9617func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
9618	c.ifNoneMatch_ = entityTag
9619	return c
9620}
9621
9622// Context sets the context to be used in this call's Do method. Any
9623// pending HTTP request will be aborted if the provided context is
9624// canceled.
9625func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
9626	c.ctx_ = ctx
9627	return c
9628}
9629
9630// Header returns an http.Header that can be modified by the caller to
9631// add HTTP headers to the request.
9632func (c *OrganizationsListCall) Header() http.Header {
9633	if c.header_ == nil {
9634		c.header_ = make(http.Header)
9635	}
9636	return c.header_
9637}
9638
9639func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
9640	reqHeaders := make(http.Header)
9641	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9642	for k, v := range c.header_ {
9643		reqHeaders[k] = v
9644	}
9645	reqHeaders.Set("User-Agent", c.s.userAgent())
9646	if c.ifNoneMatch_ != "" {
9647		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9648	}
9649	var body io.Reader = nil
9650	c.urlParams_.Set("alt", alt)
9651	c.urlParams_.Set("prettyPrint", "false")
9652	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
9653	urls += "?" + c.urlParams_.Encode()
9654	req, err := http.NewRequest("GET", urls, body)
9655	if err != nil {
9656		return nil, err
9657	}
9658	req.Header = reqHeaders
9659	googleapi.Expand(req.URL, map[string]string{
9660		"parent": c.parent,
9661	})
9662	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9663}
9664
9665// Do executes the "apigee.organizations.list" call.
9666// Exactly one of *GoogleCloudApigeeV1ListOrganizationsResponse or error
9667// will be non-nil. Any non-2xx status code is an error. Response
9668// headers are in either
9669// *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header
9670// or (if a response was returned at all) in
9671// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9672// whether the returned error was because http.StatusNotModified was
9673// returned.
9674func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
9675	gensupport.SetOptions(c.urlParams_, opts...)
9676	res, err := c.doRequest("json")
9677	if res != nil && res.StatusCode == http.StatusNotModified {
9678		if res.Body != nil {
9679			res.Body.Close()
9680		}
9681		return nil, &googleapi.Error{
9682			Code:   res.StatusCode,
9683			Header: res.Header,
9684		}
9685	}
9686	if err != nil {
9687		return nil, err
9688	}
9689	defer googleapi.CloseBody(res)
9690	if err := googleapi.CheckResponse(res); err != nil {
9691		return nil, err
9692	}
9693	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
9694		ServerResponse: googleapi.ServerResponse{
9695			Header:         res.Header,
9696			HTTPStatusCode: res.StatusCode,
9697		},
9698	}
9699	target := &ret
9700	if err := gensupport.DecodeResponse(target, res); err != nil {
9701		return nil, err
9702	}
9703	return ret, nil
9704	// {
9705	//   "description": "Lists the Apigee organizations and associated GCP projects that you have permission to access. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).",
9706	//   "flatPath": "v1/organizations",
9707	//   "httpMethod": "GET",
9708	//   "id": "apigee.organizations.list",
9709	//   "parameterOrder": [
9710	//     "parent"
9711	//   ],
9712	//   "parameters": {
9713	//     "parent": {
9714	//       "description": "Required. Use the following structure in your request: `organizations`",
9715	//       "location": "path",
9716	//       "pattern": "^organizations$",
9717	//       "required": true,
9718	//       "type": "string"
9719	//     }
9720	//   },
9721	//   "path": "v1/{+parent}",
9722	//   "response": {
9723	//     "$ref": "GoogleCloudApigeeV1ListOrganizationsResponse"
9724	//   },
9725	//   "scopes": [
9726	//     "https://www.googleapis.com/auth/cloud-platform"
9727	//   ]
9728	// }
9729
9730}
9731
9732// method id "apigee.organizations.setSyncAuthorization":
9733
9734type OrganizationsSetSyncAuthorizationCall struct {
9735	s                                    *Service
9736	name                                 string
9737	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
9738	urlParams_                           gensupport.URLParams
9739	ctx_                                 context.Context
9740	header_                              http.Header
9741}
9742
9743// SetSyncAuthorization: Sets the permissions required to allow the
9744// Synchronizer to download environment data from the control plane. You
9745// must call this API to enable proper functioning of hybrid. Pass the
9746// ETag when calling `setSyncAuthorization` to ensure that you are
9747// updating the correct version. To get an ETag, call
9748// getSyncAuthorization (getSyncAuthorization). If you don't pass the
9749// ETag in the call to `setSyncAuthorization`, then the existing
9750// authorization is overwritten indiscriminately. For more information,
9751// see Configure the Synchronizer
9752// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
9753// **Note**: Available to Apigee hybrid only.
9754func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
9755	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9756	c.name = name
9757	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
9758	return c
9759}
9760
9761// Fields allows partial responses to be retrieved. See
9762// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9763// for more information.
9764func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
9765	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9766	return c
9767}
9768
9769// Context sets the context to be used in this call's Do method. Any
9770// pending HTTP request will be aborted if the provided context is
9771// canceled.
9772func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
9773	c.ctx_ = ctx
9774	return c
9775}
9776
9777// Header returns an http.Header that can be modified by the caller to
9778// add HTTP headers to the request.
9779func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
9780	if c.header_ == nil {
9781		c.header_ = make(http.Header)
9782	}
9783	return c.header_
9784}
9785
9786func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
9787	reqHeaders := make(http.Header)
9788	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9789	for k, v := range c.header_ {
9790		reqHeaders[k] = v
9791	}
9792	reqHeaders.Set("User-Agent", c.s.userAgent())
9793	var body io.Reader = nil
9794	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
9795	if err != nil {
9796		return nil, err
9797	}
9798	reqHeaders.Set("Content-Type", "application/json")
9799	c.urlParams_.Set("alt", alt)
9800	c.urlParams_.Set("prettyPrint", "false")
9801	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
9802	urls += "?" + c.urlParams_.Encode()
9803	req, err := http.NewRequest("POST", urls, body)
9804	if err != nil {
9805		return nil, err
9806	}
9807	req.Header = reqHeaders
9808	googleapi.Expand(req.URL, map[string]string{
9809		"name": c.name,
9810	})
9811	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9812}
9813
9814// Do executes the "apigee.organizations.setSyncAuthorization" call.
9815// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
9816// non-nil. Any non-2xx status code is an error. Response headers are in
9817// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
9818// (if a response was returned at all) in
9819// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9820// whether the returned error was because http.StatusNotModified was
9821// returned.
9822func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
9823	gensupport.SetOptions(c.urlParams_, opts...)
9824	res, err := c.doRequest("json")
9825	if res != nil && res.StatusCode == http.StatusNotModified {
9826		if res.Body != nil {
9827			res.Body.Close()
9828		}
9829		return nil, &googleapi.Error{
9830			Code:   res.StatusCode,
9831			Header: res.Header,
9832		}
9833	}
9834	if err != nil {
9835		return nil, err
9836	}
9837	defer googleapi.CloseBody(res)
9838	if err := googleapi.CheckResponse(res); err != nil {
9839		return nil, err
9840	}
9841	ret := &GoogleCloudApigeeV1SyncAuthorization{
9842		ServerResponse: googleapi.ServerResponse{
9843			Header:         res.Header,
9844			HTTPStatusCode: res.StatusCode,
9845		},
9846	}
9847	target := &ret
9848	if err := gensupport.DecodeResponse(target, res); err != nil {
9849		return nil, err
9850	}
9851	return ret, nil
9852	// {
9853	//   "description": "Sets the permissions required to allow the Synchronizer to download environment data from the control plane. You must call this API to enable proper functioning of hybrid. Pass the ETag when calling `setSyncAuthorization` to ensure that you are updating the correct version. To get an ETag, call [getSyncAuthorization](getSyncAuthorization). If you don't pass the ETag in the call to `setSyncAuthorization`, then the existing authorization is overwritten indiscriminately. For more information, see [Configure the Synchronizer](https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access). **Note**: Available to Apigee hybrid only.",
9854	//   "flatPath": "v1/organizations/{organizationsId}:setSyncAuthorization",
9855	//   "httpMethod": "POST",
9856	//   "id": "apigee.organizations.setSyncAuthorization",
9857	//   "parameterOrder": [
9858	//     "name"
9859	//   ],
9860	//   "parameters": {
9861	//     "name": {
9862	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
9863	//       "location": "path",
9864	//       "pattern": "^organizations/[^/]+$",
9865	//       "required": true,
9866	//       "type": "string"
9867	//     }
9868	//   },
9869	//   "path": "v1/{+name}:setSyncAuthorization",
9870	//   "request": {
9871	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
9872	//   },
9873	//   "response": {
9874	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
9875	//   },
9876	//   "scopes": [
9877	//     "https://www.googleapis.com/auth/cloud-platform"
9878	//   ]
9879	// }
9880
9881}
9882
9883// method id "apigee.organizations.update":
9884
9885type OrganizationsUpdateCall struct {
9886	s                               *Service
9887	name                            string
9888	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
9889	urlParams_                      gensupport.URLParams
9890	ctx_                            context.Context
9891	header_                         http.Header
9892}
9893
9894// Update: Updates the properties for an Apigee organization. No other
9895// fields in the organization profile will be updated.
9896func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
9897	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9898	c.name = name
9899	c.googlecloudapigeev1organization = googlecloudapigeev1organization
9900	return c
9901}
9902
9903// Fields allows partial responses to be retrieved. See
9904// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9905// for more information.
9906func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
9907	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9908	return c
9909}
9910
9911// Context sets the context to be used in this call's Do method. Any
9912// pending HTTP request will be aborted if the provided context is
9913// canceled.
9914func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
9915	c.ctx_ = ctx
9916	return c
9917}
9918
9919// Header returns an http.Header that can be modified by the caller to
9920// add HTTP headers to the request.
9921func (c *OrganizationsUpdateCall) Header() http.Header {
9922	if c.header_ == nil {
9923		c.header_ = make(http.Header)
9924	}
9925	return c.header_
9926}
9927
9928func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
9929	reqHeaders := make(http.Header)
9930	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
9931	for k, v := range c.header_ {
9932		reqHeaders[k] = v
9933	}
9934	reqHeaders.Set("User-Agent", c.s.userAgent())
9935	var body io.Reader = nil
9936	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
9937	if err != nil {
9938		return nil, err
9939	}
9940	reqHeaders.Set("Content-Type", "application/json")
9941	c.urlParams_.Set("alt", alt)
9942	c.urlParams_.Set("prettyPrint", "false")
9943	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9944	urls += "?" + c.urlParams_.Encode()
9945	req, err := http.NewRequest("PUT", urls, body)
9946	if err != nil {
9947		return nil, err
9948	}
9949	req.Header = reqHeaders
9950	googleapi.Expand(req.URL, map[string]string{
9951		"name": c.name,
9952	})
9953	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9954}
9955
9956// Do executes the "apigee.organizations.update" call.
9957// Exactly one of *GoogleCloudApigeeV1Organization or error will be
9958// non-nil. Any non-2xx status code is an error. Response headers are in
9959// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
9960// a response was returned at all) in error.(*googleapi.Error).Header.
9961// Use googleapi.IsNotModified to check whether the returned error was
9962// because http.StatusNotModified was returned.
9963func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
9964	gensupport.SetOptions(c.urlParams_, opts...)
9965	res, err := c.doRequest("json")
9966	if res != nil && res.StatusCode == http.StatusNotModified {
9967		if res.Body != nil {
9968			res.Body.Close()
9969		}
9970		return nil, &googleapi.Error{
9971			Code:   res.StatusCode,
9972			Header: res.Header,
9973		}
9974	}
9975	if err != nil {
9976		return nil, err
9977	}
9978	defer googleapi.CloseBody(res)
9979	if err := googleapi.CheckResponse(res); err != nil {
9980		return nil, err
9981	}
9982	ret := &GoogleCloudApigeeV1Organization{
9983		ServerResponse: googleapi.ServerResponse{
9984			Header:         res.Header,
9985			HTTPStatusCode: res.StatusCode,
9986		},
9987	}
9988	target := &ret
9989	if err := gensupport.DecodeResponse(target, res); err != nil {
9990		return nil, err
9991	}
9992	return ret, nil
9993	// {
9994	//   "description": "Updates the properties for an Apigee organization. No other fields in the organization profile will be updated.",
9995	//   "flatPath": "v1/organizations/{organizationsId}",
9996	//   "httpMethod": "PUT",
9997	//   "id": "apigee.organizations.update",
9998	//   "parameterOrder": [
9999	//     "name"
10000	//   ],
10001	//   "parameters": {
10002	//     "name": {
10003	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
10004	//       "location": "path",
10005	//       "pattern": "^organizations/[^/]+$",
10006	//       "required": true,
10007	//       "type": "string"
10008	//     }
10009	//   },
10010	//   "path": "v1/{+name}",
10011	//   "request": {
10012	//     "$ref": "GoogleCloudApigeeV1Organization"
10013	//   },
10014	//   "response": {
10015	//     "$ref": "GoogleCloudApigeeV1Organization"
10016	//   },
10017	//   "scopes": [
10018	//     "https://www.googleapis.com/auth/cloud-platform"
10019	//   ]
10020	// }
10021
10022}
10023
10024// method id "apigee.organizations.analytics.datastores.create":
10025
10026type OrganizationsAnalyticsDatastoresCreateCall struct {
10027	s                            *Service
10028	parent                       string
10029	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
10030	urlParams_                   gensupport.URLParams
10031	ctx_                         context.Context
10032	header_                      http.Header
10033}
10034
10035// Create: Create a Datastore for an org
10036func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
10037	c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10038	c.parent = parent
10039	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
10040	return c
10041}
10042
10043// Fields allows partial responses to be retrieved. See
10044// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10045// for more information.
10046func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
10047	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10048	return c
10049}
10050
10051// Context sets the context to be used in this call's Do method. Any
10052// pending HTTP request will be aborted if the provided context is
10053// canceled.
10054func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
10055	c.ctx_ = ctx
10056	return c
10057}
10058
10059// Header returns an http.Header that can be modified by the caller to
10060// add HTTP headers to the request.
10061func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
10062	if c.header_ == nil {
10063		c.header_ = make(http.Header)
10064	}
10065	return c.header_
10066}
10067
10068func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
10069	reqHeaders := make(http.Header)
10070	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10071	for k, v := range c.header_ {
10072		reqHeaders[k] = v
10073	}
10074	reqHeaders.Set("User-Agent", c.s.userAgent())
10075	var body io.Reader = nil
10076	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
10077	if err != nil {
10078		return nil, err
10079	}
10080	reqHeaders.Set("Content-Type", "application/json")
10081	c.urlParams_.Set("alt", alt)
10082	c.urlParams_.Set("prettyPrint", "false")
10083	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
10084	urls += "?" + c.urlParams_.Encode()
10085	req, err := http.NewRequest("POST", urls, body)
10086	if err != nil {
10087		return nil, err
10088	}
10089	req.Header = reqHeaders
10090	googleapi.Expand(req.URL, map[string]string{
10091		"parent": c.parent,
10092	})
10093	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10094}
10095
10096// Do executes the "apigee.organizations.analytics.datastores.create" call.
10097// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
10098// non-nil. Any non-2xx status code is an error. Response headers are in
10099// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
10100// response was returned at all) in error.(*googleapi.Error).Header. Use
10101// googleapi.IsNotModified to check whether the returned error was
10102// because http.StatusNotModified was returned.
10103func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
10104	gensupport.SetOptions(c.urlParams_, opts...)
10105	res, err := c.doRequest("json")
10106	if res != nil && res.StatusCode == http.StatusNotModified {
10107		if res.Body != nil {
10108			res.Body.Close()
10109		}
10110		return nil, &googleapi.Error{
10111			Code:   res.StatusCode,
10112			Header: res.Header,
10113		}
10114	}
10115	if err != nil {
10116		return nil, err
10117	}
10118	defer googleapi.CloseBody(res)
10119	if err := googleapi.CheckResponse(res); err != nil {
10120		return nil, err
10121	}
10122	ret := &GoogleCloudApigeeV1Datastore{
10123		ServerResponse: googleapi.ServerResponse{
10124			Header:         res.Header,
10125			HTTPStatusCode: res.StatusCode,
10126		},
10127	}
10128	target := &ret
10129	if err := gensupport.DecodeResponse(target, res); err != nil {
10130		return nil, err
10131	}
10132	return ret, nil
10133	// {
10134	//   "description": "Create a Datastore for an org",
10135	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
10136	//   "httpMethod": "POST",
10137	//   "id": "apigee.organizations.analytics.datastores.create",
10138	//   "parameterOrder": [
10139	//     "parent"
10140	//   ],
10141	//   "parameters": {
10142	//     "parent": {
10143	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
10144	//       "location": "path",
10145	//       "pattern": "^organizations/[^/]+$",
10146	//       "required": true,
10147	//       "type": "string"
10148	//     }
10149	//   },
10150	//   "path": "v1/{+parent}/analytics/datastores",
10151	//   "request": {
10152	//     "$ref": "GoogleCloudApigeeV1Datastore"
10153	//   },
10154	//   "response": {
10155	//     "$ref": "GoogleCloudApigeeV1Datastore"
10156	//   },
10157	//   "scopes": [
10158	//     "https://www.googleapis.com/auth/cloud-platform"
10159	//   ]
10160	// }
10161
10162}
10163
10164// method id "apigee.organizations.analytics.datastores.delete":
10165
10166type OrganizationsAnalyticsDatastoresDeleteCall struct {
10167	s          *Service
10168	name       string
10169	urlParams_ gensupport.URLParams
10170	ctx_       context.Context
10171	header_    http.Header
10172}
10173
10174// Delete: Delete a Datastore from an org.
10175func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
10176	c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10177	c.name = name
10178	return c
10179}
10180
10181// Fields allows partial responses to be retrieved. See
10182// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10183// for more information.
10184func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
10185	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10186	return c
10187}
10188
10189// Context sets the context to be used in this call's Do method. Any
10190// pending HTTP request will be aborted if the provided context is
10191// canceled.
10192func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
10193	c.ctx_ = ctx
10194	return c
10195}
10196
10197// Header returns an http.Header that can be modified by the caller to
10198// add HTTP headers to the request.
10199func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
10200	if c.header_ == nil {
10201		c.header_ = make(http.Header)
10202	}
10203	return c.header_
10204}
10205
10206func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
10207	reqHeaders := make(http.Header)
10208	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10209	for k, v := range c.header_ {
10210		reqHeaders[k] = v
10211	}
10212	reqHeaders.Set("User-Agent", c.s.userAgent())
10213	var body io.Reader = nil
10214	c.urlParams_.Set("alt", alt)
10215	c.urlParams_.Set("prettyPrint", "false")
10216	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10217	urls += "?" + c.urlParams_.Encode()
10218	req, err := http.NewRequest("DELETE", urls, body)
10219	if err != nil {
10220		return nil, err
10221	}
10222	req.Header = reqHeaders
10223	googleapi.Expand(req.URL, map[string]string{
10224		"name": c.name,
10225	})
10226	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10227}
10228
10229// Do executes the "apigee.organizations.analytics.datastores.delete" call.
10230// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
10231// non-2xx status code is an error. Response headers are in either
10232// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
10233// returned at all) in error.(*googleapi.Error).Header. Use
10234// googleapi.IsNotModified to check whether the returned error was
10235// because http.StatusNotModified was returned.
10236func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10237	gensupport.SetOptions(c.urlParams_, opts...)
10238	res, err := c.doRequest("json")
10239	if res != nil && res.StatusCode == http.StatusNotModified {
10240		if res.Body != nil {
10241			res.Body.Close()
10242		}
10243		return nil, &googleapi.Error{
10244			Code:   res.StatusCode,
10245			Header: res.Header,
10246		}
10247	}
10248	if err != nil {
10249		return nil, err
10250	}
10251	defer googleapi.CloseBody(res)
10252	if err := googleapi.CheckResponse(res); err != nil {
10253		return nil, err
10254	}
10255	ret := &GoogleProtobufEmpty{
10256		ServerResponse: googleapi.ServerResponse{
10257			Header:         res.Header,
10258			HTTPStatusCode: res.StatusCode,
10259		},
10260	}
10261	target := &ret
10262	if err := gensupport.DecodeResponse(target, res); err != nil {
10263		return nil, err
10264	}
10265	return ret, nil
10266	// {
10267	//   "description": "Delete a Datastore from an org.",
10268	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
10269	//   "httpMethod": "DELETE",
10270	//   "id": "apigee.organizations.analytics.datastores.delete",
10271	//   "parameterOrder": [
10272	//     "name"
10273	//   ],
10274	//   "parameters": {
10275	//     "name": {
10276	//       "description": "Required. Resource name of the Datastore to be deleted. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
10277	//       "location": "path",
10278	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
10279	//       "required": true,
10280	//       "type": "string"
10281	//     }
10282	//   },
10283	//   "path": "v1/{+name}",
10284	//   "response": {
10285	//     "$ref": "GoogleProtobufEmpty"
10286	//   },
10287	//   "scopes": [
10288	//     "https://www.googleapis.com/auth/cloud-platform"
10289	//   ]
10290	// }
10291
10292}
10293
10294// method id "apigee.organizations.analytics.datastores.get":
10295
10296type OrganizationsAnalyticsDatastoresGetCall struct {
10297	s            *Service
10298	name         string
10299	urlParams_   gensupport.URLParams
10300	ifNoneMatch_ string
10301	ctx_         context.Context
10302	header_      http.Header
10303}
10304
10305// Get: Get a Datastore
10306func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
10307	c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10308	c.name = name
10309	return c
10310}
10311
10312// Fields allows partial responses to be retrieved. See
10313// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10314// for more information.
10315func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
10316	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10317	return c
10318}
10319
10320// IfNoneMatch sets the optional parameter which makes the operation
10321// fail if the object's ETag matches the given value. This is useful for
10322// getting updates only after the object has changed since the last
10323// request. Use googleapi.IsNotModified to check whether the response
10324// error from Do is the result of In-None-Match.
10325func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
10326	c.ifNoneMatch_ = entityTag
10327	return c
10328}
10329
10330// Context sets the context to be used in this call's Do method. Any
10331// pending HTTP request will be aborted if the provided context is
10332// canceled.
10333func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
10334	c.ctx_ = ctx
10335	return c
10336}
10337
10338// Header returns an http.Header that can be modified by the caller to
10339// add HTTP headers to the request.
10340func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
10341	if c.header_ == nil {
10342		c.header_ = make(http.Header)
10343	}
10344	return c.header_
10345}
10346
10347func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
10348	reqHeaders := make(http.Header)
10349	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10350	for k, v := range c.header_ {
10351		reqHeaders[k] = v
10352	}
10353	reqHeaders.Set("User-Agent", c.s.userAgent())
10354	if c.ifNoneMatch_ != "" {
10355		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10356	}
10357	var body io.Reader = nil
10358	c.urlParams_.Set("alt", alt)
10359	c.urlParams_.Set("prettyPrint", "false")
10360	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10361	urls += "?" + c.urlParams_.Encode()
10362	req, err := http.NewRequest("GET", urls, body)
10363	if err != nil {
10364		return nil, err
10365	}
10366	req.Header = reqHeaders
10367	googleapi.Expand(req.URL, map[string]string{
10368		"name": c.name,
10369	})
10370	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10371}
10372
10373// Do executes the "apigee.organizations.analytics.datastores.get" call.
10374// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
10375// non-nil. Any non-2xx status code is an error. Response headers are in
10376// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
10377// response was returned at all) in error.(*googleapi.Error).Header. Use
10378// googleapi.IsNotModified to check whether the returned error was
10379// because http.StatusNotModified was returned.
10380func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
10381	gensupport.SetOptions(c.urlParams_, opts...)
10382	res, err := c.doRequest("json")
10383	if res != nil && res.StatusCode == http.StatusNotModified {
10384		if res.Body != nil {
10385			res.Body.Close()
10386		}
10387		return nil, &googleapi.Error{
10388			Code:   res.StatusCode,
10389			Header: res.Header,
10390		}
10391	}
10392	if err != nil {
10393		return nil, err
10394	}
10395	defer googleapi.CloseBody(res)
10396	if err := googleapi.CheckResponse(res); err != nil {
10397		return nil, err
10398	}
10399	ret := &GoogleCloudApigeeV1Datastore{
10400		ServerResponse: googleapi.ServerResponse{
10401			Header:         res.Header,
10402			HTTPStatusCode: res.StatusCode,
10403		},
10404	}
10405	target := &ret
10406	if err := gensupport.DecodeResponse(target, res); err != nil {
10407		return nil, err
10408	}
10409	return ret, nil
10410	// {
10411	//   "description": "Get a Datastore",
10412	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
10413	//   "httpMethod": "GET",
10414	//   "id": "apigee.organizations.analytics.datastores.get",
10415	//   "parameterOrder": [
10416	//     "name"
10417	//   ],
10418	//   "parameters": {
10419	//     "name": {
10420	//       "description": "Required. Resource name of the Datastore to be get. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
10421	//       "location": "path",
10422	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
10423	//       "required": true,
10424	//       "type": "string"
10425	//     }
10426	//   },
10427	//   "path": "v1/{+name}",
10428	//   "response": {
10429	//     "$ref": "GoogleCloudApigeeV1Datastore"
10430	//   },
10431	//   "scopes": [
10432	//     "https://www.googleapis.com/auth/cloud-platform"
10433	//   ]
10434	// }
10435
10436}
10437
10438// method id "apigee.organizations.analytics.datastores.list":
10439
10440type OrganizationsAnalyticsDatastoresListCall struct {
10441	s            *Service
10442	parent       string
10443	urlParams_   gensupport.URLParams
10444	ifNoneMatch_ string
10445	ctx_         context.Context
10446	header_      http.Header
10447}
10448
10449// List: List Datastores
10450func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
10451	c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10452	c.parent = parent
10453	return c
10454}
10455
10456// TargetType sets the optional parameter "targetType": TargetType is
10457// used to fetch all Datastores that match the type
10458func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
10459	c.urlParams_.Set("targetType", targetType)
10460	return c
10461}
10462
10463// Fields allows partial responses to be retrieved. See
10464// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10465// for more information.
10466func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
10467	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10468	return c
10469}
10470
10471// IfNoneMatch sets the optional parameter which makes the operation
10472// fail if the object's ETag matches the given value. This is useful for
10473// getting updates only after the object has changed since the last
10474// request. Use googleapi.IsNotModified to check whether the response
10475// error from Do is the result of In-None-Match.
10476func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
10477	c.ifNoneMatch_ = entityTag
10478	return c
10479}
10480
10481// Context sets the context to be used in this call's Do method. Any
10482// pending HTTP request will be aborted if the provided context is
10483// canceled.
10484func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
10485	c.ctx_ = ctx
10486	return c
10487}
10488
10489// Header returns an http.Header that can be modified by the caller to
10490// add HTTP headers to the request.
10491func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
10492	if c.header_ == nil {
10493		c.header_ = make(http.Header)
10494	}
10495	return c.header_
10496}
10497
10498func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
10499	reqHeaders := make(http.Header)
10500	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10501	for k, v := range c.header_ {
10502		reqHeaders[k] = v
10503	}
10504	reqHeaders.Set("User-Agent", c.s.userAgent())
10505	if c.ifNoneMatch_ != "" {
10506		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10507	}
10508	var body io.Reader = nil
10509	c.urlParams_.Set("alt", alt)
10510	c.urlParams_.Set("prettyPrint", "false")
10511	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
10512	urls += "?" + c.urlParams_.Encode()
10513	req, err := http.NewRequest("GET", urls, body)
10514	if err != nil {
10515		return nil, err
10516	}
10517	req.Header = reqHeaders
10518	googleapi.Expand(req.URL, map[string]string{
10519		"parent": c.parent,
10520	})
10521	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10522}
10523
10524// Do executes the "apigee.organizations.analytics.datastores.list" call.
10525// Exactly one of *GoogleCloudApigeeV1ListDatastoresResponse or error
10526// will be non-nil. Any non-2xx status code is an error. Response
10527// headers are in either
10528// *GoogleCloudApigeeV1ListDatastoresResponse.ServerResponse.Header or
10529// (if a response was returned at all) in
10530// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10531// whether the returned error was because http.StatusNotModified was
10532// returned.
10533func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
10534	gensupport.SetOptions(c.urlParams_, opts...)
10535	res, err := c.doRequest("json")
10536	if res != nil && res.StatusCode == http.StatusNotModified {
10537		if res.Body != nil {
10538			res.Body.Close()
10539		}
10540		return nil, &googleapi.Error{
10541			Code:   res.StatusCode,
10542			Header: res.Header,
10543		}
10544	}
10545	if err != nil {
10546		return nil, err
10547	}
10548	defer googleapi.CloseBody(res)
10549	if err := googleapi.CheckResponse(res); err != nil {
10550		return nil, err
10551	}
10552	ret := &GoogleCloudApigeeV1ListDatastoresResponse{
10553		ServerResponse: googleapi.ServerResponse{
10554			Header:         res.Header,
10555			HTTPStatusCode: res.StatusCode,
10556		},
10557	}
10558	target := &ret
10559	if err := gensupport.DecodeResponse(target, res); err != nil {
10560		return nil, err
10561	}
10562	return ret, nil
10563	// {
10564	//   "description": "List Datastores",
10565	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
10566	//   "httpMethod": "GET",
10567	//   "id": "apigee.organizations.analytics.datastores.list",
10568	//   "parameterOrder": [
10569	//     "parent"
10570	//   ],
10571	//   "parameters": {
10572	//     "parent": {
10573	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
10574	//       "location": "path",
10575	//       "pattern": "^organizations/[^/]+$",
10576	//       "required": true,
10577	//       "type": "string"
10578	//     },
10579	//     "targetType": {
10580	//       "description": "Optional. TargetType is used to fetch all Datastores that match the type",
10581	//       "location": "query",
10582	//       "type": "string"
10583	//     }
10584	//   },
10585	//   "path": "v1/{+parent}/analytics/datastores",
10586	//   "response": {
10587	//     "$ref": "GoogleCloudApigeeV1ListDatastoresResponse"
10588	//   },
10589	//   "scopes": [
10590	//     "https://www.googleapis.com/auth/cloud-platform"
10591	//   ]
10592	// }
10593
10594}
10595
10596// method id "apigee.organizations.analytics.datastores.test":
10597
10598type OrganizationsAnalyticsDatastoresTestCall struct {
10599	s                            *Service
10600	parent                       string
10601	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
10602	urlParams_                   gensupport.URLParams
10603	ctx_                         context.Context
10604	header_                      http.Header
10605}
10606
10607// Test: Test if Datastore configuration is correct. This includes
10608// checking if credentials provided by customer have required
10609// permissions in target destination storage
10610func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
10611	c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10612	c.parent = parent
10613	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
10614	return c
10615}
10616
10617// Fields allows partial responses to be retrieved. See
10618// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10619// for more information.
10620func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
10621	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10622	return c
10623}
10624
10625// Context sets the context to be used in this call's Do method. Any
10626// pending HTTP request will be aborted if the provided context is
10627// canceled.
10628func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
10629	c.ctx_ = ctx
10630	return c
10631}
10632
10633// Header returns an http.Header that can be modified by the caller to
10634// add HTTP headers to the request.
10635func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
10636	if c.header_ == nil {
10637		c.header_ = make(http.Header)
10638	}
10639	return c.header_
10640}
10641
10642func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
10643	reqHeaders := make(http.Header)
10644	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10645	for k, v := range c.header_ {
10646		reqHeaders[k] = v
10647	}
10648	reqHeaders.Set("User-Agent", c.s.userAgent())
10649	var body io.Reader = nil
10650	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
10651	if err != nil {
10652		return nil, err
10653	}
10654	reqHeaders.Set("Content-Type", "application/json")
10655	c.urlParams_.Set("alt", alt)
10656	c.urlParams_.Set("prettyPrint", "false")
10657	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
10658	urls += "?" + c.urlParams_.Encode()
10659	req, err := http.NewRequest("POST", urls, body)
10660	if err != nil {
10661		return nil, err
10662	}
10663	req.Header = reqHeaders
10664	googleapi.Expand(req.URL, map[string]string{
10665		"parent": c.parent,
10666	})
10667	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10668}
10669
10670// Do executes the "apigee.organizations.analytics.datastores.test" call.
10671// Exactly one of *GoogleCloudApigeeV1TestDatastoreResponse or error
10672// will be non-nil. Any non-2xx status code is an error. Response
10673// headers are in either
10674// *GoogleCloudApigeeV1TestDatastoreResponse.ServerResponse.Header or
10675// (if a response was returned at all) in
10676// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10677// whether the returned error was because http.StatusNotModified was
10678// returned.
10679func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
10680	gensupport.SetOptions(c.urlParams_, opts...)
10681	res, err := c.doRequest("json")
10682	if res != nil && res.StatusCode == http.StatusNotModified {
10683		if res.Body != nil {
10684			res.Body.Close()
10685		}
10686		return nil, &googleapi.Error{
10687			Code:   res.StatusCode,
10688			Header: res.Header,
10689		}
10690	}
10691	if err != nil {
10692		return nil, err
10693	}
10694	defer googleapi.CloseBody(res)
10695	if err := googleapi.CheckResponse(res); err != nil {
10696		return nil, err
10697	}
10698	ret := &GoogleCloudApigeeV1TestDatastoreResponse{
10699		ServerResponse: googleapi.ServerResponse{
10700			Header:         res.Header,
10701			HTTPStatusCode: res.StatusCode,
10702		},
10703	}
10704	target := &ret
10705	if err := gensupport.DecodeResponse(target, res); err != nil {
10706		return nil, err
10707	}
10708	return ret, nil
10709	// {
10710	//   "description": "Test if Datastore configuration is correct. This includes checking if credentials provided by customer have required permissions in target destination storage",
10711	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores:test",
10712	//   "httpMethod": "POST",
10713	//   "id": "apigee.organizations.analytics.datastores.test",
10714	//   "parameterOrder": [
10715	//     "parent"
10716	//   ],
10717	//   "parameters": {
10718	//     "parent": {
10719	//       "description": "Required. The parent organization name Must be of the form `organizations/{org}`",
10720	//       "location": "path",
10721	//       "pattern": "^organizations/[^/]+$",
10722	//       "required": true,
10723	//       "type": "string"
10724	//     }
10725	//   },
10726	//   "path": "v1/{+parent}/analytics/datastores:test",
10727	//   "request": {
10728	//     "$ref": "GoogleCloudApigeeV1Datastore"
10729	//   },
10730	//   "response": {
10731	//     "$ref": "GoogleCloudApigeeV1TestDatastoreResponse"
10732	//   },
10733	//   "scopes": [
10734	//     "https://www.googleapis.com/auth/cloud-platform"
10735	//   ]
10736	// }
10737
10738}
10739
10740// method id "apigee.organizations.analytics.datastores.update":
10741
10742type OrganizationsAnalyticsDatastoresUpdateCall struct {
10743	s                            *Service
10744	name                         string
10745	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
10746	urlParams_                   gensupport.URLParams
10747	ctx_                         context.Context
10748	header_                      http.Header
10749}
10750
10751// Update: Update a Datastore
10752func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
10753	c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10754	c.name = name
10755	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
10756	return c
10757}
10758
10759// Fields allows partial responses to be retrieved. See
10760// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10761// for more information.
10762func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
10763	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10764	return c
10765}
10766
10767// Context sets the context to be used in this call's Do method. Any
10768// pending HTTP request will be aborted if the provided context is
10769// canceled.
10770func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
10771	c.ctx_ = ctx
10772	return c
10773}
10774
10775// Header returns an http.Header that can be modified by the caller to
10776// add HTTP headers to the request.
10777func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
10778	if c.header_ == nil {
10779		c.header_ = make(http.Header)
10780	}
10781	return c.header_
10782}
10783
10784func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
10785	reqHeaders := make(http.Header)
10786	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10787	for k, v := range c.header_ {
10788		reqHeaders[k] = v
10789	}
10790	reqHeaders.Set("User-Agent", c.s.userAgent())
10791	var body io.Reader = nil
10792	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
10793	if err != nil {
10794		return nil, err
10795	}
10796	reqHeaders.Set("Content-Type", "application/json")
10797	c.urlParams_.Set("alt", alt)
10798	c.urlParams_.Set("prettyPrint", "false")
10799	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10800	urls += "?" + c.urlParams_.Encode()
10801	req, err := http.NewRequest("PUT", urls, body)
10802	if err != nil {
10803		return nil, err
10804	}
10805	req.Header = reqHeaders
10806	googleapi.Expand(req.URL, map[string]string{
10807		"name": c.name,
10808	})
10809	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10810}
10811
10812// Do executes the "apigee.organizations.analytics.datastores.update" call.
10813// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
10814// non-nil. Any non-2xx status code is an error. Response headers are in
10815// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
10816// response was returned at all) in error.(*googleapi.Error).Header. Use
10817// googleapi.IsNotModified to check whether the returned error was
10818// because http.StatusNotModified was returned.
10819func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
10820	gensupport.SetOptions(c.urlParams_, opts...)
10821	res, err := c.doRequest("json")
10822	if res != nil && res.StatusCode == http.StatusNotModified {
10823		if res.Body != nil {
10824			res.Body.Close()
10825		}
10826		return nil, &googleapi.Error{
10827			Code:   res.StatusCode,
10828			Header: res.Header,
10829		}
10830	}
10831	if err != nil {
10832		return nil, err
10833	}
10834	defer googleapi.CloseBody(res)
10835	if err := googleapi.CheckResponse(res); err != nil {
10836		return nil, err
10837	}
10838	ret := &GoogleCloudApigeeV1Datastore{
10839		ServerResponse: googleapi.ServerResponse{
10840			Header:         res.Header,
10841			HTTPStatusCode: res.StatusCode,
10842		},
10843	}
10844	target := &ret
10845	if err := gensupport.DecodeResponse(target, res); err != nil {
10846		return nil, err
10847	}
10848	return ret, nil
10849	// {
10850	//   "description": "Update a Datastore",
10851	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
10852	//   "httpMethod": "PUT",
10853	//   "id": "apigee.organizations.analytics.datastores.update",
10854	//   "parameterOrder": [
10855	//     "name"
10856	//   ],
10857	//   "parameters": {
10858	//     "name": {
10859	//       "description": "Required. The resource name of datastore to be updated. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
10860	//       "location": "path",
10861	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
10862	//       "required": true,
10863	//       "type": "string"
10864	//     }
10865	//   },
10866	//   "path": "v1/{+name}",
10867	//   "request": {
10868	//     "$ref": "GoogleCloudApigeeV1Datastore"
10869	//   },
10870	//   "response": {
10871	//     "$ref": "GoogleCloudApigeeV1Datastore"
10872	//   },
10873	//   "scopes": [
10874	//     "https://www.googleapis.com/auth/cloud-platform"
10875	//   ]
10876	// }
10877
10878}
10879
10880// method id "apigee.organizations.apiproducts.attributes":
10881
10882type OrganizationsApiproductsAttributesCall struct {
10883	s                             *Service
10884	name                          string
10885	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
10886	urlParams_                    gensupport.URLParams
10887	ctx_                          context.Context
10888	header_                       http.Header
10889}
10890
10891// Attributes: Updates or creates API product attributes. This API
10892// **replaces** the current list of attributes with the attributes
10893// specified in the request body. In this way, you can update existing
10894// attributes, add new attributes, or delete existing attributes by
10895// omitting them from the request body. **Note**: OAuth access tokens
10896// and Key Management Service (KMS) entities (apps, developers, and API
10897// products) are cached for 180 seconds (current default). Any custom
10898// attributes associated with entities also get cached for at least 180
10899// seconds after entity is accessed during runtime. In this case, the
10900// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
10901// access token in less than 180 seconds.
10902func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
10903	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10904	c.name = name
10905	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
10906	return c
10907}
10908
10909// Fields allows partial responses to be retrieved. See
10910// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10911// for more information.
10912func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
10913	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10914	return c
10915}
10916
10917// Context sets the context to be used in this call's Do method. Any
10918// pending HTTP request will be aborted if the provided context is
10919// canceled.
10920func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
10921	c.ctx_ = ctx
10922	return c
10923}
10924
10925// Header returns an http.Header that can be modified by the caller to
10926// add HTTP headers to the request.
10927func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
10928	if c.header_ == nil {
10929		c.header_ = make(http.Header)
10930	}
10931	return c.header_
10932}
10933
10934func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
10935	reqHeaders := make(http.Header)
10936	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
10937	for k, v := range c.header_ {
10938		reqHeaders[k] = v
10939	}
10940	reqHeaders.Set("User-Agent", c.s.userAgent())
10941	var body io.Reader = nil
10942	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
10943	if err != nil {
10944		return nil, err
10945	}
10946	reqHeaders.Set("Content-Type", "application/json")
10947	c.urlParams_.Set("alt", alt)
10948	c.urlParams_.Set("prettyPrint", "false")
10949	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
10950	urls += "?" + c.urlParams_.Encode()
10951	req, err := http.NewRequest("POST", urls, body)
10952	if err != nil {
10953		return nil, err
10954	}
10955	req.Header = reqHeaders
10956	googleapi.Expand(req.URL, map[string]string{
10957		"name": c.name,
10958	})
10959	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10960}
10961
10962// Do executes the "apigee.organizations.apiproducts.attributes" call.
10963// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
10964// non-nil. Any non-2xx status code is an error. Response headers are in
10965// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
10966// response was returned at all) in error.(*googleapi.Error).Header. Use
10967// googleapi.IsNotModified to check whether the returned error was
10968// because http.StatusNotModified was returned.
10969func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
10970	gensupport.SetOptions(c.urlParams_, opts...)
10971	res, err := c.doRequest("json")
10972	if res != nil && res.StatusCode == http.StatusNotModified {
10973		if res.Body != nil {
10974			res.Body.Close()
10975		}
10976		return nil, &googleapi.Error{
10977			Code:   res.StatusCode,
10978			Header: res.Header,
10979		}
10980	}
10981	if err != nil {
10982		return nil, err
10983	}
10984	defer googleapi.CloseBody(res)
10985	if err := googleapi.CheckResponse(res); err != nil {
10986		return nil, err
10987	}
10988	ret := &GoogleCloudApigeeV1Attributes{
10989		ServerResponse: googleapi.ServerResponse{
10990			Header:         res.Header,
10991			HTTPStatusCode: res.StatusCode,
10992		},
10993	}
10994	target := &ret
10995	if err := gensupport.DecodeResponse(target, res); err != nil {
10996		return nil, err
10997	}
10998	return ret, nil
10999	// {
11000	//   "description": "Updates or creates API product attributes. This API **replaces** the current list of attributes with the attributes specified in the request body. In this way, you can update existing attributes, add new attributes, or delete existing attributes by omitting them from the request body. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.",
11001	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
11002	//   "httpMethod": "POST",
11003	//   "id": "apigee.organizations.apiproducts.attributes",
11004	//   "parameterOrder": [
11005	//     "name"
11006	//   ],
11007	//   "parameters": {
11008	//     "name": {
11009	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
11010	//       "location": "path",
11011	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
11012	//       "required": true,
11013	//       "type": "string"
11014	//     }
11015	//   },
11016	//   "path": "v1/{+name}/attributes",
11017	//   "request": {
11018	//     "$ref": "GoogleCloudApigeeV1Attributes"
11019	//   },
11020	//   "response": {
11021	//     "$ref": "GoogleCloudApigeeV1Attributes"
11022	//   },
11023	//   "scopes": [
11024	//     "https://www.googleapis.com/auth/cloud-platform"
11025	//   ]
11026	// }
11027
11028}
11029
11030// method id "apigee.organizations.apiproducts.create":
11031
11032type OrganizationsApiproductsCreateCall struct {
11033	s                             *Service
11034	parent                        string
11035	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
11036	urlParams_                    gensupport.URLParams
11037	ctx_                          context.Context
11038	header_                       http.Header
11039}
11040
11041// Create: Creates an API product in an organization. You create API
11042// products after you have proxied backend services using API proxies.
11043// An API product is a collection of API resources combined with quota
11044// settings and metadata that you can use to deliver customized and
11045// productized API bundles to your developer community. This metadata
11046// can include: - Scope - Environments - API proxies - Extensible
11047// profile API products enable you repackage APIs on-the-fly, without
11048// having to do any additional coding or configuration. Apigee
11049// recommends that you start with a simple API product including only
11050// required elements. You then provision credentials to apps to enable
11051// them to start testing your APIs. After you have authentication and
11052// authorization working against a simple API product, you can iterate
11053// to create finer grained API products, defining different sets of API
11054// resources for each API product. **WARNING:** - If you don't specify
11055// an API proxy in the request body, *any* app associated with the
11056// product can make calls to *any* API in your entire organization. - If
11057// you don't specify an environment in the request body, the product
11058// allows access to all environments. For more information, see What is
11059// an API product?
11060func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
11061	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11062	c.parent = parent
11063	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
11064	return c
11065}
11066
11067// Fields allows partial responses to be retrieved. See
11068// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11069// for more information.
11070func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
11071	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11072	return c
11073}
11074
11075// Context sets the context to be used in this call's Do method. Any
11076// pending HTTP request will be aborted if the provided context is
11077// canceled.
11078func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
11079	c.ctx_ = ctx
11080	return c
11081}
11082
11083// Header returns an http.Header that can be modified by the caller to
11084// add HTTP headers to the request.
11085func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
11086	if c.header_ == nil {
11087		c.header_ = make(http.Header)
11088	}
11089	return c.header_
11090}
11091
11092func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
11093	reqHeaders := make(http.Header)
11094	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
11095	for k, v := range c.header_ {
11096		reqHeaders[k] = v
11097	}
11098	reqHeaders.Set("User-Agent", c.s.userAgent())
11099	var body io.Reader = nil
11100	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
11101	if err != nil {
11102		return nil, err
11103	}
11104	reqHeaders.Set("Content-Type", "application/json")
11105	c.urlParams_.Set("alt", alt)
11106	c.urlParams_.Set("prettyPrint", "false")
11107	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
11108	urls += "?" + c.urlParams_.Encode()
11109	req, err := http.NewRequest("POST", urls, body)
11110	if err != nil {
11111		return nil, err
11112	}
11113	req.Header = reqHeaders
11114	googleapi.Expand(req.URL, map[string]string{
11115		"parent": c.parent,
11116	})
11117	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11118}
11119
11120// Do executes the "apigee.organizations.apiproducts.create" call.
11121// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
11122// non-nil. Any non-2xx status code is an error. Response headers are in
11123// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
11124// response was returned at all) in error.(*googleapi.Error).Header. Use
11125// googleapi.IsNotModified to check whether the returned error was
11126// because http.StatusNotModified was returned.
11127func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
11128	gensupport.SetOptions(c.urlParams_, opts...)
11129	res, err := c.doRequest("json")
11130	if res != nil && res.StatusCode == http.StatusNotModified {
11131		if res.Body != nil {
11132			res.Body.Close()
11133		}
11134		return nil, &googleapi.Error{
11135			Code:   res.StatusCode,
11136			Header: res.Header,
11137		}
11138	}
11139	if err != nil {
11140		return nil, err
11141	}
11142	defer googleapi.CloseBody(res)
11143	if err := googleapi.CheckResponse(res); err != nil {
11144		return nil, err
11145	}
11146	ret := &GoogleCloudApigeeV1ApiProduct{
11147		ServerResponse: googleapi.ServerResponse{
11148			Header:         res.Header,
11149			HTTPStatusCode: res.StatusCode,
11150		},
11151	}
11152	target := &ret
11153	if err := gensupport.DecodeResponse(target, res); err != nil {
11154		return nil, err
11155	}
11156	return ret, nil
11157	// {
11158	//   "description": "Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on-the-fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer grained API products, defining different sets of API resources for each API product. **WARNING:** - If you don't specify an API proxy in the request body, *any* app associated with the product can make calls to *any* API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see What is an API product?",
11159	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
11160	//   "httpMethod": "POST",
11161	//   "id": "apigee.organizations.apiproducts.create",
11162	//   "parameterOrder": [
11163	//     "parent"
11164	//   ],
11165	//   "parameters": {
11166	//     "parent": {
11167	//       "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`",
11168	//       "location": "path",
11169	//       "pattern": "^organizations/[^/]+$",
11170	//       "required": true,
11171	//       "type": "string"
11172	//     }
11173	//   },
11174	//   "path": "v1/{+parent}/apiproducts",
11175	//   "request": {
11176	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
11177	//   },
11178	//   "response": {
11179	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
11180	//   },
11181	//   "scopes": [
11182	//     "https://www.googleapis.com/auth/cloud-platform"
11183	//   ]
11184	// }
11185
11186}
11187
11188// method id "apigee.organizations.apiproducts.delete":
11189
11190type OrganizationsApiproductsDeleteCall struct {
11191	s          *Service
11192	name       string
11193	urlParams_ gensupport.URLParams
11194	ctx_       context.Context
11195	header_    http.Header
11196}
11197
11198// Delete: Deletes an API product from an organization. Deleting an API
11199// product causes app requests to the resource URIs defined in the API
11200// product to fail. Ensure that you create a new API product to serve
11201// existing apps, unless your intention is to disable access to the
11202// resources defined in the API product. The API product name required
11203// in the request URL is the internal name of the product, not the
11204// display name. While they may be the same, it depends on whether the
11205// API product was created via the UI or the API. View the list of API
11206// products to verify the internal name.
11207func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
11208	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11209	c.name = name
11210	return c
11211}
11212
11213// Fields allows partial responses to be retrieved. See
11214// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11215// for more information.
11216func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
11217	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11218	return c
11219}
11220
11221// Context sets the context to be used in this call's Do method. Any
11222// pending HTTP request will be aborted if the provided context is
11223// canceled.
11224func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
11225	c.ctx_ = ctx
11226	return c
11227}
11228
11229// Header returns an http.Header that can be modified by the caller to
11230// add HTTP headers to the request.
11231func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
11232	if c.header_ == nil {
11233		c.header_ = make(http.Header)
11234	}
11235	return c.header_
11236}
11237
11238func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
11239	reqHeaders := make(http.Header)
11240	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
11241	for k, v := range c.header_ {
11242		reqHeaders[k] = v
11243	}
11244	reqHeaders.Set("User-Agent", c.s.userAgent())
11245	var body io.Reader = nil
11246	c.urlParams_.Set("alt", alt)
11247	c.urlParams_.Set("prettyPrint", "false")
11248	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11249	urls += "?" + c.urlParams_.Encode()
11250	req, err := http.NewRequest("DELETE", urls, body)
11251	if err != nil {
11252		return nil, err
11253	}
11254	req.Header = reqHeaders
11255	googleapi.Expand(req.URL, map[string]string{
11256		"name": c.name,
11257	})
11258	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11259}
11260
11261// Do executes the "apigee.organizations.apiproducts.delete" call.
11262// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
11263// non-nil. Any non-2xx status code is an error. Response headers are in
11264// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
11265// response was returned at all) in error.(*googleapi.Error).Header. Use
11266// googleapi.IsNotModified to check whether the returned error was
11267// because http.StatusNotModified was returned.
11268func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
11269	gensupport.SetOptions(c.urlParams_, opts...)
11270	res, err := c.doRequest("json")
11271	if res != nil && res.StatusCode == http.StatusNotModified {
11272		if res.Body != nil {
11273			res.Body.Close()
11274		}
11275		return nil, &googleapi.Error{
11276			Code:   res.StatusCode,
11277			Header: res.Header,
11278		}
11279	}
11280	if err != nil {
11281		return nil, err
11282	}
11283	defer googleapi.CloseBody(res)
11284	if err := googleapi.CheckResponse(res); err != nil {
11285		return nil, err
11286	}
11287	ret := &GoogleCloudApigeeV1ApiProduct{
11288		ServerResponse: googleapi.ServerResponse{
11289			Header:         res.Header,
11290			HTTPStatusCode: res.StatusCode,
11291		},
11292	}
11293	target := &ret
11294	if err := gensupport.DecodeResponse(target, res); err != nil {
11295		return nil, err
11296	}
11297	return ret, nil
11298	// {
11299	//   "description": "Deletes an API product from an organization. Deleting an API product causes app requests to the resource URIs defined in the API product to fail. Ensure that you create a new API product to serve existing apps, unless your intention is to disable access to the resources defined in the API product. The API product name required in the request URL is the internal name of the product, not the display name. While they may be the same, it depends on whether the API product was created via the UI or the API. View the list of API products to verify the internal name.",
11300	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
11301	//   "httpMethod": "DELETE",
11302	//   "id": "apigee.organizations.apiproducts.delete",
11303	//   "parameterOrder": [
11304	//     "name"
11305	//   ],
11306	//   "parameters": {
11307	//     "name": {
11308	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
11309	//       "location": "path",
11310	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
11311	//       "required": true,
11312	//       "type": "string"
11313	//     }
11314	//   },
11315	//   "path": "v1/{+name}",
11316	//   "response": {
11317	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
11318	//   },
11319	//   "scopes": [
11320	//     "https://www.googleapis.com/auth/cloud-platform"
11321	//   ]
11322	// }
11323
11324}
11325
11326// method id "apigee.organizations.apiproducts.get":
11327
11328type OrganizationsApiproductsGetCall struct {
11329	s            *Service
11330	name         string
11331	urlParams_   gensupport.URLParams
11332	ifNoneMatch_ string
11333	ctx_         context.Context
11334	header_      http.Header
11335}
11336
11337// Get: Gets configuration details for an API product. The API product
11338// name required in the request URL is the internal name of the product,
11339// not the display name. While they may be the same, it depends on
11340// whether the API product was created via the UI or the API. View the
11341// list of API products to verify the internal name.
11342func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
11343	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11344	c.name = name
11345	return c
11346}
11347
11348// Fields allows partial responses to be retrieved. See
11349// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11350// for more information.
11351func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
11352	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11353	return c
11354}
11355
11356// IfNoneMatch sets the optional parameter which makes the operation
11357// fail if the object's ETag matches the given value. This is useful for
11358// getting updates only after the object has changed since the last
11359// request. Use googleapi.IsNotModified to check whether the response
11360// error from Do is the result of In-None-Match.
11361func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
11362	c.ifNoneMatch_ = entityTag
11363	return c
11364}
11365
11366// Context sets the context to be used in this call's Do method. Any
11367// pending HTTP request will be aborted if the provided context is
11368// canceled.
11369func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
11370	c.ctx_ = ctx
11371	return c
11372}
11373
11374// Header returns an http.Header that can be modified by the caller to
11375// add HTTP headers to the request.
11376func (c *OrganizationsApiproductsGetCall) Header() http.Header {
11377	if c.header_ == nil {
11378		c.header_ = make(http.Header)
11379	}
11380	return c.header_
11381}
11382
11383func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
11384	reqHeaders := make(http.Header)
11385	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
11386	for k, v := range c.header_ {
11387		reqHeaders[k] = v
11388	}
11389	reqHeaders.Set("User-Agent", c.s.userAgent())
11390	if c.ifNoneMatch_ != "" {
11391		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11392	}
11393	var body io.Reader = nil
11394	c.urlParams_.Set("alt", alt)
11395	c.urlParams_.Set("prettyPrint", "false")
11396	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11397	urls += "?" + c.urlParams_.Encode()
11398	req, err := http.NewRequest("GET", urls, body)
11399	if err != nil {
11400		return nil, err
11401	}
11402	req.Header = reqHeaders
11403	googleapi.Expand(req.URL, map[string]string{
11404		"name": c.name,
11405	})
11406	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11407}
11408
11409// Do executes the "apigee.organizations.apiproducts.get" call.
11410// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
11411// non-nil. Any non-2xx status code is an error. Response headers are in
11412// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
11413// response was returned at all) in error.(*googleapi.Error).Header. Use
11414// googleapi.IsNotModified to check whether the returned error was
11415// because http.StatusNotModified was returned.
11416func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
11417	gensupport.SetOptions(c.urlParams_, opts...)
11418	res, err := c.doRequest("json")
11419	if res != nil && res.StatusCode == http.StatusNotModified {
11420		if res.Body != nil {
11421			res.Body.Close()
11422		}
11423		return nil, &googleapi.Error{
11424			Code:   res.StatusCode,
11425			Header: res.Header,
11426		}
11427	}
11428	if err != nil {
11429		return nil, err
11430	}
11431	defer googleapi.CloseBody(res)
11432	if err := googleapi.CheckResponse(res); err != nil {
11433		return nil, err
11434	}
11435	ret := &GoogleCloudApigeeV1ApiProduct{
11436		ServerResponse: googleapi.ServerResponse{
11437			Header:         res.Header,
11438			HTTPStatusCode: res.StatusCode,
11439		},
11440	}
11441	target := &ret
11442	if err := gensupport.DecodeResponse(target, res); err != nil {
11443		return nil, err
11444	}
11445	return ret, nil
11446	// {
11447	//   "description": "Gets configuration details for an API product. The API product name required in the request URL is the internal name of the product, not the display name. While they may be the same, it depends on whether the API product was created via the UI or the API. View the list of API products to verify the internal name.",
11448	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
11449	//   "httpMethod": "GET",
11450	//   "id": "apigee.organizations.apiproducts.get",
11451	//   "parameterOrder": [
11452	//     "name"
11453	//   ],
11454	//   "parameters": {
11455	//     "name": {
11456	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
11457	//       "location": "path",
11458	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
11459	//       "required": true,
11460	//       "type": "string"
11461	//     }
11462	//   },
11463	//   "path": "v1/{+name}",
11464	//   "response": {
11465	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
11466	//   },
11467	//   "scopes": [
11468	//     "https://www.googleapis.com/auth/cloud-platform"
11469	//   ]
11470	// }
11471
11472}
11473
11474// method id "apigee.organizations.apiproducts.list":
11475
11476type OrganizationsApiproductsListCall struct {
11477	s            *Service
11478	parent       string
11479	urlParams_   gensupport.URLParams
11480	ifNoneMatch_ string
11481	ctx_         context.Context
11482	header_      http.Header
11483}
11484
11485// List: Lists all API product names for an organization. Filter the
11486// list by passing an `attributename` and `attibutevalue`. The limit on
11487// the number of API products returned by the API is 1000. You can
11488// paginate the list of API products returned using the `startKey` and
11489// `count` query parameters.
11490func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
11491	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11492	c.parent = parent
11493	return c
11494}
11495
11496// Attributename sets the optional parameter "attributename": Name of
11497// the attribute used to filter the search.
11498func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
11499	c.urlParams_.Set("attributename", attributename)
11500	return c
11501}
11502
11503// Attributevalue sets the optional parameter "attributevalue": Value of
11504// the attribute used to filter the search.
11505func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
11506	c.urlParams_.Set("attributevalue", attributevalue)
11507	return c
11508}
11509
11510// Count sets the optional parameter "count": Enter the number of API
11511// products you want returned in the API call. The limit is 1000.
11512func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
11513	c.urlParams_.Set("count", fmt.Sprint(count))
11514	return c
11515}
11516
11517// Expand sets the optional parameter "expand": Flag that specifies
11518// whether to expand the results. Set to `true` to get expanded details
11519// about each API.
11520func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
11521	c.urlParams_.Set("expand", fmt.Sprint(expand))
11522	return c
11523}
11524
11525// StartKey sets the optional parameter "startKey": Gets a list of API
11526// products starting with a specific API product in the list. For
11527// example, if you're returning 50 API products at a time (using the
11528// `count` query parameter), you can view products 50-99 by entering the
11529// name of the 50th API product in the first API (without using
11530// `startKey`). Product name is case sensitive.
11531func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
11532	c.urlParams_.Set("startKey", startKey)
11533	return c
11534}
11535
11536// Fields allows partial responses to be retrieved. See
11537// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11538// for more information.
11539func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
11540	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11541	return c
11542}
11543
11544// IfNoneMatch sets the optional parameter which makes the operation
11545// fail if the object's ETag matches the given value. This is useful for
11546// getting updates only after the object has changed since the last
11547// request. Use googleapi.IsNotModified to check whether the response
11548// error from Do is the result of In-None-Match.
11549func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
11550	c.ifNoneMatch_ = entityTag
11551	return c
11552}
11553
11554// Context sets the context to be used in this call's Do method. Any
11555// pending HTTP request will be aborted if the provided context is
11556// canceled.
11557func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
11558	c.ctx_ = ctx
11559	return c
11560}
11561
11562// Header returns an http.Header that can be modified by the caller to
11563// add HTTP headers to the request.
11564func (c *OrganizationsApiproductsListCall) Header() http.Header {
11565	if c.header_ == nil {
11566		c.header_ = make(http.Header)
11567	}
11568	return c.header_
11569}
11570
11571func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
11572	reqHeaders := make(http.Header)
11573	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
11574	for k, v := range c.header_ {
11575		reqHeaders[k] = v
11576	}
11577	reqHeaders.Set("User-Agent", c.s.userAgent())
11578	if c.ifNoneMatch_ != "" {
11579		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11580	}
11581	var body io.Reader = nil
11582	c.urlParams_.Set("alt", alt)
11583	c.urlParams_.Set("prettyPrint", "false")
11584	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
11585	urls += "?" + c.urlParams_.Encode()
11586	req, err := http.NewRequest("GET", urls, body)
11587	if err != nil {
11588		return nil, err
11589	}
11590	req.Header = reqHeaders
11591	googleapi.Expand(req.URL, map[string]string{
11592		"parent": c.parent,
11593	})
11594	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11595}
11596
11597// Do executes the "apigee.organizations.apiproducts.list" call.
11598// Exactly one of *GoogleCloudApigeeV1ListApiProductsResponse or error
11599// will be non-nil. Any non-2xx status code is an error. Response
11600// headers are in either
11601// *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or
11602// (if a response was returned at all) in
11603// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11604// whether the returned error was because http.StatusNotModified was
11605// returned.
11606func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
11607	gensupport.SetOptions(c.urlParams_, opts...)
11608	res, err := c.doRequest("json")
11609	if res != nil && res.StatusCode == http.StatusNotModified {
11610		if res.Body != nil {
11611			res.Body.Close()
11612		}
11613		return nil, &googleapi.Error{
11614			Code:   res.StatusCode,
11615			Header: res.Header,
11616		}
11617	}
11618	if err != nil {
11619		return nil, err
11620	}
11621	defer googleapi.CloseBody(res)
11622	if err := googleapi.CheckResponse(res); err != nil {
11623		return nil, err
11624	}
11625	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
11626		ServerResponse: googleapi.ServerResponse{
11627			Header:         res.Header,
11628			HTTPStatusCode: res.StatusCode,
11629		},
11630	}
11631	target := &ret
11632	if err := gensupport.DecodeResponse(target, res); err != nil {
11633		return nil, err
11634	}
11635	return ret, nil
11636	// {
11637	//   "description": "Lists all API product names for an organization. Filter the list by passing an `attributename` and `attibutevalue`. The limit on the number of API products returned by the API is 1000. You can paginate the list of API products returned using the `startKey` and `count` query parameters.",
11638	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
11639	//   "httpMethod": "GET",
11640	//   "id": "apigee.organizations.apiproducts.list",
11641	//   "parameterOrder": [
11642	//     "parent"
11643	//   ],
11644	//   "parameters": {
11645	//     "attributename": {
11646	//       "description": "Name of the attribute used to filter the search.",
11647	//       "location": "query",
11648	//       "type": "string"
11649	//     },
11650	//     "attributevalue": {
11651	//       "description": "Value of the attribute used to filter the search.",
11652	//       "location": "query",
11653	//       "type": "string"
11654	//     },
11655	//     "count": {
11656	//       "description": "Enter the number of API products you want returned in the API call. The limit is 1000.",
11657	//       "format": "int64",
11658	//       "location": "query",
11659	//       "type": "string"
11660	//     },
11661	//     "expand": {
11662	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.",
11663	//       "location": "query",
11664	//       "type": "boolean"
11665	//     },
11666	//     "parent": {
11667	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
11668	//       "location": "path",
11669	//       "pattern": "^organizations/[^/]+$",
11670	//       "required": true,
11671	//       "type": "string"
11672	//     },
11673	//     "startKey": {
11674	//       "description": "Gets a list of API products starting with a specific API product in the list. For example, if you're returning 50 API products at a time (using the `count` query parameter), you can view products 50-99 by entering the name of the 50th API product in the first API (without using `startKey`). Product name is case sensitive.",
11675	//       "location": "query",
11676	//       "type": "string"
11677	//     }
11678	//   },
11679	//   "path": "v1/{+parent}/apiproducts",
11680	//   "response": {
11681	//     "$ref": "GoogleCloudApigeeV1ListApiProductsResponse"
11682	//   },
11683	//   "scopes": [
11684	//     "https://www.googleapis.com/auth/cloud-platform"
11685	//   ]
11686	// }
11687
11688}
11689
11690// method id "apigee.organizations.apiproducts.update":
11691
11692type OrganizationsApiproductsUpdateCall struct {
11693	s                             *Service
11694	name                          string
11695	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
11696	urlParams_                    gensupport.URLParams
11697	ctx_                          context.Context
11698	header_                       http.Header
11699}
11700
11701// Update: Updates an existing API product. You must include all
11702// required values, whether or not you are updating them, as well as any
11703// optional values that you are updating. The API product name required
11704// in the request URL is the internal name of the product, not the
11705// Display Name. While they may be the same, it depends on whether the
11706// API product was created via UI or API. View the list of API products
11707// to identify their internal names.
11708func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
11709	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11710	c.name = name
11711	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
11712	return c
11713}
11714
11715// Fields allows partial responses to be retrieved. See
11716// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11717// for more information.
11718func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
11719	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11720	return c
11721}
11722
11723// Context sets the context to be used in this call's Do method. Any
11724// pending HTTP request will be aborted if the provided context is
11725// canceled.
11726func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
11727	c.ctx_ = ctx
11728	return c
11729}
11730
11731// Header returns an http.Header that can be modified by the caller to
11732// add HTTP headers to the request.
11733func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
11734	if c.header_ == nil {
11735		c.header_ = make(http.Header)
11736	}
11737	return c.header_
11738}
11739
11740func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
11741	reqHeaders := make(http.Header)
11742	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
11743	for k, v := range c.header_ {
11744		reqHeaders[k] = v
11745	}
11746	reqHeaders.Set("User-Agent", c.s.userAgent())
11747	var body io.Reader = nil
11748	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
11749	if err != nil {
11750		return nil, err
11751	}
11752	reqHeaders.Set("Content-Type", "application/json")
11753	c.urlParams_.Set("alt", alt)
11754	c.urlParams_.Set("prettyPrint", "false")
11755	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11756	urls += "?" + c.urlParams_.Encode()
11757	req, err := http.NewRequest("PUT", urls, body)
11758	if err != nil {
11759		return nil, err
11760	}
11761	req.Header = reqHeaders
11762	googleapi.Expand(req.URL, map[string]string{
11763		"name": c.name,
11764	})
11765	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11766}
11767
11768// Do executes the "apigee.organizations.apiproducts.update" call.
11769// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
11770// non-nil. Any non-2xx status code is an error. Response headers are in
11771// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
11772// response was returned at all) in error.(*googleapi.Error).Header. Use
11773// googleapi.IsNotModified to check whether the returned error was
11774// because http.StatusNotModified was returned.
11775func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
11776	gensupport.SetOptions(c.urlParams_, opts...)
11777	res, err := c.doRequest("json")
11778	if res != nil && res.StatusCode == http.StatusNotModified {
11779		if res.Body != nil {
11780			res.Body.Close()
11781		}
11782		return nil, &googleapi.Error{
11783			Code:   res.StatusCode,
11784			Header: res.Header,
11785		}
11786	}
11787	if err != nil {
11788		return nil, err
11789	}
11790	defer googleapi.CloseBody(res)
11791	if err := googleapi.CheckResponse(res); err != nil {
11792		return nil, err
11793	}
11794	ret := &GoogleCloudApigeeV1ApiProduct{
11795		ServerResponse: googleapi.ServerResponse{
11796			Header:         res.Header,
11797			HTTPStatusCode: res.StatusCode,
11798		},
11799	}
11800	target := &ret
11801	if err := gensupport.DecodeResponse(target, res); err != nil {
11802		return nil, err
11803	}
11804	return ret, nil
11805	// {
11806	//   "description": "Updates an existing API product. You must include all required values, whether or not you are updating them, as well as any optional values that you are updating. The API product name required in the request URL is the internal name of the product, not the Display Name. While they may be the same, it depends on whether the API product was created via UI or API. View the list of API products to identify their internal names.",
11807	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
11808	//   "httpMethod": "PUT",
11809	//   "id": "apigee.organizations.apiproducts.update",
11810	//   "parameterOrder": [
11811	//     "name"
11812	//   ],
11813	//   "parameters": {
11814	//     "name": {
11815	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
11816	//       "location": "path",
11817	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
11818	//       "required": true,
11819	//       "type": "string"
11820	//     }
11821	//   },
11822	//   "path": "v1/{+name}",
11823	//   "request": {
11824	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
11825	//   },
11826	//   "response": {
11827	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
11828	//   },
11829	//   "scopes": [
11830	//     "https://www.googleapis.com/auth/cloud-platform"
11831	//   ]
11832	// }
11833
11834}
11835
11836// method id "apigee.organizations.apiproducts.attributes.delete":
11837
11838type OrganizationsApiproductsAttributesDeleteCall struct {
11839	s          *Service
11840	name       string
11841	urlParams_ gensupport.URLParams
11842	ctx_       context.Context
11843	header_    http.Header
11844}
11845
11846// Delete: Deletes an API product attribute.
11847func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
11848	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11849	c.name = name
11850	return c
11851}
11852
11853// Fields allows partial responses to be retrieved. See
11854// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11855// for more information.
11856func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
11857	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11858	return c
11859}
11860
11861// Context sets the context to be used in this call's Do method. Any
11862// pending HTTP request will be aborted if the provided context is
11863// canceled.
11864func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
11865	c.ctx_ = ctx
11866	return c
11867}
11868
11869// Header returns an http.Header that can be modified by the caller to
11870// add HTTP headers to the request.
11871func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
11872	if c.header_ == nil {
11873		c.header_ = make(http.Header)
11874	}
11875	return c.header_
11876}
11877
11878func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
11879	reqHeaders := make(http.Header)
11880	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
11881	for k, v := range c.header_ {
11882		reqHeaders[k] = v
11883	}
11884	reqHeaders.Set("User-Agent", c.s.userAgent())
11885	var body io.Reader = nil
11886	c.urlParams_.Set("alt", alt)
11887	c.urlParams_.Set("prettyPrint", "false")
11888	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11889	urls += "?" + c.urlParams_.Encode()
11890	req, err := http.NewRequest("DELETE", urls, body)
11891	if err != nil {
11892		return nil, err
11893	}
11894	req.Header = reqHeaders
11895	googleapi.Expand(req.URL, map[string]string{
11896		"name": c.name,
11897	})
11898	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11899}
11900
11901// Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
11902// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
11903// non-nil. Any non-2xx status code is an error. Response headers are in
11904// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
11905// response was returned at all) in error.(*googleapi.Error).Header. Use
11906// googleapi.IsNotModified to check whether the returned error was
11907// because http.StatusNotModified was returned.
11908func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
11909	gensupport.SetOptions(c.urlParams_, opts...)
11910	res, err := c.doRequest("json")
11911	if res != nil && res.StatusCode == http.StatusNotModified {
11912		if res.Body != nil {
11913			res.Body.Close()
11914		}
11915		return nil, &googleapi.Error{
11916			Code:   res.StatusCode,
11917			Header: res.Header,
11918		}
11919	}
11920	if err != nil {
11921		return nil, err
11922	}
11923	defer googleapi.CloseBody(res)
11924	if err := googleapi.CheckResponse(res); err != nil {
11925		return nil, err
11926	}
11927	ret := &GoogleCloudApigeeV1Attribute{
11928		ServerResponse: googleapi.ServerResponse{
11929			Header:         res.Header,
11930			HTTPStatusCode: res.StatusCode,
11931		},
11932	}
11933	target := &ret
11934	if err := gensupport.DecodeResponse(target, res); err != nil {
11935		return nil, err
11936	}
11937	return ret, nil
11938	// {
11939	//   "description": "Deletes an API product attribute.",
11940	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
11941	//   "httpMethod": "DELETE",
11942	//   "id": "apigee.organizations.apiproducts.attributes.delete",
11943	//   "parameterOrder": [
11944	//     "name"
11945	//   ],
11946	//   "parameters": {
11947	//     "name": {
11948	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
11949	//       "location": "path",
11950	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
11951	//       "required": true,
11952	//       "type": "string"
11953	//     }
11954	//   },
11955	//   "path": "v1/{+name}",
11956	//   "response": {
11957	//     "$ref": "GoogleCloudApigeeV1Attribute"
11958	//   },
11959	//   "scopes": [
11960	//     "https://www.googleapis.com/auth/cloud-platform"
11961	//   ]
11962	// }
11963
11964}
11965
11966// method id "apigee.organizations.apiproducts.attributes.get":
11967
11968type OrganizationsApiproductsAttributesGetCall struct {
11969	s            *Service
11970	name         string
11971	urlParams_   gensupport.URLParams
11972	ifNoneMatch_ string
11973	ctx_         context.Context
11974	header_      http.Header
11975}
11976
11977// Get: Gets the value of an API product attribute.
11978func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
11979	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11980	c.name = name
11981	return c
11982}
11983
11984// Fields allows partial responses to be retrieved. See
11985// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11986// for more information.
11987func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
11988	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11989	return c
11990}
11991
11992// IfNoneMatch sets the optional parameter which makes the operation
11993// fail if the object's ETag matches the given value. This is useful for
11994// getting updates only after the object has changed since the last
11995// request. Use googleapi.IsNotModified to check whether the response
11996// error from Do is the result of In-None-Match.
11997func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
11998	c.ifNoneMatch_ = entityTag
11999	return c
12000}
12001
12002// Context sets the context to be used in this call's Do method. Any
12003// pending HTTP request will be aborted if the provided context is
12004// canceled.
12005func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
12006	c.ctx_ = ctx
12007	return c
12008}
12009
12010// Header returns an http.Header that can be modified by the caller to
12011// add HTTP headers to the request.
12012func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
12013	if c.header_ == nil {
12014		c.header_ = make(http.Header)
12015	}
12016	return c.header_
12017}
12018
12019func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
12020	reqHeaders := make(http.Header)
12021	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12022	for k, v := range c.header_ {
12023		reqHeaders[k] = v
12024	}
12025	reqHeaders.Set("User-Agent", c.s.userAgent())
12026	if c.ifNoneMatch_ != "" {
12027		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12028	}
12029	var body io.Reader = nil
12030	c.urlParams_.Set("alt", alt)
12031	c.urlParams_.Set("prettyPrint", "false")
12032	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12033	urls += "?" + c.urlParams_.Encode()
12034	req, err := http.NewRequest("GET", urls, body)
12035	if err != nil {
12036		return nil, err
12037	}
12038	req.Header = reqHeaders
12039	googleapi.Expand(req.URL, map[string]string{
12040		"name": c.name,
12041	})
12042	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12043}
12044
12045// Do executes the "apigee.organizations.apiproducts.attributes.get" call.
12046// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
12047// non-nil. Any non-2xx status code is an error. Response headers are in
12048// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
12049// response was returned at all) in error.(*googleapi.Error).Header. Use
12050// googleapi.IsNotModified to check whether the returned error was
12051// because http.StatusNotModified was returned.
12052func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
12053	gensupport.SetOptions(c.urlParams_, opts...)
12054	res, err := c.doRequest("json")
12055	if res != nil && res.StatusCode == http.StatusNotModified {
12056		if res.Body != nil {
12057			res.Body.Close()
12058		}
12059		return nil, &googleapi.Error{
12060			Code:   res.StatusCode,
12061			Header: res.Header,
12062		}
12063	}
12064	if err != nil {
12065		return nil, err
12066	}
12067	defer googleapi.CloseBody(res)
12068	if err := googleapi.CheckResponse(res); err != nil {
12069		return nil, err
12070	}
12071	ret := &GoogleCloudApigeeV1Attribute{
12072		ServerResponse: googleapi.ServerResponse{
12073			Header:         res.Header,
12074			HTTPStatusCode: res.StatusCode,
12075		},
12076	}
12077	target := &ret
12078	if err := gensupport.DecodeResponse(target, res); err != nil {
12079		return nil, err
12080	}
12081	return ret, nil
12082	// {
12083	//   "description": "Gets the value of an API product attribute.",
12084	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
12085	//   "httpMethod": "GET",
12086	//   "id": "apigee.organizations.apiproducts.attributes.get",
12087	//   "parameterOrder": [
12088	//     "name"
12089	//   ],
12090	//   "parameters": {
12091	//     "name": {
12092	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
12093	//       "location": "path",
12094	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
12095	//       "required": true,
12096	//       "type": "string"
12097	//     }
12098	//   },
12099	//   "path": "v1/{+name}",
12100	//   "response": {
12101	//     "$ref": "GoogleCloudApigeeV1Attribute"
12102	//   },
12103	//   "scopes": [
12104	//     "https://www.googleapis.com/auth/cloud-platform"
12105	//   ]
12106	// }
12107
12108}
12109
12110// method id "apigee.organizations.apiproducts.attributes.list":
12111
12112type OrganizationsApiproductsAttributesListCall struct {
12113	s            *Service
12114	parent       string
12115	urlParams_   gensupport.URLParams
12116	ifNoneMatch_ string
12117	ctx_         context.Context
12118	header_      http.Header
12119}
12120
12121// List: Lists all API product attributes.
12122func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
12123	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12124	c.parent = parent
12125	return c
12126}
12127
12128// Fields allows partial responses to be retrieved. See
12129// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12130// for more information.
12131func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
12132	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12133	return c
12134}
12135
12136// IfNoneMatch sets the optional parameter which makes the operation
12137// fail if the object's ETag matches the given value. This is useful for
12138// getting updates only after the object has changed since the last
12139// request. Use googleapi.IsNotModified to check whether the response
12140// error from Do is the result of In-None-Match.
12141func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
12142	c.ifNoneMatch_ = entityTag
12143	return c
12144}
12145
12146// Context sets the context to be used in this call's Do method. Any
12147// pending HTTP request will be aborted if the provided context is
12148// canceled.
12149func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
12150	c.ctx_ = ctx
12151	return c
12152}
12153
12154// Header returns an http.Header that can be modified by the caller to
12155// add HTTP headers to the request.
12156func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
12157	if c.header_ == nil {
12158		c.header_ = make(http.Header)
12159	}
12160	return c.header_
12161}
12162
12163func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
12164	reqHeaders := make(http.Header)
12165	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12166	for k, v := range c.header_ {
12167		reqHeaders[k] = v
12168	}
12169	reqHeaders.Set("User-Agent", c.s.userAgent())
12170	if c.ifNoneMatch_ != "" {
12171		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12172	}
12173	var body io.Reader = nil
12174	c.urlParams_.Set("alt", alt)
12175	c.urlParams_.Set("prettyPrint", "false")
12176	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
12177	urls += "?" + c.urlParams_.Encode()
12178	req, err := http.NewRequest("GET", urls, body)
12179	if err != nil {
12180		return nil, err
12181	}
12182	req.Header = reqHeaders
12183	googleapi.Expand(req.URL, map[string]string{
12184		"parent": c.parent,
12185	})
12186	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12187}
12188
12189// Do executes the "apigee.organizations.apiproducts.attributes.list" call.
12190// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
12191// non-nil. Any non-2xx status code is an error. Response headers are in
12192// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
12193// response was returned at all) in error.(*googleapi.Error).Header. Use
12194// googleapi.IsNotModified to check whether the returned error was
12195// because http.StatusNotModified was returned.
12196func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
12197	gensupport.SetOptions(c.urlParams_, opts...)
12198	res, err := c.doRequest("json")
12199	if res != nil && res.StatusCode == http.StatusNotModified {
12200		if res.Body != nil {
12201			res.Body.Close()
12202		}
12203		return nil, &googleapi.Error{
12204			Code:   res.StatusCode,
12205			Header: res.Header,
12206		}
12207	}
12208	if err != nil {
12209		return nil, err
12210	}
12211	defer googleapi.CloseBody(res)
12212	if err := googleapi.CheckResponse(res); err != nil {
12213		return nil, err
12214	}
12215	ret := &GoogleCloudApigeeV1Attributes{
12216		ServerResponse: googleapi.ServerResponse{
12217			Header:         res.Header,
12218			HTTPStatusCode: res.StatusCode,
12219		},
12220	}
12221	target := &ret
12222	if err := gensupport.DecodeResponse(target, res); err != nil {
12223		return nil, err
12224	}
12225	return ret, nil
12226	// {
12227	//   "description": "Lists all API product attributes.",
12228	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
12229	//   "httpMethod": "GET",
12230	//   "id": "apigee.organizations.apiproducts.attributes.list",
12231	//   "parameterOrder": [
12232	//     "parent"
12233	//   ],
12234	//   "parameters": {
12235	//     "parent": {
12236	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12237	//       "location": "path",
12238	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12239	//       "required": true,
12240	//       "type": "string"
12241	//     }
12242	//   },
12243	//   "path": "v1/{+parent}/attributes",
12244	//   "response": {
12245	//     "$ref": "GoogleCloudApigeeV1Attributes"
12246	//   },
12247	//   "scopes": [
12248	//     "https://www.googleapis.com/auth/cloud-platform"
12249	//   ]
12250	// }
12251
12252}
12253
12254// method id "apigee.organizations.apiproducts.attributes.updateApiProductAttribute":
12255
12256type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
12257	s                            *Service
12258	name                         string
12259	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
12260	urlParams_                   gensupport.URLParams
12261	ctx_                         context.Context
12262	header_                      http.Header
12263}
12264
12265// UpdateApiProductAttribute: Updates the value of an API product
12266// attribute. **Note**: OAuth access tokens and Key Management Service
12267// (KMS) entities (apps, developers, and API products) are cached for
12268// 180 seconds (current default). Any custom attributes associated with
12269// entities also get cached for at least 180 seconds after entity is
12270// accessed during runtime. In this case, the `ExpiresIn` element on the
12271// OAuthV2 policy won't be able to expire an access token in less than
12272// 180 seconds.
12273func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
12274	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12275	c.name = name
12276	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
12277	return c
12278}
12279
12280// Fields allows partial responses to be retrieved. See
12281// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12282// for more information.
12283func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
12284	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12285	return c
12286}
12287
12288// Context sets the context to be used in this call's Do method. Any
12289// pending HTTP request will be aborted if the provided context is
12290// canceled.
12291func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
12292	c.ctx_ = ctx
12293	return c
12294}
12295
12296// Header returns an http.Header that can be modified by the caller to
12297// add HTTP headers to the request.
12298func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
12299	if c.header_ == nil {
12300		c.header_ = make(http.Header)
12301	}
12302	return c.header_
12303}
12304
12305func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
12306	reqHeaders := make(http.Header)
12307	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12308	for k, v := range c.header_ {
12309		reqHeaders[k] = v
12310	}
12311	reqHeaders.Set("User-Agent", c.s.userAgent())
12312	var body io.Reader = nil
12313	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
12314	if err != nil {
12315		return nil, err
12316	}
12317	reqHeaders.Set("Content-Type", "application/json")
12318	c.urlParams_.Set("alt", alt)
12319	c.urlParams_.Set("prettyPrint", "false")
12320	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12321	urls += "?" + c.urlParams_.Encode()
12322	req, err := http.NewRequest("POST", urls, body)
12323	if err != nil {
12324		return nil, err
12325	}
12326	req.Header = reqHeaders
12327	googleapi.Expand(req.URL, map[string]string{
12328		"name": c.name,
12329	})
12330	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12331}
12332
12333// Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
12334// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
12335// non-nil. Any non-2xx status code is an error. Response headers are in
12336// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
12337// response was returned at all) in error.(*googleapi.Error).Header. Use
12338// googleapi.IsNotModified to check whether the returned error was
12339// because http.StatusNotModified was returned.
12340func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
12341	gensupport.SetOptions(c.urlParams_, opts...)
12342	res, err := c.doRequest("json")
12343	if res != nil && res.StatusCode == http.StatusNotModified {
12344		if res.Body != nil {
12345			res.Body.Close()
12346		}
12347		return nil, &googleapi.Error{
12348			Code:   res.StatusCode,
12349			Header: res.Header,
12350		}
12351	}
12352	if err != nil {
12353		return nil, err
12354	}
12355	defer googleapi.CloseBody(res)
12356	if err := googleapi.CheckResponse(res); err != nil {
12357		return nil, err
12358	}
12359	ret := &GoogleCloudApigeeV1Attribute{
12360		ServerResponse: googleapi.ServerResponse{
12361			Header:         res.Header,
12362			HTTPStatusCode: res.StatusCode,
12363		},
12364	}
12365	target := &ret
12366	if err := gensupport.DecodeResponse(target, res); err != nil {
12367		return nil, err
12368	}
12369	return ret, nil
12370	// {
12371	//   "description": "Updates the value of an API product attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.",
12372	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
12373	//   "httpMethod": "POST",
12374	//   "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute",
12375	//   "parameterOrder": [
12376	//     "name"
12377	//   ],
12378	//   "parameters": {
12379	//     "name": {
12380	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12381	//       "location": "path",
12382	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
12383	//       "required": true,
12384	//       "type": "string"
12385	//     }
12386	//   },
12387	//   "path": "v1/{+name}",
12388	//   "request": {
12389	//     "$ref": "GoogleCloudApigeeV1Attribute"
12390	//   },
12391	//   "response": {
12392	//     "$ref": "GoogleCloudApigeeV1Attribute"
12393	//   },
12394	//   "scopes": [
12395	//     "https://www.googleapis.com/auth/cloud-platform"
12396	//   ]
12397	// }
12398
12399}
12400
12401// method id "apigee.organizations.apis.create":
12402
12403type OrganizationsApisCreateCall struct {
12404	s                 *Service
12405	parent            string
12406	googleapihttpbody *GoogleApiHttpBody
12407	urlParams_        gensupport.URLParams
12408	ctx_              context.Context
12409	header_           http.Header
12410}
12411
12412// Create: Creates an API proxy. The API proxy created will not be
12413// accessible at runtime until it is deployed to an environment. Create
12414// a new API proxy by setting the `name` query parameter to the name of
12415// the API proxy. Import an API proxy configuration bundle stored in zip
12416// format on your local machine to your organization by doing the
12417// following: * Set the `name` query parameter to the name of the API
12418// proxy. * Set the `action` query parameter to `import`. * Set the
12419// `Content-Type` header to `multipart/form-data`. * Pass as a file the
12420// name of API proxy configuration bundle stored in zip format on your
12421// local machine using the `file` form field. **Note**: To validate the
12422// API proxy configuration bundle only without importing it, set the
12423// `action` query parameter to `validate`. When importing an API proxy
12424// configuration bundle, if the API proxy does not exist, it will be
12425// created. If the API proxy exists, then a new revision is created.
12426// Invalid API proxy configurations are rejected, and a list of
12427// validation errors is returned to the client.
12428func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
12429	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12430	c.parent = parent
12431	c.googleapihttpbody = googleapihttpbody
12432	return c
12433}
12434
12435// Action sets the optional parameter "action": Action to perform when
12436// importing an API proxy configuration bundle. Set this parameter to
12437// one of the following values: * `import` to import the API proxy
12438// configuration bundle. * `validate` to validate the API proxy
12439// configuration bundle without importing it.
12440func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
12441	c.urlParams_.Set("action", action)
12442	return c
12443}
12444
12445// Name sets the optional parameter "name": Name of the API proxy.
12446// Restrict the characters used to: A-Za-z0-9._-
12447func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
12448	c.urlParams_.Set("name", name)
12449	return c
12450}
12451
12452// Validate sets the optional parameter "validate": Ignored. All uploads
12453// are validated regardless of the value of this field. Maintained for
12454// compatibility with Apigee Edge API.
12455func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
12456	c.urlParams_.Set("validate", fmt.Sprint(validate))
12457	return c
12458}
12459
12460// Fields allows partial responses to be retrieved. See
12461// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12462// for more information.
12463func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
12464	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12465	return c
12466}
12467
12468// Context sets the context to be used in this call's Do method. Any
12469// pending HTTP request will be aborted if the provided context is
12470// canceled.
12471func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
12472	c.ctx_ = ctx
12473	return c
12474}
12475
12476// Header returns an http.Header that can be modified by the caller to
12477// add HTTP headers to the request.
12478func (c *OrganizationsApisCreateCall) Header() http.Header {
12479	if c.header_ == nil {
12480		c.header_ = make(http.Header)
12481	}
12482	return c.header_
12483}
12484
12485func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
12486	reqHeaders := make(http.Header)
12487	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12488	for k, v := range c.header_ {
12489		reqHeaders[k] = v
12490	}
12491	reqHeaders.Set("User-Agent", c.s.userAgent())
12492	var body io.Reader = nil
12493	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
12494	if err != nil {
12495		return nil, err
12496	}
12497	reqHeaders.Set("Content-Type", "application/json")
12498	c.urlParams_.Set("alt", alt)
12499	c.urlParams_.Set("prettyPrint", "false")
12500	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
12501	urls += "?" + c.urlParams_.Encode()
12502	req, err := http.NewRequest("POST", urls, body)
12503	if err != nil {
12504		return nil, err
12505	}
12506	req.Header = reqHeaders
12507	googleapi.Expand(req.URL, map[string]string{
12508		"parent": c.parent,
12509	})
12510	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12511}
12512
12513// Do executes the "apigee.organizations.apis.create" call.
12514// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
12515// non-nil. Any non-2xx status code is an error. Response headers are in
12516// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
12517// (if a response was returned at all) in
12518// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12519// whether the returned error was because http.StatusNotModified was
12520// returned.
12521func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
12522	gensupport.SetOptions(c.urlParams_, opts...)
12523	res, err := c.doRequest("json")
12524	if res != nil && res.StatusCode == http.StatusNotModified {
12525		if res.Body != nil {
12526			res.Body.Close()
12527		}
12528		return nil, &googleapi.Error{
12529			Code:   res.StatusCode,
12530			Header: res.Header,
12531		}
12532	}
12533	if err != nil {
12534		return nil, err
12535	}
12536	defer googleapi.CloseBody(res)
12537	if err := googleapi.CheckResponse(res); err != nil {
12538		return nil, err
12539	}
12540	ret := &GoogleCloudApigeeV1ApiProxyRevision{
12541		ServerResponse: googleapi.ServerResponse{
12542			Header:         res.Header,
12543			HTTPStatusCode: res.StatusCode,
12544		},
12545	}
12546	target := &ret
12547	if err := gensupport.DecodeResponse(target, res); err != nil {
12548		return nil, err
12549	}
12550	return ret, nil
12551	// {
12552	//   "description": "Creates an API proxy. The API proxy created will not be accessible at runtime until it is deployed to an environment. Create a new API proxy by setting the `name` query parameter to the name of the API proxy. Import an API proxy configuration bundle stored in zip format on your local machine to your organization by doing the following: * Set the `name` query parameter to the name of the API proxy. * Set the `action` query parameter to `import`. * Set the `Content-Type` header to `multipart/form-data`. * Pass as a file the name of API proxy configuration bundle stored in zip format on your local machine using the `file` form field. **Note**: To validate the API proxy configuration bundle only without importing it, set the `action` query parameter to `validate`. When importing an API proxy configuration bundle, if the API proxy does not exist, it will be created. If the API proxy exists, then a new revision is created. Invalid API proxy configurations are rejected, and a list of validation errors is returned to the client.",
12553	//   "flatPath": "v1/organizations/{organizationsId}/apis",
12554	//   "httpMethod": "POST",
12555	//   "id": "apigee.organizations.apis.create",
12556	//   "parameterOrder": [
12557	//     "parent"
12558	//   ],
12559	//   "parameters": {
12560	//     "action": {
12561	//       "description": "Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: * `import` to import the API proxy configuration bundle. * `validate` to validate the API proxy configuration bundle without importing it.",
12562	//       "location": "query",
12563	//       "type": "string"
12564	//     },
12565	//     "name": {
12566	//       "description": "Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-",
12567	//       "location": "query",
12568	//       "type": "string"
12569	//     },
12570	//     "parent": {
12571	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
12572	//       "location": "path",
12573	//       "pattern": "^organizations/[^/]+$",
12574	//       "required": true,
12575	//       "type": "string"
12576	//     },
12577	//     "validate": {
12578	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
12579	//       "location": "query",
12580	//       "type": "boolean"
12581	//     }
12582	//   },
12583	//   "path": "v1/{+parent}/apis",
12584	//   "request": {
12585	//     "$ref": "GoogleApiHttpBody"
12586	//   },
12587	//   "response": {
12588	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
12589	//   },
12590	//   "scopes": [
12591	//     "https://www.googleapis.com/auth/cloud-platform"
12592	//   ]
12593	// }
12594
12595}
12596
12597// method id "apigee.organizations.apis.delete":
12598
12599type OrganizationsApisDeleteCall struct {
12600	s          *Service
12601	name       string
12602	urlParams_ gensupport.URLParams
12603	ctx_       context.Context
12604	header_    http.Header
12605}
12606
12607// Delete: Deletes an API proxy and all associated endpoints, policies,
12608// resources, and revisions. The API proxy must be undeployed before you
12609// can delete it.
12610func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
12611	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12612	c.name = name
12613	return c
12614}
12615
12616// Fields allows partial responses to be retrieved. See
12617// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12618// for more information.
12619func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
12620	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12621	return c
12622}
12623
12624// Context sets the context to be used in this call's Do method. Any
12625// pending HTTP request will be aborted if the provided context is
12626// canceled.
12627func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
12628	c.ctx_ = ctx
12629	return c
12630}
12631
12632// Header returns an http.Header that can be modified by the caller to
12633// add HTTP headers to the request.
12634func (c *OrganizationsApisDeleteCall) Header() http.Header {
12635	if c.header_ == nil {
12636		c.header_ = make(http.Header)
12637	}
12638	return c.header_
12639}
12640
12641func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
12642	reqHeaders := make(http.Header)
12643	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12644	for k, v := range c.header_ {
12645		reqHeaders[k] = v
12646	}
12647	reqHeaders.Set("User-Agent", c.s.userAgent())
12648	var body io.Reader = nil
12649	c.urlParams_.Set("alt", alt)
12650	c.urlParams_.Set("prettyPrint", "false")
12651	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12652	urls += "?" + c.urlParams_.Encode()
12653	req, err := http.NewRequest("DELETE", urls, body)
12654	if err != nil {
12655		return nil, err
12656	}
12657	req.Header = reqHeaders
12658	googleapi.Expand(req.URL, map[string]string{
12659		"name": c.name,
12660	})
12661	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12662}
12663
12664// Do executes the "apigee.organizations.apis.delete" call.
12665// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
12666// Any non-2xx status code is an error. Response headers are in either
12667// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
12668// was returned at all) in error.(*googleapi.Error).Header. Use
12669// googleapi.IsNotModified to check whether the returned error was
12670// because http.StatusNotModified was returned.
12671func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
12672	gensupport.SetOptions(c.urlParams_, opts...)
12673	res, err := c.doRequest("json")
12674	if res != nil && res.StatusCode == http.StatusNotModified {
12675		if res.Body != nil {
12676			res.Body.Close()
12677		}
12678		return nil, &googleapi.Error{
12679			Code:   res.StatusCode,
12680			Header: res.Header,
12681		}
12682	}
12683	if err != nil {
12684		return nil, err
12685	}
12686	defer googleapi.CloseBody(res)
12687	if err := googleapi.CheckResponse(res); err != nil {
12688		return nil, err
12689	}
12690	ret := &GoogleCloudApigeeV1ApiProxy{
12691		ServerResponse: googleapi.ServerResponse{
12692			Header:         res.Header,
12693			HTTPStatusCode: res.StatusCode,
12694		},
12695	}
12696	target := &ret
12697	if err := gensupport.DecodeResponse(target, res); err != nil {
12698		return nil, err
12699	}
12700	return ret, nil
12701	// {
12702	//   "description": "Deletes an API proxy and all associated endpoints, policies, resources, and revisions. The API proxy must be undeployed before you can delete it.",
12703	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
12704	//   "httpMethod": "DELETE",
12705	//   "id": "apigee.organizations.apis.delete",
12706	//   "parameterOrder": [
12707	//     "name"
12708	//   ],
12709	//   "parameters": {
12710	//     "name": {
12711	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
12712	//       "location": "path",
12713	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
12714	//       "required": true,
12715	//       "type": "string"
12716	//     }
12717	//   },
12718	//   "path": "v1/{+name}",
12719	//   "response": {
12720	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
12721	//   },
12722	//   "scopes": [
12723	//     "https://www.googleapis.com/auth/cloud-platform"
12724	//   ]
12725	// }
12726
12727}
12728
12729// method id "apigee.organizations.apis.get":
12730
12731type OrganizationsApisGetCall struct {
12732	s            *Service
12733	name         string
12734	urlParams_   gensupport.URLParams
12735	ifNoneMatch_ string
12736	ctx_         context.Context
12737	header_      http.Header
12738}
12739
12740// Get: Gets an API proxy including a list of existing revisions.
12741func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
12742	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12743	c.name = name
12744	return c
12745}
12746
12747// Fields allows partial responses to be retrieved. See
12748// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12749// for more information.
12750func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
12751	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12752	return c
12753}
12754
12755// IfNoneMatch sets the optional parameter which makes the operation
12756// fail if the object's ETag matches the given value. This is useful for
12757// getting updates only after the object has changed since the last
12758// request. Use googleapi.IsNotModified to check whether the response
12759// error from Do is the result of In-None-Match.
12760func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
12761	c.ifNoneMatch_ = entityTag
12762	return c
12763}
12764
12765// Context sets the context to be used in this call's Do method. Any
12766// pending HTTP request will be aborted if the provided context is
12767// canceled.
12768func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
12769	c.ctx_ = ctx
12770	return c
12771}
12772
12773// Header returns an http.Header that can be modified by the caller to
12774// add HTTP headers to the request.
12775func (c *OrganizationsApisGetCall) Header() http.Header {
12776	if c.header_ == nil {
12777		c.header_ = make(http.Header)
12778	}
12779	return c.header_
12780}
12781
12782func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
12783	reqHeaders := make(http.Header)
12784	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12785	for k, v := range c.header_ {
12786		reqHeaders[k] = v
12787	}
12788	reqHeaders.Set("User-Agent", c.s.userAgent())
12789	if c.ifNoneMatch_ != "" {
12790		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12791	}
12792	var body io.Reader = nil
12793	c.urlParams_.Set("alt", alt)
12794	c.urlParams_.Set("prettyPrint", "false")
12795	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12796	urls += "?" + c.urlParams_.Encode()
12797	req, err := http.NewRequest("GET", urls, body)
12798	if err != nil {
12799		return nil, err
12800	}
12801	req.Header = reqHeaders
12802	googleapi.Expand(req.URL, map[string]string{
12803		"name": c.name,
12804	})
12805	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12806}
12807
12808// Do executes the "apigee.organizations.apis.get" call.
12809// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
12810// Any non-2xx status code is an error. Response headers are in either
12811// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
12812// was returned at all) in error.(*googleapi.Error).Header. Use
12813// googleapi.IsNotModified to check whether the returned error was
12814// because http.StatusNotModified was returned.
12815func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
12816	gensupport.SetOptions(c.urlParams_, opts...)
12817	res, err := c.doRequest("json")
12818	if res != nil && res.StatusCode == http.StatusNotModified {
12819		if res.Body != nil {
12820			res.Body.Close()
12821		}
12822		return nil, &googleapi.Error{
12823			Code:   res.StatusCode,
12824			Header: res.Header,
12825		}
12826	}
12827	if err != nil {
12828		return nil, err
12829	}
12830	defer googleapi.CloseBody(res)
12831	if err := googleapi.CheckResponse(res); err != nil {
12832		return nil, err
12833	}
12834	ret := &GoogleCloudApigeeV1ApiProxy{
12835		ServerResponse: googleapi.ServerResponse{
12836			Header:         res.Header,
12837			HTTPStatusCode: res.StatusCode,
12838		},
12839	}
12840	target := &ret
12841	if err := gensupport.DecodeResponse(target, res); err != nil {
12842		return nil, err
12843	}
12844	return ret, nil
12845	// {
12846	//   "description": "Gets an API proxy including a list of existing revisions.",
12847	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
12848	//   "httpMethod": "GET",
12849	//   "id": "apigee.organizations.apis.get",
12850	//   "parameterOrder": [
12851	//     "name"
12852	//   ],
12853	//   "parameters": {
12854	//     "name": {
12855	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
12856	//       "location": "path",
12857	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
12858	//       "required": true,
12859	//       "type": "string"
12860	//     }
12861	//   },
12862	//   "path": "v1/{+name}",
12863	//   "response": {
12864	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
12865	//   },
12866	//   "scopes": [
12867	//     "https://www.googleapis.com/auth/cloud-platform"
12868	//   ]
12869	// }
12870
12871}
12872
12873// method id "apigee.organizations.apis.list":
12874
12875type OrganizationsApisListCall struct {
12876	s            *Service
12877	parent       string
12878	urlParams_   gensupport.URLParams
12879	ifNoneMatch_ string
12880	ctx_         context.Context
12881	header_      http.Header
12882}
12883
12884// List: Lists the names of all API proxies in an organization. The
12885// names returned correspond to the names defined in the configuration
12886// files for each API proxy.
12887func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
12888	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12889	c.parent = parent
12890	return c
12891}
12892
12893// IncludeMetaData sets the optional parameter "includeMetaData": Flag
12894// that specifies whether to include API proxy metadata in the response.
12895func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
12896	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
12897	return c
12898}
12899
12900// IncludeRevisions sets the optional parameter "includeRevisions": Flag
12901// that specifies whether to include a list of revisions in the
12902// response.
12903func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
12904	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
12905	return c
12906}
12907
12908// Fields allows partial responses to be retrieved. See
12909// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12910// for more information.
12911func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
12912	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12913	return c
12914}
12915
12916// IfNoneMatch sets the optional parameter which makes the operation
12917// fail if the object's ETag matches the given value. This is useful for
12918// getting updates only after the object has changed since the last
12919// request. Use googleapi.IsNotModified to check whether the response
12920// error from Do is the result of In-None-Match.
12921func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
12922	c.ifNoneMatch_ = entityTag
12923	return c
12924}
12925
12926// Context sets the context to be used in this call's Do method. Any
12927// pending HTTP request will be aborted if the provided context is
12928// canceled.
12929func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
12930	c.ctx_ = ctx
12931	return c
12932}
12933
12934// Header returns an http.Header that can be modified by the caller to
12935// add HTTP headers to the request.
12936func (c *OrganizationsApisListCall) Header() http.Header {
12937	if c.header_ == nil {
12938		c.header_ = make(http.Header)
12939	}
12940	return c.header_
12941}
12942
12943func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
12944	reqHeaders := make(http.Header)
12945	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
12946	for k, v := range c.header_ {
12947		reqHeaders[k] = v
12948	}
12949	reqHeaders.Set("User-Agent", c.s.userAgent())
12950	if c.ifNoneMatch_ != "" {
12951		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12952	}
12953	var body io.Reader = nil
12954	c.urlParams_.Set("alt", alt)
12955	c.urlParams_.Set("prettyPrint", "false")
12956	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
12957	urls += "?" + c.urlParams_.Encode()
12958	req, err := http.NewRequest("GET", urls, body)
12959	if err != nil {
12960		return nil, err
12961	}
12962	req.Header = reqHeaders
12963	googleapi.Expand(req.URL, map[string]string{
12964		"parent": c.parent,
12965	})
12966	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12967}
12968
12969// Do executes the "apigee.organizations.apis.list" call.
12970// Exactly one of *GoogleCloudApigeeV1ListApiProxiesResponse or error
12971// will be non-nil. Any non-2xx status code is an error. Response
12972// headers are in either
12973// *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or
12974// (if a response was returned at all) in
12975// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12976// whether the returned error was because http.StatusNotModified was
12977// returned.
12978func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
12979	gensupport.SetOptions(c.urlParams_, opts...)
12980	res, err := c.doRequest("json")
12981	if res != nil && res.StatusCode == http.StatusNotModified {
12982		if res.Body != nil {
12983			res.Body.Close()
12984		}
12985		return nil, &googleapi.Error{
12986			Code:   res.StatusCode,
12987			Header: res.Header,
12988		}
12989	}
12990	if err != nil {
12991		return nil, err
12992	}
12993	defer googleapi.CloseBody(res)
12994	if err := googleapi.CheckResponse(res); err != nil {
12995		return nil, err
12996	}
12997	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
12998		ServerResponse: googleapi.ServerResponse{
12999			Header:         res.Header,
13000			HTTPStatusCode: res.StatusCode,
13001		},
13002	}
13003	target := &ret
13004	if err := gensupport.DecodeResponse(target, res); err != nil {
13005		return nil, err
13006	}
13007	return ret, nil
13008	// {
13009	//   "description": "Lists the names of all API proxies in an organization. The names returned correspond to the names defined in the configuration files for each API proxy.",
13010	//   "flatPath": "v1/organizations/{organizationsId}/apis",
13011	//   "httpMethod": "GET",
13012	//   "id": "apigee.organizations.apis.list",
13013	//   "parameterOrder": [
13014	//     "parent"
13015	//   ],
13016	//   "parameters": {
13017	//     "includeMetaData": {
13018	//       "description": "Flag that specifies whether to include API proxy metadata in the response.",
13019	//       "location": "query",
13020	//       "type": "boolean"
13021	//     },
13022	//     "includeRevisions": {
13023	//       "description": "Flag that specifies whether to include a list of revisions in the response.",
13024	//       "location": "query",
13025	//       "type": "boolean"
13026	//     },
13027	//     "parent": {
13028	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
13029	//       "location": "path",
13030	//       "pattern": "^organizations/[^/]+$",
13031	//       "required": true,
13032	//       "type": "string"
13033	//     }
13034	//   },
13035	//   "path": "v1/{+parent}/apis",
13036	//   "response": {
13037	//     "$ref": "GoogleCloudApigeeV1ListApiProxiesResponse"
13038	//   },
13039	//   "scopes": [
13040	//     "https://www.googleapis.com/auth/cloud-platform"
13041	//   ]
13042	// }
13043
13044}
13045
13046// method id "apigee.organizations.apis.deployments.list":
13047
13048type OrganizationsApisDeploymentsListCall struct {
13049	s            *Service
13050	parent       string
13051	urlParams_   gensupport.URLParams
13052	ifNoneMatch_ string
13053	ctx_         context.Context
13054	header_      http.Header
13055}
13056
13057// List: Lists all deployments of an API proxy.
13058func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
13059	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13060	c.parent = parent
13061	return c
13062}
13063
13064// Fields allows partial responses to be retrieved. See
13065// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13066// for more information.
13067func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
13068	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13069	return c
13070}
13071
13072// IfNoneMatch sets the optional parameter which makes the operation
13073// fail if the object's ETag matches the given value. This is useful for
13074// getting updates only after the object has changed since the last
13075// request. Use googleapi.IsNotModified to check whether the response
13076// error from Do is the result of In-None-Match.
13077func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
13078	c.ifNoneMatch_ = entityTag
13079	return c
13080}
13081
13082// Context sets the context to be used in this call's Do method. Any
13083// pending HTTP request will be aborted if the provided context is
13084// canceled.
13085func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
13086	c.ctx_ = ctx
13087	return c
13088}
13089
13090// Header returns an http.Header that can be modified by the caller to
13091// add HTTP headers to the request.
13092func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
13093	if c.header_ == nil {
13094		c.header_ = make(http.Header)
13095	}
13096	return c.header_
13097}
13098
13099func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
13100	reqHeaders := make(http.Header)
13101	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13102	for k, v := range c.header_ {
13103		reqHeaders[k] = v
13104	}
13105	reqHeaders.Set("User-Agent", c.s.userAgent())
13106	if c.ifNoneMatch_ != "" {
13107		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13108	}
13109	var body io.Reader = nil
13110	c.urlParams_.Set("alt", alt)
13111	c.urlParams_.Set("prettyPrint", "false")
13112	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
13113	urls += "?" + c.urlParams_.Encode()
13114	req, err := http.NewRequest("GET", urls, body)
13115	if err != nil {
13116		return nil, err
13117	}
13118	req.Header = reqHeaders
13119	googleapi.Expand(req.URL, map[string]string{
13120		"parent": c.parent,
13121	})
13122	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13123}
13124
13125// Do executes the "apigee.organizations.apis.deployments.list" call.
13126// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
13127// will be non-nil. Any non-2xx status code is an error. Response
13128// headers are in either
13129// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
13130// (if a response was returned at all) in
13131// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13132// whether the returned error was because http.StatusNotModified was
13133// returned.
13134func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
13135	gensupport.SetOptions(c.urlParams_, opts...)
13136	res, err := c.doRequest("json")
13137	if res != nil && res.StatusCode == http.StatusNotModified {
13138		if res.Body != nil {
13139			res.Body.Close()
13140		}
13141		return nil, &googleapi.Error{
13142			Code:   res.StatusCode,
13143			Header: res.Header,
13144		}
13145	}
13146	if err != nil {
13147		return nil, err
13148	}
13149	defer googleapi.CloseBody(res)
13150	if err := googleapi.CheckResponse(res); err != nil {
13151		return nil, err
13152	}
13153	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
13154		ServerResponse: googleapi.ServerResponse{
13155			Header:         res.Header,
13156			HTTPStatusCode: res.StatusCode,
13157		},
13158	}
13159	target := &ret
13160	if err := gensupport.DecodeResponse(target, res); err != nil {
13161		return nil, err
13162	}
13163	return ret, nil
13164	// {
13165	//   "description": "Lists all deployments of an API proxy.",
13166	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/deployments",
13167	//   "httpMethod": "GET",
13168	//   "id": "apigee.organizations.apis.deployments.list",
13169	//   "parameterOrder": [
13170	//     "parent"
13171	//   ],
13172	//   "parameters": {
13173	//     "parent": {
13174	//       "description": "Required. Name of the API proxy for which to return deployment information in the following format: `organizations/{org}/apis/{api}`",
13175	//       "location": "path",
13176	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
13177	//       "required": true,
13178	//       "type": "string"
13179	//     }
13180	//   },
13181	//   "path": "v1/{+parent}/deployments",
13182	//   "response": {
13183	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
13184	//   },
13185	//   "scopes": [
13186	//     "https://www.googleapis.com/auth/cloud-platform"
13187	//   ]
13188	// }
13189
13190}
13191
13192// method id "apigee.organizations.apis.keyvaluemaps.create":
13193
13194type OrganizationsApisKeyvaluemapsCreateCall struct {
13195	s                              *Service
13196	parent                         string
13197	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
13198	urlParams_                     gensupport.URLParams
13199	ctx_                           context.Context
13200	header_                        http.Header
13201}
13202
13203// Create: Creates a key value map in an api proxy.
13204func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
13205	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13206	c.parent = parent
13207	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
13208	return c
13209}
13210
13211// Fields allows partial responses to be retrieved. See
13212// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13213// for more information.
13214func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
13215	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13216	return c
13217}
13218
13219// Context sets the context to be used in this call's Do method. Any
13220// pending HTTP request will be aborted if the provided context is
13221// canceled.
13222func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
13223	c.ctx_ = ctx
13224	return c
13225}
13226
13227// Header returns an http.Header that can be modified by the caller to
13228// add HTTP headers to the request.
13229func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
13230	if c.header_ == nil {
13231		c.header_ = make(http.Header)
13232	}
13233	return c.header_
13234}
13235
13236func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
13237	reqHeaders := make(http.Header)
13238	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13239	for k, v := range c.header_ {
13240		reqHeaders[k] = v
13241	}
13242	reqHeaders.Set("User-Agent", c.s.userAgent())
13243	var body io.Reader = nil
13244	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
13245	if err != nil {
13246		return nil, err
13247	}
13248	reqHeaders.Set("Content-Type", "application/json")
13249	c.urlParams_.Set("alt", alt)
13250	c.urlParams_.Set("prettyPrint", "false")
13251	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
13252	urls += "?" + c.urlParams_.Encode()
13253	req, err := http.NewRequest("POST", urls, body)
13254	if err != nil {
13255		return nil, err
13256	}
13257	req.Header = reqHeaders
13258	googleapi.Expand(req.URL, map[string]string{
13259		"parent": c.parent,
13260	})
13261	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13262}
13263
13264// Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
13265// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
13266// non-nil. Any non-2xx status code is an error. Response headers are in
13267// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
13268// response was returned at all) in error.(*googleapi.Error).Header. Use
13269// googleapi.IsNotModified to check whether the returned error was
13270// because http.StatusNotModified was returned.
13271func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
13272	gensupport.SetOptions(c.urlParams_, opts...)
13273	res, err := c.doRequest("json")
13274	if res != nil && res.StatusCode == http.StatusNotModified {
13275		if res.Body != nil {
13276			res.Body.Close()
13277		}
13278		return nil, &googleapi.Error{
13279			Code:   res.StatusCode,
13280			Header: res.Header,
13281		}
13282	}
13283	if err != nil {
13284		return nil, err
13285	}
13286	defer googleapi.CloseBody(res)
13287	if err := googleapi.CheckResponse(res); err != nil {
13288		return nil, err
13289	}
13290	ret := &GoogleCloudApigeeV1KeyValueMap{
13291		ServerResponse: googleapi.ServerResponse{
13292			Header:         res.Header,
13293			HTTPStatusCode: res.StatusCode,
13294		},
13295	}
13296	target := &ret
13297	if err := gensupport.DecodeResponse(target, res); err != nil {
13298		return nil, err
13299	}
13300	return ret, nil
13301	// {
13302	//   "description": "Creates a key value map in an api proxy.",
13303	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
13304	//   "httpMethod": "POST",
13305	//   "id": "apigee.organizations.apis.keyvaluemaps.create",
13306	//   "parameterOrder": [
13307	//     "parent"
13308	//   ],
13309	//   "parameters": {
13310	//     "parent": {
13311	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/apis/{api}`.",
13312	//       "location": "path",
13313	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
13314	//       "required": true,
13315	//       "type": "string"
13316	//     }
13317	//   },
13318	//   "path": "v1/{+parent}/keyvaluemaps",
13319	//   "request": {
13320	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
13321	//   },
13322	//   "response": {
13323	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
13324	//   },
13325	//   "scopes": [
13326	//     "https://www.googleapis.com/auth/cloud-platform"
13327	//   ]
13328	// }
13329
13330}
13331
13332// method id "apigee.organizations.apis.keyvaluemaps.delete":
13333
13334type OrganizationsApisKeyvaluemapsDeleteCall struct {
13335	s          *Service
13336	name       string
13337	urlParams_ gensupport.URLParams
13338	ctx_       context.Context
13339	header_    http.Header
13340}
13341
13342// Delete: Delete a key value map in an api proxy.
13343func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
13344	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13345	c.name = name
13346	return c
13347}
13348
13349// Fields allows partial responses to be retrieved. See
13350// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13351// for more information.
13352func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
13353	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13354	return c
13355}
13356
13357// Context sets the context to be used in this call's Do method. Any
13358// pending HTTP request will be aborted if the provided context is
13359// canceled.
13360func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
13361	c.ctx_ = ctx
13362	return c
13363}
13364
13365// Header returns an http.Header that can be modified by the caller to
13366// add HTTP headers to the request.
13367func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
13368	if c.header_ == nil {
13369		c.header_ = make(http.Header)
13370	}
13371	return c.header_
13372}
13373
13374func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
13375	reqHeaders := make(http.Header)
13376	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13377	for k, v := range c.header_ {
13378		reqHeaders[k] = v
13379	}
13380	reqHeaders.Set("User-Agent", c.s.userAgent())
13381	var body io.Reader = nil
13382	c.urlParams_.Set("alt", alt)
13383	c.urlParams_.Set("prettyPrint", "false")
13384	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13385	urls += "?" + c.urlParams_.Encode()
13386	req, err := http.NewRequest("DELETE", urls, body)
13387	if err != nil {
13388		return nil, err
13389	}
13390	req.Header = reqHeaders
13391	googleapi.Expand(req.URL, map[string]string{
13392		"name": c.name,
13393	})
13394	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13395}
13396
13397// Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
13398// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
13399// non-nil. Any non-2xx status code is an error. Response headers are in
13400// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
13401// response was returned at all) in error.(*googleapi.Error).Header. Use
13402// googleapi.IsNotModified to check whether the returned error was
13403// because http.StatusNotModified was returned.
13404func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
13405	gensupport.SetOptions(c.urlParams_, opts...)
13406	res, err := c.doRequest("json")
13407	if res != nil && res.StatusCode == http.StatusNotModified {
13408		if res.Body != nil {
13409			res.Body.Close()
13410		}
13411		return nil, &googleapi.Error{
13412			Code:   res.StatusCode,
13413			Header: res.Header,
13414		}
13415	}
13416	if err != nil {
13417		return nil, err
13418	}
13419	defer googleapi.CloseBody(res)
13420	if err := googleapi.CheckResponse(res); err != nil {
13421		return nil, err
13422	}
13423	ret := &GoogleCloudApigeeV1KeyValueMap{
13424		ServerResponse: googleapi.ServerResponse{
13425			Header:         res.Header,
13426			HTTPStatusCode: res.StatusCode,
13427		},
13428	}
13429	target := &ret
13430	if err := gensupport.DecodeResponse(target, res); err != nil {
13431		return nil, err
13432	}
13433	return ret, nil
13434	// {
13435	//   "description": "Delete a key value map in an api proxy.",
13436	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps/{keyvaluemapsId}",
13437	//   "httpMethod": "DELETE",
13438	//   "id": "apigee.organizations.apis.keyvaluemaps.delete",
13439	//   "parameterOrder": [
13440	//     "name"
13441	//   ],
13442	//   "parameters": {
13443	//     "name": {
13444	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`.",
13445	//       "location": "path",
13446	//       "pattern": "^organizations/[^/]+/apis/[^/]+/keyvaluemaps/[^/]+$",
13447	//       "required": true,
13448	//       "type": "string"
13449	//     }
13450	//   },
13451	//   "path": "v1/{+name}",
13452	//   "response": {
13453	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
13454	//   },
13455	//   "scopes": [
13456	//     "https://www.googleapis.com/auth/cloud-platform"
13457	//   ]
13458	// }
13459
13460}
13461
13462// method id "apigee.organizations.apis.revisions.delete":
13463
13464type OrganizationsApisRevisionsDeleteCall struct {
13465	s          *Service
13466	name       string
13467	urlParams_ gensupport.URLParams
13468	ctx_       context.Context
13469	header_    http.Header
13470}
13471
13472// Delete: Deletes an API proxy revision and all policies, resources,
13473// endpoints, and revisions associated with it. The API proxy revision
13474// must be undeployed before you can delete it.
13475func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
13476	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13477	c.name = name
13478	return c
13479}
13480
13481// Fields allows partial responses to be retrieved. See
13482// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13483// for more information.
13484func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
13485	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13486	return c
13487}
13488
13489// Context sets the context to be used in this call's Do method. Any
13490// pending HTTP request will be aborted if the provided context is
13491// canceled.
13492func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
13493	c.ctx_ = ctx
13494	return c
13495}
13496
13497// Header returns an http.Header that can be modified by the caller to
13498// add HTTP headers to the request.
13499func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
13500	if c.header_ == nil {
13501		c.header_ = make(http.Header)
13502	}
13503	return c.header_
13504}
13505
13506func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
13507	reqHeaders := make(http.Header)
13508	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13509	for k, v := range c.header_ {
13510		reqHeaders[k] = v
13511	}
13512	reqHeaders.Set("User-Agent", c.s.userAgent())
13513	var body io.Reader = nil
13514	c.urlParams_.Set("alt", alt)
13515	c.urlParams_.Set("prettyPrint", "false")
13516	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13517	urls += "?" + c.urlParams_.Encode()
13518	req, err := http.NewRequest("DELETE", urls, body)
13519	if err != nil {
13520		return nil, err
13521	}
13522	req.Header = reqHeaders
13523	googleapi.Expand(req.URL, map[string]string{
13524		"name": c.name,
13525	})
13526	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13527}
13528
13529// Do executes the "apigee.organizations.apis.revisions.delete" call.
13530// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
13531// non-nil. Any non-2xx status code is an error. Response headers are in
13532// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
13533// (if a response was returned at all) in
13534// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13535// whether the returned error was because http.StatusNotModified was
13536// returned.
13537func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
13538	gensupport.SetOptions(c.urlParams_, opts...)
13539	res, err := c.doRequest("json")
13540	if res != nil && res.StatusCode == http.StatusNotModified {
13541		if res.Body != nil {
13542			res.Body.Close()
13543		}
13544		return nil, &googleapi.Error{
13545			Code:   res.StatusCode,
13546			Header: res.Header,
13547		}
13548	}
13549	if err != nil {
13550		return nil, err
13551	}
13552	defer googleapi.CloseBody(res)
13553	if err := googleapi.CheckResponse(res); err != nil {
13554		return nil, err
13555	}
13556	ret := &GoogleCloudApigeeV1ApiProxyRevision{
13557		ServerResponse: googleapi.ServerResponse{
13558			Header:         res.Header,
13559			HTTPStatusCode: res.StatusCode,
13560		},
13561	}
13562	target := &ret
13563	if err := gensupport.DecodeResponse(target, res); err != nil {
13564		return nil, err
13565	}
13566	return ret, nil
13567	// {
13568	//   "description": "Deletes an API proxy revision and all policies, resources, endpoints, and revisions associated with it. The API proxy revision must be undeployed before you can delete it.",
13569	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
13570	//   "httpMethod": "DELETE",
13571	//   "id": "apigee.organizations.apis.revisions.delete",
13572	//   "parameterOrder": [
13573	//     "name"
13574	//   ],
13575	//   "parameters": {
13576	//     "name": {
13577	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
13578	//       "location": "path",
13579	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
13580	//       "required": true,
13581	//       "type": "string"
13582	//     }
13583	//   },
13584	//   "path": "v1/{+name}",
13585	//   "response": {
13586	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
13587	//   },
13588	//   "scopes": [
13589	//     "https://www.googleapis.com/auth/cloud-platform"
13590	//   ]
13591	// }
13592
13593}
13594
13595// method id "apigee.organizations.apis.revisions.get":
13596
13597type OrganizationsApisRevisionsGetCall struct {
13598	s            *Service
13599	name         string
13600	urlParams_   gensupport.URLParams
13601	ifNoneMatch_ string
13602	ctx_         context.Context
13603	header_      http.Header
13604}
13605
13606// Get: Gets an API proxy revision. To download the API proxy
13607// configuration bundle for the specified revision as a zip file, set
13608// the `format` query parameter to `bundle`. If you are using curl,
13609// specify `-o filename.zip` to save the output to a file; otherwise, it
13610// displays to `stdout`. Then, develop the API proxy configuration
13611// locally and upload the updated API proxy configuration revision, as
13612// described in updateApiProxyRevision (updateApiProxyRevision).
13613func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
13614	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13615	c.name = name
13616	return c
13617}
13618
13619// Format sets the optional parameter "format": Format used when
13620// downloading the API proxy configuration revision. Set to `bundle` to
13621// download the API proxy configuration revision as a zip file.
13622func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
13623	c.urlParams_.Set("format", format)
13624	return c
13625}
13626
13627// Fields allows partial responses to be retrieved. See
13628// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13629// for more information.
13630func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
13631	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13632	return c
13633}
13634
13635// IfNoneMatch sets the optional parameter which makes the operation
13636// fail if the object's ETag matches the given value. This is useful for
13637// getting updates only after the object has changed since the last
13638// request. Use googleapi.IsNotModified to check whether the response
13639// error from Do is the result of In-None-Match.
13640func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
13641	c.ifNoneMatch_ = entityTag
13642	return c
13643}
13644
13645// Context sets the context to be used in this call's Do method. Any
13646// pending HTTP request will be aborted if the provided context is
13647// canceled.
13648func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
13649	c.ctx_ = ctx
13650	return c
13651}
13652
13653// Header returns an http.Header that can be modified by the caller to
13654// add HTTP headers to the request.
13655func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
13656	if c.header_ == nil {
13657		c.header_ = make(http.Header)
13658	}
13659	return c.header_
13660}
13661
13662func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
13663	reqHeaders := make(http.Header)
13664	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13665	for k, v := range c.header_ {
13666		reqHeaders[k] = v
13667	}
13668	reqHeaders.Set("User-Agent", c.s.userAgent())
13669	if c.ifNoneMatch_ != "" {
13670		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13671	}
13672	var body io.Reader = nil
13673	c.urlParams_.Set("alt", alt)
13674	c.urlParams_.Set("prettyPrint", "false")
13675	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13676	urls += "?" + c.urlParams_.Encode()
13677	req, err := http.NewRequest("GET", urls, body)
13678	if err != nil {
13679		return nil, err
13680	}
13681	req.Header = reqHeaders
13682	googleapi.Expand(req.URL, map[string]string{
13683		"name": c.name,
13684	})
13685	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13686}
13687
13688// Do executes the "apigee.organizations.apis.revisions.get" call.
13689// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
13690// non-2xx status code is an error. Response headers are in either
13691// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
13692// returned at all) in error.(*googleapi.Error).Header. Use
13693// googleapi.IsNotModified to check whether the returned error was
13694// because http.StatusNotModified was returned.
13695func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
13696	gensupport.SetOptions(c.urlParams_, opts...)
13697	res, err := c.doRequest("json")
13698	if res != nil && res.StatusCode == http.StatusNotModified {
13699		if res.Body != nil {
13700			res.Body.Close()
13701		}
13702		return nil, &googleapi.Error{
13703			Code:   res.StatusCode,
13704			Header: res.Header,
13705		}
13706	}
13707	if err != nil {
13708		return nil, err
13709	}
13710	defer googleapi.CloseBody(res)
13711	if err := googleapi.CheckResponse(res); err != nil {
13712		return nil, err
13713	}
13714	ret := &GoogleApiHttpBody{
13715		ServerResponse: googleapi.ServerResponse{
13716			Header:         res.Header,
13717			HTTPStatusCode: res.StatusCode,
13718		},
13719	}
13720	target := &ret
13721	if err := gensupport.DecodeResponse(target, res); err != nil {
13722		return nil, err
13723	}
13724	return ret, nil
13725	// {
13726	//   "description": "Gets an API proxy revision. To download the API proxy configuration bundle for the specified revision as a zip file, set the `format` query parameter to `bundle`. If you are using curl, specify `-o filename.zip` to save the output to a file; otherwise, it displays to `stdout`. Then, develop the API proxy configuration locally and upload the updated API proxy configuration revision, as described in [updateApiProxyRevision](updateApiProxyRevision).",
13727	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
13728	//   "httpMethod": "GET",
13729	//   "id": "apigee.organizations.apis.revisions.get",
13730	//   "parameterOrder": [
13731	//     "name"
13732	//   ],
13733	//   "parameters": {
13734	//     "format": {
13735	//       "description": "Format used when downloading the API proxy configuration revision. Set to `bundle` to download the API proxy configuration revision as a zip file.",
13736	//       "location": "query",
13737	//       "type": "string"
13738	//     },
13739	//     "name": {
13740	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
13741	//       "location": "path",
13742	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
13743	//       "required": true,
13744	//       "type": "string"
13745	//     }
13746	//   },
13747	//   "path": "v1/{+name}",
13748	//   "response": {
13749	//     "$ref": "GoogleApiHttpBody"
13750	//   },
13751	//   "scopes": [
13752	//     "https://www.googleapis.com/auth/cloud-platform"
13753	//   ]
13754	// }
13755
13756}
13757
13758// method id "apigee.organizations.apis.revisions.updateApiProxyRevision":
13759
13760type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
13761	s                 *Service
13762	name              string
13763	googleapihttpbody *GoogleApiHttpBody
13764	urlParams_        gensupport.URLParams
13765	ctx_              context.Context
13766	header_           http.Header
13767}
13768
13769// UpdateApiProxyRevision: Updates an existing API proxy revision by
13770// uploading the API proxy configuration bundle as a zip file from your
13771// local machine. You can update only API proxy revisions that have
13772// never been deployed. After deployment, an API proxy revision becomes
13773// immutable, even if it is undeployed. Set the `Content-Type` header to
13774// either `multipart/form-data` or `application/octet-stream`.
13775func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
13776	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13777	c.name = name
13778	c.googleapihttpbody = googleapihttpbody
13779	return c
13780}
13781
13782// Validate sets the optional parameter "validate": Ignored. All uploads
13783// are validated regardless of the value of this field. Maintained for
13784// compatibility with Apigee Edge API.
13785func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
13786	c.urlParams_.Set("validate", fmt.Sprint(validate))
13787	return c
13788}
13789
13790// Fields allows partial responses to be retrieved. See
13791// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13792// for more information.
13793func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
13794	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13795	return c
13796}
13797
13798// Context sets the context to be used in this call's Do method. Any
13799// pending HTTP request will be aborted if the provided context is
13800// canceled.
13801func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
13802	c.ctx_ = ctx
13803	return c
13804}
13805
13806// Header returns an http.Header that can be modified by the caller to
13807// add HTTP headers to the request.
13808func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
13809	if c.header_ == nil {
13810		c.header_ = make(http.Header)
13811	}
13812	return c.header_
13813}
13814
13815func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
13816	reqHeaders := make(http.Header)
13817	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13818	for k, v := range c.header_ {
13819		reqHeaders[k] = v
13820	}
13821	reqHeaders.Set("User-Agent", c.s.userAgent())
13822	var body io.Reader = nil
13823	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
13824	if err != nil {
13825		return nil, err
13826	}
13827	reqHeaders.Set("Content-Type", "application/json")
13828	c.urlParams_.Set("alt", alt)
13829	c.urlParams_.Set("prettyPrint", "false")
13830	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13831	urls += "?" + c.urlParams_.Encode()
13832	req, err := http.NewRequest("POST", urls, body)
13833	if err != nil {
13834		return nil, err
13835	}
13836	req.Header = reqHeaders
13837	googleapi.Expand(req.URL, map[string]string{
13838		"name": c.name,
13839	})
13840	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13841}
13842
13843// Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
13844// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
13845// non-nil. Any non-2xx status code is an error. Response headers are in
13846// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
13847// (if a response was returned at all) in
13848// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13849// whether the returned error was because http.StatusNotModified was
13850// returned.
13851func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
13852	gensupport.SetOptions(c.urlParams_, opts...)
13853	res, err := c.doRequest("json")
13854	if res != nil && res.StatusCode == http.StatusNotModified {
13855		if res.Body != nil {
13856			res.Body.Close()
13857		}
13858		return nil, &googleapi.Error{
13859			Code:   res.StatusCode,
13860			Header: res.Header,
13861		}
13862	}
13863	if err != nil {
13864		return nil, err
13865	}
13866	defer googleapi.CloseBody(res)
13867	if err := googleapi.CheckResponse(res); err != nil {
13868		return nil, err
13869	}
13870	ret := &GoogleCloudApigeeV1ApiProxyRevision{
13871		ServerResponse: googleapi.ServerResponse{
13872			Header:         res.Header,
13873			HTTPStatusCode: res.StatusCode,
13874		},
13875	}
13876	target := &ret
13877	if err := gensupport.DecodeResponse(target, res); err != nil {
13878		return nil, err
13879	}
13880	return ret, nil
13881	// {
13882	//   "description": "Updates an existing API proxy revision by uploading the API proxy configuration bundle as a zip file from your local machine. You can update only API proxy revisions that have never been deployed. After deployment, an API proxy revision becomes immutable, even if it is undeployed. Set the `Content-Type` header to either `multipart/form-data` or `application/octet-stream`.",
13883	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
13884	//   "httpMethod": "POST",
13885	//   "id": "apigee.organizations.apis.revisions.updateApiProxyRevision",
13886	//   "parameterOrder": [
13887	//     "name"
13888	//   ],
13889	//   "parameters": {
13890	//     "name": {
13891	//       "description": "Required. API proxy revision to update in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
13892	//       "location": "path",
13893	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
13894	//       "required": true,
13895	//       "type": "string"
13896	//     },
13897	//     "validate": {
13898	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
13899	//       "location": "query",
13900	//       "type": "boolean"
13901	//     }
13902	//   },
13903	//   "path": "v1/{+name}",
13904	//   "request": {
13905	//     "$ref": "GoogleApiHttpBody"
13906	//   },
13907	//   "response": {
13908	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
13909	//   },
13910	//   "scopes": [
13911	//     "https://www.googleapis.com/auth/cloud-platform"
13912	//   ]
13913	// }
13914
13915}
13916
13917// method id "apigee.organizations.apis.revisions.deployments.list":
13918
13919type OrganizationsApisRevisionsDeploymentsListCall struct {
13920	s            *Service
13921	parent       string
13922	urlParams_   gensupport.URLParams
13923	ifNoneMatch_ string
13924	ctx_         context.Context
13925	header_      http.Header
13926}
13927
13928// List: Lists all deployments of an API proxy revision.
13929func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
13930	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13931	c.parent = parent
13932	return c
13933}
13934
13935// Fields allows partial responses to be retrieved. See
13936// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13937// for more information.
13938func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
13939	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13940	return c
13941}
13942
13943// IfNoneMatch sets the optional parameter which makes the operation
13944// fail if the object's ETag matches the given value. This is useful for
13945// getting updates only after the object has changed since the last
13946// request. Use googleapi.IsNotModified to check whether the response
13947// error from Do is the result of In-None-Match.
13948func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
13949	c.ifNoneMatch_ = entityTag
13950	return c
13951}
13952
13953// Context sets the context to be used in this call's Do method. Any
13954// pending HTTP request will be aborted if the provided context is
13955// canceled.
13956func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
13957	c.ctx_ = ctx
13958	return c
13959}
13960
13961// Header returns an http.Header that can be modified by the caller to
13962// add HTTP headers to the request.
13963func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
13964	if c.header_ == nil {
13965		c.header_ = make(http.Header)
13966	}
13967	return c.header_
13968}
13969
13970func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
13971	reqHeaders := make(http.Header)
13972	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
13973	for k, v := range c.header_ {
13974		reqHeaders[k] = v
13975	}
13976	reqHeaders.Set("User-Agent", c.s.userAgent())
13977	if c.ifNoneMatch_ != "" {
13978		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13979	}
13980	var body io.Reader = nil
13981	c.urlParams_.Set("alt", alt)
13982	c.urlParams_.Set("prettyPrint", "false")
13983	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
13984	urls += "?" + c.urlParams_.Encode()
13985	req, err := http.NewRequest("GET", urls, body)
13986	if err != nil {
13987		return nil, err
13988	}
13989	req.Header = reqHeaders
13990	googleapi.Expand(req.URL, map[string]string{
13991		"parent": c.parent,
13992	})
13993	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13994}
13995
13996// Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
13997// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
13998// will be non-nil. Any non-2xx status code is an error. Response
13999// headers are in either
14000// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
14001// (if a response was returned at all) in
14002// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14003// whether the returned error was because http.StatusNotModified was
14004// returned.
14005func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
14006	gensupport.SetOptions(c.urlParams_, opts...)
14007	res, err := c.doRequest("json")
14008	if res != nil && res.StatusCode == http.StatusNotModified {
14009		if res.Body != nil {
14010			res.Body.Close()
14011		}
14012		return nil, &googleapi.Error{
14013			Code:   res.StatusCode,
14014			Header: res.Header,
14015		}
14016	}
14017	if err != nil {
14018		return nil, err
14019	}
14020	defer googleapi.CloseBody(res)
14021	if err := googleapi.CheckResponse(res); err != nil {
14022		return nil, err
14023	}
14024	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
14025		ServerResponse: googleapi.ServerResponse{
14026			Header:         res.Header,
14027			HTTPStatusCode: res.StatusCode,
14028		},
14029	}
14030	target := &ret
14031	if err := gensupport.DecodeResponse(target, res); err != nil {
14032		return nil, err
14033	}
14034	return ret, nil
14035	// {
14036	//   "description": "Lists all deployments of an API proxy revision.",
14037	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
14038	//   "httpMethod": "GET",
14039	//   "id": "apigee.organizations.apis.revisions.deployments.list",
14040	//   "parameterOrder": [
14041	//     "parent"
14042	//   ],
14043	//   "parameters": {
14044	//     "parent": {
14045	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`.",
14046	//       "location": "path",
14047	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
14048	//       "required": true,
14049	//       "type": "string"
14050	//     }
14051	//   },
14052	//   "path": "v1/{+parent}/deployments",
14053	//   "response": {
14054	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
14055	//   },
14056	//   "scopes": [
14057	//     "https://www.googleapis.com/auth/cloud-platform"
14058	//   ]
14059	// }
14060
14061}
14062
14063// method id "apigee.organizations.apps.get":
14064
14065type OrganizationsAppsGetCall struct {
14066	s            *Service
14067	name         string
14068	urlParams_   gensupport.URLParams
14069	ifNoneMatch_ string
14070	ctx_         context.Context
14071	header_      http.Header
14072}
14073
14074// Get: Gets the app profile for the specified app ID.
14075func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
14076	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14077	c.name = name
14078	return c
14079}
14080
14081// Fields allows partial responses to be retrieved. See
14082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14083// for more information.
14084func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
14085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14086	return c
14087}
14088
14089// IfNoneMatch sets the optional parameter which makes the operation
14090// fail if the object's ETag matches the given value. This is useful for
14091// getting updates only after the object has changed since the last
14092// request. Use googleapi.IsNotModified to check whether the response
14093// error from Do is the result of In-None-Match.
14094func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
14095	c.ifNoneMatch_ = entityTag
14096	return c
14097}
14098
14099// Context sets the context to be used in this call's Do method. Any
14100// pending HTTP request will be aborted if the provided context is
14101// canceled.
14102func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
14103	c.ctx_ = ctx
14104	return c
14105}
14106
14107// Header returns an http.Header that can be modified by the caller to
14108// add HTTP headers to the request.
14109func (c *OrganizationsAppsGetCall) Header() http.Header {
14110	if c.header_ == nil {
14111		c.header_ = make(http.Header)
14112	}
14113	return c.header_
14114}
14115
14116func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
14117	reqHeaders := make(http.Header)
14118	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
14119	for k, v := range c.header_ {
14120		reqHeaders[k] = v
14121	}
14122	reqHeaders.Set("User-Agent", c.s.userAgent())
14123	if c.ifNoneMatch_ != "" {
14124		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14125	}
14126	var body io.Reader = nil
14127	c.urlParams_.Set("alt", alt)
14128	c.urlParams_.Set("prettyPrint", "false")
14129	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14130	urls += "?" + c.urlParams_.Encode()
14131	req, err := http.NewRequest("GET", urls, body)
14132	if err != nil {
14133		return nil, err
14134	}
14135	req.Header = reqHeaders
14136	googleapi.Expand(req.URL, map[string]string{
14137		"name": c.name,
14138	})
14139	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14140}
14141
14142// Do executes the "apigee.organizations.apps.get" call.
14143// Exactly one of *GoogleCloudApigeeV1App or error will be non-nil. Any
14144// non-2xx status code is an error. Response headers are in either
14145// *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was
14146// returned at all) in error.(*googleapi.Error).Header. Use
14147// googleapi.IsNotModified to check whether the returned error was
14148// because http.StatusNotModified was returned.
14149func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
14150	gensupport.SetOptions(c.urlParams_, opts...)
14151	res, err := c.doRequest("json")
14152	if res != nil && res.StatusCode == http.StatusNotModified {
14153		if res.Body != nil {
14154			res.Body.Close()
14155		}
14156		return nil, &googleapi.Error{
14157			Code:   res.StatusCode,
14158			Header: res.Header,
14159		}
14160	}
14161	if err != nil {
14162		return nil, err
14163	}
14164	defer googleapi.CloseBody(res)
14165	if err := googleapi.CheckResponse(res); err != nil {
14166		return nil, err
14167	}
14168	ret := &GoogleCloudApigeeV1App{
14169		ServerResponse: googleapi.ServerResponse{
14170			Header:         res.Header,
14171			HTTPStatusCode: res.StatusCode,
14172		},
14173	}
14174	target := &ret
14175	if err := gensupport.DecodeResponse(target, res); err != nil {
14176		return nil, err
14177	}
14178	return ret, nil
14179	// {
14180	//   "description": "Gets the app profile for the specified app ID.",
14181	//   "flatPath": "v1/organizations/{organizationsId}/apps/{appsId}",
14182	//   "httpMethod": "GET",
14183	//   "id": "apigee.organizations.apps.get",
14184	//   "parameterOrder": [
14185	//     "name"
14186	//   ],
14187	//   "parameters": {
14188	//     "name": {
14189	//       "description": "Required. App ID in the following format: `organizations/{org}/apps/{app}`",
14190	//       "location": "path",
14191	//       "pattern": "^organizations/[^/]+/apps/[^/]+$",
14192	//       "required": true,
14193	//       "type": "string"
14194	//     }
14195	//   },
14196	//   "path": "v1/{+name}",
14197	//   "response": {
14198	//     "$ref": "GoogleCloudApigeeV1App"
14199	//   },
14200	//   "scopes": [
14201	//     "https://www.googleapis.com/auth/cloud-platform"
14202	//   ]
14203	// }
14204
14205}
14206
14207// method id "apigee.organizations.apps.list":
14208
14209type OrganizationsAppsListCall struct {
14210	s            *Service
14211	parent       string
14212	urlParams_   gensupport.URLParams
14213	ifNoneMatch_ string
14214	ctx_         context.Context
14215	header_      http.Header
14216}
14217
14218// List: Lists IDs of apps within an organization that have the
14219// specified app status (approved or revoked) or are of the specified
14220// app type (developer or company).
14221func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
14222	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14223	c.parent = parent
14224	return c
14225}
14226
14227// ApiProduct sets the optional parameter "apiProduct": API product.
14228func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
14229	c.urlParams_.Set("apiProduct", apiProduct)
14230	return c
14231}
14232
14233// Apptype sets the optional parameter "apptype": Filter by the type of
14234// the app. Valid values are `company` or `developer`. Defaults to
14235// `developer`.
14236func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
14237	c.urlParams_.Set("apptype", apptype)
14238	return c
14239}
14240
14241// Expand sets the optional parameter "expand": Flag that specifies
14242// whether to return an expanded list of apps for the organization.
14243// Defaults to `false`.
14244func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
14245	c.urlParams_.Set("expand", fmt.Sprint(expand))
14246	return c
14247}
14248
14249// Ids sets the optional parameter "ids": Comma-separated list of app
14250// IDs on which to filter.
14251func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
14252	c.urlParams_.Set("ids", ids)
14253	return c
14254}
14255
14256// IncludeCred sets the optional parameter "includeCred": Flag that
14257// specifies whether to include credentials in the response.
14258func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
14259	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
14260	return c
14261}
14262
14263// KeyStatus sets the optional parameter "keyStatus": Key status of the
14264// app. Valid values include `approved` or `revoked`. Defaults to
14265// `approved`.
14266func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
14267	c.urlParams_.Set("keyStatus", keyStatus)
14268	return c
14269}
14270
14271// Rows sets the optional parameter "rows": Maximum number of app IDs to
14272// return. Defaults to 10000.
14273func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
14274	c.urlParams_.Set("rows", fmt.Sprint(rows))
14275	return c
14276}
14277
14278// StartKey sets the optional parameter "startKey": Returns the list of
14279// apps starting from the specified app ID.
14280func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
14281	c.urlParams_.Set("startKey", startKey)
14282	return c
14283}
14284
14285// Status sets the optional parameter "status": Filter by the status of
14286// the app. Valid values are `approved` or `revoked`. Defaults to
14287// `approved`.
14288func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
14289	c.urlParams_.Set("status", status)
14290	return c
14291}
14292
14293// Fields allows partial responses to be retrieved. See
14294// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14295// for more information.
14296func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
14297	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14298	return c
14299}
14300
14301// IfNoneMatch sets the optional parameter which makes the operation
14302// fail if the object's ETag matches the given value. This is useful for
14303// getting updates only after the object has changed since the last
14304// request. Use googleapi.IsNotModified to check whether the response
14305// error from Do is the result of In-None-Match.
14306func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
14307	c.ifNoneMatch_ = entityTag
14308	return c
14309}
14310
14311// Context sets the context to be used in this call's Do method. Any
14312// pending HTTP request will be aborted if the provided context is
14313// canceled.
14314func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
14315	c.ctx_ = ctx
14316	return c
14317}
14318
14319// Header returns an http.Header that can be modified by the caller to
14320// add HTTP headers to the request.
14321func (c *OrganizationsAppsListCall) Header() http.Header {
14322	if c.header_ == nil {
14323		c.header_ = make(http.Header)
14324	}
14325	return c.header_
14326}
14327
14328func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
14329	reqHeaders := make(http.Header)
14330	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
14331	for k, v := range c.header_ {
14332		reqHeaders[k] = v
14333	}
14334	reqHeaders.Set("User-Agent", c.s.userAgent())
14335	if c.ifNoneMatch_ != "" {
14336		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14337	}
14338	var body io.Reader = nil
14339	c.urlParams_.Set("alt", alt)
14340	c.urlParams_.Set("prettyPrint", "false")
14341	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
14342	urls += "?" + c.urlParams_.Encode()
14343	req, err := http.NewRequest("GET", urls, body)
14344	if err != nil {
14345		return nil, err
14346	}
14347	req.Header = reqHeaders
14348	googleapi.Expand(req.URL, map[string]string{
14349		"parent": c.parent,
14350	})
14351	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14352}
14353
14354// Do executes the "apigee.organizations.apps.list" call.
14355// Exactly one of *GoogleCloudApigeeV1ListAppsResponse or error will be
14356// non-nil. Any non-2xx status code is an error. Response headers are in
14357// either *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or
14358// (if a response was returned at all) in
14359// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14360// whether the returned error was because http.StatusNotModified was
14361// returned.
14362func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
14363	gensupport.SetOptions(c.urlParams_, opts...)
14364	res, err := c.doRequest("json")
14365	if res != nil && res.StatusCode == http.StatusNotModified {
14366		if res.Body != nil {
14367			res.Body.Close()
14368		}
14369		return nil, &googleapi.Error{
14370			Code:   res.StatusCode,
14371			Header: res.Header,
14372		}
14373	}
14374	if err != nil {
14375		return nil, err
14376	}
14377	defer googleapi.CloseBody(res)
14378	if err := googleapi.CheckResponse(res); err != nil {
14379		return nil, err
14380	}
14381	ret := &GoogleCloudApigeeV1ListAppsResponse{
14382		ServerResponse: googleapi.ServerResponse{
14383			Header:         res.Header,
14384			HTTPStatusCode: res.StatusCode,
14385		},
14386	}
14387	target := &ret
14388	if err := gensupport.DecodeResponse(target, res); err != nil {
14389		return nil, err
14390	}
14391	return ret, nil
14392	// {
14393	//   "description": "Lists IDs of apps within an organization that have the specified app status (approved or revoked) or are of the specified app type (developer or company).",
14394	//   "flatPath": "v1/organizations/{organizationsId}/apps",
14395	//   "httpMethod": "GET",
14396	//   "id": "apigee.organizations.apps.list",
14397	//   "parameterOrder": [
14398	//     "parent"
14399	//   ],
14400	//   "parameters": {
14401	//     "apiProduct": {
14402	//       "description": "API product.",
14403	//       "location": "query",
14404	//       "type": "string"
14405	//     },
14406	//     "apptype": {
14407	//       "description": "Optional. Filter by the type of the app. Valid values are `company` or `developer`. Defaults to `developer`.",
14408	//       "location": "query",
14409	//       "type": "string"
14410	//     },
14411	//     "expand": {
14412	//       "description": "Optional. Flag that specifies whether to return an expanded list of apps for the organization. Defaults to `false`.",
14413	//       "location": "query",
14414	//       "type": "boolean"
14415	//     },
14416	//     "ids": {
14417	//       "description": "Optional. Comma-separated list of app IDs on which to filter.",
14418	//       "location": "query",
14419	//       "type": "string"
14420	//     },
14421	//     "includeCred": {
14422	//       "description": "Optional. Flag that specifies whether to include credentials in the response.",
14423	//       "location": "query",
14424	//       "type": "boolean"
14425	//     },
14426	//     "keyStatus": {
14427	//       "description": "Optional. Key status of the app. Valid values include `approved` or `revoked`. Defaults to `approved`.",
14428	//       "location": "query",
14429	//       "type": "string"
14430	//     },
14431	//     "parent": {
14432	//       "description": "Required. Resource path of the parent in the following format: `organizations/{org}`",
14433	//       "location": "path",
14434	//       "pattern": "^organizations/[^/]+$",
14435	//       "required": true,
14436	//       "type": "string"
14437	//     },
14438	//     "rows": {
14439	//       "description": "Optional. Maximum number of app IDs to return. Defaults to 10000.",
14440	//       "format": "int64",
14441	//       "location": "query",
14442	//       "type": "string"
14443	//     },
14444	//     "startKey": {
14445	//       "description": "Returns the list of apps starting from the specified app ID.",
14446	//       "location": "query",
14447	//       "type": "string"
14448	//     },
14449	//     "status": {
14450	//       "description": "Optional. Filter by the status of the app. Valid values are `approved` or `revoked`. Defaults to `approved`.",
14451	//       "location": "query",
14452	//       "type": "string"
14453	//     }
14454	//   },
14455	//   "path": "v1/{+parent}/apps",
14456	//   "response": {
14457	//     "$ref": "GoogleCloudApigeeV1ListAppsResponse"
14458	//   },
14459	//   "scopes": [
14460	//     "https://www.googleapis.com/auth/cloud-platform"
14461	//   ]
14462	// }
14463
14464}
14465
14466// method id "apigee.organizations.datacollectors.create":
14467
14468type OrganizationsDatacollectorsCreateCall struct {
14469	s                                *Service
14470	parent                           string
14471	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
14472	urlParams_                       gensupport.URLParams
14473	ctx_                             context.Context
14474	header_                          http.Header
14475}
14476
14477// Create: Creates a new data collector.
14478func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
14479	c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14480	c.parent = parent
14481	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
14482	return c
14483}
14484
14485// DataCollectorId sets the optional parameter "dataCollectorId": ID of
14486// the data collector. Overrides any ID in the data collector resource.
14487// Must begin with `dc_`.
14488func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
14489	c.urlParams_.Set("dataCollectorId", dataCollectorId)
14490	return c
14491}
14492
14493// Fields allows partial responses to be retrieved. See
14494// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14495// for more information.
14496func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
14497	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14498	return c
14499}
14500
14501// Context sets the context to be used in this call's Do method. Any
14502// pending HTTP request will be aborted if the provided context is
14503// canceled.
14504func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
14505	c.ctx_ = ctx
14506	return c
14507}
14508
14509// Header returns an http.Header that can be modified by the caller to
14510// add HTTP headers to the request.
14511func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
14512	if c.header_ == nil {
14513		c.header_ = make(http.Header)
14514	}
14515	return c.header_
14516}
14517
14518func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
14519	reqHeaders := make(http.Header)
14520	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
14521	for k, v := range c.header_ {
14522		reqHeaders[k] = v
14523	}
14524	reqHeaders.Set("User-Agent", c.s.userAgent())
14525	var body io.Reader = nil
14526	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
14527	if err != nil {
14528		return nil, err
14529	}
14530	reqHeaders.Set("Content-Type", "application/json")
14531	c.urlParams_.Set("alt", alt)
14532	c.urlParams_.Set("prettyPrint", "false")
14533	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
14534	urls += "?" + c.urlParams_.Encode()
14535	req, err := http.NewRequest("POST", urls, body)
14536	if err != nil {
14537		return nil, err
14538	}
14539	req.Header = reqHeaders
14540	googleapi.Expand(req.URL, map[string]string{
14541		"parent": c.parent,
14542	})
14543	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14544}
14545
14546// Do executes the "apigee.organizations.datacollectors.create" call.
14547// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
14548// non-nil. Any non-2xx status code is an error. Response headers are in
14549// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
14550// a response was returned at all) in error.(*googleapi.Error).Header.
14551// Use googleapi.IsNotModified to check whether the returned error was
14552// because http.StatusNotModified was returned.
14553func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
14554	gensupport.SetOptions(c.urlParams_, opts...)
14555	res, err := c.doRequest("json")
14556	if res != nil && res.StatusCode == http.StatusNotModified {
14557		if res.Body != nil {
14558			res.Body.Close()
14559		}
14560		return nil, &googleapi.Error{
14561			Code:   res.StatusCode,
14562			Header: res.Header,
14563		}
14564	}
14565	if err != nil {
14566		return nil, err
14567	}
14568	defer googleapi.CloseBody(res)
14569	if err := googleapi.CheckResponse(res); err != nil {
14570		return nil, err
14571	}
14572	ret := &GoogleCloudApigeeV1DataCollector{
14573		ServerResponse: googleapi.ServerResponse{
14574			Header:         res.Header,
14575			HTTPStatusCode: res.StatusCode,
14576		},
14577	}
14578	target := &ret
14579	if err := gensupport.DecodeResponse(target, res); err != nil {
14580		return nil, err
14581	}
14582	return ret, nil
14583	// {
14584	//   "description": "Creates a new data collector.",
14585	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
14586	//   "httpMethod": "POST",
14587	//   "id": "apigee.organizations.datacollectors.create",
14588	//   "parameterOrder": [
14589	//     "parent"
14590	//   ],
14591	//   "parameters": {
14592	//     "dataCollectorId": {
14593	//       "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.",
14594	//       "location": "query",
14595	//       "type": "string"
14596	//     },
14597	//     "parent": {
14598	//       "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.",
14599	//       "location": "path",
14600	//       "pattern": "^organizations/[^/]+$",
14601	//       "required": true,
14602	//       "type": "string"
14603	//     }
14604	//   },
14605	//   "path": "v1/{+parent}/datacollectors",
14606	//   "request": {
14607	//     "$ref": "GoogleCloudApigeeV1DataCollector"
14608	//   },
14609	//   "response": {
14610	//     "$ref": "GoogleCloudApigeeV1DataCollector"
14611	//   },
14612	//   "scopes": [
14613	//     "https://www.googleapis.com/auth/cloud-platform"
14614	//   ]
14615	// }
14616
14617}
14618
14619// method id "apigee.organizations.datacollectors.delete":
14620
14621type OrganizationsDatacollectorsDeleteCall struct {
14622	s          *Service
14623	name       string
14624	urlParams_ gensupport.URLParams
14625	ctx_       context.Context
14626	header_    http.Header
14627}
14628
14629// Delete: Deletes a data collector.
14630func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
14631	c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14632	c.name = name
14633	return c
14634}
14635
14636// Fields allows partial responses to be retrieved. See
14637// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14638// for more information.
14639func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
14640	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14641	return c
14642}
14643
14644// Context sets the context to be used in this call's Do method. Any
14645// pending HTTP request will be aborted if the provided context is
14646// canceled.
14647func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
14648	c.ctx_ = ctx
14649	return c
14650}
14651
14652// Header returns an http.Header that can be modified by the caller to
14653// add HTTP headers to the request.
14654func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
14655	if c.header_ == nil {
14656		c.header_ = make(http.Header)
14657	}
14658	return c.header_
14659}
14660
14661func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
14662	reqHeaders := make(http.Header)
14663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
14664	for k, v := range c.header_ {
14665		reqHeaders[k] = v
14666	}
14667	reqHeaders.Set("User-Agent", c.s.userAgent())
14668	var body io.Reader = nil
14669	c.urlParams_.Set("alt", alt)
14670	c.urlParams_.Set("prettyPrint", "false")
14671	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14672	urls += "?" + c.urlParams_.Encode()
14673	req, err := http.NewRequest("DELETE", urls, body)
14674	if err != nil {
14675		return nil, err
14676	}
14677	req.Header = reqHeaders
14678	googleapi.Expand(req.URL, map[string]string{
14679		"name": c.name,
14680	})
14681	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14682}
14683
14684// Do executes the "apigee.organizations.datacollectors.delete" call.
14685// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
14686// non-2xx status code is an error. Response headers are in either
14687// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
14688// returned at all) in error.(*googleapi.Error).Header. Use
14689// googleapi.IsNotModified to check whether the returned error was
14690// because http.StatusNotModified was returned.
14691func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
14692	gensupport.SetOptions(c.urlParams_, opts...)
14693	res, err := c.doRequest("json")
14694	if res != nil && res.StatusCode == http.StatusNotModified {
14695		if res.Body != nil {
14696			res.Body.Close()
14697		}
14698		return nil, &googleapi.Error{
14699			Code:   res.StatusCode,
14700			Header: res.Header,
14701		}
14702	}
14703	if err != nil {
14704		return nil, err
14705	}
14706	defer googleapi.CloseBody(res)
14707	if err := googleapi.CheckResponse(res); err != nil {
14708		return nil, err
14709	}
14710	ret := &GoogleProtobufEmpty{
14711		ServerResponse: googleapi.ServerResponse{
14712			Header:         res.Header,
14713			HTTPStatusCode: res.StatusCode,
14714		},
14715	}
14716	target := &ret
14717	if err := gensupport.DecodeResponse(target, res); err != nil {
14718		return nil, err
14719	}
14720	return ret, nil
14721	// {
14722	//   "description": "Deletes a data collector.",
14723	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
14724	//   "httpMethod": "DELETE",
14725	//   "id": "apigee.organizations.datacollectors.delete",
14726	//   "parameterOrder": [
14727	//     "name"
14728	//   ],
14729	//   "parameters": {
14730	//     "name": {
14731	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
14732	//       "location": "path",
14733	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
14734	//       "required": true,
14735	//       "type": "string"
14736	//     }
14737	//   },
14738	//   "path": "v1/{+name}",
14739	//   "response": {
14740	//     "$ref": "GoogleProtobufEmpty"
14741	//   },
14742	//   "scopes": [
14743	//     "https://www.googleapis.com/auth/cloud-platform"
14744	//   ]
14745	// }
14746
14747}
14748
14749// method id "apigee.organizations.datacollectors.get":
14750
14751type OrganizationsDatacollectorsGetCall struct {
14752	s            *Service
14753	name         string
14754	urlParams_   gensupport.URLParams
14755	ifNoneMatch_ string
14756	ctx_         context.Context
14757	header_      http.Header
14758}
14759
14760// Get: Gets a data collector.
14761func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
14762	c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14763	c.name = name
14764	return c
14765}
14766
14767// Fields allows partial responses to be retrieved. See
14768// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14769// for more information.
14770func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
14771	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14772	return c
14773}
14774
14775// IfNoneMatch sets the optional parameter which makes the operation
14776// fail if the object's ETag matches the given value. This is useful for
14777// getting updates only after the object has changed since the last
14778// request. Use googleapi.IsNotModified to check whether the response
14779// error from Do is the result of In-None-Match.
14780func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
14781	c.ifNoneMatch_ = entityTag
14782	return c
14783}
14784
14785// Context sets the context to be used in this call's Do method. Any
14786// pending HTTP request will be aborted if the provided context is
14787// canceled.
14788func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
14789	c.ctx_ = ctx
14790	return c
14791}
14792
14793// Header returns an http.Header that can be modified by the caller to
14794// add HTTP headers to the request.
14795func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
14796	if c.header_ == nil {
14797		c.header_ = make(http.Header)
14798	}
14799	return c.header_
14800}
14801
14802func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
14803	reqHeaders := make(http.Header)
14804	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
14805	for k, v := range c.header_ {
14806		reqHeaders[k] = v
14807	}
14808	reqHeaders.Set("User-Agent", c.s.userAgent())
14809	if c.ifNoneMatch_ != "" {
14810		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14811	}
14812	var body io.Reader = nil
14813	c.urlParams_.Set("alt", alt)
14814	c.urlParams_.Set("prettyPrint", "false")
14815	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14816	urls += "?" + c.urlParams_.Encode()
14817	req, err := http.NewRequest("GET", urls, body)
14818	if err != nil {
14819		return nil, err
14820	}
14821	req.Header = reqHeaders
14822	googleapi.Expand(req.URL, map[string]string{
14823		"name": c.name,
14824	})
14825	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14826}
14827
14828// Do executes the "apigee.organizations.datacollectors.get" call.
14829// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
14830// non-nil. Any non-2xx status code is an error. Response headers are in
14831// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
14832// a response was returned at all) in error.(*googleapi.Error).Header.
14833// Use googleapi.IsNotModified to check whether the returned error was
14834// because http.StatusNotModified was returned.
14835func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
14836	gensupport.SetOptions(c.urlParams_, opts...)
14837	res, err := c.doRequest("json")
14838	if res != nil && res.StatusCode == http.StatusNotModified {
14839		if res.Body != nil {
14840			res.Body.Close()
14841		}
14842		return nil, &googleapi.Error{
14843			Code:   res.StatusCode,
14844			Header: res.Header,
14845		}
14846	}
14847	if err != nil {
14848		return nil, err
14849	}
14850	defer googleapi.CloseBody(res)
14851	if err := googleapi.CheckResponse(res); err != nil {
14852		return nil, err
14853	}
14854	ret := &GoogleCloudApigeeV1DataCollector{
14855		ServerResponse: googleapi.ServerResponse{
14856			Header:         res.Header,
14857			HTTPStatusCode: res.StatusCode,
14858		},
14859	}
14860	target := &ret
14861	if err := gensupport.DecodeResponse(target, res); err != nil {
14862		return nil, err
14863	}
14864	return ret, nil
14865	// {
14866	//   "description": "Gets a data collector.",
14867	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
14868	//   "httpMethod": "GET",
14869	//   "id": "apigee.organizations.datacollectors.get",
14870	//   "parameterOrder": [
14871	//     "name"
14872	//   ],
14873	//   "parameters": {
14874	//     "name": {
14875	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
14876	//       "location": "path",
14877	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
14878	//       "required": true,
14879	//       "type": "string"
14880	//     }
14881	//   },
14882	//   "path": "v1/{+name}",
14883	//   "response": {
14884	//     "$ref": "GoogleCloudApigeeV1DataCollector"
14885	//   },
14886	//   "scopes": [
14887	//     "https://www.googleapis.com/auth/cloud-platform"
14888	//   ]
14889	// }
14890
14891}
14892
14893// method id "apigee.organizations.datacollectors.list":
14894
14895type OrganizationsDatacollectorsListCall struct {
14896	s            *Service
14897	parent       string
14898	urlParams_   gensupport.URLParams
14899	ifNoneMatch_ string
14900	ctx_         context.Context
14901	header_      http.Header
14902}
14903
14904// List: Lists all data collectors.
14905func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
14906	c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14907	c.parent = parent
14908	return c
14909}
14910
14911// PageSize sets the optional parameter "pageSize": Maximum number of
14912// data collectors to return. The page size defaults to 25.
14913func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
14914	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14915	return c
14916}
14917
14918// PageToken sets the optional parameter "pageToken": Page token,
14919// returned from a previous ListDataCollectors call, that you can use to
14920// retrieve the next page.
14921func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
14922	c.urlParams_.Set("pageToken", pageToken)
14923	return c
14924}
14925
14926// Fields allows partial responses to be retrieved. See
14927// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14928// for more information.
14929func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
14930	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14931	return c
14932}
14933
14934// IfNoneMatch sets the optional parameter which makes the operation
14935// fail if the object's ETag matches the given value. This is useful for
14936// getting updates only after the object has changed since the last
14937// request. Use googleapi.IsNotModified to check whether the response
14938// error from Do is the result of In-None-Match.
14939func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
14940	c.ifNoneMatch_ = entityTag
14941	return c
14942}
14943
14944// Context sets the context to be used in this call's Do method. Any
14945// pending HTTP request will be aborted if the provided context is
14946// canceled.
14947func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
14948	c.ctx_ = ctx
14949	return c
14950}
14951
14952// Header returns an http.Header that can be modified by the caller to
14953// add HTTP headers to the request.
14954func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
14955	if c.header_ == nil {
14956		c.header_ = make(http.Header)
14957	}
14958	return c.header_
14959}
14960
14961func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
14962	reqHeaders := make(http.Header)
14963	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
14964	for k, v := range c.header_ {
14965		reqHeaders[k] = v
14966	}
14967	reqHeaders.Set("User-Agent", c.s.userAgent())
14968	if c.ifNoneMatch_ != "" {
14969		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14970	}
14971	var body io.Reader = nil
14972	c.urlParams_.Set("alt", alt)
14973	c.urlParams_.Set("prettyPrint", "false")
14974	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
14975	urls += "?" + c.urlParams_.Encode()
14976	req, err := http.NewRequest("GET", urls, body)
14977	if err != nil {
14978		return nil, err
14979	}
14980	req.Header = reqHeaders
14981	googleapi.Expand(req.URL, map[string]string{
14982		"parent": c.parent,
14983	})
14984	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14985}
14986
14987// Do executes the "apigee.organizations.datacollectors.list" call.
14988// Exactly one of *GoogleCloudApigeeV1ListDataCollectorsResponse or
14989// error will be non-nil. Any non-2xx status code is an error. Response
14990// headers are in either
14991// *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header
14992// or (if a response was returned at all) in
14993// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14994// whether the returned error was because http.StatusNotModified was
14995// returned.
14996func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
14997	gensupport.SetOptions(c.urlParams_, opts...)
14998	res, err := c.doRequest("json")
14999	if res != nil && res.StatusCode == http.StatusNotModified {
15000		if res.Body != nil {
15001			res.Body.Close()
15002		}
15003		return nil, &googleapi.Error{
15004			Code:   res.StatusCode,
15005			Header: res.Header,
15006		}
15007	}
15008	if err != nil {
15009		return nil, err
15010	}
15011	defer googleapi.CloseBody(res)
15012	if err := googleapi.CheckResponse(res); err != nil {
15013		return nil, err
15014	}
15015	ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
15016		ServerResponse: googleapi.ServerResponse{
15017			Header:         res.Header,
15018			HTTPStatusCode: res.StatusCode,
15019		},
15020	}
15021	target := &ret
15022	if err := gensupport.DecodeResponse(target, res); err != nil {
15023		return nil, err
15024	}
15025	return ret, nil
15026	// {
15027	//   "description": "Lists all data collectors.",
15028	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
15029	//   "httpMethod": "GET",
15030	//   "id": "apigee.organizations.datacollectors.list",
15031	//   "parameterOrder": [
15032	//     "parent"
15033	//   ],
15034	//   "parameters": {
15035	//     "pageSize": {
15036	//       "description": "Maximum number of data collectors to return. The page size defaults to 25.",
15037	//       "format": "int32",
15038	//       "location": "query",
15039	//       "type": "integer"
15040	//     },
15041	//     "pageToken": {
15042	//       "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.",
15043	//       "location": "query",
15044	//       "type": "string"
15045	//     },
15046	//     "parent": {
15047	//       "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.",
15048	//       "location": "path",
15049	//       "pattern": "^organizations/[^/]+$",
15050	//       "required": true,
15051	//       "type": "string"
15052	//     }
15053	//   },
15054	//   "path": "v1/{+parent}/datacollectors",
15055	//   "response": {
15056	//     "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse"
15057	//   },
15058	//   "scopes": [
15059	//     "https://www.googleapis.com/auth/cloud-platform"
15060	//   ]
15061	// }
15062
15063}
15064
15065// Pages invokes f for each page of results.
15066// A non-nil error returned from f will halt the iteration.
15067// The provided context supersedes any context provided to the Context method.
15068func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
15069	c.ctx_ = ctx
15070	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
15071	for {
15072		x, err := c.Do()
15073		if err != nil {
15074			return err
15075		}
15076		if err := f(x); err != nil {
15077			return err
15078		}
15079		if x.NextPageToken == "" {
15080			return nil
15081		}
15082		c.PageToken(x.NextPageToken)
15083	}
15084}
15085
15086// method id "apigee.organizations.datacollectors.patch":
15087
15088type OrganizationsDatacollectorsPatchCall struct {
15089	s                                *Service
15090	name                             string
15091	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
15092	urlParams_                       gensupport.URLParams
15093	ctx_                             context.Context
15094	header_                          http.Header
15095}
15096
15097// Patch: Updates a data collector.
15098func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
15099	c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15100	c.name = name
15101	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
15102	return c
15103}
15104
15105// UpdateMask sets the optional parameter "updateMask": List of fields
15106// to be updated.
15107func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
15108	c.urlParams_.Set("updateMask", updateMask)
15109	return c
15110}
15111
15112// Fields allows partial responses to be retrieved. See
15113// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15114// for more information.
15115func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
15116	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15117	return c
15118}
15119
15120// Context sets the context to be used in this call's Do method. Any
15121// pending HTTP request will be aborted if the provided context is
15122// canceled.
15123func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
15124	c.ctx_ = ctx
15125	return c
15126}
15127
15128// Header returns an http.Header that can be modified by the caller to
15129// add HTTP headers to the request.
15130func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
15131	if c.header_ == nil {
15132		c.header_ = make(http.Header)
15133	}
15134	return c.header_
15135}
15136
15137func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
15138	reqHeaders := make(http.Header)
15139	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
15140	for k, v := range c.header_ {
15141		reqHeaders[k] = v
15142	}
15143	reqHeaders.Set("User-Agent", c.s.userAgent())
15144	var body io.Reader = nil
15145	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
15146	if err != nil {
15147		return nil, err
15148	}
15149	reqHeaders.Set("Content-Type", "application/json")
15150	c.urlParams_.Set("alt", alt)
15151	c.urlParams_.Set("prettyPrint", "false")
15152	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15153	urls += "?" + c.urlParams_.Encode()
15154	req, err := http.NewRequest("PATCH", urls, body)
15155	if err != nil {
15156		return nil, err
15157	}
15158	req.Header = reqHeaders
15159	googleapi.Expand(req.URL, map[string]string{
15160		"name": c.name,
15161	})
15162	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15163}
15164
15165// Do executes the "apigee.organizations.datacollectors.patch" call.
15166// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
15167// non-nil. Any non-2xx status code is an error. Response headers are in
15168// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
15169// a response was returned at all) in error.(*googleapi.Error).Header.
15170// Use googleapi.IsNotModified to check whether the returned error was
15171// because http.StatusNotModified was returned.
15172func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
15173	gensupport.SetOptions(c.urlParams_, opts...)
15174	res, err := c.doRequest("json")
15175	if res != nil && res.StatusCode == http.StatusNotModified {
15176		if res.Body != nil {
15177			res.Body.Close()
15178		}
15179		return nil, &googleapi.Error{
15180			Code:   res.StatusCode,
15181			Header: res.Header,
15182		}
15183	}
15184	if err != nil {
15185		return nil, err
15186	}
15187	defer googleapi.CloseBody(res)
15188	if err := googleapi.CheckResponse(res); err != nil {
15189		return nil, err
15190	}
15191	ret := &GoogleCloudApigeeV1DataCollector{
15192		ServerResponse: googleapi.ServerResponse{
15193			Header:         res.Header,
15194			HTTPStatusCode: res.StatusCode,
15195		},
15196	}
15197	target := &ret
15198	if err := gensupport.DecodeResponse(target, res); err != nil {
15199		return nil, err
15200	}
15201	return ret, nil
15202	// {
15203	//   "description": "Updates a data collector.",
15204	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
15205	//   "httpMethod": "PATCH",
15206	//   "id": "apigee.organizations.datacollectors.patch",
15207	//   "parameterOrder": [
15208	//     "name"
15209	//   ],
15210	//   "parameters": {
15211	//     "name": {
15212	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
15213	//       "location": "path",
15214	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
15215	//       "required": true,
15216	//       "type": "string"
15217	//     },
15218	//     "updateMask": {
15219	//       "description": "List of fields to be updated.",
15220	//       "format": "google-fieldmask",
15221	//       "location": "query",
15222	//       "type": "string"
15223	//     }
15224	//   },
15225	//   "path": "v1/{+name}",
15226	//   "request": {
15227	//     "$ref": "GoogleCloudApigeeV1DataCollector"
15228	//   },
15229	//   "response": {
15230	//     "$ref": "GoogleCloudApigeeV1DataCollector"
15231	//   },
15232	//   "scopes": [
15233	//     "https://www.googleapis.com/auth/cloud-platform"
15234	//   ]
15235	// }
15236
15237}
15238
15239// method id "apigee.organizations.deployments.list":
15240
15241type OrganizationsDeploymentsListCall struct {
15242	s            *Service
15243	parent       string
15244	urlParams_   gensupport.URLParams
15245	ifNoneMatch_ string
15246	ctx_         context.Context
15247	header_      http.Header
15248}
15249
15250// List: Lists all deployments of API proxies or shared flows.
15251func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
15252	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15253	c.parent = parent
15254	return c
15255}
15256
15257// SharedFlows sets the optional parameter "sharedFlows": Flag that
15258// specifies whether to return shared flow or API proxy deployments. Set
15259// to `true` to return shared flow deployments; set to `false` to return
15260// API proxy deployments. Defaults to `false`.
15261func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
15262	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
15263	return c
15264}
15265
15266// Fields allows partial responses to be retrieved. See
15267// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15268// for more information.
15269func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
15270	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15271	return c
15272}
15273
15274// IfNoneMatch sets the optional parameter which makes the operation
15275// fail if the object's ETag matches the given value. This is useful for
15276// getting updates only after the object has changed since the last
15277// request. Use googleapi.IsNotModified to check whether the response
15278// error from Do is the result of In-None-Match.
15279func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
15280	c.ifNoneMatch_ = entityTag
15281	return c
15282}
15283
15284// Context sets the context to be used in this call's Do method. Any
15285// pending HTTP request will be aborted if the provided context is
15286// canceled.
15287func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
15288	c.ctx_ = ctx
15289	return c
15290}
15291
15292// Header returns an http.Header that can be modified by the caller to
15293// add HTTP headers to the request.
15294func (c *OrganizationsDeploymentsListCall) Header() http.Header {
15295	if c.header_ == nil {
15296		c.header_ = make(http.Header)
15297	}
15298	return c.header_
15299}
15300
15301func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
15302	reqHeaders := make(http.Header)
15303	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
15304	for k, v := range c.header_ {
15305		reqHeaders[k] = v
15306	}
15307	reqHeaders.Set("User-Agent", c.s.userAgent())
15308	if c.ifNoneMatch_ != "" {
15309		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15310	}
15311	var body io.Reader = nil
15312	c.urlParams_.Set("alt", alt)
15313	c.urlParams_.Set("prettyPrint", "false")
15314	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
15315	urls += "?" + c.urlParams_.Encode()
15316	req, err := http.NewRequest("GET", urls, body)
15317	if err != nil {
15318		return nil, err
15319	}
15320	req.Header = reqHeaders
15321	googleapi.Expand(req.URL, map[string]string{
15322		"parent": c.parent,
15323	})
15324	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15325}
15326
15327// Do executes the "apigee.organizations.deployments.list" call.
15328// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
15329// will be non-nil. Any non-2xx status code is an error. Response
15330// headers are in either
15331// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
15332// (if a response was returned at all) in
15333// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15334// whether the returned error was because http.StatusNotModified was
15335// returned.
15336func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
15337	gensupport.SetOptions(c.urlParams_, opts...)
15338	res, err := c.doRequest("json")
15339	if res != nil && res.StatusCode == http.StatusNotModified {
15340		if res.Body != nil {
15341			res.Body.Close()
15342		}
15343		return nil, &googleapi.Error{
15344			Code:   res.StatusCode,
15345			Header: res.Header,
15346		}
15347	}
15348	if err != nil {
15349		return nil, err
15350	}
15351	defer googleapi.CloseBody(res)
15352	if err := googleapi.CheckResponse(res); err != nil {
15353		return nil, err
15354	}
15355	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
15356		ServerResponse: googleapi.ServerResponse{
15357			Header:         res.Header,
15358			HTTPStatusCode: res.StatusCode,
15359		},
15360	}
15361	target := &ret
15362	if err := gensupport.DecodeResponse(target, res); err != nil {
15363		return nil, err
15364	}
15365	return ret, nil
15366	// {
15367	//   "description": "Lists all deployments of API proxies or shared flows.",
15368	//   "flatPath": "v1/organizations/{organizationsId}/deployments",
15369	//   "httpMethod": "GET",
15370	//   "id": "apigee.organizations.deployments.list",
15371	//   "parameterOrder": [
15372	//     "parent"
15373	//   ],
15374	//   "parameters": {
15375	//     "parent": {
15376	//       "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`",
15377	//       "location": "path",
15378	//       "pattern": "^organizations/[^/]+$",
15379	//       "required": true,
15380	//       "type": "string"
15381	//     },
15382	//     "sharedFlows": {
15383	//       "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments. Set to `true` to return shared flow deployments; set to `false` to return API proxy deployments. Defaults to `false`.",
15384	//       "location": "query",
15385	//       "type": "boolean"
15386	//     }
15387	//   },
15388	//   "path": "v1/{+parent}/deployments",
15389	//   "response": {
15390	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
15391	//   },
15392	//   "scopes": [
15393	//     "https://www.googleapis.com/auth/cloud-platform"
15394	//   ]
15395	// }
15396
15397}
15398
15399// method id "apigee.organizations.developers.attributes":
15400
15401type OrganizationsDevelopersAttributesCall struct {
15402	s                             *Service
15403	parent                        string
15404	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
15405	urlParams_                    gensupport.URLParams
15406	ctx_                          context.Context
15407	header_                       http.Header
15408}
15409
15410// Attributes: Updates developer attributes. This API replaces the
15411// existing attributes with those specified in the request. Add new
15412// attributes, and include or exclude any existing attributes that you
15413// want to retain or remove, respectively. The custom attribute limit is
15414// 18. **Note**: OAuth access tokens and Key Management Service (KMS)
15415// entities (apps, developers, and API products) are cached for 180
15416// seconds (default). Any custom attributes associated with these
15417// entities are cached for at least 180 seconds after the entity is
15418// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2
15419// policy won't be able to expire an access token in less than 180
15420// seconds.
15421func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
15422	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15423	c.parent = parent
15424	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
15425	return c
15426}
15427
15428// Fields allows partial responses to be retrieved. See
15429// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15430// for more information.
15431func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
15432	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15433	return c
15434}
15435
15436// Context sets the context to be used in this call's Do method. Any
15437// pending HTTP request will be aborted if the provided context is
15438// canceled.
15439func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
15440	c.ctx_ = ctx
15441	return c
15442}
15443
15444// Header returns an http.Header that can be modified by the caller to
15445// add HTTP headers to the request.
15446func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
15447	if c.header_ == nil {
15448		c.header_ = make(http.Header)
15449	}
15450	return c.header_
15451}
15452
15453func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
15454	reqHeaders := make(http.Header)
15455	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
15456	for k, v := range c.header_ {
15457		reqHeaders[k] = v
15458	}
15459	reqHeaders.Set("User-Agent", c.s.userAgent())
15460	var body io.Reader = nil
15461	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
15462	if err != nil {
15463		return nil, err
15464	}
15465	reqHeaders.Set("Content-Type", "application/json")
15466	c.urlParams_.Set("alt", alt)
15467	c.urlParams_.Set("prettyPrint", "false")
15468	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
15469	urls += "?" + c.urlParams_.Encode()
15470	req, err := http.NewRequest("POST", urls, body)
15471	if err != nil {
15472		return nil, err
15473	}
15474	req.Header = reqHeaders
15475	googleapi.Expand(req.URL, map[string]string{
15476		"parent": c.parent,
15477	})
15478	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15479}
15480
15481// Do executes the "apigee.organizations.developers.attributes" call.
15482// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
15483// non-nil. Any non-2xx status code is an error. Response headers are in
15484// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
15485// response was returned at all) in error.(*googleapi.Error).Header. Use
15486// googleapi.IsNotModified to check whether the returned error was
15487// because http.StatusNotModified was returned.
15488func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
15489	gensupport.SetOptions(c.urlParams_, opts...)
15490	res, err := c.doRequest("json")
15491	if res != nil && res.StatusCode == http.StatusNotModified {
15492		if res.Body != nil {
15493			res.Body.Close()
15494		}
15495		return nil, &googleapi.Error{
15496			Code:   res.StatusCode,
15497			Header: res.Header,
15498		}
15499	}
15500	if err != nil {
15501		return nil, err
15502	}
15503	defer googleapi.CloseBody(res)
15504	if err := googleapi.CheckResponse(res); err != nil {
15505		return nil, err
15506	}
15507	ret := &GoogleCloudApigeeV1Attributes{
15508		ServerResponse: googleapi.ServerResponse{
15509			Header:         res.Header,
15510			HTTPStatusCode: res.StatusCode,
15511		},
15512	}
15513	target := &ret
15514	if err := gensupport.DecodeResponse(target, res); err != nil {
15515		return nil, err
15516	}
15517	return ret, nil
15518	// {
15519	//   "description": "Updates developer attributes. This API replaces the existing attributes with those specified in the request. Add new attributes, and include or exclude any existing attributes that you want to retain or remove, respectively. The custom attribute limit is 18. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.",
15520	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
15521	//   "httpMethod": "POST",
15522	//   "id": "apigee.organizations.developers.attributes",
15523	//   "parameterOrder": [
15524	//     "parent"
15525	//   ],
15526	//   "parameters": {
15527	//     "parent": {
15528	//       "description": "Required. Email address of the developer for which attributes are being updated in the following format: `organizations/{org}/developers/{developer_email}`",
15529	//       "location": "path",
15530	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
15531	//       "required": true,
15532	//       "type": "string"
15533	//     }
15534	//   },
15535	//   "path": "v1/{+parent}/attributes",
15536	//   "request": {
15537	//     "$ref": "GoogleCloudApigeeV1Attributes"
15538	//   },
15539	//   "response": {
15540	//     "$ref": "GoogleCloudApigeeV1Attributes"
15541	//   },
15542	//   "scopes": [
15543	//     "https://www.googleapis.com/auth/cloud-platform"
15544	//   ]
15545	// }
15546
15547}
15548
15549// method id "apigee.organizations.developers.create":
15550
15551type OrganizationsDevelopersCreateCall struct {
15552	s                            *Service
15553	parent                       string
15554	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
15555	urlParams_                   gensupport.URLParams
15556	ctx_                         context.Context
15557	header_                      http.Header
15558}
15559
15560// Create: Creates a developer. Once created, the developer can register
15561// an app and obtain an API key. At creation time, a developer is set as
15562// `active`. To change the developer status, use the SetDeveloperStatus
15563// API.
15564func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
15565	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15566	c.parent = parent
15567	c.googlecloudapigeev1developer = googlecloudapigeev1developer
15568	return c
15569}
15570
15571// Fields allows partial responses to be retrieved. See
15572// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15573// for more information.
15574func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
15575	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15576	return c
15577}
15578
15579// Context sets the context to be used in this call's Do method. Any
15580// pending HTTP request will be aborted if the provided context is
15581// canceled.
15582func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
15583	c.ctx_ = ctx
15584	return c
15585}
15586
15587// Header returns an http.Header that can be modified by the caller to
15588// add HTTP headers to the request.
15589func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
15590	if c.header_ == nil {
15591		c.header_ = make(http.Header)
15592	}
15593	return c.header_
15594}
15595
15596func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
15597	reqHeaders := make(http.Header)
15598	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
15599	for k, v := range c.header_ {
15600		reqHeaders[k] = v
15601	}
15602	reqHeaders.Set("User-Agent", c.s.userAgent())
15603	var body io.Reader = nil
15604	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
15605	if err != nil {
15606		return nil, err
15607	}
15608	reqHeaders.Set("Content-Type", "application/json")
15609	c.urlParams_.Set("alt", alt)
15610	c.urlParams_.Set("prettyPrint", "false")
15611	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
15612	urls += "?" + c.urlParams_.Encode()
15613	req, err := http.NewRequest("POST", urls, body)
15614	if err != nil {
15615		return nil, err
15616	}
15617	req.Header = reqHeaders
15618	googleapi.Expand(req.URL, map[string]string{
15619		"parent": c.parent,
15620	})
15621	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15622}
15623
15624// Do executes the "apigee.organizations.developers.create" call.
15625// Exactly one of *GoogleCloudApigeeV1Developer or error will be
15626// non-nil. Any non-2xx status code is an error. Response headers are in
15627// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
15628// response was returned at all) in error.(*googleapi.Error).Header. Use
15629// googleapi.IsNotModified to check whether the returned error was
15630// because http.StatusNotModified was returned.
15631func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
15632	gensupport.SetOptions(c.urlParams_, opts...)
15633	res, err := c.doRequest("json")
15634	if res != nil && res.StatusCode == http.StatusNotModified {
15635		if res.Body != nil {
15636			res.Body.Close()
15637		}
15638		return nil, &googleapi.Error{
15639			Code:   res.StatusCode,
15640			Header: res.Header,
15641		}
15642	}
15643	if err != nil {
15644		return nil, err
15645	}
15646	defer googleapi.CloseBody(res)
15647	if err := googleapi.CheckResponse(res); err != nil {
15648		return nil, err
15649	}
15650	ret := &GoogleCloudApigeeV1Developer{
15651		ServerResponse: googleapi.ServerResponse{
15652			Header:         res.Header,
15653			HTTPStatusCode: res.StatusCode,
15654		},
15655	}
15656	target := &ret
15657	if err := gensupport.DecodeResponse(target, res); err != nil {
15658		return nil, err
15659	}
15660	return ret, nil
15661	// {
15662	//   "description": "Creates a developer. Once created, the developer can register an app and obtain an API key. At creation time, a developer is set as `active`. To change the developer status, use the SetDeveloperStatus API.",
15663	//   "flatPath": "v1/organizations/{organizationsId}/developers",
15664	//   "httpMethod": "POST",
15665	//   "id": "apigee.organizations.developers.create",
15666	//   "parameterOrder": [
15667	//     "parent"
15668	//   ],
15669	//   "parameters": {
15670	//     "parent": {
15671	//       "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.",
15672	//       "location": "path",
15673	//       "pattern": "^organizations/[^/]+$",
15674	//       "required": true,
15675	//       "type": "string"
15676	//     }
15677	//   },
15678	//   "path": "v1/{+parent}/developers",
15679	//   "request": {
15680	//     "$ref": "GoogleCloudApigeeV1Developer"
15681	//   },
15682	//   "response": {
15683	//     "$ref": "GoogleCloudApigeeV1Developer"
15684	//   },
15685	//   "scopes": [
15686	//     "https://www.googleapis.com/auth/cloud-platform"
15687	//   ]
15688	// }
15689
15690}
15691
15692// method id "apigee.organizations.developers.delete":
15693
15694type OrganizationsDevelopersDeleteCall struct {
15695	s          *Service
15696	name       string
15697	urlParams_ gensupport.URLParams
15698	ctx_       context.Context
15699	header_    http.Header
15700}
15701
15702// Delete: Deletes a developer. All apps and API keys associated with
15703// the developer are also removed. **Warning**: This API will
15704// permanently delete the developer and related artifacts. To avoid
15705// permanently deleting developers and their artifacts, set the
15706// developer status to `inactive` using the SetDeveloperStatus API.
15707// **Note**: The delete operation is asynchronous. The developer app is
15708// deleted immediately, but its associated resources, such as apps and
15709// API keys, may take anywhere from a few seconds to a few minutes to be
15710// deleted.
15711func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
15712	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15713	c.name = name
15714	return c
15715}
15716
15717// Fields allows partial responses to be retrieved. See
15718// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15719// for more information.
15720func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
15721	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15722	return c
15723}
15724
15725// Context sets the context to be used in this call's Do method. Any
15726// pending HTTP request will be aborted if the provided context is
15727// canceled.
15728func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
15729	c.ctx_ = ctx
15730	return c
15731}
15732
15733// Header returns an http.Header that can be modified by the caller to
15734// add HTTP headers to the request.
15735func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
15736	if c.header_ == nil {
15737		c.header_ = make(http.Header)
15738	}
15739	return c.header_
15740}
15741
15742func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
15743	reqHeaders := make(http.Header)
15744	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
15745	for k, v := range c.header_ {
15746		reqHeaders[k] = v
15747	}
15748	reqHeaders.Set("User-Agent", c.s.userAgent())
15749	var body io.Reader = nil
15750	c.urlParams_.Set("alt", alt)
15751	c.urlParams_.Set("prettyPrint", "false")
15752	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15753	urls += "?" + c.urlParams_.Encode()
15754	req, err := http.NewRequest("DELETE", urls, body)
15755	if err != nil {
15756		return nil, err
15757	}
15758	req.Header = reqHeaders
15759	googleapi.Expand(req.URL, map[string]string{
15760		"name": c.name,
15761	})
15762	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15763}
15764
15765// Do executes the "apigee.organizations.developers.delete" call.
15766// Exactly one of *GoogleCloudApigeeV1Developer or error will be
15767// non-nil. Any non-2xx status code is an error. Response headers are in
15768// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
15769// response was returned at all) in error.(*googleapi.Error).Header. Use
15770// googleapi.IsNotModified to check whether the returned error was
15771// because http.StatusNotModified was returned.
15772func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
15773	gensupport.SetOptions(c.urlParams_, opts...)
15774	res, err := c.doRequest("json")
15775	if res != nil && res.StatusCode == http.StatusNotModified {
15776		if res.Body != nil {
15777			res.Body.Close()
15778		}
15779		return nil, &googleapi.Error{
15780			Code:   res.StatusCode,
15781			Header: res.Header,
15782		}
15783	}
15784	if err != nil {
15785		return nil, err
15786	}
15787	defer googleapi.CloseBody(res)
15788	if err := googleapi.CheckResponse(res); err != nil {
15789		return nil, err
15790	}
15791	ret := &GoogleCloudApigeeV1Developer{
15792		ServerResponse: googleapi.ServerResponse{
15793			Header:         res.Header,
15794			HTTPStatusCode: res.StatusCode,
15795		},
15796	}
15797	target := &ret
15798	if err := gensupport.DecodeResponse(target, res); err != nil {
15799		return nil, err
15800	}
15801	return ret, nil
15802	// {
15803	//   "description": "Deletes a developer. All apps and API keys associated with the developer are also removed. **Warning**: This API will permanently delete the developer and related artifacts. To avoid permanently deleting developers and their artifacts, set the developer status to `inactive` using the SetDeveloperStatus API. **Note**: The delete operation is asynchronous. The developer app is deleted immediately, but its associated resources, such as apps and API keys, may take anywhere from a few seconds to a few minutes to be deleted.",
15804	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
15805	//   "httpMethod": "DELETE",
15806	//   "id": "apigee.organizations.developers.delete",
15807	//   "parameterOrder": [
15808	//     "name"
15809	//   ],
15810	//   "parameters": {
15811	//     "name": {
15812	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
15813	//       "location": "path",
15814	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
15815	//       "required": true,
15816	//       "type": "string"
15817	//     }
15818	//   },
15819	//   "path": "v1/{+name}",
15820	//   "response": {
15821	//     "$ref": "GoogleCloudApigeeV1Developer"
15822	//   },
15823	//   "scopes": [
15824	//     "https://www.googleapis.com/auth/cloud-platform"
15825	//   ]
15826	// }
15827
15828}
15829
15830// method id "apigee.organizations.developers.get":
15831
15832type OrganizationsDevelopersGetCall struct {
15833	s            *Service
15834	name         string
15835	urlParams_   gensupport.URLParams
15836	ifNoneMatch_ string
15837	ctx_         context.Context
15838	header_      http.Header
15839}
15840
15841// Get: Returns the developer details, including the developer's name,
15842// email address, apps, and other information. **Note**: The response
15843// includes only the first 100 developer apps.
15844func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
15845	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15846	c.name = name
15847	return c
15848}
15849
15850// Action sets the optional parameter "action": Status of the developer.
15851// Valid values are `active` or `inactive`.
15852func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
15853	c.urlParams_.Set("action", action)
15854	return c
15855}
15856
15857// Fields allows partial responses to be retrieved. See
15858// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15859// for more information.
15860func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
15861	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15862	return c
15863}
15864
15865// IfNoneMatch sets the optional parameter which makes the operation
15866// fail if the object's ETag matches the given value. This is useful for
15867// getting updates only after the object has changed since the last
15868// request. Use googleapi.IsNotModified to check whether the response
15869// error from Do is the result of In-None-Match.
15870func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
15871	c.ifNoneMatch_ = entityTag
15872	return c
15873}
15874
15875// Context sets the context to be used in this call's Do method. Any
15876// pending HTTP request will be aborted if the provided context is
15877// canceled.
15878func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
15879	c.ctx_ = ctx
15880	return c
15881}
15882
15883// Header returns an http.Header that can be modified by the caller to
15884// add HTTP headers to the request.
15885func (c *OrganizationsDevelopersGetCall) Header() http.Header {
15886	if c.header_ == nil {
15887		c.header_ = make(http.Header)
15888	}
15889	return c.header_
15890}
15891
15892func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
15893	reqHeaders := make(http.Header)
15894	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
15895	for k, v := range c.header_ {
15896		reqHeaders[k] = v
15897	}
15898	reqHeaders.Set("User-Agent", c.s.userAgent())
15899	if c.ifNoneMatch_ != "" {
15900		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15901	}
15902	var body io.Reader = nil
15903	c.urlParams_.Set("alt", alt)
15904	c.urlParams_.Set("prettyPrint", "false")
15905	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15906	urls += "?" + c.urlParams_.Encode()
15907	req, err := http.NewRequest("GET", urls, body)
15908	if err != nil {
15909		return nil, err
15910	}
15911	req.Header = reqHeaders
15912	googleapi.Expand(req.URL, map[string]string{
15913		"name": c.name,
15914	})
15915	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15916}
15917
15918// Do executes the "apigee.organizations.developers.get" call.
15919// Exactly one of *GoogleCloudApigeeV1Developer or error will be
15920// non-nil. Any non-2xx status code is an error. Response headers are in
15921// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
15922// response was returned at all) in error.(*googleapi.Error).Header. Use
15923// googleapi.IsNotModified to check whether the returned error was
15924// because http.StatusNotModified was returned.
15925func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
15926	gensupport.SetOptions(c.urlParams_, opts...)
15927	res, err := c.doRequest("json")
15928	if res != nil && res.StatusCode == http.StatusNotModified {
15929		if res.Body != nil {
15930			res.Body.Close()
15931		}
15932		return nil, &googleapi.Error{
15933			Code:   res.StatusCode,
15934			Header: res.Header,
15935		}
15936	}
15937	if err != nil {
15938		return nil, err
15939	}
15940	defer googleapi.CloseBody(res)
15941	if err := googleapi.CheckResponse(res); err != nil {
15942		return nil, err
15943	}
15944	ret := &GoogleCloudApigeeV1Developer{
15945		ServerResponse: googleapi.ServerResponse{
15946			Header:         res.Header,
15947			HTTPStatusCode: res.StatusCode,
15948		},
15949	}
15950	target := &ret
15951	if err := gensupport.DecodeResponse(target, res); err != nil {
15952		return nil, err
15953	}
15954	return ret, nil
15955	// {
15956	//   "description": "Returns the developer details, including the developer's name, email address, apps, and other information. **Note**: The response includes only the first 100 developer apps.",
15957	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
15958	//   "httpMethod": "GET",
15959	//   "id": "apigee.organizations.developers.get",
15960	//   "parameterOrder": [
15961	//     "name"
15962	//   ],
15963	//   "parameters": {
15964	//     "action": {
15965	//       "description": "Status of the developer. Valid values are `active` or `inactive`.",
15966	//       "location": "query",
15967	//       "type": "string"
15968	//     },
15969	//     "name": {
15970	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
15971	//       "location": "path",
15972	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
15973	//       "required": true,
15974	//       "type": "string"
15975	//     }
15976	//   },
15977	//   "path": "v1/{+name}",
15978	//   "response": {
15979	//     "$ref": "GoogleCloudApigeeV1Developer"
15980	//   },
15981	//   "scopes": [
15982	//     "https://www.googleapis.com/auth/cloud-platform"
15983	//   ]
15984	// }
15985
15986}
15987
15988// method id "apigee.organizations.developers.list":
15989
15990type OrganizationsDevelopersListCall struct {
15991	s            *Service
15992	parent       string
15993	urlParams_   gensupport.URLParams
15994	ifNoneMatch_ string
15995	ctx_         context.Context
15996	header_      http.Header
15997}
15998
15999// List: Lists all developers in an organization by email address. By
16000// default, the response does not include company developers. Set the
16001// `includeCompany` query parameter to `true` to include company
16002// developers. **Note**: A maximum of 1000 developers are returned in
16003// the response. You paginate the list of developers returned using the
16004// `startKey` and `count` query parameters.
16005func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
16006	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16007	c.parent = parent
16008	return c
16009}
16010
16011// App sets the optional parameter "app": List only Developers that are
16012// associated with the app. Note that start_key, count are not
16013// applicable for this filter criteria.
16014func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
16015	c.urlParams_.Set("app", app)
16016	return c
16017}
16018
16019// Count sets the optional parameter "count": Number of developers to
16020// return in the API call. Use with the `startKey` parameter to provide
16021// more targeted filtering. The limit is 1000.
16022func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
16023	c.urlParams_.Set("count", fmt.Sprint(count))
16024	return c
16025}
16026
16027// Expand sets the optional parameter "expand": Specifies whether to
16028// expand the results. Set to `true` to expand the results. This query
16029// parameter is not valid if you use the `count` or `startKey` query
16030// parameters.
16031func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
16032	c.urlParams_.Set("expand", fmt.Sprint(expand))
16033	return c
16034}
16035
16036// Ids sets the optional parameter "ids": List of IDs to include,
16037// separated by commas.
16038func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
16039	c.urlParams_.Set("ids", ids)
16040	return c
16041}
16042
16043// IncludeCompany sets the optional parameter "includeCompany": Flag
16044// that specifies whether to include company details in the response.
16045func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
16046	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
16047	return c
16048}
16049
16050// StartKey sets the optional parameter "startKey": **Note**: Must be
16051// used in conjunction with the `count` parameter. Email address of the
16052// developer from which to start displaying the list of developers. For
16053// example, if the an unfiltered list returns: ``` westley@example.com
16054// fezzik@example.com buttercup@example.com ``` and your `startKey` is
16055// `fezzik@example.com`, the list returned will be ```
16056// fezzik@example.com buttercup@example.com ```
16057func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
16058	c.urlParams_.Set("startKey", startKey)
16059	return c
16060}
16061
16062// Fields allows partial responses to be retrieved. See
16063// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16064// for more information.
16065func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
16066	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16067	return c
16068}
16069
16070// IfNoneMatch sets the optional parameter which makes the operation
16071// fail if the object's ETag matches the given value. This is useful for
16072// getting updates only after the object has changed since the last
16073// request. Use googleapi.IsNotModified to check whether the response
16074// error from Do is the result of In-None-Match.
16075func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
16076	c.ifNoneMatch_ = entityTag
16077	return c
16078}
16079
16080// Context sets the context to be used in this call's Do method. Any
16081// pending HTTP request will be aborted if the provided context is
16082// canceled.
16083func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
16084	c.ctx_ = ctx
16085	return c
16086}
16087
16088// Header returns an http.Header that can be modified by the caller to
16089// add HTTP headers to the request.
16090func (c *OrganizationsDevelopersListCall) Header() http.Header {
16091	if c.header_ == nil {
16092		c.header_ = make(http.Header)
16093	}
16094	return c.header_
16095}
16096
16097func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
16098	reqHeaders := make(http.Header)
16099	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16100	for k, v := range c.header_ {
16101		reqHeaders[k] = v
16102	}
16103	reqHeaders.Set("User-Agent", c.s.userAgent())
16104	if c.ifNoneMatch_ != "" {
16105		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16106	}
16107	var body io.Reader = nil
16108	c.urlParams_.Set("alt", alt)
16109	c.urlParams_.Set("prettyPrint", "false")
16110	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
16111	urls += "?" + c.urlParams_.Encode()
16112	req, err := http.NewRequest("GET", urls, body)
16113	if err != nil {
16114		return nil, err
16115	}
16116	req.Header = reqHeaders
16117	googleapi.Expand(req.URL, map[string]string{
16118		"parent": c.parent,
16119	})
16120	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16121}
16122
16123// Do executes the "apigee.organizations.developers.list" call.
16124// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error
16125// will be non-nil. Any non-2xx status code is an error. Response
16126// headers are in either
16127// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or
16128// (if a response was returned at all) in
16129// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16130// whether the returned error was because http.StatusNotModified was
16131// returned.
16132func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
16133	gensupport.SetOptions(c.urlParams_, opts...)
16134	res, err := c.doRequest("json")
16135	if res != nil && res.StatusCode == http.StatusNotModified {
16136		if res.Body != nil {
16137			res.Body.Close()
16138		}
16139		return nil, &googleapi.Error{
16140			Code:   res.StatusCode,
16141			Header: res.Header,
16142		}
16143	}
16144	if err != nil {
16145		return nil, err
16146	}
16147	defer googleapi.CloseBody(res)
16148	if err := googleapi.CheckResponse(res); err != nil {
16149		return nil, err
16150	}
16151	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
16152		ServerResponse: googleapi.ServerResponse{
16153			Header:         res.Header,
16154			HTTPStatusCode: res.StatusCode,
16155		},
16156	}
16157	target := &ret
16158	if err := gensupport.DecodeResponse(target, res); err != nil {
16159		return nil, err
16160	}
16161	return ret, nil
16162	// {
16163	//   "description": "Lists all developers in an organization by email address. By default, the response does not include company developers. Set the `includeCompany` query parameter to `true` to include company developers. **Note**: A maximum of 1000 developers are returned in the response. You paginate the list of developers returned using the `startKey` and `count` query parameters.",
16164	//   "flatPath": "v1/organizations/{organizationsId}/developers",
16165	//   "httpMethod": "GET",
16166	//   "id": "apigee.organizations.developers.list",
16167	//   "parameterOrder": [
16168	//     "parent"
16169	//   ],
16170	//   "parameters": {
16171	//     "app": {
16172	//       "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.",
16173	//       "location": "query",
16174	//       "type": "string"
16175	//     },
16176	//     "count": {
16177	//       "description": "Optional. Number of developers to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.",
16178	//       "format": "int64",
16179	//       "location": "query",
16180	//       "type": "string"
16181	//     },
16182	//     "expand": {
16183	//       "description": "Specifies whether to expand the results. Set to `true` to expand the results. This query parameter is not valid if you use the `count` or `startKey` query parameters.",
16184	//       "location": "query",
16185	//       "type": "boolean"
16186	//     },
16187	//     "ids": {
16188	//       "description": "Optional. List of IDs to include, separated by commas.",
16189	//       "location": "query",
16190	//       "type": "string"
16191	//     },
16192	//     "includeCompany": {
16193	//       "description": "Flag that specifies whether to include company details in the response.",
16194	//       "location": "query",
16195	//       "type": "boolean"
16196	//     },
16197	//     "parent": {
16198	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.",
16199	//       "location": "path",
16200	//       "pattern": "^organizations/[^/]+$",
16201	//       "required": true,
16202	//       "type": "string"
16203	//     },
16204	//     "startKey": {
16205	//       "description": "**Note**: Must be used in conjunction with the `count` parameter. Email address of the developer from which to start displaying the list of developers. For example, if the an unfiltered list returns: ``` westley@example.com fezzik@example.com buttercup@example.com ``` and your `startKey` is `fezzik@example.com`, the list returned will be ``` fezzik@example.com buttercup@example.com ```",
16206	//       "location": "query",
16207	//       "type": "string"
16208	//     }
16209	//   },
16210	//   "path": "v1/{+parent}/developers",
16211	//   "response": {
16212	//     "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse"
16213	//   },
16214	//   "scopes": [
16215	//     "https://www.googleapis.com/auth/cloud-platform"
16216	//   ]
16217	// }
16218
16219}
16220
16221// method id "apigee.organizations.developers.setDeveloperStatus":
16222
16223type OrganizationsDevelopersSetDeveloperStatusCall struct {
16224	s          *Service
16225	name       string
16226	urlParams_ gensupport.URLParams
16227	ctx_       context.Context
16228	header_    http.Header
16229}
16230
16231// SetDeveloperStatus: Sets the status of a developer. Valid values are
16232// `active` or `inactive`. A developer is `active` by default. If you
16233// set a developer's status to `inactive`, the API keys assigned to the
16234// developer apps are no longer valid even though the API keys are set
16235// to `approved`. Inactive developers can still sign in to the developer
16236// portal and create apps; however, any new API keys generated during
16237// app creation won't work. If successful, the API call returns the
16238// following HTTP status code: `204 No Content`
16239func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
16240	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16241	c.name = name
16242	return c
16243}
16244
16245// Action sets the optional parameter "action": Status of the developer.
16246// Valid values are `active` and `inactive`.
16247func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
16248	c.urlParams_.Set("action", action)
16249	return c
16250}
16251
16252// Fields allows partial responses to be retrieved. See
16253// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16254// for more information.
16255func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
16256	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16257	return c
16258}
16259
16260// Context sets the context to be used in this call's Do method. Any
16261// pending HTTP request will be aborted if the provided context is
16262// canceled.
16263func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
16264	c.ctx_ = ctx
16265	return c
16266}
16267
16268// Header returns an http.Header that can be modified by the caller to
16269// add HTTP headers to the request.
16270func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
16271	if c.header_ == nil {
16272		c.header_ = make(http.Header)
16273	}
16274	return c.header_
16275}
16276
16277func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
16278	reqHeaders := make(http.Header)
16279	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16280	for k, v := range c.header_ {
16281		reqHeaders[k] = v
16282	}
16283	reqHeaders.Set("User-Agent", c.s.userAgent())
16284	var body io.Reader = nil
16285	c.urlParams_.Set("alt", alt)
16286	c.urlParams_.Set("prettyPrint", "false")
16287	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16288	urls += "?" + c.urlParams_.Encode()
16289	req, err := http.NewRequest("POST", urls, body)
16290	if err != nil {
16291		return nil, err
16292	}
16293	req.Header = reqHeaders
16294	googleapi.Expand(req.URL, map[string]string{
16295		"name": c.name,
16296	})
16297	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16298}
16299
16300// Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
16301// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
16302// non-2xx status code is an error. Response headers are in either
16303// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
16304// returned at all) in error.(*googleapi.Error).Header. Use
16305// googleapi.IsNotModified to check whether the returned error was
16306// because http.StatusNotModified was returned.
16307func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
16308	gensupport.SetOptions(c.urlParams_, opts...)
16309	res, err := c.doRequest("json")
16310	if res != nil && res.StatusCode == http.StatusNotModified {
16311		if res.Body != nil {
16312			res.Body.Close()
16313		}
16314		return nil, &googleapi.Error{
16315			Code:   res.StatusCode,
16316			Header: res.Header,
16317		}
16318	}
16319	if err != nil {
16320		return nil, err
16321	}
16322	defer googleapi.CloseBody(res)
16323	if err := googleapi.CheckResponse(res); err != nil {
16324		return nil, err
16325	}
16326	ret := &GoogleProtobufEmpty{
16327		ServerResponse: googleapi.ServerResponse{
16328			Header:         res.Header,
16329			HTTPStatusCode: res.StatusCode,
16330		},
16331	}
16332	target := &ret
16333	if err := gensupport.DecodeResponse(target, res); err != nil {
16334		return nil, err
16335	}
16336	return ret, nil
16337	// {
16338	//   "description": "Sets the status of a developer. Valid values are `active` or `inactive`. A developer is `active` by default. If you set a developer's status to `inactive`, the API keys assigned to the developer apps are no longer valid even though the API keys are set to `approved`. Inactive developers can still sign in to the developer portal and create apps; however, any new API keys generated during app creation won't work. If successful, the API call returns the following HTTP status code: `204 No Content`",
16339	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
16340	//   "httpMethod": "POST",
16341	//   "id": "apigee.organizations.developers.setDeveloperStatus",
16342	//   "parameterOrder": [
16343	//     "name"
16344	//   ],
16345	//   "parameters": {
16346	//     "action": {
16347	//       "description": "Status of the developer. Valid values are `active` and `inactive`.",
16348	//       "location": "query",
16349	//       "type": "string"
16350	//     },
16351	//     "name": {
16352	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
16353	//       "location": "path",
16354	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
16355	//       "required": true,
16356	//       "type": "string"
16357	//     }
16358	//   },
16359	//   "path": "v1/{+name}",
16360	//   "response": {
16361	//     "$ref": "GoogleProtobufEmpty"
16362	//   },
16363	//   "scopes": [
16364	//     "https://www.googleapis.com/auth/cloud-platform"
16365	//   ]
16366	// }
16367
16368}
16369
16370// method id "apigee.organizations.developers.update":
16371
16372type OrganizationsDevelopersUpdateCall struct {
16373	s                            *Service
16374	name                         string
16375	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
16376	urlParams_                   gensupport.URLParams
16377	ctx_                         context.Context
16378	header_                      http.Header
16379}
16380
16381// Update: Updates a developer. This API replaces the existing developer
16382// details with those specified in the request. Include or exclude any
16383// existing details that you want to retain or delete, respectively. The
16384// custom attribute limit is 18. **Note**: OAuth access tokens and Key
16385// Management Service (KMS) entities (apps, developers, and API
16386// products) are cached for 180 seconds (current default). Any custom
16387// attributes associated with these entities are cached for at least 180
16388// seconds after the entity is accessed at runtime. Therefore, an
16389// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
16390// access token in less than 180 seconds.
16391func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
16392	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16393	c.name = name
16394	c.googlecloudapigeev1developer = googlecloudapigeev1developer
16395	return c
16396}
16397
16398// Fields allows partial responses to be retrieved. See
16399// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16400// for more information.
16401func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
16402	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16403	return c
16404}
16405
16406// Context sets the context to be used in this call's Do method. Any
16407// pending HTTP request will be aborted if the provided context is
16408// canceled.
16409func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
16410	c.ctx_ = ctx
16411	return c
16412}
16413
16414// Header returns an http.Header that can be modified by the caller to
16415// add HTTP headers to the request.
16416func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
16417	if c.header_ == nil {
16418		c.header_ = make(http.Header)
16419	}
16420	return c.header_
16421}
16422
16423func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
16424	reqHeaders := make(http.Header)
16425	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16426	for k, v := range c.header_ {
16427		reqHeaders[k] = v
16428	}
16429	reqHeaders.Set("User-Agent", c.s.userAgent())
16430	var body io.Reader = nil
16431	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
16432	if err != nil {
16433		return nil, err
16434	}
16435	reqHeaders.Set("Content-Type", "application/json")
16436	c.urlParams_.Set("alt", alt)
16437	c.urlParams_.Set("prettyPrint", "false")
16438	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16439	urls += "?" + c.urlParams_.Encode()
16440	req, err := http.NewRequest("PUT", urls, body)
16441	if err != nil {
16442		return nil, err
16443	}
16444	req.Header = reqHeaders
16445	googleapi.Expand(req.URL, map[string]string{
16446		"name": c.name,
16447	})
16448	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16449}
16450
16451// Do executes the "apigee.organizations.developers.update" call.
16452// Exactly one of *GoogleCloudApigeeV1Developer or error will be
16453// non-nil. Any non-2xx status code is an error. Response headers are in
16454// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
16455// response was returned at all) in error.(*googleapi.Error).Header. Use
16456// googleapi.IsNotModified to check whether the returned error was
16457// because http.StatusNotModified was returned.
16458func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
16459	gensupport.SetOptions(c.urlParams_, opts...)
16460	res, err := c.doRequest("json")
16461	if res != nil && res.StatusCode == http.StatusNotModified {
16462		if res.Body != nil {
16463			res.Body.Close()
16464		}
16465		return nil, &googleapi.Error{
16466			Code:   res.StatusCode,
16467			Header: res.Header,
16468		}
16469	}
16470	if err != nil {
16471		return nil, err
16472	}
16473	defer googleapi.CloseBody(res)
16474	if err := googleapi.CheckResponse(res); err != nil {
16475		return nil, err
16476	}
16477	ret := &GoogleCloudApigeeV1Developer{
16478		ServerResponse: googleapi.ServerResponse{
16479			Header:         res.Header,
16480			HTTPStatusCode: res.StatusCode,
16481		},
16482	}
16483	target := &ret
16484	if err := gensupport.DecodeResponse(target, res); err != nil {
16485		return nil, err
16486	}
16487	return ret, nil
16488	// {
16489	//   "description": "Updates a developer. This API replaces the existing developer details with those specified in the request. Include or exclude any existing details that you want to retain or delete, respectively. The custom attribute limit is 18. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.",
16490	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
16491	//   "httpMethod": "PUT",
16492	//   "id": "apigee.organizations.developers.update",
16493	//   "parameterOrder": [
16494	//     "name"
16495	//   ],
16496	//   "parameters": {
16497	//     "name": {
16498	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
16499	//       "location": "path",
16500	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
16501	//       "required": true,
16502	//       "type": "string"
16503	//     }
16504	//   },
16505	//   "path": "v1/{+name}",
16506	//   "request": {
16507	//     "$ref": "GoogleCloudApigeeV1Developer"
16508	//   },
16509	//   "response": {
16510	//     "$ref": "GoogleCloudApigeeV1Developer"
16511	//   },
16512	//   "scopes": [
16513	//     "https://www.googleapis.com/auth/cloud-platform"
16514	//   ]
16515	// }
16516
16517}
16518
16519// method id "apigee.organizations.developers.apps.attributes":
16520
16521type OrganizationsDevelopersAppsAttributesCall struct {
16522	s                             *Service
16523	name                          string
16524	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
16525	urlParams_                    gensupport.URLParams
16526	ctx_                          context.Context
16527	header_                       http.Header
16528}
16529
16530// Attributes: Updates attributes for a developer app. This API replaces
16531// the current attributes with those specified in the request.
16532func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
16533	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16534	c.name = name
16535	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
16536	return c
16537}
16538
16539// Fields allows partial responses to be retrieved. See
16540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16541// for more information.
16542func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
16543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16544	return c
16545}
16546
16547// Context sets the context to be used in this call's Do method. Any
16548// pending HTTP request will be aborted if the provided context is
16549// canceled.
16550func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
16551	c.ctx_ = ctx
16552	return c
16553}
16554
16555// Header returns an http.Header that can be modified by the caller to
16556// add HTTP headers to the request.
16557func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
16558	if c.header_ == nil {
16559		c.header_ = make(http.Header)
16560	}
16561	return c.header_
16562}
16563
16564func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
16565	reqHeaders := make(http.Header)
16566	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16567	for k, v := range c.header_ {
16568		reqHeaders[k] = v
16569	}
16570	reqHeaders.Set("User-Agent", c.s.userAgent())
16571	var body io.Reader = nil
16572	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
16573	if err != nil {
16574		return nil, err
16575	}
16576	reqHeaders.Set("Content-Type", "application/json")
16577	c.urlParams_.Set("alt", alt)
16578	c.urlParams_.Set("prettyPrint", "false")
16579	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
16580	urls += "?" + c.urlParams_.Encode()
16581	req, err := http.NewRequest("POST", urls, body)
16582	if err != nil {
16583		return nil, err
16584	}
16585	req.Header = reqHeaders
16586	googleapi.Expand(req.URL, map[string]string{
16587		"name": c.name,
16588	})
16589	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16590}
16591
16592// Do executes the "apigee.organizations.developers.apps.attributes" call.
16593// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
16594// non-nil. Any non-2xx status code is an error. Response headers are in
16595// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
16596// response was returned at all) in error.(*googleapi.Error).Header. Use
16597// googleapi.IsNotModified to check whether the returned error was
16598// because http.StatusNotModified was returned.
16599func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
16600	gensupport.SetOptions(c.urlParams_, opts...)
16601	res, err := c.doRequest("json")
16602	if res != nil && res.StatusCode == http.StatusNotModified {
16603		if res.Body != nil {
16604			res.Body.Close()
16605		}
16606		return nil, &googleapi.Error{
16607			Code:   res.StatusCode,
16608			Header: res.Header,
16609		}
16610	}
16611	if err != nil {
16612		return nil, err
16613	}
16614	defer googleapi.CloseBody(res)
16615	if err := googleapi.CheckResponse(res); err != nil {
16616		return nil, err
16617	}
16618	ret := &GoogleCloudApigeeV1Attributes{
16619		ServerResponse: googleapi.ServerResponse{
16620			Header:         res.Header,
16621			HTTPStatusCode: res.StatusCode,
16622		},
16623	}
16624	target := &ret
16625	if err := gensupport.DecodeResponse(target, res); err != nil {
16626		return nil, err
16627	}
16628	return ret, nil
16629	// {
16630	//   "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.",
16631	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
16632	//   "httpMethod": "POST",
16633	//   "id": "apigee.organizations.developers.apps.attributes",
16634	//   "parameterOrder": [
16635	//     "name"
16636	//   ],
16637	//   "parameters": {
16638	//     "name": {
16639	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
16640	//       "location": "path",
16641	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
16642	//       "required": true,
16643	//       "type": "string"
16644	//     }
16645	//   },
16646	//   "path": "v1/{+name}/attributes",
16647	//   "request": {
16648	//     "$ref": "GoogleCloudApigeeV1Attributes"
16649	//   },
16650	//   "response": {
16651	//     "$ref": "GoogleCloudApigeeV1Attributes"
16652	//   },
16653	//   "scopes": [
16654	//     "https://www.googleapis.com/auth/cloud-platform"
16655	//   ]
16656	// }
16657
16658}
16659
16660// method id "apigee.organizations.developers.apps.create":
16661
16662type OrganizationsDevelopersAppsCreateCall struct {
16663	s                               *Service
16664	parent                          string
16665	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
16666	urlParams_                      gensupport.URLParams
16667	ctx_                            context.Context
16668	header_                         http.Header
16669}
16670
16671// Create: Creates an app associated with a developer. This API
16672// associates the developer app with the specified API product and
16673// auto-generates an API key for the app to use in calls to API proxies
16674// inside that API product. The `name` is the unique ID of the app that
16675// you can use in API calls. The `DisplayName` (set as an attribute)
16676// appears in the UI. If you don't set the `DisplayName` attribute, the
16677// `name` appears in the UI.
16678func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
16679	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16680	c.parent = parent
16681	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
16682	return c
16683}
16684
16685// Fields allows partial responses to be retrieved. See
16686// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16687// for more information.
16688func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
16689	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16690	return c
16691}
16692
16693// Context sets the context to be used in this call's Do method. Any
16694// pending HTTP request will be aborted if the provided context is
16695// canceled.
16696func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
16697	c.ctx_ = ctx
16698	return c
16699}
16700
16701// Header returns an http.Header that can be modified by the caller to
16702// add HTTP headers to the request.
16703func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
16704	if c.header_ == nil {
16705		c.header_ = make(http.Header)
16706	}
16707	return c.header_
16708}
16709
16710func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
16711	reqHeaders := make(http.Header)
16712	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16713	for k, v := range c.header_ {
16714		reqHeaders[k] = v
16715	}
16716	reqHeaders.Set("User-Agent", c.s.userAgent())
16717	var body io.Reader = nil
16718	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
16719	if err != nil {
16720		return nil, err
16721	}
16722	reqHeaders.Set("Content-Type", "application/json")
16723	c.urlParams_.Set("alt", alt)
16724	c.urlParams_.Set("prettyPrint", "false")
16725	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
16726	urls += "?" + c.urlParams_.Encode()
16727	req, err := http.NewRequest("POST", urls, body)
16728	if err != nil {
16729		return nil, err
16730	}
16731	req.Header = reqHeaders
16732	googleapi.Expand(req.URL, map[string]string{
16733		"parent": c.parent,
16734	})
16735	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16736}
16737
16738// Do executes the "apigee.organizations.developers.apps.create" call.
16739// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
16740// non-nil. Any non-2xx status code is an error. Response headers are in
16741// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
16742// a response was returned at all) in error.(*googleapi.Error).Header.
16743// Use googleapi.IsNotModified to check whether the returned error was
16744// because http.StatusNotModified was returned.
16745func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
16746	gensupport.SetOptions(c.urlParams_, opts...)
16747	res, err := c.doRequest("json")
16748	if res != nil && res.StatusCode == http.StatusNotModified {
16749		if res.Body != nil {
16750			res.Body.Close()
16751		}
16752		return nil, &googleapi.Error{
16753			Code:   res.StatusCode,
16754			Header: res.Header,
16755		}
16756	}
16757	if err != nil {
16758		return nil, err
16759	}
16760	defer googleapi.CloseBody(res)
16761	if err := googleapi.CheckResponse(res); err != nil {
16762		return nil, err
16763	}
16764	ret := &GoogleCloudApigeeV1DeveloperApp{
16765		ServerResponse: googleapi.ServerResponse{
16766			Header:         res.Header,
16767			HTTPStatusCode: res.StatusCode,
16768		},
16769	}
16770	target := &ret
16771	if err := gensupport.DecodeResponse(target, res); err != nil {
16772		return nil, err
16773	}
16774	return ret, nil
16775	// {
16776	//   "description": "Creates an app associated with a developer. This API associates the developer app with the specified API product and auto-generates an API key for the app to use in calls to API proxies inside that API product. The `name` is the unique ID of the app that you can use in API calls. The `DisplayName` (set as an attribute) appears in the UI. If you don't set the `DisplayName` attribute, the `name` appears in the UI.",
16777	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
16778	//   "httpMethod": "POST",
16779	//   "id": "apigee.organizations.developers.apps.create",
16780	//   "parameterOrder": [
16781	//     "parent"
16782	//   ],
16783	//   "parameters": {
16784	//     "parent": {
16785	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
16786	//       "location": "path",
16787	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
16788	//       "required": true,
16789	//       "type": "string"
16790	//     }
16791	//   },
16792	//   "path": "v1/{+parent}/apps",
16793	//   "request": {
16794	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
16795	//   },
16796	//   "response": {
16797	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
16798	//   },
16799	//   "scopes": [
16800	//     "https://www.googleapis.com/auth/cloud-platform"
16801	//   ]
16802	// }
16803
16804}
16805
16806// method id "apigee.organizations.developers.apps.delete":
16807
16808type OrganizationsDevelopersAppsDeleteCall struct {
16809	s          *Service
16810	name       string
16811	urlParams_ gensupport.URLParams
16812	ctx_       context.Context
16813	header_    http.Header
16814}
16815
16816// Delete: Deletes a developer app. **Note**: The delete operation is
16817// asynchronous. The developer app is deleted immediately, but its
16818// associated resources, such as app keys or access tokens, may take
16819// anywhere from a few seconds to a few minutes to be deleted.
16820func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
16821	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16822	c.name = name
16823	return c
16824}
16825
16826// Fields allows partial responses to be retrieved. See
16827// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16828// for more information.
16829func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
16830	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16831	return c
16832}
16833
16834// Context sets the context to be used in this call's Do method. Any
16835// pending HTTP request will be aborted if the provided context is
16836// canceled.
16837func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
16838	c.ctx_ = ctx
16839	return c
16840}
16841
16842// Header returns an http.Header that can be modified by the caller to
16843// add HTTP headers to the request.
16844func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
16845	if c.header_ == nil {
16846		c.header_ = make(http.Header)
16847	}
16848	return c.header_
16849}
16850
16851func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
16852	reqHeaders := make(http.Header)
16853	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16854	for k, v := range c.header_ {
16855		reqHeaders[k] = v
16856	}
16857	reqHeaders.Set("User-Agent", c.s.userAgent())
16858	var body io.Reader = nil
16859	c.urlParams_.Set("alt", alt)
16860	c.urlParams_.Set("prettyPrint", "false")
16861	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16862	urls += "?" + c.urlParams_.Encode()
16863	req, err := http.NewRequest("DELETE", urls, body)
16864	if err != nil {
16865		return nil, err
16866	}
16867	req.Header = reqHeaders
16868	googleapi.Expand(req.URL, map[string]string{
16869		"name": c.name,
16870	})
16871	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16872}
16873
16874// Do executes the "apigee.organizations.developers.apps.delete" call.
16875// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
16876// non-nil. Any non-2xx status code is an error. Response headers are in
16877// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
16878// a response was returned at all) in error.(*googleapi.Error).Header.
16879// Use googleapi.IsNotModified to check whether the returned error was
16880// because http.StatusNotModified was returned.
16881func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
16882	gensupport.SetOptions(c.urlParams_, opts...)
16883	res, err := c.doRequest("json")
16884	if res != nil && res.StatusCode == http.StatusNotModified {
16885		if res.Body != nil {
16886			res.Body.Close()
16887		}
16888		return nil, &googleapi.Error{
16889			Code:   res.StatusCode,
16890			Header: res.Header,
16891		}
16892	}
16893	if err != nil {
16894		return nil, err
16895	}
16896	defer googleapi.CloseBody(res)
16897	if err := googleapi.CheckResponse(res); err != nil {
16898		return nil, err
16899	}
16900	ret := &GoogleCloudApigeeV1DeveloperApp{
16901		ServerResponse: googleapi.ServerResponse{
16902			Header:         res.Header,
16903			HTTPStatusCode: res.StatusCode,
16904		},
16905	}
16906	target := &ret
16907	if err := gensupport.DecodeResponse(target, res); err != nil {
16908		return nil, err
16909	}
16910	return ret, nil
16911	// {
16912	//   "description": "Deletes a developer app. **Note**: The delete operation is asynchronous. The developer app is deleted immediately, but its associated resources, such as app keys or access tokens, may take anywhere from a few seconds to a few minutes to be deleted.",
16913	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
16914	//   "httpMethod": "DELETE",
16915	//   "id": "apigee.organizations.developers.apps.delete",
16916	//   "parameterOrder": [
16917	//     "name"
16918	//   ],
16919	//   "parameters": {
16920	//     "name": {
16921	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
16922	//       "location": "path",
16923	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
16924	//       "required": true,
16925	//       "type": "string"
16926	//     }
16927	//   },
16928	//   "path": "v1/{+name}",
16929	//   "response": {
16930	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
16931	//   },
16932	//   "scopes": [
16933	//     "https://www.googleapis.com/auth/cloud-platform"
16934	//   ]
16935	// }
16936
16937}
16938
16939// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus":
16940
16941type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
16942	s                               *Service
16943	name                            string
16944	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
16945	urlParams_                      gensupport.URLParams
16946	ctx_                            context.Context
16947	header_                         http.Header
16948}
16949
16950// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a
16951// developer app by enabling you to: * Approve or revoke a developer app
16952// * Generate a new consumer key and secret for a developer app To
16953// approve or revoke a developer app, set the `action` query parameter
16954// to `approved` or `revoked`, respectively, and the `Content-Type`
16955// header to `application/octet-stream`. If a developer app is revoked,
16956// none of its API keys are valid for API calls even though the keys are
16957// still `approved`. If successful, the API call returns the following
16958// HTTP status code: `204 No Content` To generate a new consumer key and
16959// secret for a developer app, pass the new key/secret details. Rather
16960// than replace an existing key, this API generates a new key. In this
16961// case, multiple key pairs may be associated with a single developer
16962// app. Each key pair has an independent status (`approved` or
16963// `revoked`) and expiration time. Any approved, non-expired key can be
16964// used in an API call. For example, if you're using API key rotation,
16965// you can generate new keys with expiration times that overlap keys
16966// that are going to expire. You might also generate a new consumer
16967// key/secret if the security of the original key/secret is compromised.
16968// The `keyExpiresIn` property defines the expiration time for the API
16969// key in milliseconds. If you don't set this property or set it to
16970// `-1`, the API key never expires. **Notes**: * When generating a new
16971// key/secret, this API replaces the existing attributes, notes, and
16972// callback URLs with those specified in the request. Include or exclude
16973// any existing information that you want to retain or delete,
16974// respectively. * To migrate existing consumer keys and secrets to
16975// hybrid from another system, see the CreateDeveloperAppKey API.
16976func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
16977	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16978	c.name = name
16979	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
16980	return c
16981}
16982
16983// Action sets the optional parameter "action": Action. Valid values are
16984// `approve` or `revoke`.
16985func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
16986	c.urlParams_.Set("action", action)
16987	return c
16988}
16989
16990// Fields allows partial responses to be retrieved. See
16991// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16992// for more information.
16993func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
16994	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16995	return c
16996}
16997
16998// Context sets the context to be used in this call's Do method. Any
16999// pending HTTP request will be aborted if the provided context is
17000// canceled.
17001func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
17002	c.ctx_ = ctx
17003	return c
17004}
17005
17006// Header returns an http.Header that can be modified by the caller to
17007// add HTTP headers to the request.
17008func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
17009	if c.header_ == nil {
17010		c.header_ = make(http.Header)
17011	}
17012	return c.header_
17013}
17014
17015func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
17016	reqHeaders := make(http.Header)
17017	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17018	for k, v := range c.header_ {
17019		reqHeaders[k] = v
17020	}
17021	reqHeaders.Set("User-Agent", c.s.userAgent())
17022	var body io.Reader = nil
17023	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
17024	if err != nil {
17025		return nil, err
17026	}
17027	reqHeaders.Set("Content-Type", "application/json")
17028	c.urlParams_.Set("alt", alt)
17029	c.urlParams_.Set("prettyPrint", "false")
17030	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17031	urls += "?" + c.urlParams_.Encode()
17032	req, err := http.NewRequest("POST", urls, body)
17033	if err != nil {
17034		return nil, err
17035	}
17036	req.Header = reqHeaders
17037	googleapi.Expand(req.URL, map[string]string{
17038		"name": c.name,
17039	})
17040	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17041}
17042
17043// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
17044// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
17045// non-nil. Any non-2xx status code is an error. Response headers are in
17046// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
17047// a response was returned at all) in error.(*googleapi.Error).Header.
17048// Use googleapi.IsNotModified to check whether the returned error was
17049// because http.StatusNotModified was returned.
17050func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
17051	gensupport.SetOptions(c.urlParams_, opts...)
17052	res, err := c.doRequest("json")
17053	if res != nil && res.StatusCode == http.StatusNotModified {
17054		if res.Body != nil {
17055			res.Body.Close()
17056		}
17057		return nil, &googleapi.Error{
17058			Code:   res.StatusCode,
17059			Header: res.Header,
17060		}
17061	}
17062	if err != nil {
17063		return nil, err
17064	}
17065	defer googleapi.CloseBody(res)
17066	if err := googleapi.CheckResponse(res); err != nil {
17067		return nil, err
17068	}
17069	ret := &GoogleCloudApigeeV1DeveloperApp{
17070		ServerResponse: googleapi.ServerResponse{
17071			Header:         res.Header,
17072			HTTPStatusCode: res.StatusCode,
17073		},
17074	}
17075	target := &ret
17076	if err := gensupport.DecodeResponse(target, res); err != nil {
17077		return nil, err
17078	}
17079	return ret, nil
17080	// {
17081	//   "description": "Manages access to a developer app by enabling you to: * Approve or revoke a developer app * Generate a new consumer key and secret for a developer app To approve or revoke a developer app, set the `action` query parameter to `approved` or `revoked`, respectively, and the `Content-Type` header to `application/octet-stream`. If a developer app is revoked, none of its API keys are valid for API calls even though the keys are still `approved`. If successful, the API call returns the following HTTP status code: `204 No Content` To generate a new consumer key and secret for a developer app, pass the new key/secret details. Rather than replace an existing key, this API generates a new key. In this case, multiple key pairs may be associated with a single developer app. Each key pair has an independent status (`approved` or `revoked`) and expiration time. Any approved, non-expired key can be used in an API call. For example, if you're using API key rotation, you can generate new keys with expiration times that overlap keys that are going to expire. You might also generate a new consumer key/secret if the security of the original key/secret is compromised. The `keyExpiresIn` property defines the expiration time for the API key in milliseconds. If you don't set this property or set it to `-1`, the API key never expires. **Notes**: * When generating a new key/secret, this API replaces the existing attributes, notes, and callback URLs with those specified in the request. Include or exclude any existing information that you want to retain or delete, respectively. * To migrate existing consumer keys and secrets to hybrid from another system, see the CreateDeveloperAppKey API.",
17082	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
17083	//   "httpMethod": "POST",
17084	//   "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus",
17085	//   "parameterOrder": [
17086	//     "name"
17087	//   ],
17088	//   "parameters": {
17089	//     "action": {
17090	//       "description": "Action. Valid values are `approve` or `revoke`.",
17091	//       "location": "query",
17092	//       "type": "string"
17093	//     },
17094	//     "name": {
17095	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
17096	//       "location": "path",
17097	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
17098	//       "required": true,
17099	//       "type": "string"
17100	//     }
17101	//   },
17102	//   "path": "v1/{+name}",
17103	//   "request": {
17104	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
17105	//   },
17106	//   "response": {
17107	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
17108	//   },
17109	//   "scopes": [
17110	//     "https://www.googleapis.com/auth/cloud-platform"
17111	//   ]
17112	// }
17113
17114}
17115
17116// method id "apigee.organizations.developers.apps.get":
17117
17118type OrganizationsDevelopersAppsGetCall struct {
17119	s            *Service
17120	name         string
17121	urlParams_   gensupport.URLParams
17122	ifNoneMatch_ string
17123	ctx_         context.Context
17124	header_      http.Header
17125}
17126
17127// Get: Returns the details for a developer app.
17128func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
17129	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17130	c.name = name
17131	return c
17132}
17133
17134// Entity sets the optional parameter "entity": **Note**: Must be used
17135// in conjunction with the `query` parameter. Set to `apiresources` to
17136// return the number of API resources that have been approved for access
17137// by a developer app in the specified Apigee organization.
17138func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
17139	c.urlParams_.Set("entity", entity)
17140	return c
17141}
17142
17143// Query sets the optional parameter "query": **Note**: Must be used in
17144// conjunction with the `entity` parameter. Set to `count` to return the
17145// number of API resources that have been approved for access by a
17146// developer app in the specified Apigee organization.
17147func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
17148	c.urlParams_.Set("query", query)
17149	return c
17150}
17151
17152// Fields allows partial responses to be retrieved. See
17153// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17154// for more information.
17155func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
17156	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17157	return c
17158}
17159
17160// IfNoneMatch sets the optional parameter which makes the operation
17161// fail if the object's ETag matches the given value. This is useful for
17162// getting updates only after the object has changed since the last
17163// request. Use googleapi.IsNotModified to check whether the response
17164// error from Do is the result of In-None-Match.
17165func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
17166	c.ifNoneMatch_ = entityTag
17167	return c
17168}
17169
17170// Context sets the context to be used in this call's Do method. Any
17171// pending HTTP request will be aborted if the provided context is
17172// canceled.
17173func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
17174	c.ctx_ = ctx
17175	return c
17176}
17177
17178// Header returns an http.Header that can be modified by the caller to
17179// add HTTP headers to the request.
17180func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
17181	if c.header_ == nil {
17182		c.header_ = make(http.Header)
17183	}
17184	return c.header_
17185}
17186
17187func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
17188	reqHeaders := make(http.Header)
17189	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17190	for k, v := range c.header_ {
17191		reqHeaders[k] = v
17192	}
17193	reqHeaders.Set("User-Agent", c.s.userAgent())
17194	if c.ifNoneMatch_ != "" {
17195		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17196	}
17197	var body io.Reader = nil
17198	c.urlParams_.Set("alt", alt)
17199	c.urlParams_.Set("prettyPrint", "false")
17200	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17201	urls += "?" + c.urlParams_.Encode()
17202	req, err := http.NewRequest("GET", urls, body)
17203	if err != nil {
17204		return nil, err
17205	}
17206	req.Header = reqHeaders
17207	googleapi.Expand(req.URL, map[string]string{
17208		"name": c.name,
17209	})
17210	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17211}
17212
17213// Do executes the "apigee.organizations.developers.apps.get" call.
17214// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
17215// non-nil. Any non-2xx status code is an error. Response headers are in
17216// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
17217// a response was returned at all) in error.(*googleapi.Error).Header.
17218// Use googleapi.IsNotModified to check whether the returned error was
17219// because http.StatusNotModified was returned.
17220func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
17221	gensupport.SetOptions(c.urlParams_, opts...)
17222	res, err := c.doRequest("json")
17223	if res != nil && res.StatusCode == http.StatusNotModified {
17224		if res.Body != nil {
17225			res.Body.Close()
17226		}
17227		return nil, &googleapi.Error{
17228			Code:   res.StatusCode,
17229			Header: res.Header,
17230		}
17231	}
17232	if err != nil {
17233		return nil, err
17234	}
17235	defer googleapi.CloseBody(res)
17236	if err := googleapi.CheckResponse(res); err != nil {
17237		return nil, err
17238	}
17239	ret := &GoogleCloudApigeeV1DeveloperApp{
17240		ServerResponse: googleapi.ServerResponse{
17241			Header:         res.Header,
17242			HTTPStatusCode: res.StatusCode,
17243		},
17244	}
17245	target := &ret
17246	if err := gensupport.DecodeResponse(target, res); err != nil {
17247		return nil, err
17248	}
17249	return ret, nil
17250	// {
17251	//   "description": "Returns the details for a developer app.",
17252	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
17253	//   "httpMethod": "GET",
17254	//   "id": "apigee.organizations.developers.apps.get",
17255	//   "parameterOrder": [
17256	//     "name"
17257	//   ],
17258	//   "parameters": {
17259	//     "entity": {
17260	//       "description": "**Note**: Must be used in conjunction with the `query` parameter. Set to `apiresources` to return the number of API resources that have been approved for access by a developer app in the specified Apigee organization.",
17261	//       "location": "query",
17262	//       "type": "string"
17263	//     },
17264	//     "name": {
17265	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
17266	//       "location": "path",
17267	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
17268	//       "required": true,
17269	//       "type": "string"
17270	//     },
17271	//     "query": {
17272	//       "description": "**Note**: Must be used in conjunction with the `entity` parameter. Set to `count` to return the number of API resources that have been approved for access by a developer app in the specified Apigee organization.",
17273	//       "location": "query",
17274	//       "type": "string"
17275	//     }
17276	//   },
17277	//   "path": "v1/{+name}",
17278	//   "response": {
17279	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
17280	//   },
17281	//   "scopes": [
17282	//     "https://www.googleapis.com/auth/cloud-platform"
17283	//   ]
17284	// }
17285
17286}
17287
17288// method id "apigee.organizations.developers.apps.list":
17289
17290type OrganizationsDevelopersAppsListCall struct {
17291	s            *Service
17292	parent       string
17293	urlParams_   gensupport.URLParams
17294	ifNoneMatch_ string
17295	ctx_         context.Context
17296	header_      http.Header
17297}
17298
17299// List: Lists all apps created by a developer in an Apigee
17300// organization. Optionally, you can request an expanded view of the
17301// developer apps. A maximum of 100 developer apps are returned per API
17302// call. You can paginate the list of deveoper apps returned using the
17303// `startKey` and `count` query parameters.
17304func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
17305	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17306	c.parent = parent
17307	return c
17308}
17309
17310// Count sets the optional parameter "count": Number of developer apps
17311// to return in the API call. Use with the `startKey` parameter to
17312// provide more targeted filtering. The limit is 1000.
17313func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
17314	c.urlParams_.Set("count", fmt.Sprint(count))
17315	return c
17316}
17317
17318// Expand sets the optional parameter "expand": Specifies whether to
17319// expand the results. Set to `true` to expand the results. This query
17320// parameter is not valid if you use the `count` or `startKey` query
17321// parameters.
17322func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
17323	c.urlParams_.Set("expand", fmt.Sprint(expand))
17324	return c
17325}
17326
17327// ShallowExpand sets the optional parameter "shallowExpand": Specifies
17328// whether to expand the results in shallow mode. Set to `true` to
17329// expand the results in shallow mode.
17330func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
17331	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
17332	return c
17333}
17334
17335// StartKey sets the optional parameter "startKey": **Note**: Must be
17336// used in conjunction with the `count` parameter. Name of the developer
17337// app from which to start displaying the list of developer apps. For
17338// example, if you're returning 50 developer apps at a time (using the
17339// `count` query parameter), you can view developer apps 50-99 by
17340// entering the name of the 50th developer app. The developer app name
17341// is case sensitive.
17342func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
17343	c.urlParams_.Set("startKey", startKey)
17344	return c
17345}
17346
17347// Fields allows partial responses to be retrieved. See
17348// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17349// for more information.
17350func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
17351	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17352	return c
17353}
17354
17355// IfNoneMatch sets the optional parameter which makes the operation
17356// fail if the object's ETag matches the given value. This is useful for
17357// getting updates only after the object has changed since the last
17358// request. Use googleapi.IsNotModified to check whether the response
17359// error from Do is the result of In-None-Match.
17360func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
17361	c.ifNoneMatch_ = entityTag
17362	return c
17363}
17364
17365// Context sets the context to be used in this call's Do method. Any
17366// pending HTTP request will be aborted if the provided context is
17367// canceled.
17368func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
17369	c.ctx_ = ctx
17370	return c
17371}
17372
17373// Header returns an http.Header that can be modified by the caller to
17374// add HTTP headers to the request.
17375func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
17376	if c.header_ == nil {
17377		c.header_ = make(http.Header)
17378	}
17379	return c.header_
17380}
17381
17382func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
17383	reqHeaders := make(http.Header)
17384	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17385	for k, v := range c.header_ {
17386		reqHeaders[k] = v
17387	}
17388	reqHeaders.Set("User-Agent", c.s.userAgent())
17389	if c.ifNoneMatch_ != "" {
17390		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17391	}
17392	var body io.Reader = nil
17393	c.urlParams_.Set("alt", alt)
17394	c.urlParams_.Set("prettyPrint", "false")
17395	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
17396	urls += "?" + c.urlParams_.Encode()
17397	req, err := http.NewRequest("GET", urls, body)
17398	if err != nil {
17399		return nil, err
17400	}
17401	req.Header = reqHeaders
17402	googleapi.Expand(req.URL, map[string]string{
17403		"parent": c.parent,
17404	})
17405	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17406}
17407
17408// Do executes the "apigee.organizations.developers.apps.list" call.
17409// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error
17410// will be non-nil. Any non-2xx status code is an error. Response
17411// headers are in either
17412// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header
17413// or (if a response was returned at all) in
17414// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17415// whether the returned error was because http.StatusNotModified was
17416// returned.
17417func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
17418	gensupport.SetOptions(c.urlParams_, opts...)
17419	res, err := c.doRequest("json")
17420	if res != nil && res.StatusCode == http.StatusNotModified {
17421		if res.Body != nil {
17422			res.Body.Close()
17423		}
17424		return nil, &googleapi.Error{
17425			Code:   res.StatusCode,
17426			Header: res.Header,
17427		}
17428	}
17429	if err != nil {
17430		return nil, err
17431	}
17432	defer googleapi.CloseBody(res)
17433	if err := googleapi.CheckResponse(res); err != nil {
17434		return nil, err
17435	}
17436	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
17437		ServerResponse: googleapi.ServerResponse{
17438			Header:         res.Header,
17439			HTTPStatusCode: res.StatusCode,
17440		},
17441	}
17442	target := &ret
17443	if err := gensupport.DecodeResponse(target, res); err != nil {
17444		return nil, err
17445	}
17446	return ret, nil
17447	// {
17448	//   "description": "Lists all apps created by a developer in an Apigee organization. Optionally, you can request an expanded view of the developer apps. A maximum of 100 developer apps are returned per API call. You can paginate the list of deveoper apps returned using the `startKey` and `count` query parameters.",
17449	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
17450	//   "httpMethod": "GET",
17451	//   "id": "apigee.organizations.developers.apps.list",
17452	//   "parameterOrder": [
17453	//     "parent"
17454	//   ],
17455	//   "parameters": {
17456	//     "count": {
17457	//       "description": "Number of developer apps to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The limit is 1000.",
17458	//       "format": "int64",
17459	//       "location": "query",
17460	//       "type": "string"
17461	//     },
17462	//     "expand": {
17463	//       "description": "Optional. Specifies whether to expand the results. Set to `true` to expand the results. This query parameter is not valid if you use the `count` or `startKey` query parameters.",
17464	//       "location": "query",
17465	//       "type": "boolean"
17466	//     },
17467	//     "parent": {
17468	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
17469	//       "location": "path",
17470	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17471	//       "required": true,
17472	//       "type": "string"
17473	//     },
17474	//     "shallowExpand": {
17475	//       "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.",
17476	//       "location": "query",
17477	//       "type": "boolean"
17478	//     },
17479	//     "startKey": {
17480	//       "description": "**Note**: Must be used in conjunction with the `count` parameter. Name of the developer app from which to start displaying the list of developer apps. For example, if you're returning 50 developer apps at a time (using the `count` query parameter), you can view developer apps 50-99 by entering the name of the 50th developer app. The developer app name is case sensitive.",
17481	//       "location": "query",
17482	//       "type": "string"
17483	//     }
17484	//   },
17485	//   "path": "v1/{+parent}/apps",
17486	//   "response": {
17487	//     "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse"
17488	//   },
17489	//   "scopes": [
17490	//     "https://www.googleapis.com/auth/cloud-platform"
17491	//   ]
17492	// }
17493
17494}
17495
17496// method id "apigee.organizations.developers.apps.update":
17497
17498type OrganizationsDevelopersAppsUpdateCall struct {
17499	s                               *Service
17500	name                            string
17501	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
17502	urlParams_                      gensupport.URLParams
17503	ctx_                            context.Context
17504	header_                         http.Header
17505}
17506
17507// Update: Updates the details for a developer app. In addition, you can
17508// add an API product to a developer app and automatically generate an
17509// API key for the app to use when calling APIs in the API product. If
17510// you want to use an existing API key for the API product, add the API
17511// product to the API key using the UpdateDeveloperAppKey API. Using
17512// this API, you cannot update the following: * App name as it is the
17513// primary key used to identify the app and cannot be changed. * Scopes
17514// associated with the app. Instead, use the ReplaceDeveloperAppKey API.
17515// This API replaces the existing attributes with those specified in the
17516// request. Include or exclude any existing attributes that you want to
17517// retain or delete, respectively.
17518func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
17519	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17520	c.name = name
17521	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
17522	return c
17523}
17524
17525// Fields allows partial responses to be retrieved. See
17526// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17527// for more information.
17528func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
17529	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17530	return c
17531}
17532
17533// Context sets the context to be used in this call's Do method. Any
17534// pending HTTP request will be aborted if the provided context is
17535// canceled.
17536func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
17537	c.ctx_ = ctx
17538	return c
17539}
17540
17541// Header returns an http.Header that can be modified by the caller to
17542// add HTTP headers to the request.
17543func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
17544	if c.header_ == nil {
17545		c.header_ = make(http.Header)
17546	}
17547	return c.header_
17548}
17549
17550func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
17551	reqHeaders := make(http.Header)
17552	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17553	for k, v := range c.header_ {
17554		reqHeaders[k] = v
17555	}
17556	reqHeaders.Set("User-Agent", c.s.userAgent())
17557	var body io.Reader = nil
17558	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
17559	if err != nil {
17560		return nil, err
17561	}
17562	reqHeaders.Set("Content-Type", "application/json")
17563	c.urlParams_.Set("alt", alt)
17564	c.urlParams_.Set("prettyPrint", "false")
17565	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17566	urls += "?" + c.urlParams_.Encode()
17567	req, err := http.NewRequest("PUT", urls, body)
17568	if err != nil {
17569		return nil, err
17570	}
17571	req.Header = reqHeaders
17572	googleapi.Expand(req.URL, map[string]string{
17573		"name": c.name,
17574	})
17575	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17576}
17577
17578// Do executes the "apigee.organizations.developers.apps.update" call.
17579// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
17580// non-nil. Any non-2xx status code is an error. Response headers are in
17581// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
17582// a response was returned at all) in error.(*googleapi.Error).Header.
17583// Use googleapi.IsNotModified to check whether the returned error was
17584// because http.StatusNotModified was returned.
17585func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
17586	gensupport.SetOptions(c.urlParams_, opts...)
17587	res, err := c.doRequest("json")
17588	if res != nil && res.StatusCode == http.StatusNotModified {
17589		if res.Body != nil {
17590			res.Body.Close()
17591		}
17592		return nil, &googleapi.Error{
17593			Code:   res.StatusCode,
17594			Header: res.Header,
17595		}
17596	}
17597	if err != nil {
17598		return nil, err
17599	}
17600	defer googleapi.CloseBody(res)
17601	if err := googleapi.CheckResponse(res); err != nil {
17602		return nil, err
17603	}
17604	ret := &GoogleCloudApigeeV1DeveloperApp{
17605		ServerResponse: googleapi.ServerResponse{
17606			Header:         res.Header,
17607			HTTPStatusCode: res.StatusCode,
17608		},
17609	}
17610	target := &ret
17611	if err := gensupport.DecodeResponse(target, res); err != nil {
17612		return nil, err
17613	}
17614	return ret, nil
17615	// {
17616	//   "description": "Updates the details for a developer app. In addition, you can add an API product to a developer app and automatically generate an API key for the app to use when calling APIs in the API product. If you want to use an existing API key for the API product, add the API product to the API key using the UpdateDeveloperAppKey API. Using this API, you cannot update the following: * App name as it is the primary key used to identify the app and cannot be changed. * Scopes associated with the app. Instead, use the ReplaceDeveloperAppKey API. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively.",
17617	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
17618	//   "httpMethod": "PUT",
17619	//   "id": "apigee.organizations.developers.apps.update",
17620	//   "parameterOrder": [
17621	//     "name"
17622	//   ],
17623	//   "parameters": {
17624	//     "name": {
17625	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
17626	//       "location": "path",
17627	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
17628	//       "required": true,
17629	//       "type": "string"
17630	//     }
17631	//   },
17632	//   "path": "v1/{+name}",
17633	//   "request": {
17634	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
17635	//   },
17636	//   "response": {
17637	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
17638	//   },
17639	//   "scopes": [
17640	//     "https://www.googleapis.com/auth/cloud-platform"
17641	//   ]
17642	// }
17643
17644}
17645
17646// method id "apigee.organizations.developers.apps.attributes.delete":
17647
17648type OrganizationsDevelopersAppsAttributesDeleteCall struct {
17649	s          *Service
17650	name       string
17651	urlParams_ gensupport.URLParams
17652	ctx_       context.Context
17653	header_    http.Header
17654}
17655
17656// Delete: Deletes a developer app attribute.
17657func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
17658	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17659	c.name = name
17660	return c
17661}
17662
17663// Fields allows partial responses to be retrieved. See
17664// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17665// for more information.
17666func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
17667	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17668	return c
17669}
17670
17671// Context sets the context to be used in this call's Do method. Any
17672// pending HTTP request will be aborted if the provided context is
17673// canceled.
17674func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
17675	c.ctx_ = ctx
17676	return c
17677}
17678
17679// Header returns an http.Header that can be modified by the caller to
17680// add HTTP headers to the request.
17681func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
17682	if c.header_ == nil {
17683		c.header_ = make(http.Header)
17684	}
17685	return c.header_
17686}
17687
17688func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
17689	reqHeaders := make(http.Header)
17690	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17691	for k, v := range c.header_ {
17692		reqHeaders[k] = v
17693	}
17694	reqHeaders.Set("User-Agent", c.s.userAgent())
17695	var body io.Reader = nil
17696	c.urlParams_.Set("alt", alt)
17697	c.urlParams_.Set("prettyPrint", "false")
17698	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17699	urls += "?" + c.urlParams_.Encode()
17700	req, err := http.NewRequest("DELETE", urls, body)
17701	if err != nil {
17702		return nil, err
17703	}
17704	req.Header = reqHeaders
17705	googleapi.Expand(req.URL, map[string]string{
17706		"name": c.name,
17707	})
17708	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17709}
17710
17711// Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
17712// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
17713// non-nil. Any non-2xx status code is an error. Response headers are in
17714// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
17715// response was returned at all) in error.(*googleapi.Error).Header. Use
17716// googleapi.IsNotModified to check whether the returned error was
17717// because http.StatusNotModified was returned.
17718func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
17719	gensupport.SetOptions(c.urlParams_, opts...)
17720	res, err := c.doRequest("json")
17721	if res != nil && res.StatusCode == http.StatusNotModified {
17722		if res.Body != nil {
17723			res.Body.Close()
17724		}
17725		return nil, &googleapi.Error{
17726			Code:   res.StatusCode,
17727			Header: res.Header,
17728		}
17729	}
17730	if err != nil {
17731		return nil, err
17732	}
17733	defer googleapi.CloseBody(res)
17734	if err := googleapi.CheckResponse(res); err != nil {
17735		return nil, err
17736	}
17737	ret := &GoogleCloudApigeeV1Attribute{
17738		ServerResponse: googleapi.ServerResponse{
17739			Header:         res.Header,
17740			HTTPStatusCode: res.StatusCode,
17741		},
17742	}
17743	target := &ret
17744	if err := gensupport.DecodeResponse(target, res); err != nil {
17745		return nil, err
17746	}
17747	return ret, nil
17748	// {
17749	//   "description": "Deletes a developer app attribute.",
17750	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
17751	//   "httpMethod": "DELETE",
17752	//   "id": "apigee.organizations.developers.apps.attributes.delete",
17753	//   "parameterOrder": [
17754	//     "name"
17755	//   ],
17756	//   "parameters": {
17757	//     "name": {
17758	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
17759	//       "location": "path",
17760	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
17761	//       "required": true,
17762	//       "type": "string"
17763	//     }
17764	//   },
17765	//   "path": "v1/{+name}",
17766	//   "response": {
17767	//     "$ref": "GoogleCloudApigeeV1Attribute"
17768	//   },
17769	//   "scopes": [
17770	//     "https://www.googleapis.com/auth/cloud-platform"
17771	//   ]
17772	// }
17773
17774}
17775
17776// method id "apigee.organizations.developers.apps.attributes.get":
17777
17778type OrganizationsDevelopersAppsAttributesGetCall struct {
17779	s            *Service
17780	name         string
17781	urlParams_   gensupport.URLParams
17782	ifNoneMatch_ string
17783	ctx_         context.Context
17784	header_      http.Header
17785}
17786
17787// Get: Returns a developer app attribute.
17788func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
17789	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17790	c.name = name
17791	return c
17792}
17793
17794// Fields allows partial responses to be retrieved. See
17795// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17796// for more information.
17797func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
17798	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17799	return c
17800}
17801
17802// IfNoneMatch sets the optional parameter which makes the operation
17803// fail if the object's ETag matches the given value. This is useful for
17804// getting updates only after the object has changed since the last
17805// request. Use googleapi.IsNotModified to check whether the response
17806// error from Do is the result of In-None-Match.
17807func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
17808	c.ifNoneMatch_ = entityTag
17809	return c
17810}
17811
17812// Context sets the context to be used in this call's Do method. Any
17813// pending HTTP request will be aborted if the provided context is
17814// canceled.
17815func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
17816	c.ctx_ = ctx
17817	return c
17818}
17819
17820// Header returns an http.Header that can be modified by the caller to
17821// add HTTP headers to the request.
17822func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
17823	if c.header_ == nil {
17824		c.header_ = make(http.Header)
17825	}
17826	return c.header_
17827}
17828
17829func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
17830	reqHeaders := make(http.Header)
17831	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17832	for k, v := range c.header_ {
17833		reqHeaders[k] = v
17834	}
17835	reqHeaders.Set("User-Agent", c.s.userAgent())
17836	if c.ifNoneMatch_ != "" {
17837		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17838	}
17839	var body io.Reader = nil
17840	c.urlParams_.Set("alt", alt)
17841	c.urlParams_.Set("prettyPrint", "false")
17842	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17843	urls += "?" + c.urlParams_.Encode()
17844	req, err := http.NewRequest("GET", urls, body)
17845	if err != nil {
17846		return nil, err
17847	}
17848	req.Header = reqHeaders
17849	googleapi.Expand(req.URL, map[string]string{
17850		"name": c.name,
17851	})
17852	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17853}
17854
17855// Do executes the "apigee.organizations.developers.apps.attributes.get" call.
17856// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
17857// non-nil. Any non-2xx status code is an error. Response headers are in
17858// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
17859// response was returned at all) in error.(*googleapi.Error).Header. Use
17860// googleapi.IsNotModified to check whether the returned error was
17861// because http.StatusNotModified was returned.
17862func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
17863	gensupport.SetOptions(c.urlParams_, opts...)
17864	res, err := c.doRequest("json")
17865	if res != nil && res.StatusCode == http.StatusNotModified {
17866		if res.Body != nil {
17867			res.Body.Close()
17868		}
17869		return nil, &googleapi.Error{
17870			Code:   res.StatusCode,
17871			Header: res.Header,
17872		}
17873	}
17874	if err != nil {
17875		return nil, err
17876	}
17877	defer googleapi.CloseBody(res)
17878	if err := googleapi.CheckResponse(res); err != nil {
17879		return nil, err
17880	}
17881	ret := &GoogleCloudApigeeV1Attribute{
17882		ServerResponse: googleapi.ServerResponse{
17883			Header:         res.Header,
17884			HTTPStatusCode: res.StatusCode,
17885		},
17886	}
17887	target := &ret
17888	if err := gensupport.DecodeResponse(target, res); err != nil {
17889		return nil, err
17890	}
17891	return ret, nil
17892	// {
17893	//   "description": "Returns a developer app attribute.",
17894	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
17895	//   "httpMethod": "GET",
17896	//   "id": "apigee.organizations.developers.apps.attributes.get",
17897	//   "parameterOrder": [
17898	//     "name"
17899	//   ],
17900	//   "parameters": {
17901	//     "name": {
17902	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
17903	//       "location": "path",
17904	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
17905	//       "required": true,
17906	//       "type": "string"
17907	//     }
17908	//   },
17909	//   "path": "v1/{+name}",
17910	//   "response": {
17911	//     "$ref": "GoogleCloudApigeeV1Attribute"
17912	//   },
17913	//   "scopes": [
17914	//     "https://www.googleapis.com/auth/cloud-platform"
17915	//   ]
17916	// }
17917
17918}
17919
17920// method id "apigee.organizations.developers.apps.attributes.list":
17921
17922type OrganizationsDevelopersAppsAttributesListCall struct {
17923	s            *Service
17924	parent       string
17925	urlParams_   gensupport.URLParams
17926	ifNoneMatch_ string
17927	ctx_         context.Context
17928	header_      http.Header
17929}
17930
17931// List: Returns a list of all developer app attributes.
17932func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
17933	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17934	c.parent = parent
17935	return c
17936}
17937
17938// Fields allows partial responses to be retrieved. See
17939// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17940// for more information.
17941func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
17942	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17943	return c
17944}
17945
17946// IfNoneMatch sets the optional parameter which makes the operation
17947// fail if the object's ETag matches the given value. This is useful for
17948// getting updates only after the object has changed since the last
17949// request. Use googleapi.IsNotModified to check whether the response
17950// error from Do is the result of In-None-Match.
17951func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
17952	c.ifNoneMatch_ = entityTag
17953	return c
17954}
17955
17956// Context sets the context to be used in this call's Do method. Any
17957// pending HTTP request will be aborted if the provided context is
17958// canceled.
17959func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
17960	c.ctx_ = ctx
17961	return c
17962}
17963
17964// Header returns an http.Header that can be modified by the caller to
17965// add HTTP headers to the request.
17966func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
17967	if c.header_ == nil {
17968		c.header_ = make(http.Header)
17969	}
17970	return c.header_
17971}
17972
17973func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
17974	reqHeaders := make(http.Header)
17975	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17976	for k, v := range c.header_ {
17977		reqHeaders[k] = v
17978	}
17979	reqHeaders.Set("User-Agent", c.s.userAgent())
17980	if c.ifNoneMatch_ != "" {
17981		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17982	}
17983	var body io.Reader = nil
17984	c.urlParams_.Set("alt", alt)
17985	c.urlParams_.Set("prettyPrint", "false")
17986	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
17987	urls += "?" + c.urlParams_.Encode()
17988	req, err := http.NewRequest("GET", urls, body)
17989	if err != nil {
17990		return nil, err
17991	}
17992	req.Header = reqHeaders
17993	googleapi.Expand(req.URL, map[string]string{
17994		"parent": c.parent,
17995	})
17996	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17997}
17998
17999// Do executes the "apigee.organizations.developers.apps.attributes.list" call.
18000// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
18001// non-nil. Any non-2xx status code is an error. Response headers are in
18002// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
18003// response was returned at all) in error.(*googleapi.Error).Header. Use
18004// googleapi.IsNotModified to check whether the returned error was
18005// because http.StatusNotModified was returned.
18006func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
18007	gensupport.SetOptions(c.urlParams_, opts...)
18008	res, err := c.doRequest("json")
18009	if res != nil && res.StatusCode == http.StatusNotModified {
18010		if res.Body != nil {
18011			res.Body.Close()
18012		}
18013		return nil, &googleapi.Error{
18014			Code:   res.StatusCode,
18015			Header: res.Header,
18016		}
18017	}
18018	if err != nil {
18019		return nil, err
18020	}
18021	defer googleapi.CloseBody(res)
18022	if err := googleapi.CheckResponse(res); err != nil {
18023		return nil, err
18024	}
18025	ret := &GoogleCloudApigeeV1Attributes{
18026		ServerResponse: googleapi.ServerResponse{
18027			Header:         res.Header,
18028			HTTPStatusCode: res.StatusCode,
18029		},
18030	}
18031	target := &ret
18032	if err := gensupport.DecodeResponse(target, res); err != nil {
18033		return nil, err
18034	}
18035	return ret, nil
18036	// {
18037	//   "description": "Returns a list of all developer app attributes.",
18038	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
18039	//   "httpMethod": "GET",
18040	//   "id": "apigee.organizations.developers.apps.attributes.list",
18041	//   "parameterOrder": [
18042	//     "parent"
18043	//   ],
18044	//   "parameters": {
18045	//     "parent": {
18046	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
18047	//       "location": "path",
18048	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18049	//       "required": true,
18050	//       "type": "string"
18051	//     }
18052	//   },
18053	//   "path": "v1/{+parent}/attributes",
18054	//   "response": {
18055	//     "$ref": "GoogleCloudApigeeV1Attributes"
18056	//   },
18057	//   "scopes": [
18058	//     "https://www.googleapis.com/auth/cloud-platform"
18059	//   ]
18060	// }
18061
18062}
18063
18064// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute":
18065
18066type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
18067	s                            *Service
18068	name                         string
18069	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
18070	urlParams_                   gensupport.URLParams
18071	ctx_                         context.Context
18072	header_                      http.Header
18073}
18074
18075// UpdateDeveloperAppAttribute: Updates a developer app attribute.
18076// **Note**: OAuth access tokens and Key Management Service (KMS)
18077// entities (apps, developers, and API products) are cached for 180
18078// seconds (current default). Any custom attributes associated with
18079// these entities are cached for at least 180 seconds after the entity
18080// is accessed at runtime. Therefore, an `ExpiresIn` element on the
18081// OAuthV2 policy won't be able to expire an access token in less than
18082// 180 seconds.
18083func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
18084	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18085	c.name = name
18086	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
18087	return c
18088}
18089
18090// Fields allows partial responses to be retrieved. See
18091// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18092// for more information.
18093func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
18094	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18095	return c
18096}
18097
18098// Context sets the context to be used in this call's Do method. Any
18099// pending HTTP request will be aborted if the provided context is
18100// canceled.
18101func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
18102	c.ctx_ = ctx
18103	return c
18104}
18105
18106// Header returns an http.Header that can be modified by the caller to
18107// add HTTP headers to the request.
18108func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
18109	if c.header_ == nil {
18110		c.header_ = make(http.Header)
18111	}
18112	return c.header_
18113}
18114
18115func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
18116	reqHeaders := make(http.Header)
18117	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18118	for k, v := range c.header_ {
18119		reqHeaders[k] = v
18120	}
18121	reqHeaders.Set("User-Agent", c.s.userAgent())
18122	var body io.Reader = nil
18123	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
18124	if err != nil {
18125		return nil, err
18126	}
18127	reqHeaders.Set("Content-Type", "application/json")
18128	c.urlParams_.Set("alt", alt)
18129	c.urlParams_.Set("prettyPrint", "false")
18130	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18131	urls += "?" + c.urlParams_.Encode()
18132	req, err := http.NewRequest("POST", urls, body)
18133	if err != nil {
18134		return nil, err
18135	}
18136	req.Header = reqHeaders
18137	googleapi.Expand(req.URL, map[string]string{
18138		"name": c.name,
18139	})
18140	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18141}
18142
18143// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
18144// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
18145// non-nil. Any non-2xx status code is an error. Response headers are in
18146// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
18147// response was returned at all) in error.(*googleapi.Error).Header. Use
18148// googleapi.IsNotModified to check whether the returned error was
18149// because http.StatusNotModified was returned.
18150func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
18151	gensupport.SetOptions(c.urlParams_, opts...)
18152	res, err := c.doRequest("json")
18153	if res != nil && res.StatusCode == http.StatusNotModified {
18154		if res.Body != nil {
18155			res.Body.Close()
18156		}
18157		return nil, &googleapi.Error{
18158			Code:   res.StatusCode,
18159			Header: res.Header,
18160		}
18161	}
18162	if err != nil {
18163		return nil, err
18164	}
18165	defer googleapi.CloseBody(res)
18166	if err := googleapi.CheckResponse(res); err != nil {
18167		return nil, err
18168	}
18169	ret := &GoogleCloudApigeeV1Attribute{
18170		ServerResponse: googleapi.ServerResponse{
18171			Header:         res.Header,
18172			HTTPStatusCode: res.StatusCode,
18173		},
18174	}
18175	target := &ret
18176	if err := gensupport.DecodeResponse(target, res); err != nil {
18177		return nil, err
18178	}
18179	return ret, nil
18180	// {
18181	//   "description": "Updates a developer app attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.",
18182	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
18183	//   "httpMethod": "POST",
18184	//   "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute",
18185	//   "parameterOrder": [
18186	//     "name"
18187	//   ],
18188	//   "parameters": {
18189	//     "name": {
18190	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
18191	//       "location": "path",
18192	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
18193	//       "required": true,
18194	//       "type": "string"
18195	//     }
18196	//   },
18197	//   "path": "v1/{+name}",
18198	//   "request": {
18199	//     "$ref": "GoogleCloudApigeeV1Attribute"
18200	//   },
18201	//   "response": {
18202	//     "$ref": "GoogleCloudApigeeV1Attribute"
18203	//   },
18204	//   "scopes": [
18205	//     "https://www.googleapis.com/auth/cloud-platform"
18206	//   ]
18207	// }
18208
18209}
18210
18211// method id "apigee.organizations.developers.apps.keys.create":
18212
18213type OrganizationsDevelopersAppsKeysCreateCall struct {
18214	s                                  *Service
18215	parent                             string
18216	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
18217	urlParams_                         gensupport.URLParams
18218	ctx_                               context.Context
18219	header_                            http.Header
18220}
18221
18222// Create: Creates a custom consumer key and secret for a developer app.
18223// This is particularly useful if you want to migrate existing consumer
18224// keys and secrets to Apigee hybrid from another system. Consumer keys
18225// and secrets can contain letters, numbers, underscores, and hyphens.
18226// No other special characters are allowed. To avoid service
18227// disruptions, a consumer key and secret should not exceed 2 KBs each.
18228// **Note**: When creating the consumer key and secret, an association
18229// to API products will not be made. Therefore, you should not specify
18230// the associated API products in your request. Instead, use the
18231// UpdateDeveloperAppKey API to make the association after the consumer
18232// key and secret are created. If a consumer key and secret already
18233// exist, you can keep them or delete them using the
18234// DeleteDeveloperAppKey API.
18235func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
18236	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18237	c.parent = parent
18238	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
18239	return c
18240}
18241
18242// Fields allows partial responses to be retrieved. See
18243// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18244// for more information.
18245func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
18246	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18247	return c
18248}
18249
18250// Context sets the context to be used in this call's Do method. Any
18251// pending HTTP request will be aborted if the provided context is
18252// canceled.
18253func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
18254	c.ctx_ = ctx
18255	return c
18256}
18257
18258// Header returns an http.Header that can be modified by the caller to
18259// add HTTP headers to the request.
18260func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
18261	if c.header_ == nil {
18262		c.header_ = make(http.Header)
18263	}
18264	return c.header_
18265}
18266
18267func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
18268	reqHeaders := make(http.Header)
18269	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18270	for k, v := range c.header_ {
18271		reqHeaders[k] = v
18272	}
18273	reqHeaders.Set("User-Agent", c.s.userAgent())
18274	var body io.Reader = nil
18275	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
18276	if err != nil {
18277		return nil, err
18278	}
18279	reqHeaders.Set("Content-Type", "application/json")
18280	c.urlParams_.Set("alt", alt)
18281	c.urlParams_.Set("prettyPrint", "false")
18282	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
18283	urls += "?" + c.urlParams_.Encode()
18284	req, err := http.NewRequest("POST", urls, body)
18285	if err != nil {
18286		return nil, err
18287	}
18288	req.Header = reqHeaders
18289	googleapi.Expand(req.URL, map[string]string{
18290		"parent": c.parent,
18291	})
18292	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18293}
18294
18295// Do executes the "apigee.organizations.developers.apps.keys.create" call.
18296// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
18297// non-nil. Any non-2xx status code is an error. Response headers are in
18298// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
18299// (if a response was returned at all) in
18300// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18301// whether the returned error was because http.StatusNotModified was
18302// returned.
18303func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
18304	gensupport.SetOptions(c.urlParams_, opts...)
18305	res, err := c.doRequest("json")
18306	if res != nil && res.StatusCode == http.StatusNotModified {
18307		if res.Body != nil {
18308			res.Body.Close()
18309		}
18310		return nil, &googleapi.Error{
18311			Code:   res.StatusCode,
18312			Header: res.Header,
18313		}
18314	}
18315	if err != nil {
18316		return nil, err
18317	}
18318	defer googleapi.CloseBody(res)
18319	if err := googleapi.CheckResponse(res); err != nil {
18320		return nil, err
18321	}
18322	ret := &GoogleCloudApigeeV1DeveloperAppKey{
18323		ServerResponse: googleapi.ServerResponse{
18324			Header:         res.Header,
18325			HTTPStatusCode: res.StatusCode,
18326		},
18327	}
18328	target := &ret
18329	if err := gensupport.DecodeResponse(target, res); err != nil {
18330		return nil, err
18331	}
18332	return ret, nil
18333	// {
18334	//   "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.",
18335	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys",
18336	//   "httpMethod": "POST",
18337	//   "id": "apigee.organizations.developers.apps.keys.create",
18338	//   "parameterOrder": [
18339	//     "parent"
18340	//   ],
18341	//   "parameters": {
18342	//     "parent": {
18343	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
18344	//       "location": "path",
18345	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18346	//       "required": true,
18347	//       "type": "string"
18348	//     }
18349	//   },
18350	//   "path": "v1/{+parent}/keys",
18351	//   "request": {
18352	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18353	//   },
18354	//   "response": {
18355	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18356	//   },
18357	//   "scopes": [
18358	//     "https://www.googleapis.com/auth/cloud-platform"
18359	//   ]
18360	// }
18361
18362}
18363
18364// method id "apigee.organizations.developers.apps.keys.delete":
18365
18366type OrganizationsDevelopersAppsKeysDeleteCall struct {
18367	s          *Service
18368	name       string
18369	urlParams_ gensupport.URLParams
18370	ctx_       context.Context
18371	header_    http.Header
18372}
18373
18374// Delete: Deletes an app's consumer key and removes all API products
18375// associated with the app. After the consumer key is deleted, it cannot
18376// be used to access any APIs. **Note**: After you delete a consumer
18377// key, you may want to: 1. Create a new consumer key and secret for the
18378// developer app using the CreateDeveloperAppKey API, and subsequently
18379// add an API product to the key using the UpdateDeveloperAppKey API. 2.
18380// Delete the developer app, if it is no longer required.
18381func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
18382	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18383	c.name = name
18384	return c
18385}
18386
18387// Fields allows partial responses to be retrieved. See
18388// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18389// for more information.
18390func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
18391	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18392	return c
18393}
18394
18395// Context sets the context to be used in this call's Do method. Any
18396// pending HTTP request will be aborted if the provided context is
18397// canceled.
18398func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
18399	c.ctx_ = ctx
18400	return c
18401}
18402
18403// Header returns an http.Header that can be modified by the caller to
18404// add HTTP headers to the request.
18405func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
18406	if c.header_ == nil {
18407		c.header_ = make(http.Header)
18408	}
18409	return c.header_
18410}
18411
18412func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
18413	reqHeaders := make(http.Header)
18414	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18415	for k, v := range c.header_ {
18416		reqHeaders[k] = v
18417	}
18418	reqHeaders.Set("User-Agent", c.s.userAgent())
18419	var body io.Reader = nil
18420	c.urlParams_.Set("alt", alt)
18421	c.urlParams_.Set("prettyPrint", "false")
18422	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18423	urls += "?" + c.urlParams_.Encode()
18424	req, err := http.NewRequest("DELETE", urls, body)
18425	if err != nil {
18426		return nil, err
18427	}
18428	req.Header = reqHeaders
18429	googleapi.Expand(req.URL, map[string]string{
18430		"name": c.name,
18431	})
18432	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18433}
18434
18435// Do executes the "apigee.organizations.developers.apps.keys.delete" call.
18436// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
18437// non-nil. Any non-2xx status code is an error. Response headers are in
18438// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
18439// (if a response was returned at all) in
18440// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18441// whether the returned error was because http.StatusNotModified was
18442// returned.
18443func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
18444	gensupport.SetOptions(c.urlParams_, opts...)
18445	res, err := c.doRequest("json")
18446	if res != nil && res.StatusCode == http.StatusNotModified {
18447		if res.Body != nil {
18448			res.Body.Close()
18449		}
18450		return nil, &googleapi.Error{
18451			Code:   res.StatusCode,
18452			Header: res.Header,
18453		}
18454	}
18455	if err != nil {
18456		return nil, err
18457	}
18458	defer googleapi.CloseBody(res)
18459	if err := googleapi.CheckResponse(res); err != nil {
18460		return nil, err
18461	}
18462	ret := &GoogleCloudApigeeV1DeveloperAppKey{
18463		ServerResponse: googleapi.ServerResponse{
18464			Header:         res.Header,
18465			HTTPStatusCode: res.StatusCode,
18466		},
18467	}
18468	target := &ret
18469	if err := gensupport.DecodeResponse(target, res); err != nil {
18470		return nil, err
18471	}
18472	return ret, nil
18473	// {
18474	//   "description": "Deletes an app's consumer key and removes all API products associated with the app. After the consumer key is deleted, it cannot be used to access any APIs. **Note**: After you delete a consumer key, you may want to: 1. Create a new consumer key and secret for the developer app using the CreateDeveloperAppKey API, and subsequently add an API product to the key using the UpdateDeveloperAppKey API. 2. Delete the developer app, if it is no longer required.",
18475	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
18476	//   "httpMethod": "DELETE",
18477	//   "id": "apigee.organizations.developers.apps.keys.delete",
18478	//   "parameterOrder": [
18479	//     "name"
18480	//   ],
18481	//   "parameters": {
18482	//     "name": {
18483	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
18484	//       "location": "path",
18485	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
18486	//       "required": true,
18487	//       "type": "string"
18488	//     }
18489	//   },
18490	//   "path": "v1/{+name}",
18491	//   "response": {
18492	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18493	//   },
18494	//   "scopes": [
18495	//     "https://www.googleapis.com/auth/cloud-platform"
18496	//   ]
18497	// }
18498
18499}
18500
18501// method id "apigee.organizations.developers.apps.keys.get":
18502
18503type OrganizationsDevelopersAppsKeysGetCall struct {
18504	s            *Service
18505	name         string
18506	urlParams_   gensupport.URLParams
18507	ifNoneMatch_ string
18508	ctx_         context.Context
18509	header_      http.Header
18510}
18511
18512// Get: Returns details for a consumer key for a developer app,
18513// including the key and secret value, associated API products, and
18514// other information.
18515func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
18516	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18517	c.name = name
18518	return c
18519}
18520
18521// Fields allows partial responses to be retrieved. See
18522// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18523// for more information.
18524func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
18525	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18526	return c
18527}
18528
18529// IfNoneMatch sets the optional parameter which makes the operation
18530// fail if the object's ETag matches the given value. This is useful for
18531// getting updates only after the object has changed since the last
18532// request. Use googleapi.IsNotModified to check whether the response
18533// error from Do is the result of In-None-Match.
18534func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
18535	c.ifNoneMatch_ = entityTag
18536	return c
18537}
18538
18539// Context sets the context to be used in this call's Do method. Any
18540// pending HTTP request will be aborted if the provided context is
18541// canceled.
18542func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
18543	c.ctx_ = ctx
18544	return c
18545}
18546
18547// Header returns an http.Header that can be modified by the caller to
18548// add HTTP headers to the request.
18549func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
18550	if c.header_ == nil {
18551		c.header_ = make(http.Header)
18552	}
18553	return c.header_
18554}
18555
18556func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
18557	reqHeaders := make(http.Header)
18558	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18559	for k, v := range c.header_ {
18560		reqHeaders[k] = v
18561	}
18562	reqHeaders.Set("User-Agent", c.s.userAgent())
18563	if c.ifNoneMatch_ != "" {
18564		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18565	}
18566	var body io.Reader = nil
18567	c.urlParams_.Set("alt", alt)
18568	c.urlParams_.Set("prettyPrint", "false")
18569	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18570	urls += "?" + c.urlParams_.Encode()
18571	req, err := http.NewRequest("GET", urls, body)
18572	if err != nil {
18573		return nil, err
18574	}
18575	req.Header = reqHeaders
18576	googleapi.Expand(req.URL, map[string]string{
18577		"name": c.name,
18578	})
18579	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18580}
18581
18582// Do executes the "apigee.organizations.developers.apps.keys.get" call.
18583// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
18584// non-nil. Any non-2xx status code is an error. Response headers are in
18585// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
18586// (if a response was returned at all) in
18587// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18588// whether the returned error was because http.StatusNotModified was
18589// returned.
18590func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
18591	gensupport.SetOptions(c.urlParams_, opts...)
18592	res, err := c.doRequest("json")
18593	if res != nil && res.StatusCode == http.StatusNotModified {
18594		if res.Body != nil {
18595			res.Body.Close()
18596		}
18597		return nil, &googleapi.Error{
18598			Code:   res.StatusCode,
18599			Header: res.Header,
18600		}
18601	}
18602	if err != nil {
18603		return nil, err
18604	}
18605	defer googleapi.CloseBody(res)
18606	if err := googleapi.CheckResponse(res); err != nil {
18607		return nil, err
18608	}
18609	ret := &GoogleCloudApigeeV1DeveloperAppKey{
18610		ServerResponse: googleapi.ServerResponse{
18611			Header:         res.Header,
18612			HTTPStatusCode: res.StatusCode,
18613		},
18614	}
18615	target := &ret
18616	if err := gensupport.DecodeResponse(target, res); err != nil {
18617		return nil, err
18618	}
18619	return ret, nil
18620	// {
18621	//   "description": "Returns details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.",
18622	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
18623	//   "httpMethod": "GET",
18624	//   "id": "apigee.organizations.developers.apps.keys.get",
18625	//   "parameterOrder": [
18626	//     "name"
18627	//   ],
18628	//   "parameters": {
18629	//     "name": {
18630	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
18631	//       "location": "path",
18632	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
18633	//       "required": true,
18634	//       "type": "string"
18635	//     }
18636	//   },
18637	//   "path": "v1/{+name}",
18638	//   "response": {
18639	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18640	//   },
18641	//   "scopes": [
18642	//     "https://www.googleapis.com/auth/cloud-platform"
18643	//   ]
18644	// }
18645
18646}
18647
18648// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey":
18649
18650type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
18651	s                                  *Service
18652	name                               string
18653	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
18654	urlParams_                         gensupport.URLParams
18655	ctx_                               context.Context
18656	header_                            http.Header
18657}
18658
18659// ReplaceDeveloperAppKey: Updates the scope of an app. This API
18660// replaces the existing scopes with those specified in the request.
18661// Include or exclude any existing scopes that you want to retain or
18662// delete, respectively. The specified scopes must already be defined
18663// for the API products associated with the app. This API sets the
18664// `scopes` element under the `apiProducts` element in the attributes of
18665// the app.
18666func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
18667	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18668	c.name = name
18669	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
18670	return c
18671}
18672
18673// Fields allows partial responses to be retrieved. See
18674// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18675// for more information.
18676func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
18677	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18678	return c
18679}
18680
18681// Context sets the context to be used in this call's Do method. Any
18682// pending HTTP request will be aborted if the provided context is
18683// canceled.
18684func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
18685	c.ctx_ = ctx
18686	return c
18687}
18688
18689// Header returns an http.Header that can be modified by the caller to
18690// add HTTP headers to the request.
18691func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
18692	if c.header_ == nil {
18693		c.header_ = make(http.Header)
18694	}
18695	return c.header_
18696}
18697
18698func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
18699	reqHeaders := make(http.Header)
18700	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18701	for k, v := range c.header_ {
18702		reqHeaders[k] = v
18703	}
18704	reqHeaders.Set("User-Agent", c.s.userAgent())
18705	var body io.Reader = nil
18706	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
18707	if err != nil {
18708		return nil, err
18709	}
18710	reqHeaders.Set("Content-Type", "application/json")
18711	c.urlParams_.Set("alt", alt)
18712	c.urlParams_.Set("prettyPrint", "false")
18713	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18714	urls += "?" + c.urlParams_.Encode()
18715	req, err := http.NewRequest("PUT", urls, body)
18716	if err != nil {
18717		return nil, err
18718	}
18719	req.Header = reqHeaders
18720	googleapi.Expand(req.URL, map[string]string{
18721		"name": c.name,
18722	})
18723	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18724}
18725
18726// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
18727// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
18728// non-nil. Any non-2xx status code is an error. Response headers are in
18729// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
18730// (if a response was returned at all) in
18731// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18732// whether the returned error was because http.StatusNotModified was
18733// returned.
18734func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
18735	gensupport.SetOptions(c.urlParams_, opts...)
18736	res, err := c.doRequest("json")
18737	if res != nil && res.StatusCode == http.StatusNotModified {
18738		if res.Body != nil {
18739			res.Body.Close()
18740		}
18741		return nil, &googleapi.Error{
18742			Code:   res.StatusCode,
18743			Header: res.Header,
18744		}
18745	}
18746	if err != nil {
18747		return nil, err
18748	}
18749	defer googleapi.CloseBody(res)
18750	if err := googleapi.CheckResponse(res); err != nil {
18751		return nil, err
18752	}
18753	ret := &GoogleCloudApigeeV1DeveloperAppKey{
18754		ServerResponse: googleapi.ServerResponse{
18755			Header:         res.Header,
18756			HTTPStatusCode: res.StatusCode,
18757		},
18758	}
18759	target := &ret
18760	if err := gensupport.DecodeResponse(target, res); err != nil {
18761		return nil, err
18762	}
18763	return ret, nil
18764	// {
18765	//   "description": "Updates the scope of an app. This API replaces the existing scopes with those specified in the request. Include or exclude any existing scopes that you want to retain or delete, respectively. The specified scopes must already be defined for the API products associated with the app. This API sets the `scopes` element under the `apiProducts` element in the attributes of the app.",
18766	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
18767	//   "httpMethod": "PUT",
18768	//   "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey",
18769	//   "parameterOrder": [
18770	//     "name"
18771	//   ],
18772	//   "parameters": {
18773	//     "name": {
18774	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
18775	//       "location": "path",
18776	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
18777	//       "required": true,
18778	//       "type": "string"
18779	//     }
18780	//   },
18781	//   "path": "v1/{+name}",
18782	//   "request": {
18783	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18784	//   },
18785	//   "response": {
18786	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18787	//   },
18788	//   "scopes": [
18789	//     "https://www.googleapis.com/auth/cloud-platform"
18790	//   ]
18791	// }
18792
18793}
18794
18795// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey":
18796
18797type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
18798	s                                  *Service
18799	name                               string
18800	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
18801	urlParams_                         gensupport.URLParams
18802	ctx_                               context.Context
18803	header_                            http.Header
18804}
18805
18806// UpdateDeveloperAppKey: Adds an API product to a developer app key,
18807// enabling the app that holds the key to access the API resources
18808// bundled in the API product. In addition, you can add attributes to a
18809// developer app key. This API replaces the existing attributes with
18810// those specified in the request. Include or exclude any existing
18811// attributes that you want to retain or delete, respectively. You can
18812// use the same key to access all API products associated with the app.
18813func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
18814	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18815	c.name = name
18816	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
18817	return c
18818}
18819
18820// Action sets the optional parameter "action": Approve or revoke the
18821// consumer key by setting this value to `approve` or `revoke`,
18822// respectively.
18823func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
18824	c.urlParams_.Set("action", action)
18825	return c
18826}
18827
18828// Fields allows partial responses to be retrieved. See
18829// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18830// for more information.
18831func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
18832	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18833	return c
18834}
18835
18836// Context sets the context to be used in this call's Do method. Any
18837// pending HTTP request will be aborted if the provided context is
18838// canceled.
18839func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
18840	c.ctx_ = ctx
18841	return c
18842}
18843
18844// Header returns an http.Header that can be modified by the caller to
18845// add HTTP headers to the request.
18846func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
18847	if c.header_ == nil {
18848		c.header_ = make(http.Header)
18849	}
18850	return c.header_
18851}
18852
18853func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
18854	reqHeaders := make(http.Header)
18855	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18856	for k, v := range c.header_ {
18857		reqHeaders[k] = v
18858	}
18859	reqHeaders.Set("User-Agent", c.s.userAgent())
18860	var body io.Reader = nil
18861	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
18862	if err != nil {
18863		return nil, err
18864	}
18865	reqHeaders.Set("Content-Type", "application/json")
18866	c.urlParams_.Set("alt", alt)
18867	c.urlParams_.Set("prettyPrint", "false")
18868	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18869	urls += "?" + c.urlParams_.Encode()
18870	req, err := http.NewRequest("POST", urls, body)
18871	if err != nil {
18872		return nil, err
18873	}
18874	req.Header = reqHeaders
18875	googleapi.Expand(req.URL, map[string]string{
18876		"name": c.name,
18877	})
18878	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18879}
18880
18881// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
18882// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
18883// non-nil. Any non-2xx status code is an error. Response headers are in
18884// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
18885// (if a response was returned at all) in
18886// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18887// whether the returned error was because http.StatusNotModified was
18888// returned.
18889func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
18890	gensupport.SetOptions(c.urlParams_, opts...)
18891	res, err := c.doRequest("json")
18892	if res != nil && res.StatusCode == http.StatusNotModified {
18893		if res.Body != nil {
18894			res.Body.Close()
18895		}
18896		return nil, &googleapi.Error{
18897			Code:   res.StatusCode,
18898			Header: res.Header,
18899		}
18900	}
18901	if err != nil {
18902		return nil, err
18903	}
18904	defer googleapi.CloseBody(res)
18905	if err := googleapi.CheckResponse(res); err != nil {
18906		return nil, err
18907	}
18908	ret := &GoogleCloudApigeeV1DeveloperAppKey{
18909		ServerResponse: googleapi.ServerResponse{
18910			Header:         res.Header,
18911			HTTPStatusCode: res.StatusCode,
18912		},
18913	}
18914	target := &ret
18915	if err := gensupport.DecodeResponse(target, res); err != nil {
18916		return nil, err
18917	}
18918	return ret, nil
18919	// {
18920	//   "description": "Adds an API product to a developer app key, enabling the app that holds the key to access the API resources bundled in the API product. In addition, you can add attributes to a developer app key. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively. You can use the same key to access all API products associated with the app.",
18921	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
18922	//   "httpMethod": "POST",
18923	//   "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey",
18924	//   "parameterOrder": [
18925	//     "name"
18926	//   ],
18927	//   "parameters": {
18928	//     "action": {
18929	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
18930	//       "location": "query",
18931	//       "type": "string"
18932	//     },
18933	//     "name": {
18934	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
18935	//       "location": "path",
18936	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
18937	//       "required": true,
18938	//       "type": "string"
18939	//     }
18940	//   },
18941	//   "path": "v1/{+name}",
18942	//   "request": {
18943	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18944	//   },
18945	//   "response": {
18946	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
18947	//   },
18948	//   "scopes": [
18949	//     "https://www.googleapis.com/auth/cloud-platform"
18950	//   ]
18951	// }
18952
18953}
18954
18955// method id "apigee.organizations.developers.apps.keys.apiproducts.delete":
18956
18957type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
18958	s          *Service
18959	name       string
18960	urlParams_ gensupport.URLParams
18961	ctx_       context.Context
18962	header_    http.Header
18963}
18964
18965// Delete: Removes an API product from an app's consumer key. After the
18966// API product is removed, the app cannot access the API resources
18967// defined in that API product. **Note**: The consumer key is not
18968// removed, only its association with the API product.
18969func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
18970	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18971	c.name = name
18972	return c
18973}
18974
18975// Fields allows partial responses to be retrieved. See
18976// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18977// for more information.
18978func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
18979	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18980	return c
18981}
18982
18983// Context sets the context to be used in this call's Do method. Any
18984// pending HTTP request will be aborted if the provided context is
18985// canceled.
18986func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
18987	c.ctx_ = ctx
18988	return c
18989}
18990
18991// Header returns an http.Header that can be modified by the caller to
18992// add HTTP headers to the request.
18993func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
18994	if c.header_ == nil {
18995		c.header_ = make(http.Header)
18996	}
18997	return c.header_
18998}
18999
19000func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
19001	reqHeaders := make(http.Header)
19002	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19003	for k, v := range c.header_ {
19004		reqHeaders[k] = v
19005	}
19006	reqHeaders.Set("User-Agent", c.s.userAgent())
19007	var body io.Reader = nil
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("DELETE", 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.developers.apps.keys.apiproducts.delete" call.
19024// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
19025// non-nil. Any non-2xx status code is an error. Response headers are in
19026// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
19027// (if a response was returned at all) in
19028// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19029// whether the returned error was because http.StatusNotModified was
19030// returned.
19031func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
19032	gensupport.SetOptions(c.urlParams_, opts...)
19033	res, err := c.doRequest("json")
19034	if res != nil && res.StatusCode == http.StatusNotModified {
19035		if res.Body != nil {
19036			res.Body.Close()
19037		}
19038		return nil, &googleapi.Error{
19039			Code:   res.StatusCode,
19040			Header: res.Header,
19041		}
19042	}
19043	if err != nil {
19044		return nil, err
19045	}
19046	defer googleapi.CloseBody(res)
19047	if err := googleapi.CheckResponse(res); err != nil {
19048		return nil, err
19049	}
19050	ret := &GoogleCloudApigeeV1DeveloperAppKey{
19051		ServerResponse: googleapi.ServerResponse{
19052			Header:         res.Header,
19053			HTTPStatusCode: res.StatusCode,
19054		},
19055	}
19056	target := &ret
19057	if err := gensupport.DecodeResponse(target, res); err != nil {
19058		return nil, err
19059	}
19060	return ret, nil
19061	// {
19062	//   "description": "Removes an API product from an app's consumer key. After the API product is removed, the app cannot access the API resources defined in that API product. **Note**: The consumer key is not removed, only its association with the API product.",
19063	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
19064	//   "httpMethod": "DELETE",
19065	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.delete",
19066	//   "parameterOrder": [
19067	//     "name"
19068	//   ],
19069	//   "parameters": {
19070	//     "name": {
19071	//       "description": "Name of the API product in the developer app key in the following format: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`",
19072	//       "location": "path",
19073	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
19074	//       "required": true,
19075	//       "type": "string"
19076	//     }
19077	//   },
19078	//   "path": "v1/{+name}",
19079	//   "response": {
19080	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
19081	//   },
19082	//   "scopes": [
19083	//     "https://www.googleapis.com/auth/cloud-platform"
19084	//   ]
19085	// }
19086
19087}
19088
19089// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct":
19090
19091type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
19092	s          *Service
19093	name       string
19094	urlParams_ gensupport.URLParams
19095	ctx_       context.Context
19096	header_    http.Header
19097}
19098
19099// UpdateDeveloperAppKeyApiProduct: Approve or revoke an app's consumer
19100// key. After a consumer key is approved, the app can use it to access
19101// APIs. A consumer key that is revoked or pending cannot be used to
19102// access an API. Any access tokens associated with a revoked consumer
19103// key will remain active. However, Apigee hybrid checks the status of
19104// the consumer key and if set to `revoked` will not allow access to the
19105// API.
19106func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
19107	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19108	c.name = name
19109	return c
19110}
19111
19112// Action sets the optional parameter "action": Approve or revoke the
19113// consumer key by setting this value to `approve` or `revoke`,
19114// respectively.
19115func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
19116	c.urlParams_.Set("action", action)
19117	return c
19118}
19119
19120// Fields allows partial responses to be retrieved. See
19121// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19122// for more information.
19123func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
19124	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19125	return c
19126}
19127
19128// Context sets the context to be used in this call's Do method. Any
19129// pending HTTP request will be aborted if the provided context is
19130// canceled.
19131func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
19132	c.ctx_ = ctx
19133	return c
19134}
19135
19136// Header returns an http.Header that can be modified by the caller to
19137// add HTTP headers to the request.
19138func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
19139	if c.header_ == nil {
19140		c.header_ = make(http.Header)
19141	}
19142	return c.header_
19143}
19144
19145func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
19146	reqHeaders := make(http.Header)
19147	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19148	for k, v := range c.header_ {
19149		reqHeaders[k] = v
19150	}
19151	reqHeaders.Set("User-Agent", c.s.userAgent())
19152	var body io.Reader = nil
19153	c.urlParams_.Set("alt", alt)
19154	c.urlParams_.Set("prettyPrint", "false")
19155	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19156	urls += "?" + c.urlParams_.Encode()
19157	req, err := http.NewRequest("POST", urls, body)
19158	if err != nil {
19159		return nil, err
19160	}
19161	req.Header = reqHeaders
19162	googleapi.Expand(req.URL, map[string]string{
19163		"name": c.name,
19164	})
19165	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19166}
19167
19168// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
19169// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
19170// non-2xx status code is an error. Response headers are in either
19171// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
19172// returned at all) in error.(*googleapi.Error).Header. Use
19173// googleapi.IsNotModified to check whether the returned error was
19174// because http.StatusNotModified was returned.
19175func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19176	gensupport.SetOptions(c.urlParams_, opts...)
19177	res, err := c.doRequest("json")
19178	if res != nil && res.StatusCode == http.StatusNotModified {
19179		if res.Body != nil {
19180			res.Body.Close()
19181		}
19182		return nil, &googleapi.Error{
19183			Code:   res.StatusCode,
19184			Header: res.Header,
19185		}
19186	}
19187	if err != nil {
19188		return nil, err
19189	}
19190	defer googleapi.CloseBody(res)
19191	if err := googleapi.CheckResponse(res); err != nil {
19192		return nil, err
19193	}
19194	ret := &GoogleProtobufEmpty{
19195		ServerResponse: googleapi.ServerResponse{
19196			Header:         res.Header,
19197			HTTPStatusCode: res.StatusCode,
19198		},
19199	}
19200	target := &ret
19201	if err := gensupport.DecodeResponse(target, res); err != nil {
19202		return nil, err
19203	}
19204	return ret, nil
19205	// {
19206	//   "description": "Approve or revoke an app's consumer key. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee hybrid checks the status of the consumer key and if set to `revoked` will not allow access to the API.",
19207	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
19208	//   "httpMethod": "POST",
19209	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct",
19210	//   "parameterOrder": [
19211	//     "name"
19212	//   ],
19213	//   "parameters": {
19214	//     "action": {
19215	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
19216	//       "location": "query",
19217	//       "type": "string"
19218	//     },
19219	//     "name": {
19220	//       "description": "Name of the API product in the developer app key in the following format: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`",
19221	//       "location": "path",
19222	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
19223	//       "required": true,
19224	//       "type": "string"
19225	//     }
19226	//   },
19227	//   "path": "v1/{+name}",
19228	//   "response": {
19229	//     "$ref": "GoogleProtobufEmpty"
19230	//   },
19231	//   "scopes": [
19232	//     "https://www.googleapis.com/auth/cloud-platform"
19233	//   ]
19234	// }
19235
19236}
19237
19238// method id "apigee.organizations.developers.apps.keys.create.create":
19239
19240type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
19241	s                                  *Service
19242	parent                             string
19243	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
19244	urlParams_                         gensupport.URLParams
19245	ctx_                               context.Context
19246	header_                            http.Header
19247}
19248
19249// Create: Creates a custom consumer key and secret for a developer app.
19250// This is particularly useful if you want to migrate existing consumer
19251// keys and secrets to Apigee hybrid from another system. Consumer keys
19252// and secrets can contain letters, numbers, underscores, and hyphens.
19253// No other special characters are allowed. To avoid service
19254// disruptions, a consumer key and secret should not exceed 2 KBs each.
19255// **Note**: When creating the consumer key and secret, an association
19256// to API products will not be made. Therefore, you should not specify
19257// the associated API products in your request. Instead, use the
19258// UpdateDeveloperAppKey API to make the association after the consumer
19259// key and secret are created. If a consumer key and secret already
19260// exist, you can keep them or delete them using the
19261// DeleteDeveloperAppKey API.
19262func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
19263	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19264	c.parent = parent
19265	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
19266	return c
19267}
19268
19269// Fields allows partial responses to be retrieved. See
19270// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19271// for more information.
19272func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
19273	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19274	return c
19275}
19276
19277// Context sets the context to be used in this call's Do method. Any
19278// pending HTTP request will be aborted if the provided context is
19279// canceled.
19280func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
19281	c.ctx_ = ctx
19282	return c
19283}
19284
19285// Header returns an http.Header that can be modified by the caller to
19286// add HTTP headers to the request.
19287func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
19288	if c.header_ == nil {
19289		c.header_ = make(http.Header)
19290	}
19291	return c.header_
19292}
19293
19294func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
19295	reqHeaders := make(http.Header)
19296	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19297	for k, v := range c.header_ {
19298		reqHeaders[k] = v
19299	}
19300	reqHeaders.Set("User-Agent", c.s.userAgent())
19301	var body io.Reader = nil
19302	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
19303	if err != nil {
19304		return nil, err
19305	}
19306	reqHeaders.Set("Content-Type", "application/json")
19307	c.urlParams_.Set("alt", alt)
19308	c.urlParams_.Set("prettyPrint", "false")
19309	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
19310	urls += "?" + c.urlParams_.Encode()
19311	req, err := http.NewRequest("POST", urls, body)
19312	if err != nil {
19313		return nil, err
19314	}
19315	req.Header = reqHeaders
19316	googleapi.Expand(req.URL, map[string]string{
19317		"parent": c.parent,
19318	})
19319	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19320}
19321
19322// Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
19323// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
19324// non-nil. Any non-2xx status code is an error. Response headers are in
19325// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
19326// (if a response was returned at all) in
19327// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19328// whether the returned error was because http.StatusNotModified was
19329// returned.
19330func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
19331	gensupport.SetOptions(c.urlParams_, opts...)
19332	res, err := c.doRequest("json")
19333	if res != nil && res.StatusCode == http.StatusNotModified {
19334		if res.Body != nil {
19335			res.Body.Close()
19336		}
19337		return nil, &googleapi.Error{
19338			Code:   res.StatusCode,
19339			Header: res.Header,
19340		}
19341	}
19342	if err != nil {
19343		return nil, err
19344	}
19345	defer googleapi.CloseBody(res)
19346	if err := googleapi.CheckResponse(res); err != nil {
19347		return nil, err
19348	}
19349	ret := &GoogleCloudApigeeV1DeveloperAppKey{
19350		ServerResponse: googleapi.ServerResponse{
19351			Header:         res.Header,
19352			HTTPStatusCode: res.StatusCode,
19353		},
19354	}
19355	target := &ret
19356	if err := gensupport.DecodeResponse(target, res); err != nil {
19357		return nil, err
19358	}
19359	return ret, nil
19360	// {
19361	//   "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.",
19362	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create",
19363	//   "httpMethod": "POST",
19364	//   "id": "apigee.organizations.developers.apps.keys.create.create",
19365	//   "parameterOrder": [
19366	//     "parent"
19367	//   ],
19368	//   "parameters": {
19369	//     "parent": {
19370	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
19371	//       "location": "path",
19372	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19373	//       "required": true,
19374	//       "type": "string"
19375	//     }
19376	//   },
19377	//   "path": "v1/{+parent}/keys/create",
19378	//   "request": {
19379	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
19380	//   },
19381	//   "response": {
19382	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
19383	//   },
19384	//   "scopes": [
19385	//     "https://www.googleapis.com/auth/cloud-platform"
19386	//   ]
19387	// }
19388
19389}
19390
19391// method id "apigee.organizations.developers.attributes.delete":
19392
19393type OrganizationsDevelopersAttributesDeleteCall struct {
19394	s          *Service
19395	name       string
19396	urlParams_ gensupport.URLParams
19397	ctx_       context.Context
19398	header_    http.Header
19399}
19400
19401// Delete: Deletes a developer attribute.
19402func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
19403	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19404	c.name = name
19405	return c
19406}
19407
19408// Fields allows partial responses to be retrieved. See
19409// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19410// for more information.
19411func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
19412	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19413	return c
19414}
19415
19416// Context sets the context to be used in this call's Do method. Any
19417// pending HTTP request will be aborted if the provided context is
19418// canceled.
19419func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
19420	c.ctx_ = ctx
19421	return c
19422}
19423
19424// Header returns an http.Header that can be modified by the caller to
19425// add HTTP headers to the request.
19426func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
19427	if c.header_ == nil {
19428		c.header_ = make(http.Header)
19429	}
19430	return c.header_
19431}
19432
19433func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
19434	reqHeaders := make(http.Header)
19435	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19436	for k, v := range c.header_ {
19437		reqHeaders[k] = v
19438	}
19439	reqHeaders.Set("User-Agent", c.s.userAgent())
19440	var body io.Reader = nil
19441	c.urlParams_.Set("alt", alt)
19442	c.urlParams_.Set("prettyPrint", "false")
19443	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19444	urls += "?" + c.urlParams_.Encode()
19445	req, err := http.NewRequest("DELETE", urls, body)
19446	if err != nil {
19447		return nil, err
19448	}
19449	req.Header = reqHeaders
19450	googleapi.Expand(req.URL, map[string]string{
19451		"name": c.name,
19452	})
19453	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19454}
19455
19456// Do executes the "apigee.organizations.developers.attributes.delete" call.
19457// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19458// non-nil. Any non-2xx status code is an error. Response headers are in
19459// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19460// response was returned at all) in error.(*googleapi.Error).Header. Use
19461// googleapi.IsNotModified to check whether the returned error was
19462// because http.StatusNotModified was returned.
19463func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19464	gensupport.SetOptions(c.urlParams_, opts...)
19465	res, err := c.doRequest("json")
19466	if res != nil && res.StatusCode == http.StatusNotModified {
19467		if res.Body != nil {
19468			res.Body.Close()
19469		}
19470		return nil, &googleapi.Error{
19471			Code:   res.StatusCode,
19472			Header: res.Header,
19473		}
19474	}
19475	if err != nil {
19476		return nil, err
19477	}
19478	defer googleapi.CloseBody(res)
19479	if err := googleapi.CheckResponse(res); err != nil {
19480		return nil, err
19481	}
19482	ret := &GoogleCloudApigeeV1Attribute{
19483		ServerResponse: googleapi.ServerResponse{
19484			Header:         res.Header,
19485			HTTPStatusCode: res.StatusCode,
19486		},
19487	}
19488	target := &ret
19489	if err := gensupport.DecodeResponse(target, res); err != nil {
19490		return nil, err
19491	}
19492	return ret, nil
19493	// {
19494	//   "description": "Deletes a developer attribute.",
19495	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
19496	//   "httpMethod": "DELETE",
19497	//   "id": "apigee.organizations.developers.attributes.delete",
19498	//   "parameterOrder": [
19499	//     "name"
19500	//   ],
19501	//   "parameters": {
19502	//     "name": {
19503	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
19504	//       "location": "path",
19505	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
19506	//       "required": true,
19507	//       "type": "string"
19508	//     }
19509	//   },
19510	//   "path": "v1/{+name}",
19511	//   "response": {
19512	//     "$ref": "GoogleCloudApigeeV1Attribute"
19513	//   },
19514	//   "scopes": [
19515	//     "https://www.googleapis.com/auth/cloud-platform"
19516	//   ]
19517	// }
19518
19519}
19520
19521// method id "apigee.organizations.developers.attributes.get":
19522
19523type OrganizationsDevelopersAttributesGetCall struct {
19524	s            *Service
19525	name         string
19526	urlParams_   gensupport.URLParams
19527	ifNoneMatch_ string
19528	ctx_         context.Context
19529	header_      http.Header
19530}
19531
19532// Get: Returns the value of the specified developer attribute.
19533func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
19534	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19535	c.name = name
19536	return c
19537}
19538
19539// Fields allows partial responses to be retrieved. See
19540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19541// for more information.
19542func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
19543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19544	return c
19545}
19546
19547// IfNoneMatch sets the optional parameter which makes the operation
19548// fail if the object's ETag matches the given value. This is useful for
19549// getting updates only after the object has changed since the last
19550// request. Use googleapi.IsNotModified to check whether the response
19551// error from Do is the result of In-None-Match.
19552func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
19553	c.ifNoneMatch_ = entityTag
19554	return c
19555}
19556
19557// Context sets the context to be used in this call's Do method. Any
19558// pending HTTP request will be aborted if the provided context is
19559// canceled.
19560func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
19561	c.ctx_ = ctx
19562	return c
19563}
19564
19565// Header returns an http.Header that can be modified by the caller to
19566// add HTTP headers to the request.
19567func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
19568	if c.header_ == nil {
19569		c.header_ = make(http.Header)
19570	}
19571	return c.header_
19572}
19573
19574func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
19575	reqHeaders := make(http.Header)
19576	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19577	for k, v := range c.header_ {
19578		reqHeaders[k] = v
19579	}
19580	reqHeaders.Set("User-Agent", c.s.userAgent())
19581	if c.ifNoneMatch_ != "" {
19582		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19583	}
19584	var body io.Reader = nil
19585	c.urlParams_.Set("alt", alt)
19586	c.urlParams_.Set("prettyPrint", "false")
19587	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19588	urls += "?" + c.urlParams_.Encode()
19589	req, err := http.NewRequest("GET", urls, body)
19590	if err != nil {
19591		return nil, err
19592	}
19593	req.Header = reqHeaders
19594	googleapi.Expand(req.URL, map[string]string{
19595		"name": c.name,
19596	})
19597	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19598}
19599
19600// Do executes the "apigee.organizations.developers.attributes.get" call.
19601// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19602// non-nil. Any non-2xx status code is an error. Response headers are in
19603// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19604// response was returned at all) in error.(*googleapi.Error).Header. Use
19605// googleapi.IsNotModified to check whether the returned error was
19606// because http.StatusNotModified was returned.
19607func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19608	gensupport.SetOptions(c.urlParams_, opts...)
19609	res, err := c.doRequest("json")
19610	if res != nil && res.StatusCode == http.StatusNotModified {
19611		if res.Body != nil {
19612			res.Body.Close()
19613		}
19614		return nil, &googleapi.Error{
19615			Code:   res.StatusCode,
19616			Header: res.Header,
19617		}
19618	}
19619	if err != nil {
19620		return nil, err
19621	}
19622	defer googleapi.CloseBody(res)
19623	if err := googleapi.CheckResponse(res); err != nil {
19624		return nil, err
19625	}
19626	ret := &GoogleCloudApigeeV1Attribute{
19627		ServerResponse: googleapi.ServerResponse{
19628			Header:         res.Header,
19629			HTTPStatusCode: res.StatusCode,
19630		},
19631	}
19632	target := &ret
19633	if err := gensupport.DecodeResponse(target, res); err != nil {
19634		return nil, err
19635	}
19636	return ret, nil
19637	// {
19638	//   "description": "Returns the value of the specified developer attribute.",
19639	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
19640	//   "httpMethod": "GET",
19641	//   "id": "apigee.organizations.developers.attributes.get",
19642	//   "parameterOrder": [
19643	//     "name"
19644	//   ],
19645	//   "parameters": {
19646	//     "name": {
19647	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
19648	//       "location": "path",
19649	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
19650	//       "required": true,
19651	//       "type": "string"
19652	//     }
19653	//   },
19654	//   "path": "v1/{+name}",
19655	//   "response": {
19656	//     "$ref": "GoogleCloudApigeeV1Attribute"
19657	//   },
19658	//   "scopes": [
19659	//     "https://www.googleapis.com/auth/cloud-platform"
19660	//   ]
19661	// }
19662
19663}
19664
19665// method id "apigee.organizations.developers.attributes.list":
19666
19667type OrganizationsDevelopersAttributesListCall struct {
19668	s            *Service
19669	parent       string
19670	urlParams_   gensupport.URLParams
19671	ifNoneMatch_ string
19672	ctx_         context.Context
19673	header_      http.Header
19674}
19675
19676// List: Returns a list of all developer attributes.
19677func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
19678	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19679	c.parent = parent
19680	return c
19681}
19682
19683// Fields allows partial responses to be retrieved. See
19684// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19685// for more information.
19686func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
19687	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19688	return c
19689}
19690
19691// IfNoneMatch sets the optional parameter which makes the operation
19692// fail if the object's ETag matches the given value. This is useful for
19693// getting updates only after the object has changed since the last
19694// request. Use googleapi.IsNotModified to check whether the response
19695// error from Do is the result of In-None-Match.
19696func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
19697	c.ifNoneMatch_ = entityTag
19698	return c
19699}
19700
19701// Context sets the context to be used in this call's Do method. Any
19702// pending HTTP request will be aborted if the provided context is
19703// canceled.
19704func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
19705	c.ctx_ = ctx
19706	return c
19707}
19708
19709// Header returns an http.Header that can be modified by the caller to
19710// add HTTP headers to the request.
19711func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
19712	if c.header_ == nil {
19713		c.header_ = make(http.Header)
19714	}
19715	return c.header_
19716}
19717
19718func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
19719	reqHeaders := make(http.Header)
19720	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19721	for k, v := range c.header_ {
19722		reqHeaders[k] = v
19723	}
19724	reqHeaders.Set("User-Agent", c.s.userAgent())
19725	if c.ifNoneMatch_ != "" {
19726		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19727	}
19728	var body io.Reader = nil
19729	c.urlParams_.Set("alt", alt)
19730	c.urlParams_.Set("prettyPrint", "false")
19731	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
19732	urls += "?" + c.urlParams_.Encode()
19733	req, err := http.NewRequest("GET", urls, body)
19734	if err != nil {
19735		return nil, err
19736	}
19737	req.Header = reqHeaders
19738	googleapi.Expand(req.URL, map[string]string{
19739		"parent": c.parent,
19740	})
19741	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19742}
19743
19744// Do executes the "apigee.organizations.developers.attributes.list" call.
19745// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
19746// non-nil. Any non-2xx status code is an error. Response headers are in
19747// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
19748// response was returned at all) in error.(*googleapi.Error).Header. Use
19749// googleapi.IsNotModified to check whether the returned error was
19750// because http.StatusNotModified was returned.
19751func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
19752	gensupport.SetOptions(c.urlParams_, opts...)
19753	res, err := c.doRequest("json")
19754	if res != nil && res.StatusCode == http.StatusNotModified {
19755		if res.Body != nil {
19756			res.Body.Close()
19757		}
19758		return nil, &googleapi.Error{
19759			Code:   res.StatusCode,
19760			Header: res.Header,
19761		}
19762	}
19763	if err != nil {
19764		return nil, err
19765	}
19766	defer googleapi.CloseBody(res)
19767	if err := googleapi.CheckResponse(res); err != nil {
19768		return nil, err
19769	}
19770	ret := &GoogleCloudApigeeV1Attributes{
19771		ServerResponse: googleapi.ServerResponse{
19772			Header:         res.Header,
19773			HTTPStatusCode: res.StatusCode,
19774		},
19775	}
19776	target := &ret
19777	if err := gensupport.DecodeResponse(target, res); err != nil {
19778		return nil, err
19779	}
19780	return ret, nil
19781	// {
19782	//   "description": "Returns a list of all developer attributes.",
19783	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
19784	//   "httpMethod": "GET",
19785	//   "id": "apigee.organizations.developers.attributes.list",
19786	//   "parameterOrder": [
19787	//     "parent"
19788	//   ],
19789	//   "parameters": {
19790	//     "parent": {
19791	//       "description": "Required. Email address of the developer for which attributes are being listed in the following format: `organizations/{org}/developers/{developer_email}`",
19792	//       "location": "path",
19793	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19794	//       "required": true,
19795	//       "type": "string"
19796	//     }
19797	//   },
19798	//   "path": "v1/{+parent}/attributes",
19799	//   "response": {
19800	//     "$ref": "GoogleCloudApigeeV1Attributes"
19801	//   },
19802	//   "scopes": [
19803	//     "https://www.googleapis.com/auth/cloud-platform"
19804	//   ]
19805	// }
19806
19807}
19808
19809// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute":
19810
19811type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
19812	s                            *Service
19813	name                         string
19814	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
19815	urlParams_                   gensupport.URLParams
19816	ctx_                         context.Context
19817	header_                      http.Header
19818}
19819
19820// UpdateDeveloperAttribute: Updates a developer attribute. **Note**:
19821// OAuth access tokens and Key Management Service (KMS) entities (apps,
19822// developers, and API products) are cached for 180 seconds (default).
19823// Any custom attributes associated with these entities are cached for
19824// at least 180 seconds after the entity is accessed at runtime.
19825// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able
19826// to expire an access token in less than 180 seconds.
19827func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
19828	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19829	c.name = name
19830	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
19831	return c
19832}
19833
19834// Fields allows partial responses to be retrieved. See
19835// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19836// for more information.
19837func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
19838	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19839	return c
19840}
19841
19842// Context sets the context to be used in this call's Do method. Any
19843// pending HTTP request will be aborted if the provided context is
19844// canceled.
19845func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
19846	c.ctx_ = ctx
19847	return c
19848}
19849
19850// Header returns an http.Header that can be modified by the caller to
19851// add HTTP headers to the request.
19852func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
19853	if c.header_ == nil {
19854		c.header_ = make(http.Header)
19855	}
19856	return c.header_
19857}
19858
19859func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
19860	reqHeaders := make(http.Header)
19861	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19862	for k, v := range c.header_ {
19863		reqHeaders[k] = v
19864	}
19865	reqHeaders.Set("User-Agent", c.s.userAgent())
19866	var body io.Reader = nil
19867	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
19868	if err != nil {
19869		return nil, err
19870	}
19871	reqHeaders.Set("Content-Type", "application/json")
19872	c.urlParams_.Set("alt", alt)
19873	c.urlParams_.Set("prettyPrint", "false")
19874	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19875	urls += "?" + c.urlParams_.Encode()
19876	req, err := http.NewRequest("POST", urls, body)
19877	if err != nil {
19878		return nil, err
19879	}
19880	req.Header = reqHeaders
19881	googleapi.Expand(req.URL, map[string]string{
19882		"name": c.name,
19883	})
19884	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19885}
19886
19887// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
19888// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19889// non-nil. Any non-2xx status code is an error. Response headers are in
19890// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19891// response was returned at all) in error.(*googleapi.Error).Header. Use
19892// googleapi.IsNotModified to check whether the returned error was
19893// because http.StatusNotModified was returned.
19894func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19895	gensupport.SetOptions(c.urlParams_, opts...)
19896	res, err := c.doRequest("json")
19897	if res != nil && res.StatusCode == http.StatusNotModified {
19898		if res.Body != nil {
19899			res.Body.Close()
19900		}
19901		return nil, &googleapi.Error{
19902			Code:   res.StatusCode,
19903			Header: res.Header,
19904		}
19905	}
19906	if err != nil {
19907		return nil, err
19908	}
19909	defer googleapi.CloseBody(res)
19910	if err := googleapi.CheckResponse(res); err != nil {
19911		return nil, err
19912	}
19913	ret := &GoogleCloudApigeeV1Attribute{
19914		ServerResponse: googleapi.ServerResponse{
19915			Header:         res.Header,
19916			HTTPStatusCode: res.StatusCode,
19917		},
19918	}
19919	target := &ret
19920	if err := gensupport.DecodeResponse(target, res); err != nil {
19921		return nil, err
19922	}
19923	return ret, nil
19924	// {
19925	//   "description": "Updates a developer attribute. **Note**: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.",
19926	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
19927	//   "httpMethod": "POST",
19928	//   "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute",
19929	//   "parameterOrder": [
19930	//     "name"
19931	//   ],
19932	//   "parameters": {
19933	//     "name": {
19934	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
19935	//       "location": "path",
19936	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
19937	//       "required": true,
19938	//       "type": "string"
19939	//     }
19940	//   },
19941	//   "path": "v1/{+name}",
19942	//   "request": {
19943	//     "$ref": "GoogleCloudApigeeV1Attribute"
19944	//   },
19945	//   "response": {
19946	//     "$ref": "GoogleCloudApigeeV1Attribute"
19947	//   },
19948	//   "scopes": [
19949	//     "https://www.googleapis.com/auth/cloud-platform"
19950	//   ]
19951	// }
19952
19953}
19954
19955// method id "apigee.organizations.envgroups.create":
19956
19957type OrganizationsEnvgroupsCreateCall struct {
19958	s                                   *Service
19959	parent                              string
19960	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
19961	urlParams_                          gensupport.URLParams
19962	ctx_                                context.Context
19963	header_                             http.Header
19964}
19965
19966// Create: Creates a new environment group.
19967func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
19968	c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19969	c.parent = parent
19970	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
19971	return c
19972}
19973
19974// Name sets the optional parameter "name": ID of the environment group.
19975// Overrides any ID in the environment_group resource.
19976func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
19977	c.urlParams_.Set("name", name)
19978	return c
19979}
19980
19981// Fields allows partial responses to be retrieved. See
19982// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19983// for more information.
19984func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
19985	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19986	return c
19987}
19988
19989// Context sets the context to be used in this call's Do method. Any
19990// pending HTTP request will be aborted if the provided context is
19991// canceled.
19992func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
19993	c.ctx_ = ctx
19994	return c
19995}
19996
19997// Header returns an http.Header that can be modified by the caller to
19998// add HTTP headers to the request.
19999func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
20000	if c.header_ == nil {
20001		c.header_ = make(http.Header)
20002	}
20003	return c.header_
20004}
20005
20006func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
20007	reqHeaders := make(http.Header)
20008	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20009	for k, v := range c.header_ {
20010		reqHeaders[k] = v
20011	}
20012	reqHeaders.Set("User-Agent", c.s.userAgent())
20013	var body io.Reader = nil
20014	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
20015	if err != nil {
20016		return nil, err
20017	}
20018	reqHeaders.Set("Content-Type", "application/json")
20019	c.urlParams_.Set("alt", alt)
20020	c.urlParams_.Set("prettyPrint", "false")
20021	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
20022	urls += "?" + c.urlParams_.Encode()
20023	req, err := http.NewRequest("POST", urls, body)
20024	if err != nil {
20025		return nil, err
20026	}
20027	req.Header = reqHeaders
20028	googleapi.Expand(req.URL, map[string]string{
20029		"parent": c.parent,
20030	})
20031	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20032}
20033
20034// Do executes the "apigee.organizations.envgroups.create" call.
20035// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20036// Any non-2xx status code is an error. Response headers are in either
20037// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20038// was returned at all) in error.(*googleapi.Error).Header. Use
20039// googleapi.IsNotModified to check whether the returned error was
20040// because http.StatusNotModified was returned.
20041func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20042	gensupport.SetOptions(c.urlParams_, opts...)
20043	res, err := c.doRequest("json")
20044	if res != nil && res.StatusCode == http.StatusNotModified {
20045		if res.Body != nil {
20046			res.Body.Close()
20047		}
20048		return nil, &googleapi.Error{
20049			Code:   res.StatusCode,
20050			Header: res.Header,
20051		}
20052	}
20053	if err != nil {
20054		return nil, err
20055	}
20056	defer googleapi.CloseBody(res)
20057	if err := googleapi.CheckResponse(res); err != nil {
20058		return nil, err
20059	}
20060	ret := &GoogleLongrunningOperation{
20061		ServerResponse: googleapi.ServerResponse{
20062			Header:         res.Header,
20063			HTTPStatusCode: res.StatusCode,
20064		},
20065	}
20066	target := &ret
20067	if err := gensupport.DecodeResponse(target, res); err != nil {
20068		return nil, err
20069	}
20070	return ret, nil
20071	// {
20072	//   "description": "Creates a new environment group.",
20073	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
20074	//   "httpMethod": "POST",
20075	//   "id": "apigee.organizations.envgroups.create",
20076	//   "parameterOrder": [
20077	//     "parent"
20078	//   ],
20079	//   "parameters": {
20080	//     "name": {
20081	//       "description": "ID of the environment group. Overrides any ID in the environment_group resource.",
20082	//       "location": "query",
20083	//       "type": "string"
20084	//     },
20085	//     "parent": {
20086	//       "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.",
20087	//       "location": "path",
20088	//       "pattern": "^organizations/[^/]+$",
20089	//       "required": true,
20090	//       "type": "string"
20091	//     }
20092	//   },
20093	//   "path": "v1/{+parent}/envgroups",
20094	//   "request": {
20095	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
20096	//   },
20097	//   "response": {
20098	//     "$ref": "GoogleLongrunningOperation"
20099	//   },
20100	//   "scopes": [
20101	//     "https://www.googleapis.com/auth/cloud-platform"
20102	//   ]
20103	// }
20104
20105}
20106
20107// method id "apigee.organizations.envgroups.delete":
20108
20109type OrganizationsEnvgroupsDeleteCall struct {
20110	s          *Service
20111	name       string
20112	urlParams_ gensupport.URLParams
20113	ctx_       context.Context
20114	header_    http.Header
20115}
20116
20117// Delete: Deletes an environment group.
20118func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
20119	c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20120	c.name = name
20121	return c
20122}
20123
20124// Fields allows partial responses to be retrieved. See
20125// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20126// for more information.
20127func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
20128	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20129	return c
20130}
20131
20132// Context sets the context to be used in this call's Do method. Any
20133// pending HTTP request will be aborted if the provided context is
20134// canceled.
20135func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
20136	c.ctx_ = ctx
20137	return c
20138}
20139
20140// Header returns an http.Header that can be modified by the caller to
20141// add HTTP headers to the request.
20142func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
20143	if c.header_ == nil {
20144		c.header_ = make(http.Header)
20145	}
20146	return c.header_
20147}
20148
20149func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
20150	reqHeaders := make(http.Header)
20151	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20152	for k, v := range c.header_ {
20153		reqHeaders[k] = v
20154	}
20155	reqHeaders.Set("User-Agent", c.s.userAgent())
20156	var body io.Reader = nil
20157	c.urlParams_.Set("alt", alt)
20158	c.urlParams_.Set("prettyPrint", "false")
20159	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20160	urls += "?" + c.urlParams_.Encode()
20161	req, err := http.NewRequest("DELETE", urls, body)
20162	if err != nil {
20163		return nil, err
20164	}
20165	req.Header = reqHeaders
20166	googleapi.Expand(req.URL, map[string]string{
20167		"name": c.name,
20168	})
20169	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20170}
20171
20172// Do executes the "apigee.organizations.envgroups.delete" call.
20173// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20174// Any non-2xx status code is an error. Response headers are in either
20175// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20176// was returned at all) in error.(*googleapi.Error).Header. Use
20177// googleapi.IsNotModified to check whether the returned error was
20178// because http.StatusNotModified was returned.
20179func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20180	gensupport.SetOptions(c.urlParams_, opts...)
20181	res, err := c.doRequest("json")
20182	if res != nil && res.StatusCode == http.StatusNotModified {
20183		if res.Body != nil {
20184			res.Body.Close()
20185		}
20186		return nil, &googleapi.Error{
20187			Code:   res.StatusCode,
20188			Header: res.Header,
20189		}
20190	}
20191	if err != nil {
20192		return nil, err
20193	}
20194	defer googleapi.CloseBody(res)
20195	if err := googleapi.CheckResponse(res); err != nil {
20196		return nil, err
20197	}
20198	ret := &GoogleLongrunningOperation{
20199		ServerResponse: googleapi.ServerResponse{
20200			Header:         res.Header,
20201			HTTPStatusCode: res.StatusCode,
20202		},
20203	}
20204	target := &ret
20205	if err := gensupport.DecodeResponse(target, res); err != nil {
20206		return nil, err
20207	}
20208	return ret, nil
20209	// {
20210	//   "description": "Deletes an environment group.",
20211	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
20212	//   "httpMethod": "DELETE",
20213	//   "id": "apigee.organizations.envgroups.delete",
20214	//   "parameterOrder": [
20215	//     "name"
20216	//   ],
20217	//   "parameters": {
20218	//     "name": {
20219	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
20220	//       "location": "path",
20221	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
20222	//       "required": true,
20223	//       "type": "string"
20224	//     }
20225	//   },
20226	//   "path": "v1/{+name}",
20227	//   "response": {
20228	//     "$ref": "GoogleLongrunningOperation"
20229	//   },
20230	//   "scopes": [
20231	//     "https://www.googleapis.com/auth/cloud-platform"
20232	//   ]
20233	// }
20234
20235}
20236
20237// method id "apigee.organizations.envgroups.get":
20238
20239type OrganizationsEnvgroupsGetCall struct {
20240	s            *Service
20241	name         string
20242	urlParams_   gensupport.URLParams
20243	ifNoneMatch_ string
20244	ctx_         context.Context
20245	header_      http.Header
20246}
20247
20248// Get: Gets an environment group.
20249func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
20250	c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20251	c.name = name
20252	return c
20253}
20254
20255// Fields allows partial responses to be retrieved. See
20256// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20257// for more information.
20258func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
20259	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20260	return c
20261}
20262
20263// IfNoneMatch sets the optional parameter which makes the operation
20264// fail if the object's ETag matches the given value. This is useful for
20265// getting updates only after the object has changed since the last
20266// request. Use googleapi.IsNotModified to check whether the response
20267// error from Do is the result of In-None-Match.
20268func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
20269	c.ifNoneMatch_ = entityTag
20270	return c
20271}
20272
20273// Context sets the context to be used in this call's Do method. Any
20274// pending HTTP request will be aborted if the provided context is
20275// canceled.
20276func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
20277	c.ctx_ = ctx
20278	return c
20279}
20280
20281// Header returns an http.Header that can be modified by the caller to
20282// add HTTP headers to the request.
20283func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
20284	if c.header_ == nil {
20285		c.header_ = make(http.Header)
20286	}
20287	return c.header_
20288}
20289
20290func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
20291	reqHeaders := make(http.Header)
20292	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20293	for k, v := range c.header_ {
20294		reqHeaders[k] = v
20295	}
20296	reqHeaders.Set("User-Agent", c.s.userAgent())
20297	if c.ifNoneMatch_ != "" {
20298		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20299	}
20300	var body io.Reader = nil
20301	c.urlParams_.Set("alt", alt)
20302	c.urlParams_.Set("prettyPrint", "false")
20303	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20304	urls += "?" + c.urlParams_.Encode()
20305	req, err := http.NewRequest("GET", urls, body)
20306	if err != nil {
20307		return nil, err
20308	}
20309	req.Header = reqHeaders
20310	googleapi.Expand(req.URL, map[string]string{
20311		"name": c.name,
20312	})
20313	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20314}
20315
20316// Do executes the "apigee.organizations.envgroups.get" call.
20317// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be
20318// non-nil. Any non-2xx status code is an error. Response headers are in
20319// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or
20320// (if a response was returned at all) in
20321// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20322// whether the returned error was because http.StatusNotModified was
20323// returned.
20324func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
20325	gensupport.SetOptions(c.urlParams_, opts...)
20326	res, err := c.doRequest("json")
20327	if res != nil && res.StatusCode == http.StatusNotModified {
20328		if res.Body != nil {
20329			res.Body.Close()
20330		}
20331		return nil, &googleapi.Error{
20332			Code:   res.StatusCode,
20333			Header: res.Header,
20334		}
20335	}
20336	if err != nil {
20337		return nil, err
20338	}
20339	defer googleapi.CloseBody(res)
20340	if err := googleapi.CheckResponse(res); err != nil {
20341		return nil, err
20342	}
20343	ret := &GoogleCloudApigeeV1EnvironmentGroup{
20344		ServerResponse: googleapi.ServerResponse{
20345			Header:         res.Header,
20346			HTTPStatusCode: res.StatusCode,
20347		},
20348	}
20349	target := &ret
20350	if err := gensupport.DecodeResponse(target, res); err != nil {
20351		return nil, err
20352	}
20353	return ret, nil
20354	// {
20355	//   "description": "Gets an environment group.",
20356	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
20357	//   "httpMethod": "GET",
20358	//   "id": "apigee.organizations.envgroups.get",
20359	//   "parameterOrder": [
20360	//     "name"
20361	//   ],
20362	//   "parameters": {
20363	//     "name": {
20364	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
20365	//       "location": "path",
20366	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
20367	//       "required": true,
20368	//       "type": "string"
20369	//     }
20370	//   },
20371	//   "path": "v1/{+name}",
20372	//   "response": {
20373	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
20374	//   },
20375	//   "scopes": [
20376	//     "https://www.googleapis.com/auth/cloud-platform"
20377	//   ]
20378	// }
20379
20380}
20381
20382// method id "apigee.organizations.envgroups.list":
20383
20384type OrganizationsEnvgroupsListCall struct {
20385	s            *Service
20386	parent       string
20387	urlParams_   gensupport.URLParams
20388	ifNoneMatch_ string
20389	ctx_         context.Context
20390	header_      http.Header
20391}
20392
20393// List: Lists all environment groups.
20394func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
20395	c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20396	c.parent = parent
20397	return c
20398}
20399
20400// PageSize sets the optional parameter "pageSize": Maximum number of
20401// environment groups to return. The page size defaults to 25.
20402func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
20403	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20404	return c
20405}
20406
20407// PageToken sets the optional parameter "pageToken": Page token,
20408// returned from a previous ListEnvironmentGroups call, that you can use
20409// to retrieve the next page.
20410func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
20411	c.urlParams_.Set("pageToken", pageToken)
20412	return c
20413}
20414
20415// Fields allows partial responses to be retrieved. See
20416// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20417// for more information.
20418func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
20419	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20420	return c
20421}
20422
20423// IfNoneMatch sets the optional parameter which makes the operation
20424// fail if the object's ETag matches the given value. This is useful for
20425// getting updates only after the object has changed since the last
20426// request. Use googleapi.IsNotModified to check whether the response
20427// error from Do is the result of In-None-Match.
20428func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
20429	c.ifNoneMatch_ = entityTag
20430	return c
20431}
20432
20433// Context sets the context to be used in this call's Do method. Any
20434// pending HTTP request will be aborted if the provided context is
20435// canceled.
20436func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
20437	c.ctx_ = ctx
20438	return c
20439}
20440
20441// Header returns an http.Header that can be modified by the caller to
20442// add HTTP headers to the request.
20443func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
20444	if c.header_ == nil {
20445		c.header_ = make(http.Header)
20446	}
20447	return c.header_
20448}
20449
20450func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
20451	reqHeaders := make(http.Header)
20452	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20453	for k, v := range c.header_ {
20454		reqHeaders[k] = v
20455	}
20456	reqHeaders.Set("User-Agent", c.s.userAgent())
20457	if c.ifNoneMatch_ != "" {
20458		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20459	}
20460	var body io.Reader = nil
20461	c.urlParams_.Set("alt", alt)
20462	c.urlParams_.Set("prettyPrint", "false")
20463	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
20464	urls += "?" + c.urlParams_.Encode()
20465	req, err := http.NewRequest("GET", 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.envgroups.list" call.
20477// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or
20478// error will be non-nil. Any non-2xx status code is an error. Response
20479// headers are in either
20480// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade
20481// r or (if a response was returned at all) in
20482// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20483// whether the returned error was because http.StatusNotModified was
20484// returned.
20485func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
20486	gensupport.SetOptions(c.urlParams_, opts...)
20487	res, err := c.doRequest("json")
20488	if res != nil && res.StatusCode == http.StatusNotModified {
20489		if res.Body != nil {
20490			res.Body.Close()
20491		}
20492		return nil, &googleapi.Error{
20493			Code:   res.StatusCode,
20494			Header: res.Header,
20495		}
20496	}
20497	if err != nil {
20498		return nil, err
20499	}
20500	defer googleapi.CloseBody(res)
20501	if err := googleapi.CheckResponse(res); err != nil {
20502		return nil, err
20503	}
20504	ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
20505		ServerResponse: googleapi.ServerResponse{
20506			Header:         res.Header,
20507			HTTPStatusCode: res.StatusCode,
20508		},
20509	}
20510	target := &ret
20511	if err := gensupport.DecodeResponse(target, res); err != nil {
20512		return nil, err
20513	}
20514	return ret, nil
20515	// {
20516	//   "description": "Lists all environment groups.",
20517	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
20518	//   "httpMethod": "GET",
20519	//   "id": "apigee.organizations.envgroups.list",
20520	//   "parameterOrder": [
20521	//     "parent"
20522	//   ],
20523	//   "parameters": {
20524	//     "pageSize": {
20525	//       "description": "Maximum number of environment groups to return. The page size defaults to 25.",
20526	//       "format": "int32",
20527	//       "location": "query",
20528	//       "type": "integer"
20529	//     },
20530	//     "pageToken": {
20531	//       "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.",
20532	//       "location": "query",
20533	//       "type": "string"
20534	//     },
20535	//     "parent": {
20536	//       "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.",
20537	//       "location": "path",
20538	//       "pattern": "^organizations/[^/]+$",
20539	//       "required": true,
20540	//       "type": "string"
20541	//     }
20542	//   },
20543	//   "path": "v1/{+parent}/envgroups",
20544	//   "response": {
20545	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse"
20546	//   },
20547	//   "scopes": [
20548	//     "https://www.googleapis.com/auth/cloud-platform"
20549	//   ]
20550	// }
20551
20552}
20553
20554// Pages invokes f for each page of results.
20555// A non-nil error returned from f will halt the iteration.
20556// The provided context supersedes any context provided to the Context method.
20557func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
20558	c.ctx_ = ctx
20559	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
20560	for {
20561		x, err := c.Do()
20562		if err != nil {
20563			return err
20564		}
20565		if err := f(x); err != nil {
20566			return err
20567		}
20568		if x.NextPageToken == "" {
20569			return nil
20570		}
20571		c.PageToken(x.NextPageToken)
20572	}
20573}
20574
20575// method id "apigee.organizations.envgroups.patch":
20576
20577type OrganizationsEnvgroupsPatchCall struct {
20578	s                                   *Service
20579	name                                string
20580	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
20581	urlParams_                          gensupport.URLParams
20582	ctx_                                context.Context
20583	header_                             http.Header
20584}
20585
20586// Patch: Updates an environment group.
20587func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
20588	c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20589	c.name = name
20590	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
20591	return c
20592}
20593
20594// UpdateMask sets the optional parameter "updateMask": List of fields
20595// to be updated.
20596func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
20597	c.urlParams_.Set("updateMask", updateMask)
20598	return c
20599}
20600
20601// Fields allows partial responses to be retrieved. See
20602// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20603// for more information.
20604func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
20605	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20606	return c
20607}
20608
20609// Context sets the context to be used in this call's Do method. Any
20610// pending HTTP request will be aborted if the provided context is
20611// canceled.
20612func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
20613	c.ctx_ = ctx
20614	return c
20615}
20616
20617// Header returns an http.Header that can be modified by the caller to
20618// add HTTP headers to the request.
20619func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header {
20620	if c.header_ == nil {
20621		c.header_ = make(http.Header)
20622	}
20623	return c.header_
20624}
20625
20626func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
20627	reqHeaders := make(http.Header)
20628	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20629	for k, v := range c.header_ {
20630		reqHeaders[k] = v
20631	}
20632	reqHeaders.Set("User-Agent", c.s.userAgent())
20633	var body io.Reader = nil
20634	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
20635	if err != nil {
20636		return nil, err
20637	}
20638	reqHeaders.Set("Content-Type", "application/json")
20639	c.urlParams_.Set("alt", alt)
20640	c.urlParams_.Set("prettyPrint", "false")
20641	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20642	urls += "?" + c.urlParams_.Encode()
20643	req, err := http.NewRequest("PATCH", urls, body)
20644	if err != nil {
20645		return nil, err
20646	}
20647	req.Header = reqHeaders
20648	googleapi.Expand(req.URL, map[string]string{
20649		"name": c.name,
20650	})
20651	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20652}
20653
20654// Do executes the "apigee.organizations.envgroups.patch" call.
20655// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20656// Any non-2xx status code is an error. Response headers are in either
20657// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20658// was returned at all) in error.(*googleapi.Error).Header. Use
20659// googleapi.IsNotModified to check whether the returned error was
20660// because http.StatusNotModified was returned.
20661func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20662	gensupport.SetOptions(c.urlParams_, opts...)
20663	res, err := c.doRequest("json")
20664	if res != nil && res.StatusCode == http.StatusNotModified {
20665		if res.Body != nil {
20666			res.Body.Close()
20667		}
20668		return nil, &googleapi.Error{
20669			Code:   res.StatusCode,
20670			Header: res.Header,
20671		}
20672	}
20673	if err != nil {
20674		return nil, err
20675	}
20676	defer googleapi.CloseBody(res)
20677	if err := googleapi.CheckResponse(res); err != nil {
20678		return nil, err
20679	}
20680	ret := &GoogleLongrunningOperation{
20681		ServerResponse: googleapi.ServerResponse{
20682			Header:         res.Header,
20683			HTTPStatusCode: res.StatusCode,
20684		},
20685	}
20686	target := &ret
20687	if err := gensupport.DecodeResponse(target, res); err != nil {
20688		return nil, err
20689	}
20690	return ret, nil
20691	// {
20692	//   "description": "Updates an environment group.",
20693	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
20694	//   "httpMethod": "PATCH",
20695	//   "id": "apigee.organizations.envgroups.patch",
20696	//   "parameterOrder": [
20697	//     "name"
20698	//   ],
20699	//   "parameters": {
20700	//     "name": {
20701	//       "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.",
20702	//       "location": "path",
20703	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
20704	//       "required": true,
20705	//       "type": "string"
20706	//     },
20707	//     "updateMask": {
20708	//       "description": "List of fields to be updated.",
20709	//       "format": "google-fieldmask",
20710	//       "location": "query",
20711	//       "type": "string"
20712	//     }
20713	//   },
20714	//   "path": "v1/{+name}",
20715	//   "request": {
20716	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
20717	//   },
20718	//   "response": {
20719	//     "$ref": "GoogleLongrunningOperation"
20720	//   },
20721	//   "scopes": [
20722	//     "https://www.googleapis.com/auth/cloud-platform"
20723	//   ]
20724	// }
20725
20726}
20727
20728// method id "apigee.organizations.envgroups.attachments.create":
20729
20730type OrganizationsEnvgroupsAttachmentsCreateCall struct {
20731	s                                             *Service
20732	parent                                        string
20733	googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
20734	urlParams_                                    gensupport.URLParams
20735	ctx_                                          context.Context
20736	header_                                       http.Header
20737}
20738
20739// Create: Creates a new attachment of an environment to an environment
20740// group.
20741func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
20742	c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20743	c.parent = parent
20744	c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
20745	return c
20746}
20747
20748// Fields allows partial responses to be retrieved. See
20749// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20750// for more information.
20751func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
20752	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20753	return c
20754}
20755
20756// Context sets the context to be used in this call's Do method. Any
20757// pending HTTP request will be aborted if the provided context is
20758// canceled.
20759func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
20760	c.ctx_ = ctx
20761	return c
20762}
20763
20764// Header returns an http.Header that can be modified by the caller to
20765// add HTTP headers to the request.
20766func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
20767	if c.header_ == nil {
20768		c.header_ = make(http.Header)
20769	}
20770	return c.header_
20771}
20772
20773func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
20774	reqHeaders := make(http.Header)
20775	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20776	for k, v := range c.header_ {
20777		reqHeaders[k] = v
20778	}
20779	reqHeaders.Set("User-Agent", c.s.userAgent())
20780	var body io.Reader = nil
20781	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
20782	if err != nil {
20783		return nil, err
20784	}
20785	reqHeaders.Set("Content-Type", "application/json")
20786	c.urlParams_.Set("alt", alt)
20787	c.urlParams_.Set("prettyPrint", "false")
20788	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
20789	urls += "?" + c.urlParams_.Encode()
20790	req, err := http.NewRequest("POST", urls, body)
20791	if err != nil {
20792		return nil, err
20793	}
20794	req.Header = reqHeaders
20795	googleapi.Expand(req.URL, map[string]string{
20796		"parent": c.parent,
20797	})
20798	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20799}
20800
20801// Do executes the "apigee.organizations.envgroups.attachments.create" call.
20802// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20803// Any non-2xx status code is an error. Response headers are in either
20804// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20805// was returned at all) in error.(*googleapi.Error).Header. Use
20806// googleapi.IsNotModified to check whether the returned error was
20807// because http.StatusNotModified was returned.
20808func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20809	gensupport.SetOptions(c.urlParams_, opts...)
20810	res, err := c.doRequest("json")
20811	if res != nil && res.StatusCode == http.StatusNotModified {
20812		if res.Body != nil {
20813			res.Body.Close()
20814		}
20815		return nil, &googleapi.Error{
20816			Code:   res.StatusCode,
20817			Header: res.Header,
20818		}
20819	}
20820	if err != nil {
20821		return nil, err
20822	}
20823	defer googleapi.CloseBody(res)
20824	if err := googleapi.CheckResponse(res); err != nil {
20825		return nil, err
20826	}
20827	ret := &GoogleLongrunningOperation{
20828		ServerResponse: googleapi.ServerResponse{
20829			Header:         res.Header,
20830			HTTPStatusCode: res.StatusCode,
20831		},
20832	}
20833	target := &ret
20834	if err := gensupport.DecodeResponse(target, res); err != nil {
20835		return nil, err
20836	}
20837	return ret, nil
20838	// {
20839	//   "description": "Creates a new attachment of an environment to an environment group.",
20840	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
20841	//   "httpMethod": "POST",
20842	//   "id": "apigee.organizations.envgroups.attachments.create",
20843	//   "parameterOrder": [
20844	//     "parent"
20845	//   ],
20846	//   "parameters": {
20847	//     "parent": {
20848	//       "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.",
20849	//       "location": "path",
20850	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
20851	//       "required": true,
20852	//       "type": "string"
20853	//     }
20854	//   },
20855	//   "path": "v1/{+parent}/attachments",
20856	//   "request": {
20857	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
20858	//   },
20859	//   "response": {
20860	//     "$ref": "GoogleLongrunningOperation"
20861	//   },
20862	//   "scopes": [
20863	//     "https://www.googleapis.com/auth/cloud-platform"
20864	//   ]
20865	// }
20866
20867}
20868
20869// method id "apigee.organizations.envgroups.attachments.delete":
20870
20871type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
20872	s          *Service
20873	name       string
20874	urlParams_ gensupport.URLParams
20875	ctx_       context.Context
20876	header_    http.Header
20877}
20878
20879// Delete: Deletes an environment group attachment.
20880func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
20881	c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20882	c.name = name
20883	return c
20884}
20885
20886// Fields allows partial responses to be retrieved. See
20887// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20888// for more information.
20889func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
20890	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20891	return c
20892}
20893
20894// Context sets the context to be used in this call's Do method. Any
20895// pending HTTP request will be aborted if the provided context is
20896// canceled.
20897func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
20898	c.ctx_ = ctx
20899	return c
20900}
20901
20902// Header returns an http.Header that can be modified by the caller to
20903// add HTTP headers to the request.
20904func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
20905	if c.header_ == nil {
20906		c.header_ = make(http.Header)
20907	}
20908	return c.header_
20909}
20910
20911func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
20912	reqHeaders := make(http.Header)
20913	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20914	for k, v := range c.header_ {
20915		reqHeaders[k] = v
20916	}
20917	reqHeaders.Set("User-Agent", c.s.userAgent())
20918	var body io.Reader = nil
20919	c.urlParams_.Set("alt", alt)
20920	c.urlParams_.Set("prettyPrint", "false")
20921	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20922	urls += "?" + c.urlParams_.Encode()
20923	req, err := http.NewRequest("DELETE", urls, body)
20924	if err != nil {
20925		return nil, err
20926	}
20927	req.Header = reqHeaders
20928	googleapi.Expand(req.URL, map[string]string{
20929		"name": c.name,
20930	})
20931	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20932}
20933
20934// Do executes the "apigee.organizations.envgroups.attachments.delete" call.
20935// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20936// Any non-2xx status code is an error. Response headers are in either
20937// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20938// was returned at all) in error.(*googleapi.Error).Header. Use
20939// googleapi.IsNotModified to check whether the returned error was
20940// because http.StatusNotModified was returned.
20941func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20942	gensupport.SetOptions(c.urlParams_, opts...)
20943	res, err := c.doRequest("json")
20944	if res != nil && res.StatusCode == http.StatusNotModified {
20945		if res.Body != nil {
20946			res.Body.Close()
20947		}
20948		return nil, &googleapi.Error{
20949			Code:   res.StatusCode,
20950			Header: res.Header,
20951		}
20952	}
20953	if err != nil {
20954		return nil, err
20955	}
20956	defer googleapi.CloseBody(res)
20957	if err := googleapi.CheckResponse(res); err != nil {
20958		return nil, err
20959	}
20960	ret := &GoogleLongrunningOperation{
20961		ServerResponse: googleapi.ServerResponse{
20962			Header:         res.Header,
20963			HTTPStatusCode: res.StatusCode,
20964		},
20965	}
20966	target := &ret
20967	if err := gensupport.DecodeResponse(target, res); err != nil {
20968		return nil, err
20969	}
20970	return ret, nil
20971	// {
20972	//   "description": "Deletes an environment group attachment.",
20973	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
20974	//   "httpMethod": "DELETE",
20975	//   "id": "apigee.organizations.envgroups.attachments.delete",
20976	//   "parameterOrder": [
20977	//     "name"
20978	//   ],
20979	//   "parameters": {
20980	//     "name": {
20981	//       "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.",
20982	//       "location": "path",
20983	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
20984	//       "required": true,
20985	//       "type": "string"
20986	//     }
20987	//   },
20988	//   "path": "v1/{+name}",
20989	//   "response": {
20990	//     "$ref": "GoogleLongrunningOperation"
20991	//   },
20992	//   "scopes": [
20993	//     "https://www.googleapis.com/auth/cloud-platform"
20994	//   ]
20995	// }
20996
20997}
20998
20999// method id "apigee.organizations.envgroups.attachments.get":
21000
21001type OrganizationsEnvgroupsAttachmentsGetCall struct {
21002	s            *Service
21003	name         string
21004	urlParams_   gensupport.URLParams
21005	ifNoneMatch_ string
21006	ctx_         context.Context
21007	header_      http.Header
21008}
21009
21010// Get: Gets an environment group attachment.
21011func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
21012	c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21013	c.name = name
21014	return c
21015}
21016
21017// Fields allows partial responses to be retrieved. See
21018// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21019// for more information.
21020func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
21021	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21022	return c
21023}
21024
21025// IfNoneMatch sets the optional parameter which makes the operation
21026// fail if the object's ETag matches the given value. This is useful for
21027// getting updates only after the object has changed since the last
21028// request. Use googleapi.IsNotModified to check whether the response
21029// error from Do is the result of In-None-Match.
21030func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
21031	c.ifNoneMatch_ = entityTag
21032	return c
21033}
21034
21035// Context sets the context to be used in this call's Do method. Any
21036// pending HTTP request will be aborted if the provided context is
21037// canceled.
21038func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
21039	c.ctx_ = ctx
21040	return c
21041}
21042
21043// Header returns an http.Header that can be modified by the caller to
21044// add HTTP headers to the request.
21045func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
21046	if c.header_ == nil {
21047		c.header_ = make(http.Header)
21048	}
21049	return c.header_
21050}
21051
21052func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
21053	reqHeaders := make(http.Header)
21054	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21055	for k, v := range c.header_ {
21056		reqHeaders[k] = v
21057	}
21058	reqHeaders.Set("User-Agent", c.s.userAgent())
21059	if c.ifNoneMatch_ != "" {
21060		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21061	}
21062	var body io.Reader = nil
21063	c.urlParams_.Set("alt", alt)
21064	c.urlParams_.Set("prettyPrint", "false")
21065	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21066	urls += "?" + c.urlParams_.Encode()
21067	req, err := http.NewRequest("GET", urls, body)
21068	if err != nil {
21069		return nil, err
21070	}
21071	req.Header = reqHeaders
21072	googleapi.Expand(req.URL, map[string]string{
21073		"name": c.name,
21074	})
21075	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21076}
21077
21078// Do executes the "apigee.organizations.envgroups.attachments.get" call.
21079// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or
21080// error will be non-nil. Any non-2xx status code is an error. Response
21081// headers are in either
21082// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header
21083// or (if a response was returned at all) in
21084// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21085// whether the returned error was because http.StatusNotModified was
21086// returned.
21087func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
21088	gensupport.SetOptions(c.urlParams_, opts...)
21089	res, err := c.doRequest("json")
21090	if res != nil && res.StatusCode == http.StatusNotModified {
21091		if res.Body != nil {
21092			res.Body.Close()
21093		}
21094		return nil, &googleapi.Error{
21095			Code:   res.StatusCode,
21096			Header: res.Header,
21097		}
21098	}
21099	if err != nil {
21100		return nil, err
21101	}
21102	defer googleapi.CloseBody(res)
21103	if err := googleapi.CheckResponse(res); err != nil {
21104		return nil, err
21105	}
21106	ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
21107		ServerResponse: googleapi.ServerResponse{
21108			Header:         res.Header,
21109			HTTPStatusCode: res.StatusCode,
21110		},
21111	}
21112	target := &ret
21113	if err := gensupport.DecodeResponse(target, res); err != nil {
21114		return nil, err
21115	}
21116	return ret, nil
21117	// {
21118	//   "description": "Gets an environment group attachment.",
21119	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
21120	//   "httpMethod": "GET",
21121	//   "id": "apigee.organizations.envgroups.attachments.get",
21122	//   "parameterOrder": [
21123	//     "name"
21124	//   ],
21125	//   "parameters": {
21126	//     "name": {
21127	//       "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`",
21128	//       "location": "path",
21129	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
21130	//       "required": true,
21131	//       "type": "string"
21132	//     }
21133	//   },
21134	//   "path": "v1/{+name}",
21135	//   "response": {
21136	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
21137	//   },
21138	//   "scopes": [
21139	//     "https://www.googleapis.com/auth/cloud-platform"
21140	//   ]
21141	// }
21142
21143}
21144
21145// method id "apigee.organizations.envgroups.attachments.list":
21146
21147type OrganizationsEnvgroupsAttachmentsListCall struct {
21148	s            *Service
21149	parent       string
21150	urlParams_   gensupport.URLParams
21151	ifNoneMatch_ string
21152	ctx_         context.Context
21153	header_      http.Header
21154}
21155
21156// List: Lists all attachments of an environment group.
21157func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
21158	c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21159	c.parent = parent
21160	return c
21161}
21162
21163// PageSize sets the optional parameter "pageSize": Maximum number of
21164// environment group attachments to return. The page size defaults to
21165// 25.
21166func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
21167	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21168	return c
21169}
21170
21171// PageToken sets the optional parameter "pageToken": Page token,
21172// returned by a previous ListEnvironmentGroupAttachments call, that you
21173// can use to retrieve the next page.
21174func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
21175	c.urlParams_.Set("pageToken", pageToken)
21176	return c
21177}
21178
21179// Fields allows partial responses to be retrieved. See
21180// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21181// for more information.
21182func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
21183	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21184	return c
21185}
21186
21187// IfNoneMatch sets the optional parameter which makes the operation
21188// fail if the object's ETag matches the given value. This is useful for
21189// getting updates only after the object has changed since the last
21190// request. Use googleapi.IsNotModified to check whether the response
21191// error from Do is the result of In-None-Match.
21192func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
21193	c.ifNoneMatch_ = entityTag
21194	return c
21195}
21196
21197// Context sets the context to be used in this call's Do method. Any
21198// pending HTTP request will be aborted if the provided context is
21199// canceled.
21200func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
21201	c.ctx_ = ctx
21202	return c
21203}
21204
21205// Header returns an http.Header that can be modified by the caller to
21206// add HTTP headers to the request.
21207func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
21208	if c.header_ == nil {
21209		c.header_ = make(http.Header)
21210	}
21211	return c.header_
21212}
21213
21214func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
21215	reqHeaders := make(http.Header)
21216	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21217	for k, v := range c.header_ {
21218		reqHeaders[k] = v
21219	}
21220	reqHeaders.Set("User-Agent", c.s.userAgent())
21221	if c.ifNoneMatch_ != "" {
21222		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21223	}
21224	var body io.Reader = nil
21225	c.urlParams_.Set("alt", alt)
21226	c.urlParams_.Set("prettyPrint", "false")
21227	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
21228	urls += "?" + c.urlParams_.Encode()
21229	req, err := http.NewRequest("GET", urls, body)
21230	if err != nil {
21231		return nil, err
21232	}
21233	req.Header = reqHeaders
21234	googleapi.Expand(req.URL, map[string]string{
21235		"parent": c.parent,
21236	})
21237	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21238}
21239
21240// Do executes the "apigee.organizations.envgroups.attachments.list" call.
21241// Exactly one of
21242// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error
21243// will be non-nil. Any non-2xx status code is an error. Response
21244// headers are in either
21245// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp
21246// onse.Header or (if a response was returned at all) in
21247// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21248// whether the returned error was because http.StatusNotModified was
21249// returned.
21250func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
21251	gensupport.SetOptions(c.urlParams_, opts...)
21252	res, err := c.doRequest("json")
21253	if res != nil && res.StatusCode == http.StatusNotModified {
21254		if res.Body != nil {
21255			res.Body.Close()
21256		}
21257		return nil, &googleapi.Error{
21258			Code:   res.StatusCode,
21259			Header: res.Header,
21260		}
21261	}
21262	if err != nil {
21263		return nil, err
21264	}
21265	defer googleapi.CloseBody(res)
21266	if err := googleapi.CheckResponse(res); err != nil {
21267		return nil, err
21268	}
21269	ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
21270		ServerResponse: googleapi.ServerResponse{
21271			Header:         res.Header,
21272			HTTPStatusCode: res.StatusCode,
21273		},
21274	}
21275	target := &ret
21276	if err := gensupport.DecodeResponse(target, res); err != nil {
21277		return nil, err
21278	}
21279	return ret, nil
21280	// {
21281	//   "description": "Lists all attachments of an environment group.",
21282	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
21283	//   "httpMethod": "GET",
21284	//   "id": "apigee.organizations.envgroups.attachments.list",
21285	//   "parameterOrder": [
21286	//     "parent"
21287	//   ],
21288	//   "parameters": {
21289	//     "pageSize": {
21290	//       "description": "Maximum number of environment group attachments to return. The page size defaults to 25.",
21291	//       "format": "int32",
21292	//       "location": "query",
21293	//       "type": "integer"
21294	//     },
21295	//     "pageToken": {
21296	//       "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.",
21297	//       "location": "query",
21298	//       "type": "string"
21299	//     },
21300	//     "parent": {
21301	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
21302	//       "location": "path",
21303	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
21304	//       "required": true,
21305	//       "type": "string"
21306	//     }
21307	//   },
21308	//   "path": "v1/{+parent}/attachments",
21309	//   "response": {
21310	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse"
21311	//   },
21312	//   "scopes": [
21313	//     "https://www.googleapis.com/auth/cloud-platform"
21314	//   ]
21315	// }
21316
21317}
21318
21319// Pages invokes f for each page of results.
21320// A non-nil error returned from f will halt the iteration.
21321// The provided context supersedes any context provided to the Context method.
21322func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
21323	c.ctx_ = ctx
21324	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
21325	for {
21326		x, err := c.Do()
21327		if err != nil {
21328			return err
21329		}
21330		if err := f(x); err != nil {
21331			return err
21332		}
21333		if x.NextPageToken == "" {
21334			return nil
21335		}
21336		c.PageToken(x.NextPageToken)
21337	}
21338}
21339
21340// method id "apigee.organizations.environments.create":
21341
21342type OrganizationsEnvironmentsCreateCall struct {
21343	s                              *Service
21344	parent                         string
21345	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
21346	urlParams_                     gensupport.URLParams
21347	ctx_                           context.Context
21348	header_                        http.Header
21349}
21350
21351// Create: Creates an environment in an organization.
21352func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
21353	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21354	c.parent = parent
21355	c.googlecloudapigeev1environment = googlecloudapigeev1environment
21356	return c
21357}
21358
21359// Name sets the optional parameter "name": Name of the environment.
21360// Alternatively, the name may be specified in the request body in the
21361// name field.
21362func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
21363	c.urlParams_.Set("name", name)
21364	return c
21365}
21366
21367// Fields allows partial responses to be retrieved. See
21368// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21369// for more information.
21370func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
21371	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21372	return c
21373}
21374
21375// Context sets the context to be used in this call's Do method. Any
21376// pending HTTP request will be aborted if the provided context is
21377// canceled.
21378func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
21379	c.ctx_ = ctx
21380	return c
21381}
21382
21383// Header returns an http.Header that can be modified by the caller to
21384// add HTTP headers to the request.
21385func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
21386	if c.header_ == nil {
21387		c.header_ = make(http.Header)
21388	}
21389	return c.header_
21390}
21391
21392func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21393	reqHeaders := make(http.Header)
21394	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21395	for k, v := range c.header_ {
21396		reqHeaders[k] = v
21397	}
21398	reqHeaders.Set("User-Agent", c.s.userAgent())
21399	var body io.Reader = nil
21400	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
21401	if err != nil {
21402		return nil, err
21403	}
21404	reqHeaders.Set("Content-Type", "application/json")
21405	c.urlParams_.Set("alt", alt)
21406	c.urlParams_.Set("prettyPrint", "false")
21407	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
21408	urls += "?" + c.urlParams_.Encode()
21409	req, err := http.NewRequest("POST", urls, body)
21410	if err != nil {
21411		return nil, err
21412	}
21413	req.Header = reqHeaders
21414	googleapi.Expand(req.URL, map[string]string{
21415		"parent": c.parent,
21416	})
21417	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21418}
21419
21420// Do executes the "apigee.organizations.environments.create" call.
21421// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21422// Any non-2xx status code is an error. Response headers are in either
21423// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21424// was returned at all) in error.(*googleapi.Error).Header. Use
21425// googleapi.IsNotModified to check whether the returned error was
21426// because http.StatusNotModified was returned.
21427func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21428	gensupport.SetOptions(c.urlParams_, opts...)
21429	res, err := c.doRequest("json")
21430	if res != nil && res.StatusCode == http.StatusNotModified {
21431		if res.Body != nil {
21432			res.Body.Close()
21433		}
21434		return nil, &googleapi.Error{
21435			Code:   res.StatusCode,
21436			Header: res.Header,
21437		}
21438	}
21439	if err != nil {
21440		return nil, err
21441	}
21442	defer googleapi.CloseBody(res)
21443	if err := googleapi.CheckResponse(res); err != nil {
21444		return nil, err
21445	}
21446	ret := &GoogleLongrunningOperation{
21447		ServerResponse: googleapi.ServerResponse{
21448			Header:         res.Header,
21449			HTTPStatusCode: res.StatusCode,
21450		},
21451	}
21452	target := &ret
21453	if err := gensupport.DecodeResponse(target, res); err != nil {
21454		return nil, err
21455	}
21456	return ret, nil
21457	// {
21458	//   "description": "Creates an environment in an organization.",
21459	//   "flatPath": "v1/organizations/{organizationsId}/environments",
21460	//   "httpMethod": "POST",
21461	//   "id": "apigee.organizations.environments.create",
21462	//   "parameterOrder": [
21463	//     "parent"
21464	//   ],
21465	//   "parameters": {
21466	//     "name": {
21467	//       "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.",
21468	//       "location": "query",
21469	//       "type": "string"
21470	//     },
21471	//     "parent": {
21472	//       "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`",
21473	//       "location": "path",
21474	//       "pattern": "^organizations/[^/]+$",
21475	//       "required": true,
21476	//       "type": "string"
21477	//     }
21478	//   },
21479	//   "path": "v1/{+parent}/environments",
21480	//   "request": {
21481	//     "$ref": "GoogleCloudApigeeV1Environment"
21482	//   },
21483	//   "response": {
21484	//     "$ref": "GoogleLongrunningOperation"
21485	//   },
21486	//   "scopes": [
21487	//     "https://www.googleapis.com/auth/cloud-platform"
21488	//   ]
21489	// }
21490
21491}
21492
21493// method id "apigee.organizations.environments.delete":
21494
21495type OrganizationsEnvironmentsDeleteCall struct {
21496	s          *Service
21497	name       string
21498	urlParams_ gensupport.URLParams
21499	ctx_       context.Context
21500	header_    http.Header
21501}
21502
21503// Delete: Deletes an environment from an organization.
21504func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
21505	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21506	c.name = name
21507	return c
21508}
21509
21510// Fields allows partial responses to be retrieved. See
21511// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21512// for more information.
21513func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
21514	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21515	return c
21516}
21517
21518// Context sets the context to be used in this call's Do method. Any
21519// pending HTTP request will be aborted if the provided context is
21520// canceled.
21521func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
21522	c.ctx_ = ctx
21523	return c
21524}
21525
21526// Header returns an http.Header that can be modified by the caller to
21527// add HTTP headers to the request.
21528func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
21529	if c.header_ == nil {
21530		c.header_ = make(http.Header)
21531	}
21532	return c.header_
21533}
21534
21535func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
21536	reqHeaders := make(http.Header)
21537	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21538	for k, v := range c.header_ {
21539		reqHeaders[k] = v
21540	}
21541	reqHeaders.Set("User-Agent", c.s.userAgent())
21542	var body io.Reader = nil
21543	c.urlParams_.Set("alt", alt)
21544	c.urlParams_.Set("prettyPrint", "false")
21545	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21546	urls += "?" + c.urlParams_.Encode()
21547	req, err := http.NewRequest("DELETE", urls, body)
21548	if err != nil {
21549		return nil, err
21550	}
21551	req.Header = reqHeaders
21552	googleapi.Expand(req.URL, map[string]string{
21553		"name": c.name,
21554	})
21555	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21556}
21557
21558// Do executes the "apigee.organizations.environments.delete" call.
21559// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21560// Any non-2xx status code is an error. Response headers are in either
21561// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21562// was returned at all) in error.(*googleapi.Error).Header. Use
21563// googleapi.IsNotModified to check whether the returned error was
21564// because http.StatusNotModified was returned.
21565func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21566	gensupport.SetOptions(c.urlParams_, opts...)
21567	res, err := c.doRequest("json")
21568	if res != nil && res.StatusCode == http.StatusNotModified {
21569		if res.Body != nil {
21570			res.Body.Close()
21571		}
21572		return nil, &googleapi.Error{
21573			Code:   res.StatusCode,
21574			Header: res.Header,
21575		}
21576	}
21577	if err != nil {
21578		return nil, err
21579	}
21580	defer googleapi.CloseBody(res)
21581	if err := googleapi.CheckResponse(res); err != nil {
21582		return nil, err
21583	}
21584	ret := &GoogleLongrunningOperation{
21585		ServerResponse: googleapi.ServerResponse{
21586			Header:         res.Header,
21587			HTTPStatusCode: res.StatusCode,
21588		},
21589	}
21590	target := &ret
21591	if err := gensupport.DecodeResponse(target, res); err != nil {
21592		return nil, err
21593	}
21594	return ret, nil
21595	// {
21596	//   "description": "Deletes an environment from an organization.",
21597	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
21598	//   "httpMethod": "DELETE",
21599	//   "id": "apigee.organizations.environments.delete",
21600	//   "parameterOrder": [
21601	//     "name"
21602	//   ],
21603	//   "parameters": {
21604	//     "name": {
21605	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
21606	//       "location": "path",
21607	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
21608	//       "required": true,
21609	//       "type": "string"
21610	//     }
21611	//   },
21612	//   "path": "v1/{+name}",
21613	//   "response": {
21614	//     "$ref": "GoogleLongrunningOperation"
21615	//   },
21616	//   "scopes": [
21617	//     "https://www.googleapis.com/auth/cloud-platform"
21618	//   ]
21619	// }
21620
21621}
21622
21623// method id "apigee.organizations.environments.get":
21624
21625type OrganizationsEnvironmentsGetCall struct {
21626	s            *Service
21627	name         string
21628	urlParams_   gensupport.URLParams
21629	ifNoneMatch_ string
21630	ctx_         context.Context
21631	header_      http.Header
21632}
21633
21634// Get: Gets environment details.
21635func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
21636	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21637	c.name = name
21638	return c
21639}
21640
21641// Fields allows partial responses to be retrieved. See
21642// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21643// for more information.
21644func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
21645	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21646	return c
21647}
21648
21649// IfNoneMatch sets the optional parameter which makes the operation
21650// fail if the object's ETag matches the given value. This is useful for
21651// getting updates only after the object has changed since the last
21652// request. Use googleapi.IsNotModified to check whether the response
21653// error from Do is the result of In-None-Match.
21654func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
21655	c.ifNoneMatch_ = entityTag
21656	return c
21657}
21658
21659// Context sets the context to be used in this call's Do method. Any
21660// pending HTTP request will be aborted if the provided context is
21661// canceled.
21662func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
21663	c.ctx_ = ctx
21664	return c
21665}
21666
21667// Header returns an http.Header that can be modified by the caller to
21668// add HTTP headers to the request.
21669func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
21670	if c.header_ == nil {
21671		c.header_ = make(http.Header)
21672	}
21673	return c.header_
21674}
21675
21676func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
21677	reqHeaders := make(http.Header)
21678	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21679	for k, v := range c.header_ {
21680		reqHeaders[k] = v
21681	}
21682	reqHeaders.Set("User-Agent", c.s.userAgent())
21683	if c.ifNoneMatch_ != "" {
21684		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21685	}
21686	var body io.Reader = nil
21687	c.urlParams_.Set("alt", alt)
21688	c.urlParams_.Set("prettyPrint", "false")
21689	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21690	urls += "?" + c.urlParams_.Encode()
21691	req, err := http.NewRequest("GET", urls, body)
21692	if err != nil {
21693		return nil, err
21694	}
21695	req.Header = reqHeaders
21696	googleapi.Expand(req.URL, map[string]string{
21697		"name": c.name,
21698	})
21699	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21700}
21701
21702// Do executes the "apigee.organizations.environments.get" call.
21703// Exactly one of *GoogleCloudApigeeV1Environment or error will be
21704// non-nil. Any non-2xx status code is an error. Response headers are in
21705// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
21706// response was returned at all) in error.(*googleapi.Error).Header. Use
21707// googleapi.IsNotModified to check whether the returned error was
21708// because http.StatusNotModified was returned.
21709func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
21710	gensupport.SetOptions(c.urlParams_, opts...)
21711	res, err := c.doRequest("json")
21712	if res != nil && res.StatusCode == http.StatusNotModified {
21713		if res.Body != nil {
21714			res.Body.Close()
21715		}
21716		return nil, &googleapi.Error{
21717			Code:   res.StatusCode,
21718			Header: res.Header,
21719		}
21720	}
21721	if err != nil {
21722		return nil, err
21723	}
21724	defer googleapi.CloseBody(res)
21725	if err := googleapi.CheckResponse(res); err != nil {
21726		return nil, err
21727	}
21728	ret := &GoogleCloudApigeeV1Environment{
21729		ServerResponse: googleapi.ServerResponse{
21730			Header:         res.Header,
21731			HTTPStatusCode: res.StatusCode,
21732		},
21733	}
21734	target := &ret
21735	if err := gensupport.DecodeResponse(target, res); err != nil {
21736		return nil, err
21737	}
21738	return ret, nil
21739	// {
21740	//   "description": "Gets environment details.",
21741	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
21742	//   "httpMethod": "GET",
21743	//   "id": "apigee.organizations.environments.get",
21744	//   "parameterOrder": [
21745	//     "name"
21746	//   ],
21747	//   "parameters": {
21748	//     "name": {
21749	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
21750	//       "location": "path",
21751	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
21752	//       "required": true,
21753	//       "type": "string"
21754	//     }
21755	//   },
21756	//   "path": "v1/{+name}",
21757	//   "response": {
21758	//     "$ref": "GoogleCloudApigeeV1Environment"
21759	//   },
21760	//   "scopes": [
21761	//     "https://www.googleapis.com/auth/cloud-platform"
21762	//   ]
21763	// }
21764
21765}
21766
21767// method id "apigee.organizations.environments.getDebugmask":
21768
21769type OrganizationsEnvironmentsGetDebugmaskCall struct {
21770	s            *Service
21771	name         string
21772	urlParams_   gensupport.URLParams
21773	ifNoneMatch_ string
21774	ctx_         context.Context
21775	header_      http.Header
21776}
21777
21778// GetDebugmask: Gets the debug mask singleton resource for an
21779// environment.
21780func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
21781	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21782	c.name = name
21783	return c
21784}
21785
21786// Fields allows partial responses to be retrieved. See
21787// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21788// for more information.
21789func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
21790	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21791	return c
21792}
21793
21794// IfNoneMatch sets the optional parameter which makes the operation
21795// fail if the object's ETag matches the given value. This is useful for
21796// getting updates only after the object has changed since the last
21797// request. Use googleapi.IsNotModified to check whether the response
21798// error from Do is the result of In-None-Match.
21799func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
21800	c.ifNoneMatch_ = entityTag
21801	return c
21802}
21803
21804// Context sets the context to be used in this call's Do method. Any
21805// pending HTTP request will be aborted if the provided context is
21806// canceled.
21807func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
21808	c.ctx_ = ctx
21809	return c
21810}
21811
21812// Header returns an http.Header that can be modified by the caller to
21813// add HTTP headers to the request.
21814func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
21815	if c.header_ == nil {
21816		c.header_ = make(http.Header)
21817	}
21818	return c.header_
21819}
21820
21821func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
21822	reqHeaders := make(http.Header)
21823	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21824	for k, v := range c.header_ {
21825		reqHeaders[k] = v
21826	}
21827	reqHeaders.Set("User-Agent", c.s.userAgent())
21828	if c.ifNoneMatch_ != "" {
21829		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21830	}
21831	var body io.Reader = nil
21832	c.urlParams_.Set("alt", alt)
21833	c.urlParams_.Set("prettyPrint", "false")
21834	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21835	urls += "?" + c.urlParams_.Encode()
21836	req, err := http.NewRequest("GET", urls, body)
21837	if err != nil {
21838		return nil, err
21839	}
21840	req.Header = reqHeaders
21841	googleapi.Expand(req.URL, map[string]string{
21842		"name": c.name,
21843	})
21844	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21845}
21846
21847// Do executes the "apigee.organizations.environments.getDebugmask" call.
21848// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
21849// non-nil. Any non-2xx status code is an error. Response headers are in
21850// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
21851// response was returned at all) in error.(*googleapi.Error).Header. Use
21852// googleapi.IsNotModified to check whether the returned error was
21853// because http.StatusNotModified was returned.
21854func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
21855	gensupport.SetOptions(c.urlParams_, opts...)
21856	res, err := c.doRequest("json")
21857	if res != nil && res.StatusCode == http.StatusNotModified {
21858		if res.Body != nil {
21859			res.Body.Close()
21860		}
21861		return nil, &googleapi.Error{
21862			Code:   res.StatusCode,
21863			Header: res.Header,
21864		}
21865	}
21866	if err != nil {
21867		return nil, err
21868	}
21869	defer googleapi.CloseBody(res)
21870	if err := googleapi.CheckResponse(res); err != nil {
21871		return nil, err
21872	}
21873	ret := &GoogleCloudApigeeV1DebugMask{
21874		ServerResponse: googleapi.ServerResponse{
21875			Header:         res.Header,
21876			HTTPStatusCode: res.StatusCode,
21877		},
21878	}
21879	target := &ret
21880	if err := gensupport.DecodeResponse(target, res); err != nil {
21881		return nil, err
21882	}
21883	return ret, nil
21884	// {
21885	//   "description": "Gets the debug mask singleton resource for an environment.",
21886	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
21887	//   "httpMethod": "GET",
21888	//   "id": "apigee.organizations.environments.getDebugmask",
21889	//   "parameterOrder": [
21890	//     "name"
21891	//   ],
21892	//   "parameters": {
21893	//     "name": {
21894	//       "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.",
21895	//       "location": "path",
21896	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
21897	//       "required": true,
21898	//       "type": "string"
21899	//     }
21900	//   },
21901	//   "path": "v1/{+name}",
21902	//   "response": {
21903	//     "$ref": "GoogleCloudApigeeV1DebugMask"
21904	//   },
21905	//   "scopes": [
21906	//     "https://www.googleapis.com/auth/cloud-platform"
21907	//   ]
21908	// }
21909
21910}
21911
21912// method id "apigee.organizations.environments.getDeployedConfig":
21913
21914type OrganizationsEnvironmentsGetDeployedConfigCall struct {
21915	s            *Service
21916	name         string
21917	urlParams_   gensupport.URLParams
21918	ifNoneMatch_ string
21919	ctx_         context.Context
21920	header_      http.Header
21921}
21922
21923// GetDeployedConfig: Gets the deployed configuration for an
21924// environment.
21925func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
21926	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21927	c.name = name
21928	return c
21929}
21930
21931// Fields allows partial responses to be retrieved. See
21932// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21933// for more information.
21934func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
21935	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21936	return c
21937}
21938
21939// IfNoneMatch sets the optional parameter which makes the operation
21940// fail if the object's ETag matches the given value. This is useful for
21941// getting updates only after the object has changed since the last
21942// request. Use googleapi.IsNotModified to check whether the response
21943// error from Do is the result of In-None-Match.
21944func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
21945	c.ifNoneMatch_ = entityTag
21946	return c
21947}
21948
21949// Context sets the context to be used in this call's Do method. Any
21950// pending HTTP request will be aborted if the provided context is
21951// canceled.
21952func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
21953	c.ctx_ = ctx
21954	return c
21955}
21956
21957// Header returns an http.Header that can be modified by the caller to
21958// add HTTP headers to the request.
21959func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
21960	if c.header_ == nil {
21961		c.header_ = make(http.Header)
21962	}
21963	return c.header_
21964}
21965
21966func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
21967	reqHeaders := make(http.Header)
21968	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21969	for k, v := range c.header_ {
21970		reqHeaders[k] = v
21971	}
21972	reqHeaders.Set("User-Agent", c.s.userAgent())
21973	if c.ifNoneMatch_ != "" {
21974		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21975	}
21976	var body io.Reader = nil
21977	c.urlParams_.Set("alt", alt)
21978	c.urlParams_.Set("prettyPrint", "false")
21979	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21980	urls += "?" + c.urlParams_.Encode()
21981	req, err := http.NewRequest("GET", urls, body)
21982	if err != nil {
21983		return nil, err
21984	}
21985	req.Header = reqHeaders
21986	googleapi.Expand(req.URL, map[string]string{
21987		"name": c.name,
21988	})
21989	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21990}
21991
21992// Do executes the "apigee.organizations.environments.getDeployedConfig" call.
21993// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be
21994// non-nil. Any non-2xx status code is an error. Response headers are in
21995// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or
21996// (if a response was returned at all) in
21997// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21998// whether the returned error was because http.StatusNotModified was
21999// returned.
22000func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
22001	gensupport.SetOptions(c.urlParams_, opts...)
22002	res, err := c.doRequest("json")
22003	if res != nil && res.StatusCode == http.StatusNotModified {
22004		if res.Body != nil {
22005			res.Body.Close()
22006		}
22007		return nil, &googleapi.Error{
22008			Code:   res.StatusCode,
22009			Header: res.Header,
22010		}
22011	}
22012	if err != nil {
22013		return nil, err
22014	}
22015	defer googleapi.CloseBody(res)
22016	if err := googleapi.CheckResponse(res); err != nil {
22017		return nil, err
22018	}
22019	ret := &GoogleCloudApigeeV1EnvironmentConfig{
22020		ServerResponse: googleapi.ServerResponse{
22021			Header:         res.Header,
22022			HTTPStatusCode: res.StatusCode,
22023		},
22024	}
22025	target := &ret
22026	if err := gensupport.DecodeResponse(target, res); err != nil {
22027		return nil, err
22028	}
22029	return ret, nil
22030	// {
22031	//   "description": "Gets the deployed configuration for an environment.",
22032	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig",
22033	//   "httpMethod": "GET",
22034	//   "id": "apigee.organizations.environments.getDeployedConfig",
22035	//   "parameterOrder": [
22036	//     "name"
22037	//   ],
22038	//   "parameters": {
22039	//     "name": {
22040	//       "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`",
22041	//       "location": "path",
22042	//       "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$",
22043	//       "required": true,
22044	//       "type": "string"
22045	//     }
22046	//   },
22047	//   "path": "v1/{+name}",
22048	//   "response": {
22049	//     "$ref": "GoogleCloudApigeeV1EnvironmentConfig"
22050	//   },
22051	//   "scopes": [
22052	//     "https://www.googleapis.com/auth/cloud-platform"
22053	//   ]
22054	// }
22055
22056}
22057
22058// method id "apigee.organizations.environments.getIamPolicy":
22059
22060type OrganizationsEnvironmentsGetIamPolicyCall struct {
22061	s            *Service
22062	resource     string
22063	urlParams_   gensupport.URLParams
22064	ifNoneMatch_ string
22065	ctx_         context.Context
22066	header_      http.Header
22067}
22068
22069// GetIamPolicy: Gets the IAM policy on an environment. For more
22070// information, see Manage users, roles, and permissions using the API
22071// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
22072// You must have the `apigee.environments.getIamPolicy` permission to
22073// call this API.
22074func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
22075	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22076	c.resource = resource
22077	return c
22078}
22079
22080// OptionsRequestedPolicyVersion sets the optional parameter
22081// "options.requestedPolicyVersion": The policy format version to be
22082// returned. Valid values are 0, 1, and 3. Requests specifying an
22083// invalid value will be rejected. Requests for policies with any
22084// conditional bindings must specify version 3. Policies without any
22085// conditional bindings may specify any valid value or leave the field
22086// unset. To learn which resources support conditions in their IAM
22087// policies, see the IAM documentation
22088// (https://cloud.google.com/iam/help/conditions/resource-policies).
22089func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
22090	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
22091	return c
22092}
22093
22094// Fields allows partial responses to be retrieved. See
22095// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22096// for more information.
22097func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
22098	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22099	return c
22100}
22101
22102// IfNoneMatch sets the optional parameter which makes the operation
22103// fail if the object's ETag matches the given value. This is useful for
22104// getting updates only after the object has changed since the last
22105// request. Use googleapi.IsNotModified to check whether the response
22106// error from Do is the result of In-None-Match.
22107func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
22108	c.ifNoneMatch_ = entityTag
22109	return c
22110}
22111
22112// Context sets the context to be used in this call's Do method. Any
22113// pending HTTP request will be aborted if the provided context is
22114// canceled.
22115func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
22116	c.ctx_ = ctx
22117	return c
22118}
22119
22120// Header returns an http.Header that can be modified by the caller to
22121// add HTTP headers to the request.
22122func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
22123	if c.header_ == nil {
22124		c.header_ = make(http.Header)
22125	}
22126	return c.header_
22127}
22128
22129func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
22130	reqHeaders := make(http.Header)
22131	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22132	for k, v := range c.header_ {
22133		reqHeaders[k] = v
22134	}
22135	reqHeaders.Set("User-Agent", c.s.userAgent())
22136	if c.ifNoneMatch_ != "" {
22137		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22138	}
22139	var body io.Reader = nil
22140	c.urlParams_.Set("alt", alt)
22141	c.urlParams_.Set("prettyPrint", "false")
22142	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
22143	urls += "?" + c.urlParams_.Encode()
22144	req, err := http.NewRequest("GET", urls, body)
22145	if err != nil {
22146		return nil, err
22147	}
22148	req.Header = reqHeaders
22149	googleapi.Expand(req.URL, map[string]string{
22150		"resource": c.resource,
22151	})
22152	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22153}
22154
22155// Do executes the "apigee.organizations.environments.getIamPolicy" call.
22156// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
22157// non-2xx status code is an error. Response headers are in either
22158// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
22159// returned at all) in error.(*googleapi.Error).Header. Use
22160// googleapi.IsNotModified to check whether the returned error was
22161// because http.StatusNotModified was returned.
22162func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
22163	gensupport.SetOptions(c.urlParams_, opts...)
22164	res, err := c.doRequest("json")
22165	if res != nil && res.StatusCode == http.StatusNotModified {
22166		if res.Body != nil {
22167			res.Body.Close()
22168		}
22169		return nil, &googleapi.Error{
22170			Code:   res.StatusCode,
22171			Header: res.Header,
22172		}
22173	}
22174	if err != nil {
22175		return nil, err
22176	}
22177	defer googleapi.CloseBody(res)
22178	if err := googleapi.CheckResponse(res); err != nil {
22179		return nil, err
22180	}
22181	ret := &GoogleIamV1Policy{
22182		ServerResponse: googleapi.ServerResponse{
22183			Header:         res.Header,
22184			HTTPStatusCode: res.StatusCode,
22185		},
22186	}
22187	target := &ret
22188	if err := gensupport.DecodeResponse(target, res); err != nil {
22189		return nil, err
22190	}
22191	return ret, nil
22192	// {
22193	//   "description": "Gets the IAM policy on an environment. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.getIamPolicy` permission to call this API.",
22194	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy",
22195	//   "httpMethod": "GET",
22196	//   "id": "apigee.organizations.environments.getIamPolicy",
22197	//   "parameterOrder": [
22198	//     "resource"
22199	//   ],
22200	//   "parameters": {
22201	//     "options.requestedPolicyVersion": {
22202	//       "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
22203	//       "format": "int32",
22204	//       "location": "query",
22205	//       "type": "integer"
22206	//     },
22207	//     "resource": {
22208	//       "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
22209	//       "location": "path",
22210	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22211	//       "required": true,
22212	//       "type": "string"
22213	//     }
22214	//   },
22215	//   "path": "v1/{+resource}:getIamPolicy",
22216	//   "response": {
22217	//     "$ref": "GoogleIamV1Policy"
22218	//   },
22219	//   "scopes": [
22220	//     "https://www.googleapis.com/auth/cloud-platform"
22221	//   ]
22222	// }
22223
22224}
22225
22226// method id "apigee.organizations.environments.getTraceConfig":
22227
22228type OrganizationsEnvironmentsGetTraceConfigCall struct {
22229	s            *Service
22230	name         string
22231	urlParams_   gensupport.URLParams
22232	ifNoneMatch_ string
22233	ctx_         context.Context
22234	header_      http.Header
22235}
22236
22237// GetTraceConfig: Get distributed trace configuration in an
22238// environment.
22239func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
22240	c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22241	c.name = name
22242	return c
22243}
22244
22245// Fields allows partial responses to be retrieved. See
22246// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22247// for more information.
22248func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
22249	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22250	return c
22251}
22252
22253// IfNoneMatch sets the optional parameter which makes the operation
22254// fail if the object's ETag matches the given value. This is useful for
22255// getting updates only after the object has changed since the last
22256// request. Use googleapi.IsNotModified to check whether the response
22257// error from Do is the result of In-None-Match.
22258func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
22259	c.ifNoneMatch_ = entityTag
22260	return c
22261}
22262
22263// Context sets the context to be used in this call's Do method. Any
22264// pending HTTP request will be aborted if the provided context is
22265// canceled.
22266func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
22267	c.ctx_ = ctx
22268	return c
22269}
22270
22271// Header returns an http.Header that can be modified by the caller to
22272// add HTTP headers to the request.
22273func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
22274	if c.header_ == nil {
22275		c.header_ = make(http.Header)
22276	}
22277	return c.header_
22278}
22279
22280func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
22281	reqHeaders := make(http.Header)
22282	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22283	for k, v := range c.header_ {
22284		reqHeaders[k] = v
22285	}
22286	reqHeaders.Set("User-Agent", c.s.userAgent())
22287	if c.ifNoneMatch_ != "" {
22288		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22289	}
22290	var body io.Reader = nil
22291	c.urlParams_.Set("alt", alt)
22292	c.urlParams_.Set("prettyPrint", "false")
22293	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22294	urls += "?" + c.urlParams_.Encode()
22295	req, err := http.NewRequest("GET", urls, body)
22296	if err != nil {
22297		return nil, err
22298	}
22299	req.Header = reqHeaders
22300	googleapi.Expand(req.URL, map[string]string{
22301		"name": c.name,
22302	})
22303	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22304}
22305
22306// Do executes the "apigee.organizations.environments.getTraceConfig" call.
22307// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
22308// non-nil. Any non-2xx status code is an error. Response headers are in
22309// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
22310// response was returned at all) in error.(*googleapi.Error).Header. Use
22311// googleapi.IsNotModified to check whether the returned error was
22312// because http.StatusNotModified was returned.
22313func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
22314	gensupport.SetOptions(c.urlParams_, opts...)
22315	res, err := c.doRequest("json")
22316	if res != nil && res.StatusCode == http.StatusNotModified {
22317		if res.Body != nil {
22318			res.Body.Close()
22319		}
22320		return nil, &googleapi.Error{
22321			Code:   res.StatusCode,
22322			Header: res.Header,
22323		}
22324	}
22325	if err != nil {
22326		return nil, err
22327	}
22328	defer googleapi.CloseBody(res)
22329	if err := googleapi.CheckResponse(res); err != nil {
22330		return nil, err
22331	}
22332	ret := &GoogleCloudApigeeV1TraceConfig{
22333		ServerResponse: googleapi.ServerResponse{
22334			Header:         res.Header,
22335			HTTPStatusCode: res.StatusCode,
22336		},
22337	}
22338	target := &ret
22339	if err := gensupport.DecodeResponse(target, res); err != nil {
22340		return nil, err
22341	}
22342	return ret, nil
22343	// {
22344	//   "description": "Get distributed trace configuration in an environment.",
22345	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
22346	//   "httpMethod": "GET",
22347	//   "id": "apigee.organizations.environments.getTraceConfig",
22348	//   "parameterOrder": [
22349	//     "name"
22350	//   ],
22351	//   "parameters": {
22352	//     "name": {
22353	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
22354	//       "location": "path",
22355	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
22356	//       "required": true,
22357	//       "type": "string"
22358	//     }
22359	//   },
22360	//   "path": "v1/{+name}",
22361	//   "response": {
22362	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
22363	//   },
22364	//   "scopes": [
22365	//     "https://www.googleapis.com/auth/cloud-platform"
22366	//   ]
22367	// }
22368
22369}
22370
22371// method id "apigee.organizations.environments.setIamPolicy":
22372
22373type OrganizationsEnvironmentsSetIamPolicyCall struct {
22374	s                              *Service
22375	resource                       string
22376	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
22377	urlParams_                     gensupport.URLParams
22378	ctx_                           context.Context
22379	header_                        http.Header
22380}
22381
22382// SetIamPolicy: Sets the IAM policy on an environment, if the policy
22383// already exists it will be replaced. For more information, see Manage
22384// users, roles, and permissions using the API
22385// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
22386// You must have the `apigee.environments.setIamPolicy` permission to
22387// call this API.
22388func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
22389	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22390	c.resource = resource
22391	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
22392	return c
22393}
22394
22395// Fields allows partial responses to be retrieved. See
22396// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22397// for more information.
22398func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
22399	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22400	return c
22401}
22402
22403// Context sets the context to be used in this call's Do method. Any
22404// pending HTTP request will be aborted if the provided context is
22405// canceled.
22406func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
22407	c.ctx_ = ctx
22408	return c
22409}
22410
22411// Header returns an http.Header that can be modified by the caller to
22412// add HTTP headers to the request.
22413func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
22414	if c.header_ == nil {
22415		c.header_ = make(http.Header)
22416	}
22417	return c.header_
22418}
22419
22420func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
22421	reqHeaders := make(http.Header)
22422	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22423	for k, v := range c.header_ {
22424		reqHeaders[k] = v
22425	}
22426	reqHeaders.Set("User-Agent", c.s.userAgent())
22427	var body io.Reader = nil
22428	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
22429	if err != nil {
22430		return nil, err
22431	}
22432	reqHeaders.Set("Content-Type", "application/json")
22433	c.urlParams_.Set("alt", alt)
22434	c.urlParams_.Set("prettyPrint", "false")
22435	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
22436	urls += "?" + c.urlParams_.Encode()
22437	req, err := http.NewRequest("POST", urls, body)
22438	if err != nil {
22439		return nil, err
22440	}
22441	req.Header = reqHeaders
22442	googleapi.Expand(req.URL, map[string]string{
22443		"resource": c.resource,
22444	})
22445	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22446}
22447
22448// Do executes the "apigee.organizations.environments.setIamPolicy" call.
22449// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
22450// non-2xx status code is an error. Response headers are in either
22451// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
22452// returned at all) in error.(*googleapi.Error).Header. Use
22453// googleapi.IsNotModified to check whether the returned error was
22454// because http.StatusNotModified was returned.
22455func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
22456	gensupport.SetOptions(c.urlParams_, opts...)
22457	res, err := c.doRequest("json")
22458	if res != nil && res.StatusCode == http.StatusNotModified {
22459		if res.Body != nil {
22460			res.Body.Close()
22461		}
22462		return nil, &googleapi.Error{
22463			Code:   res.StatusCode,
22464			Header: res.Header,
22465		}
22466	}
22467	if err != nil {
22468		return nil, err
22469	}
22470	defer googleapi.CloseBody(res)
22471	if err := googleapi.CheckResponse(res); err != nil {
22472		return nil, err
22473	}
22474	ret := &GoogleIamV1Policy{
22475		ServerResponse: googleapi.ServerResponse{
22476			Header:         res.Header,
22477			HTTPStatusCode: res.StatusCode,
22478		},
22479	}
22480	target := &ret
22481	if err := gensupport.DecodeResponse(target, res); err != nil {
22482		return nil, err
22483	}
22484	return ret, nil
22485	// {
22486	//   "description": "Sets the IAM policy on an environment, if the policy already exists it will be replaced. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.setIamPolicy` permission to call this API.",
22487	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy",
22488	//   "httpMethod": "POST",
22489	//   "id": "apigee.organizations.environments.setIamPolicy",
22490	//   "parameterOrder": [
22491	//     "resource"
22492	//   ],
22493	//   "parameters": {
22494	//     "resource": {
22495	//       "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
22496	//       "location": "path",
22497	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22498	//       "required": true,
22499	//       "type": "string"
22500	//     }
22501	//   },
22502	//   "path": "v1/{+resource}:setIamPolicy",
22503	//   "request": {
22504	//     "$ref": "GoogleIamV1SetIamPolicyRequest"
22505	//   },
22506	//   "response": {
22507	//     "$ref": "GoogleIamV1Policy"
22508	//   },
22509	//   "scopes": [
22510	//     "https://www.googleapis.com/auth/cloud-platform"
22511	//   ]
22512	// }
22513
22514}
22515
22516// method id "apigee.organizations.environments.subscribe":
22517
22518type OrganizationsEnvironmentsSubscribeCall struct {
22519	s          *Service
22520	parent     string
22521	urlParams_ gensupport.URLParams
22522	ctx_       context.Context
22523	header_    http.Header
22524}
22525
22526// Subscribe: Creates a subscription for the environment's Pub/Sub
22527// topic. The server will assign a random name for this subscription.
22528// The "name" and "push_config" must *not* be specified.
22529func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
22530	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22531	c.parent = parent
22532	return c
22533}
22534
22535// Fields allows partial responses to be retrieved. See
22536// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22537// for more information.
22538func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
22539	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22540	return c
22541}
22542
22543// Context sets the context to be used in this call's Do method. Any
22544// pending HTTP request will be aborted if the provided context is
22545// canceled.
22546func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
22547	c.ctx_ = ctx
22548	return c
22549}
22550
22551// Header returns an http.Header that can be modified by the caller to
22552// add HTTP headers to the request.
22553func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
22554	if c.header_ == nil {
22555		c.header_ = make(http.Header)
22556	}
22557	return c.header_
22558}
22559
22560func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
22561	reqHeaders := make(http.Header)
22562	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22563	for k, v := range c.header_ {
22564		reqHeaders[k] = v
22565	}
22566	reqHeaders.Set("User-Agent", c.s.userAgent())
22567	var body io.Reader = nil
22568	c.urlParams_.Set("alt", alt)
22569	c.urlParams_.Set("prettyPrint", "false")
22570	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
22571	urls += "?" + c.urlParams_.Encode()
22572	req, err := http.NewRequest("POST", urls, body)
22573	if err != nil {
22574		return nil, err
22575	}
22576	req.Header = reqHeaders
22577	googleapi.Expand(req.URL, map[string]string{
22578		"parent": c.parent,
22579	})
22580	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22581}
22582
22583// Do executes the "apigee.organizations.environments.subscribe" call.
22584// Exactly one of *GoogleCloudApigeeV1Subscription or error will be
22585// non-nil. Any non-2xx status code is an error. Response headers are in
22586// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if
22587// a response was returned at all) in error.(*googleapi.Error).Header.
22588// Use googleapi.IsNotModified to check whether the returned error was
22589// because http.StatusNotModified was returned.
22590func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
22591	gensupport.SetOptions(c.urlParams_, opts...)
22592	res, err := c.doRequest("json")
22593	if res != nil && res.StatusCode == http.StatusNotModified {
22594		if res.Body != nil {
22595			res.Body.Close()
22596		}
22597		return nil, &googleapi.Error{
22598			Code:   res.StatusCode,
22599			Header: res.Header,
22600		}
22601	}
22602	if err != nil {
22603		return nil, err
22604	}
22605	defer googleapi.CloseBody(res)
22606	if err := googleapi.CheckResponse(res); err != nil {
22607		return nil, err
22608	}
22609	ret := &GoogleCloudApigeeV1Subscription{
22610		ServerResponse: googleapi.ServerResponse{
22611			Header:         res.Header,
22612			HTTPStatusCode: res.StatusCode,
22613		},
22614	}
22615	target := &ret
22616	if err := gensupport.DecodeResponse(target, res); err != nil {
22617		return nil, err
22618	}
22619	return ret, nil
22620	// {
22621	//   "description": "Creates a subscription for the environment's Pub/Sub topic. The server will assign a random name for this subscription. The \"name\" and \"push_config\" must *not* be specified.",
22622	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe",
22623	//   "httpMethod": "POST",
22624	//   "id": "apigee.organizations.environments.subscribe",
22625	//   "parameterOrder": [
22626	//     "parent"
22627	//   ],
22628	//   "parameters": {
22629	//     "parent": {
22630	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
22631	//       "location": "path",
22632	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22633	//       "required": true,
22634	//       "type": "string"
22635	//     }
22636	//   },
22637	//   "path": "v1/{+parent}:subscribe",
22638	//   "response": {
22639	//     "$ref": "GoogleCloudApigeeV1Subscription"
22640	//   },
22641	//   "scopes": [
22642	//     "https://www.googleapis.com/auth/cloud-platform"
22643	//   ]
22644	// }
22645
22646}
22647
22648// method id "apigee.organizations.environments.testIamPermissions":
22649
22650type OrganizationsEnvironmentsTestIamPermissionsCall struct {
22651	s                                    *Service
22652	resource                             string
22653	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
22654	urlParams_                           gensupport.URLParams
22655	ctx_                                 context.Context
22656	header_                              http.Header
22657}
22658
22659// TestIamPermissions: Tests the permissions of a user on an
22660// environment, and returns a subset of permissions that the user has on
22661// the environment. If the environment does not exist, an empty
22662// permission set is returned (a NOT_FOUND error is not returned).
22663func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
22664	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22665	c.resource = resource
22666	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
22667	return c
22668}
22669
22670// Fields allows partial responses to be retrieved. See
22671// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22672// for more information.
22673func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
22674	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22675	return c
22676}
22677
22678// Context sets the context to be used in this call's Do method. Any
22679// pending HTTP request will be aborted if the provided context is
22680// canceled.
22681func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
22682	c.ctx_ = ctx
22683	return c
22684}
22685
22686// Header returns an http.Header that can be modified by the caller to
22687// add HTTP headers to the request.
22688func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
22689	if c.header_ == nil {
22690		c.header_ = make(http.Header)
22691	}
22692	return c.header_
22693}
22694
22695func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
22696	reqHeaders := make(http.Header)
22697	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22698	for k, v := range c.header_ {
22699		reqHeaders[k] = v
22700	}
22701	reqHeaders.Set("User-Agent", c.s.userAgent())
22702	var body io.Reader = nil
22703	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
22704	if err != nil {
22705		return nil, err
22706	}
22707	reqHeaders.Set("Content-Type", "application/json")
22708	c.urlParams_.Set("alt", alt)
22709	c.urlParams_.Set("prettyPrint", "false")
22710	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
22711	urls += "?" + c.urlParams_.Encode()
22712	req, err := http.NewRequest("POST", urls, body)
22713	if err != nil {
22714		return nil, err
22715	}
22716	req.Header = reqHeaders
22717	googleapi.Expand(req.URL, map[string]string{
22718		"resource": c.resource,
22719	})
22720	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22721}
22722
22723// Do executes the "apigee.organizations.environments.testIamPermissions" call.
22724// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will
22725// be non-nil. Any non-2xx status code is an error. Response headers are
22726// in either
22727// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
22728// response was returned at all) in error.(*googleapi.Error).Header. Use
22729// googleapi.IsNotModified to check whether the returned error was
22730// because http.StatusNotModified was returned.
22731func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
22732	gensupport.SetOptions(c.urlParams_, opts...)
22733	res, err := c.doRequest("json")
22734	if res != nil && res.StatusCode == http.StatusNotModified {
22735		if res.Body != nil {
22736			res.Body.Close()
22737		}
22738		return nil, &googleapi.Error{
22739			Code:   res.StatusCode,
22740			Header: res.Header,
22741		}
22742	}
22743	if err != nil {
22744		return nil, err
22745	}
22746	defer googleapi.CloseBody(res)
22747	if err := googleapi.CheckResponse(res); err != nil {
22748		return nil, err
22749	}
22750	ret := &GoogleIamV1TestIamPermissionsResponse{
22751		ServerResponse: googleapi.ServerResponse{
22752			Header:         res.Header,
22753			HTTPStatusCode: res.StatusCode,
22754		},
22755	}
22756	target := &ret
22757	if err := gensupport.DecodeResponse(target, res); err != nil {
22758		return nil, err
22759	}
22760	return ret, nil
22761	// {
22762	//   "description": "Tests the permissions of a user on an environment, and returns a subset of permissions that the user has on the environment. If the environment does not exist, an empty permission set is returned (a NOT_FOUND error is not returned).",
22763	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions",
22764	//   "httpMethod": "POST",
22765	//   "id": "apigee.organizations.environments.testIamPermissions",
22766	//   "parameterOrder": [
22767	//     "resource"
22768	//   ],
22769	//   "parameters": {
22770	//     "resource": {
22771	//       "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
22772	//       "location": "path",
22773	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22774	//       "required": true,
22775	//       "type": "string"
22776	//     }
22777	//   },
22778	//   "path": "v1/{+resource}:testIamPermissions",
22779	//   "request": {
22780	//     "$ref": "GoogleIamV1TestIamPermissionsRequest"
22781	//   },
22782	//   "response": {
22783	//     "$ref": "GoogleIamV1TestIamPermissionsResponse"
22784	//   },
22785	//   "scopes": [
22786	//     "https://www.googleapis.com/auth/cloud-platform"
22787	//   ]
22788	// }
22789
22790}
22791
22792// method id "apigee.organizations.environments.unsubscribe":
22793
22794type OrganizationsEnvironmentsUnsubscribeCall struct {
22795	s                               *Service
22796	parent                          string
22797	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
22798	urlParams_                      gensupport.URLParams
22799	ctx_                            context.Context
22800	header_                         http.Header
22801}
22802
22803// Unsubscribe: Deletes a subscription for the environment's Pub/Sub
22804// topic.
22805func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
22806	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22807	c.parent = parent
22808	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
22809	return c
22810}
22811
22812// Fields allows partial responses to be retrieved. See
22813// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22814// for more information.
22815func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
22816	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22817	return c
22818}
22819
22820// Context sets the context to be used in this call's Do method. Any
22821// pending HTTP request will be aborted if the provided context is
22822// canceled.
22823func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
22824	c.ctx_ = ctx
22825	return c
22826}
22827
22828// Header returns an http.Header that can be modified by the caller to
22829// add HTTP headers to the request.
22830func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
22831	if c.header_ == nil {
22832		c.header_ = make(http.Header)
22833	}
22834	return c.header_
22835}
22836
22837func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
22838	reqHeaders := make(http.Header)
22839	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22840	for k, v := range c.header_ {
22841		reqHeaders[k] = v
22842	}
22843	reqHeaders.Set("User-Agent", c.s.userAgent())
22844	var body io.Reader = nil
22845	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
22846	if err != nil {
22847		return nil, err
22848	}
22849	reqHeaders.Set("Content-Type", "application/json")
22850	c.urlParams_.Set("alt", alt)
22851	c.urlParams_.Set("prettyPrint", "false")
22852	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
22853	urls += "?" + c.urlParams_.Encode()
22854	req, err := http.NewRequest("POST", urls, body)
22855	if err != nil {
22856		return nil, err
22857	}
22858	req.Header = reqHeaders
22859	googleapi.Expand(req.URL, map[string]string{
22860		"parent": c.parent,
22861	})
22862	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22863}
22864
22865// Do executes the "apigee.organizations.environments.unsubscribe" call.
22866// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
22867// non-2xx status code is an error. Response headers are in either
22868// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
22869// returned at all) in error.(*googleapi.Error).Header. Use
22870// googleapi.IsNotModified to check whether the returned error was
22871// because http.StatusNotModified was returned.
22872func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22873	gensupport.SetOptions(c.urlParams_, opts...)
22874	res, err := c.doRequest("json")
22875	if res != nil && res.StatusCode == http.StatusNotModified {
22876		if res.Body != nil {
22877			res.Body.Close()
22878		}
22879		return nil, &googleapi.Error{
22880			Code:   res.StatusCode,
22881			Header: res.Header,
22882		}
22883	}
22884	if err != nil {
22885		return nil, err
22886	}
22887	defer googleapi.CloseBody(res)
22888	if err := googleapi.CheckResponse(res); err != nil {
22889		return nil, err
22890	}
22891	ret := &GoogleProtobufEmpty{
22892		ServerResponse: googleapi.ServerResponse{
22893			Header:         res.Header,
22894			HTTPStatusCode: res.StatusCode,
22895		},
22896	}
22897	target := &ret
22898	if err := gensupport.DecodeResponse(target, res); err != nil {
22899		return nil, err
22900	}
22901	return ret, nil
22902	// {
22903	//   "description": "Deletes a subscription for the environment's Pub/Sub topic.",
22904	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe",
22905	//   "httpMethod": "POST",
22906	//   "id": "apigee.organizations.environments.unsubscribe",
22907	//   "parameterOrder": [
22908	//     "parent"
22909	//   ],
22910	//   "parameters": {
22911	//     "parent": {
22912	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
22913	//       "location": "path",
22914	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22915	//       "required": true,
22916	//       "type": "string"
22917	//     }
22918	//   },
22919	//   "path": "v1/{+parent}:unsubscribe",
22920	//   "request": {
22921	//     "$ref": "GoogleCloudApigeeV1Subscription"
22922	//   },
22923	//   "response": {
22924	//     "$ref": "GoogleProtobufEmpty"
22925	//   },
22926	//   "scopes": [
22927	//     "https://www.googleapis.com/auth/cloud-platform"
22928	//   ]
22929	// }
22930
22931}
22932
22933// method id "apigee.organizations.environments.update":
22934
22935type OrganizationsEnvironmentsUpdateCall struct {
22936	s                              *Service
22937	name                           string
22938	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
22939	urlParams_                     gensupport.URLParams
22940	ctx_                           context.Context
22941	header_                        http.Header
22942}
22943
22944// Update: Updates an existing environment. When updating properties,
22945// you must pass all existing properties to the API, even if they are
22946// not being changed. If you omit properties from the payload, the
22947// properties are removed. To get the current list of properties for the
22948// environment, use the Get Environment API (get).
22949func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
22950	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22951	c.name = name
22952	c.googlecloudapigeev1environment = googlecloudapigeev1environment
22953	return c
22954}
22955
22956// Fields allows partial responses to be retrieved. See
22957// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22958// for more information.
22959func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
22960	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22961	return c
22962}
22963
22964// Context sets the context to be used in this call's Do method. Any
22965// pending HTTP request will be aborted if the provided context is
22966// canceled.
22967func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
22968	c.ctx_ = ctx
22969	return c
22970}
22971
22972// Header returns an http.Header that can be modified by the caller to
22973// add HTTP headers to the request.
22974func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
22975	if c.header_ == nil {
22976		c.header_ = make(http.Header)
22977	}
22978	return c.header_
22979}
22980
22981func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
22982	reqHeaders := make(http.Header)
22983	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22984	for k, v := range c.header_ {
22985		reqHeaders[k] = v
22986	}
22987	reqHeaders.Set("User-Agent", c.s.userAgent())
22988	var body io.Reader = nil
22989	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
22990	if err != nil {
22991		return nil, err
22992	}
22993	reqHeaders.Set("Content-Type", "application/json")
22994	c.urlParams_.Set("alt", alt)
22995	c.urlParams_.Set("prettyPrint", "false")
22996	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22997	urls += "?" + c.urlParams_.Encode()
22998	req, err := http.NewRequest("PUT", urls, body)
22999	if err != nil {
23000		return nil, err
23001	}
23002	req.Header = reqHeaders
23003	googleapi.Expand(req.URL, map[string]string{
23004		"name": c.name,
23005	})
23006	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23007}
23008
23009// Do executes the "apigee.organizations.environments.update" call.
23010// Exactly one of *GoogleCloudApigeeV1Environment or error will be
23011// non-nil. Any non-2xx status code is an error. Response headers are in
23012// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
23013// response was returned at all) in error.(*googleapi.Error).Header. Use
23014// googleapi.IsNotModified to check whether the returned error was
23015// because http.StatusNotModified was returned.
23016func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
23017	gensupport.SetOptions(c.urlParams_, opts...)
23018	res, err := c.doRequest("json")
23019	if res != nil && res.StatusCode == http.StatusNotModified {
23020		if res.Body != nil {
23021			res.Body.Close()
23022		}
23023		return nil, &googleapi.Error{
23024			Code:   res.StatusCode,
23025			Header: res.Header,
23026		}
23027	}
23028	if err != nil {
23029		return nil, err
23030	}
23031	defer googleapi.CloseBody(res)
23032	if err := googleapi.CheckResponse(res); err != nil {
23033		return nil, err
23034	}
23035	ret := &GoogleCloudApigeeV1Environment{
23036		ServerResponse: googleapi.ServerResponse{
23037			Header:         res.Header,
23038			HTTPStatusCode: res.StatusCode,
23039		},
23040	}
23041	target := &ret
23042	if err := gensupport.DecodeResponse(target, res); err != nil {
23043		return nil, err
23044	}
23045	return ret, nil
23046	// {
23047	//   "description": "Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get).",
23048	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
23049	//   "httpMethod": "PUT",
23050	//   "id": "apigee.organizations.environments.update",
23051	//   "parameterOrder": [
23052	//     "name"
23053	//   ],
23054	//   "parameters": {
23055	//     "name": {
23056	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
23057	//       "location": "path",
23058	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
23059	//       "required": true,
23060	//       "type": "string"
23061	//     }
23062	//   },
23063	//   "path": "v1/{+name}",
23064	//   "request": {
23065	//     "$ref": "GoogleCloudApigeeV1Environment"
23066	//   },
23067	//   "response": {
23068	//     "$ref": "GoogleCloudApigeeV1Environment"
23069	//   },
23070	//   "scopes": [
23071	//     "https://www.googleapis.com/auth/cloud-platform"
23072	//   ]
23073	// }
23074
23075}
23076
23077// method id "apigee.organizations.environments.updateDebugmask":
23078
23079type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
23080	s                            *Service
23081	name                         string
23082	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
23083	urlParams_                   gensupport.URLParams
23084	ctx_                         context.Context
23085	header_                      http.Header
23086}
23087
23088// UpdateDebugmask: Updates the debug mask singleton resource for an
23089// environment.
23090func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
23091	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23092	c.name = name
23093	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
23094	return c
23095}
23096
23097// ReplaceRepeatedFields sets the optional parameter
23098// "replaceRepeatedFields": Boolean flag that specifies whether to
23099// replace existing values in the debug mask when doing an update. Set
23100// to true to replace existing values. The default behavior is to append
23101// the values (false).
23102func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
23103	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
23104	return c
23105}
23106
23107// UpdateMask sets the optional parameter "updateMask": Field debug mask
23108// to support partial updates.
23109func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
23110	c.urlParams_.Set("updateMask", updateMask)
23111	return c
23112}
23113
23114// Fields allows partial responses to be retrieved. See
23115// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23116// for more information.
23117func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
23118	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23119	return c
23120}
23121
23122// Context sets the context to be used in this call's Do method. Any
23123// pending HTTP request will be aborted if the provided context is
23124// canceled.
23125func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
23126	c.ctx_ = ctx
23127	return c
23128}
23129
23130// Header returns an http.Header that can be modified by the caller to
23131// add HTTP headers to the request.
23132func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
23133	if c.header_ == nil {
23134		c.header_ = make(http.Header)
23135	}
23136	return c.header_
23137}
23138
23139func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
23140	reqHeaders := make(http.Header)
23141	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23142	for k, v := range c.header_ {
23143		reqHeaders[k] = v
23144	}
23145	reqHeaders.Set("User-Agent", c.s.userAgent())
23146	var body io.Reader = nil
23147	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
23148	if err != nil {
23149		return nil, err
23150	}
23151	reqHeaders.Set("Content-Type", "application/json")
23152	c.urlParams_.Set("alt", alt)
23153	c.urlParams_.Set("prettyPrint", "false")
23154	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23155	urls += "?" + c.urlParams_.Encode()
23156	req, err := http.NewRequest("PATCH", urls, body)
23157	if err != nil {
23158		return nil, err
23159	}
23160	req.Header = reqHeaders
23161	googleapi.Expand(req.URL, map[string]string{
23162		"name": c.name,
23163	})
23164	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23165}
23166
23167// Do executes the "apigee.organizations.environments.updateDebugmask" call.
23168// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
23169// non-nil. Any non-2xx status code is an error. Response headers are in
23170// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
23171// response was returned at all) in error.(*googleapi.Error).Header. Use
23172// googleapi.IsNotModified to check whether the returned error was
23173// because http.StatusNotModified was returned.
23174func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
23175	gensupport.SetOptions(c.urlParams_, opts...)
23176	res, err := c.doRequest("json")
23177	if res != nil && res.StatusCode == http.StatusNotModified {
23178		if res.Body != nil {
23179			res.Body.Close()
23180		}
23181		return nil, &googleapi.Error{
23182			Code:   res.StatusCode,
23183			Header: res.Header,
23184		}
23185	}
23186	if err != nil {
23187		return nil, err
23188	}
23189	defer googleapi.CloseBody(res)
23190	if err := googleapi.CheckResponse(res); err != nil {
23191		return nil, err
23192	}
23193	ret := &GoogleCloudApigeeV1DebugMask{
23194		ServerResponse: googleapi.ServerResponse{
23195			Header:         res.Header,
23196			HTTPStatusCode: res.StatusCode,
23197		},
23198	}
23199	target := &ret
23200	if err := gensupport.DecodeResponse(target, res); err != nil {
23201		return nil, err
23202	}
23203	return ret, nil
23204	// {
23205	//   "description": "Updates the debug mask singleton resource for an environment.",
23206	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
23207	//   "httpMethod": "PATCH",
23208	//   "id": "apigee.organizations.environments.updateDebugmask",
23209	//   "parameterOrder": [
23210	//     "name"
23211	//   ],
23212	//   "parameters": {
23213	//     "name": {
23214	//       "description": "Name of the debug mask.",
23215	//       "location": "path",
23216	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
23217	//       "required": true,
23218	//       "type": "string"
23219	//     },
23220	//     "replaceRepeatedFields": {
23221	//       "description": "Boolean flag that specifies whether to replace existing values in the debug mask when doing an update. Set to true to replace existing values. The default behavior is to append the values (false).",
23222	//       "location": "query",
23223	//       "type": "boolean"
23224	//     },
23225	//     "updateMask": {
23226	//       "description": "Field debug mask to support partial updates.",
23227	//       "format": "google-fieldmask",
23228	//       "location": "query",
23229	//       "type": "string"
23230	//     }
23231	//   },
23232	//   "path": "v1/{+name}",
23233	//   "request": {
23234	//     "$ref": "GoogleCloudApigeeV1DebugMask"
23235	//   },
23236	//   "response": {
23237	//     "$ref": "GoogleCloudApigeeV1DebugMask"
23238	//   },
23239	//   "scopes": [
23240	//     "https://www.googleapis.com/auth/cloud-platform"
23241	//   ]
23242	// }
23243
23244}
23245
23246// method id "apigee.organizations.environments.updateEnvironment":
23247
23248type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
23249	s                              *Service
23250	name                           string
23251	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
23252	urlParams_                     gensupport.URLParams
23253	ctx_                           context.Context
23254	header_                        http.Header
23255}
23256
23257// UpdateEnvironment: Updates an existing environment. When updating
23258// properties, you must pass all existing properties to the API, even if
23259// they are not being changed. If you omit properties from the payload,
23260// the properties are removed. To get the current list of properties for
23261// the environment, use the Get Environment API (get).
23262func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
23263	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23264	c.name = name
23265	c.googlecloudapigeev1environment = googlecloudapigeev1environment
23266	return c
23267}
23268
23269// Fields allows partial responses to be retrieved. See
23270// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23271// for more information.
23272func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
23273	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23274	return c
23275}
23276
23277// Context sets the context to be used in this call's Do method. Any
23278// pending HTTP request will be aborted if the provided context is
23279// canceled.
23280func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
23281	c.ctx_ = ctx
23282	return c
23283}
23284
23285// Header returns an http.Header that can be modified by the caller to
23286// add HTTP headers to the request.
23287func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
23288	if c.header_ == nil {
23289		c.header_ = make(http.Header)
23290	}
23291	return c.header_
23292}
23293
23294func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
23295	reqHeaders := make(http.Header)
23296	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23297	for k, v := range c.header_ {
23298		reqHeaders[k] = v
23299	}
23300	reqHeaders.Set("User-Agent", c.s.userAgent())
23301	var body io.Reader = nil
23302	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
23303	if err != nil {
23304		return nil, err
23305	}
23306	reqHeaders.Set("Content-Type", "application/json")
23307	c.urlParams_.Set("alt", alt)
23308	c.urlParams_.Set("prettyPrint", "false")
23309	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23310	urls += "?" + c.urlParams_.Encode()
23311	req, err := http.NewRequest("POST", urls, body)
23312	if err != nil {
23313		return nil, err
23314	}
23315	req.Header = reqHeaders
23316	googleapi.Expand(req.URL, map[string]string{
23317		"name": c.name,
23318	})
23319	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23320}
23321
23322// Do executes the "apigee.organizations.environments.updateEnvironment" call.
23323// Exactly one of *GoogleCloudApigeeV1Environment or error will be
23324// non-nil. Any non-2xx status code is an error. Response headers are in
23325// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
23326// response was returned at all) in error.(*googleapi.Error).Header. Use
23327// googleapi.IsNotModified to check whether the returned error was
23328// because http.StatusNotModified was returned.
23329func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
23330	gensupport.SetOptions(c.urlParams_, opts...)
23331	res, err := c.doRequest("json")
23332	if res != nil && res.StatusCode == http.StatusNotModified {
23333		if res.Body != nil {
23334			res.Body.Close()
23335		}
23336		return nil, &googleapi.Error{
23337			Code:   res.StatusCode,
23338			Header: res.Header,
23339		}
23340	}
23341	if err != nil {
23342		return nil, err
23343	}
23344	defer googleapi.CloseBody(res)
23345	if err := googleapi.CheckResponse(res); err != nil {
23346		return nil, err
23347	}
23348	ret := &GoogleCloudApigeeV1Environment{
23349		ServerResponse: googleapi.ServerResponse{
23350			Header:         res.Header,
23351			HTTPStatusCode: res.StatusCode,
23352		},
23353	}
23354	target := &ret
23355	if err := gensupport.DecodeResponse(target, res); err != nil {
23356		return nil, err
23357	}
23358	return ret, nil
23359	// {
23360	//   "description": "Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get).",
23361	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
23362	//   "httpMethod": "POST",
23363	//   "id": "apigee.organizations.environments.updateEnvironment",
23364	//   "parameterOrder": [
23365	//     "name"
23366	//   ],
23367	//   "parameters": {
23368	//     "name": {
23369	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
23370	//       "location": "path",
23371	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
23372	//       "required": true,
23373	//       "type": "string"
23374	//     }
23375	//   },
23376	//   "path": "v1/{+name}",
23377	//   "request": {
23378	//     "$ref": "GoogleCloudApigeeV1Environment"
23379	//   },
23380	//   "response": {
23381	//     "$ref": "GoogleCloudApigeeV1Environment"
23382	//   },
23383	//   "scopes": [
23384	//     "https://www.googleapis.com/auth/cloud-platform"
23385	//   ]
23386	// }
23387
23388}
23389
23390// method id "apigee.organizations.environments.updateTraceConfig":
23391
23392type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
23393	s                              *Service
23394	name                           string
23395	googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
23396	urlParams_                     gensupport.URLParams
23397	ctx_                           context.Context
23398	header_                        http.Header
23399}
23400
23401// UpdateTraceConfig: Updates the trace configurations in an
23402// environment. Note that the repeated fields have replace semantics
23403// when included in the field mask and that they will be overwritten by
23404// the value of the fields in the request body.
23405func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
23406	c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23407	c.name = name
23408	c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
23409	return c
23410}
23411
23412// UpdateMask sets the optional parameter "updateMask": List of fields
23413// to be updated.
23414func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
23415	c.urlParams_.Set("updateMask", updateMask)
23416	return c
23417}
23418
23419// Fields allows partial responses to be retrieved. See
23420// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23421// for more information.
23422func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
23423	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23424	return c
23425}
23426
23427// Context sets the context to be used in this call's Do method. Any
23428// pending HTTP request will be aborted if the provided context is
23429// canceled.
23430func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
23431	c.ctx_ = ctx
23432	return c
23433}
23434
23435// Header returns an http.Header that can be modified by the caller to
23436// add HTTP headers to the request.
23437func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
23438	if c.header_ == nil {
23439		c.header_ = make(http.Header)
23440	}
23441	return c.header_
23442}
23443
23444func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
23445	reqHeaders := make(http.Header)
23446	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23447	for k, v := range c.header_ {
23448		reqHeaders[k] = v
23449	}
23450	reqHeaders.Set("User-Agent", c.s.userAgent())
23451	var body io.Reader = nil
23452	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
23453	if err != nil {
23454		return nil, err
23455	}
23456	reqHeaders.Set("Content-Type", "application/json")
23457	c.urlParams_.Set("alt", alt)
23458	c.urlParams_.Set("prettyPrint", "false")
23459	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23460	urls += "?" + c.urlParams_.Encode()
23461	req, err := http.NewRequest("PATCH", urls, body)
23462	if err != nil {
23463		return nil, err
23464	}
23465	req.Header = reqHeaders
23466	googleapi.Expand(req.URL, map[string]string{
23467		"name": c.name,
23468	})
23469	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23470}
23471
23472// Do executes the "apigee.organizations.environments.updateTraceConfig" call.
23473// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
23474// non-nil. Any non-2xx status code is an error. Response headers are in
23475// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
23476// response was returned at all) in error.(*googleapi.Error).Header. Use
23477// googleapi.IsNotModified to check whether the returned error was
23478// because http.StatusNotModified was returned.
23479func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
23480	gensupport.SetOptions(c.urlParams_, opts...)
23481	res, err := c.doRequest("json")
23482	if res != nil && res.StatusCode == http.StatusNotModified {
23483		if res.Body != nil {
23484			res.Body.Close()
23485		}
23486		return nil, &googleapi.Error{
23487			Code:   res.StatusCode,
23488			Header: res.Header,
23489		}
23490	}
23491	if err != nil {
23492		return nil, err
23493	}
23494	defer googleapi.CloseBody(res)
23495	if err := googleapi.CheckResponse(res); err != nil {
23496		return nil, err
23497	}
23498	ret := &GoogleCloudApigeeV1TraceConfig{
23499		ServerResponse: googleapi.ServerResponse{
23500			Header:         res.Header,
23501			HTTPStatusCode: res.StatusCode,
23502		},
23503	}
23504	target := &ret
23505	if err := gensupport.DecodeResponse(target, res); err != nil {
23506		return nil, err
23507	}
23508	return ret, nil
23509	// {
23510	//   "description": "Updates the trace configurations in an environment. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.",
23511	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
23512	//   "httpMethod": "PATCH",
23513	//   "id": "apigee.organizations.environments.updateTraceConfig",
23514	//   "parameterOrder": [
23515	//     "name"
23516	//   ],
23517	//   "parameters": {
23518	//     "name": {
23519	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
23520	//       "location": "path",
23521	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
23522	//       "required": true,
23523	//       "type": "string"
23524	//     },
23525	//     "updateMask": {
23526	//       "description": "List of fields to be updated.",
23527	//       "format": "google-fieldmask",
23528	//       "location": "query",
23529	//       "type": "string"
23530	//     }
23531	//   },
23532	//   "path": "v1/{+name}",
23533	//   "request": {
23534	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
23535	//   },
23536	//   "response": {
23537	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
23538	//   },
23539	//   "scopes": [
23540	//     "https://www.googleapis.com/auth/cloud-platform"
23541	//   ]
23542	// }
23543
23544}
23545
23546// method id "apigee.organizations.environments.analytics.admin.getSchemav2":
23547
23548type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
23549	s            *Service
23550	name         string
23551	urlParams_   gensupport.URLParams
23552	ifNoneMatch_ string
23553	ctx_         context.Context
23554	header_      http.Header
23555}
23556
23557// GetSchemav2: Get a list of metrics and dimensions which can be used
23558// for creating analytics queries and reports. Each schema element
23559// contains the name of the field with its associated type and if it is
23560// either custom field or standard field.
23561func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
23562	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
23563	c.name = name
23564	return c
23565}
23566
23567// Type sets the optional parameter "type": Required. Type refers to the
23568// dataset name whose schema needs to be retrieved E.g. type=fact or
23569// type=agg_cus1
23570func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
23571	c.urlParams_.Set("type", type_)
23572	return c
23573}
23574
23575// Fields allows partial responses to be retrieved. See
23576// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23577// for more information.
23578func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
23579	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23580	return c
23581}
23582
23583// IfNoneMatch sets the optional parameter which makes the operation
23584// fail if the object's ETag matches the given value. This is useful for
23585// getting updates only after the object has changed since the last
23586// request. Use googleapi.IsNotModified to check whether the response
23587// error from Do is the result of In-None-Match.
23588func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
23589	c.ifNoneMatch_ = entityTag
23590	return c
23591}
23592
23593// Context sets the context to be used in this call's Do method. Any
23594// pending HTTP request will be aborted if the provided context is
23595// canceled.
23596func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
23597	c.ctx_ = ctx
23598	return c
23599}
23600
23601// Header returns an http.Header that can be modified by the caller to
23602// add HTTP headers to the request.
23603func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
23604	if c.header_ == nil {
23605		c.header_ = make(http.Header)
23606	}
23607	return c.header_
23608}
23609
23610func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
23611	reqHeaders := make(http.Header)
23612	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23613	for k, v := range c.header_ {
23614		reqHeaders[k] = v
23615	}
23616	reqHeaders.Set("User-Agent", c.s.userAgent())
23617	if c.ifNoneMatch_ != "" {
23618		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23619	}
23620	var body io.Reader = nil
23621	c.urlParams_.Set("alt", alt)
23622	c.urlParams_.Set("prettyPrint", "false")
23623	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23624	urls += "?" + c.urlParams_.Encode()
23625	req, err := http.NewRequest("GET", urls, body)
23626	if err != nil {
23627		return nil, err
23628	}
23629	req.Header = reqHeaders
23630	googleapi.Expand(req.URL, map[string]string{
23631		"name": c.name,
23632	})
23633	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23634}
23635
23636// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
23637// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil.
23638// Any non-2xx status code is an error. Response headers are in either
23639// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response
23640// was returned at all) in error.(*googleapi.Error).Header. Use
23641// googleapi.IsNotModified to check whether the returned error was
23642// because http.StatusNotModified was returned.
23643func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
23644	gensupport.SetOptions(c.urlParams_, opts...)
23645	res, err := c.doRequest("json")
23646	if res != nil && res.StatusCode == http.StatusNotModified {
23647		if res.Body != nil {
23648			res.Body.Close()
23649		}
23650		return nil, &googleapi.Error{
23651			Code:   res.StatusCode,
23652			Header: res.Header,
23653		}
23654	}
23655	if err != nil {
23656		return nil, err
23657	}
23658	defer googleapi.CloseBody(res)
23659	if err := googleapi.CheckResponse(res); err != nil {
23660		return nil, err
23661	}
23662	ret := &GoogleCloudApigeeV1Schema{
23663		ServerResponse: googleapi.ServerResponse{
23664			Header:         res.Header,
23665			HTTPStatusCode: res.StatusCode,
23666		},
23667	}
23668	target := &ret
23669	if err := gensupport.DecodeResponse(target, res); err != nil {
23670		return nil, err
23671	}
23672	return ret, nil
23673	// {
23674	//   "description": "Get a list of metrics and dimensions which can be used for creating analytics queries and reports. Each schema element contains the name of the field with its associated type and if it is either custom field or standard field.",
23675	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2",
23676	//   "httpMethod": "GET",
23677	//   "id": "apigee.organizations.environments.analytics.admin.getSchemav2",
23678	//   "parameterOrder": [
23679	//     "name"
23680	//   ],
23681	//   "parameters": {
23682	//     "name": {
23683	//       "description": "Required. The parent organization and environment names. Must be of the form `organizations/{org}/environments/{env}/analytics/admin/schemav2`.",
23684	//       "location": "path",
23685	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$",
23686	//       "required": true,
23687	//       "type": "string"
23688	//     },
23689	//     "type": {
23690	//       "description": "Required. Type refers to the dataset name whose schema needs to be retrieved E.g. type=fact or type=agg_cus1",
23691	//       "location": "query",
23692	//       "type": "string"
23693	//     }
23694	//   },
23695	//   "path": "v1/{+name}",
23696	//   "response": {
23697	//     "$ref": "GoogleCloudApigeeV1Schema"
23698	//   },
23699	//   "scopes": [
23700	//     "https://www.googleapis.com/auth/cloud-platform"
23701	//   ]
23702	// }
23703
23704}
23705
23706// method id "apigee.organizations.environments.analytics.exports.create":
23707
23708type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
23709	s                                *Service
23710	parent                           string
23711	googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
23712	urlParams_                       gensupport.URLParams
23713	ctx_                             context.Context
23714	header_                          http.Header
23715}
23716
23717// Create: Submit a data export job to be processed in the background.
23718// If the request is successful, the API returns a 201 status, a URI
23719// that can be used to retrieve the status of the export job, and the
23720// `state` value of "enqueued".
23721func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
23722	c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23723	c.parent = parent
23724	c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
23725	return c
23726}
23727
23728// Fields allows partial responses to be retrieved. See
23729// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23730// for more information.
23731func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
23732	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23733	return c
23734}
23735
23736// Context sets the context to be used in this call's Do method. Any
23737// pending HTTP request will be aborted if the provided context is
23738// canceled.
23739func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
23740	c.ctx_ = ctx
23741	return c
23742}
23743
23744// Header returns an http.Header that can be modified by the caller to
23745// add HTTP headers to the request.
23746func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
23747	if c.header_ == nil {
23748		c.header_ = make(http.Header)
23749	}
23750	return c.header_
23751}
23752
23753func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
23754	reqHeaders := make(http.Header)
23755	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23756	for k, v := range c.header_ {
23757		reqHeaders[k] = v
23758	}
23759	reqHeaders.Set("User-Agent", c.s.userAgent())
23760	var body io.Reader = nil
23761	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
23762	if err != nil {
23763		return nil, err
23764	}
23765	reqHeaders.Set("Content-Type", "application/json")
23766	c.urlParams_.Set("alt", alt)
23767	c.urlParams_.Set("prettyPrint", "false")
23768	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
23769	urls += "?" + c.urlParams_.Encode()
23770	req, err := http.NewRequest("POST", urls, body)
23771	if err != nil {
23772		return nil, err
23773	}
23774	req.Header = reqHeaders
23775	googleapi.Expand(req.URL, map[string]string{
23776		"parent": c.parent,
23777	})
23778	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23779}
23780
23781// Do executes the "apigee.organizations.environments.analytics.exports.create" call.
23782// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
23783// Any non-2xx status code is an error. Response headers are in either
23784// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
23785// was returned at all) in error.(*googleapi.Error).Header. Use
23786// googleapi.IsNotModified to check whether the returned error was
23787// because http.StatusNotModified was returned.
23788func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
23789	gensupport.SetOptions(c.urlParams_, opts...)
23790	res, err := c.doRequest("json")
23791	if res != nil && res.StatusCode == http.StatusNotModified {
23792		if res.Body != nil {
23793			res.Body.Close()
23794		}
23795		return nil, &googleapi.Error{
23796			Code:   res.StatusCode,
23797			Header: res.Header,
23798		}
23799	}
23800	if err != nil {
23801		return nil, err
23802	}
23803	defer googleapi.CloseBody(res)
23804	if err := googleapi.CheckResponse(res); err != nil {
23805		return nil, err
23806	}
23807	ret := &GoogleCloudApigeeV1Export{
23808		ServerResponse: googleapi.ServerResponse{
23809			Header:         res.Header,
23810			HTTPStatusCode: res.StatusCode,
23811		},
23812	}
23813	target := &ret
23814	if err := gensupport.DecodeResponse(target, res); err != nil {
23815		return nil, err
23816	}
23817	return ret, nil
23818	// {
23819	//   "description": "Submit a data export job to be processed in the background. If the request is successful, the API returns a 201 status, a URI that can be used to retrieve the status of the export job, and the `state` value of \"enqueued\".",
23820	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
23821	//   "httpMethod": "POST",
23822	//   "id": "apigee.organizations.environments.analytics.exports.create",
23823	//   "parameterOrder": [
23824	//     "parent"
23825	//   ],
23826	//   "parameters": {
23827	//     "parent": {
23828	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
23829	//       "location": "path",
23830	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
23831	//       "required": true,
23832	//       "type": "string"
23833	//     }
23834	//   },
23835	//   "path": "v1/{+parent}/analytics/exports",
23836	//   "request": {
23837	//     "$ref": "GoogleCloudApigeeV1ExportRequest"
23838	//   },
23839	//   "response": {
23840	//     "$ref": "GoogleCloudApigeeV1Export"
23841	//   },
23842	//   "scopes": [
23843	//     "https://www.googleapis.com/auth/cloud-platform"
23844	//   ]
23845	// }
23846
23847}
23848
23849// method id "apigee.organizations.environments.analytics.exports.get":
23850
23851type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
23852	s            *Service
23853	name         string
23854	urlParams_   gensupport.URLParams
23855	ifNoneMatch_ string
23856	ctx_         context.Context
23857	header_      http.Header
23858}
23859
23860// Get: Gets the details and status of an analytics export job. If the
23861// export job is still in progress, its `state` is set to "running".
23862// After the export job has completed successfully, its `state` is set
23863// to "completed". If the export job fails, its `state` is set to
23864// `failed`.
23865func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
23866	c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23867	c.name = name
23868	return c
23869}
23870
23871// Fields allows partial responses to be retrieved. See
23872// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23873// for more information.
23874func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
23875	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23876	return c
23877}
23878
23879// IfNoneMatch sets the optional parameter which makes the operation
23880// fail if the object's ETag matches the given value. This is useful for
23881// getting updates only after the object has changed since the last
23882// request. Use googleapi.IsNotModified to check whether the response
23883// error from Do is the result of In-None-Match.
23884func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
23885	c.ifNoneMatch_ = entityTag
23886	return c
23887}
23888
23889// Context sets the context to be used in this call's Do method. Any
23890// pending HTTP request will be aborted if the provided context is
23891// canceled.
23892func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
23893	c.ctx_ = ctx
23894	return c
23895}
23896
23897// Header returns an http.Header that can be modified by the caller to
23898// add HTTP headers to the request.
23899func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
23900	if c.header_ == nil {
23901		c.header_ = make(http.Header)
23902	}
23903	return c.header_
23904}
23905
23906func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
23907	reqHeaders := make(http.Header)
23908	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23909	for k, v := range c.header_ {
23910		reqHeaders[k] = v
23911	}
23912	reqHeaders.Set("User-Agent", c.s.userAgent())
23913	if c.ifNoneMatch_ != "" {
23914		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23915	}
23916	var body io.Reader = nil
23917	c.urlParams_.Set("alt", alt)
23918	c.urlParams_.Set("prettyPrint", "false")
23919	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23920	urls += "?" + c.urlParams_.Encode()
23921	req, err := http.NewRequest("GET", urls, body)
23922	if err != nil {
23923		return nil, err
23924	}
23925	req.Header = reqHeaders
23926	googleapi.Expand(req.URL, map[string]string{
23927		"name": c.name,
23928	})
23929	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23930}
23931
23932// Do executes the "apigee.organizations.environments.analytics.exports.get" call.
23933// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
23934// Any non-2xx status code is an error. Response headers are in either
23935// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
23936// was returned at all) in error.(*googleapi.Error).Header. Use
23937// googleapi.IsNotModified to check whether the returned error was
23938// because http.StatusNotModified was returned.
23939func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
23940	gensupport.SetOptions(c.urlParams_, opts...)
23941	res, err := c.doRequest("json")
23942	if res != nil && res.StatusCode == http.StatusNotModified {
23943		if res.Body != nil {
23944			res.Body.Close()
23945		}
23946		return nil, &googleapi.Error{
23947			Code:   res.StatusCode,
23948			Header: res.Header,
23949		}
23950	}
23951	if err != nil {
23952		return nil, err
23953	}
23954	defer googleapi.CloseBody(res)
23955	if err := googleapi.CheckResponse(res); err != nil {
23956		return nil, err
23957	}
23958	ret := &GoogleCloudApigeeV1Export{
23959		ServerResponse: googleapi.ServerResponse{
23960			Header:         res.Header,
23961			HTTPStatusCode: res.StatusCode,
23962		},
23963	}
23964	target := &ret
23965	if err := gensupport.DecodeResponse(target, res); err != nil {
23966		return nil, err
23967	}
23968	return ret, nil
23969	// {
23970	//   "description": "Gets the details and status of an analytics export job. If the export job is still in progress, its `state` is set to \"running\". After the export job has completed successfully, its `state` is set to \"completed\". If the export job fails, its `state` is set to `failed`.",
23971	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}",
23972	//   "httpMethod": "GET",
23973	//   "id": "apigee.organizations.environments.analytics.exports.get",
23974	//   "parameterOrder": [
23975	//     "name"
23976	//   ],
23977	//   "parameters": {
23978	//     "name": {
23979	//       "description": "Required. Resource name of the export to get.",
23980	//       "location": "path",
23981	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$",
23982	//       "required": true,
23983	//       "type": "string"
23984	//     }
23985	//   },
23986	//   "path": "v1/{+name}",
23987	//   "response": {
23988	//     "$ref": "GoogleCloudApigeeV1Export"
23989	//   },
23990	//   "scopes": [
23991	//     "https://www.googleapis.com/auth/cloud-platform"
23992	//   ]
23993	// }
23994
23995}
23996
23997// method id "apigee.organizations.environments.analytics.exports.list":
23998
23999type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
24000	s            *Service
24001	parent       string
24002	urlParams_   gensupport.URLParams
24003	ifNoneMatch_ string
24004	ctx_         context.Context
24005	header_      http.Header
24006}
24007
24008// List: Lists the details and status of all analytics export jobs
24009// belonging to the parent organization and environment.
24010func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
24011	c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24012	c.parent = parent
24013	return c
24014}
24015
24016// Fields allows partial responses to be retrieved. See
24017// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24018// for more information.
24019func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
24020	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24021	return c
24022}
24023
24024// IfNoneMatch sets the optional parameter which makes the operation
24025// fail if the object's ETag matches the given value. This is useful for
24026// getting updates only after the object has changed since the last
24027// request. Use googleapi.IsNotModified to check whether the response
24028// error from Do is the result of In-None-Match.
24029func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
24030	c.ifNoneMatch_ = entityTag
24031	return c
24032}
24033
24034// Context sets the context to be used in this call's Do method. Any
24035// pending HTTP request will be aborted if the provided context is
24036// canceled.
24037func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
24038	c.ctx_ = ctx
24039	return c
24040}
24041
24042// Header returns an http.Header that can be modified by the caller to
24043// add HTTP headers to the request.
24044func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
24045	if c.header_ == nil {
24046		c.header_ = make(http.Header)
24047	}
24048	return c.header_
24049}
24050
24051func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
24052	reqHeaders := make(http.Header)
24053	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24054	for k, v := range c.header_ {
24055		reqHeaders[k] = v
24056	}
24057	reqHeaders.Set("User-Agent", c.s.userAgent())
24058	if c.ifNoneMatch_ != "" {
24059		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24060	}
24061	var body io.Reader = nil
24062	c.urlParams_.Set("alt", alt)
24063	c.urlParams_.Set("prettyPrint", "false")
24064	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
24065	urls += "?" + c.urlParams_.Encode()
24066	req, err := http.NewRequest("GET", urls, body)
24067	if err != nil {
24068		return nil, err
24069	}
24070	req.Header = reqHeaders
24071	googleapi.Expand(req.URL, map[string]string{
24072		"parent": c.parent,
24073	})
24074	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24075}
24076
24077// Do executes the "apigee.organizations.environments.analytics.exports.list" call.
24078// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will
24079// be non-nil. Any non-2xx status code is an error. Response headers are
24080// in either
24081// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if
24082// a response was returned at all) in error.(*googleapi.Error).Header.
24083// Use googleapi.IsNotModified to check whether the returned error was
24084// because http.StatusNotModified was returned.
24085func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
24086	gensupport.SetOptions(c.urlParams_, opts...)
24087	res, err := c.doRequest("json")
24088	if res != nil && res.StatusCode == http.StatusNotModified {
24089		if res.Body != nil {
24090			res.Body.Close()
24091		}
24092		return nil, &googleapi.Error{
24093			Code:   res.StatusCode,
24094			Header: res.Header,
24095		}
24096	}
24097	if err != nil {
24098		return nil, err
24099	}
24100	defer googleapi.CloseBody(res)
24101	if err := googleapi.CheckResponse(res); err != nil {
24102		return nil, err
24103	}
24104	ret := &GoogleCloudApigeeV1ListExportsResponse{
24105		ServerResponse: googleapi.ServerResponse{
24106			Header:         res.Header,
24107			HTTPStatusCode: res.StatusCode,
24108		},
24109	}
24110	target := &ret
24111	if err := gensupport.DecodeResponse(target, res); err != nil {
24112		return nil, err
24113	}
24114	return ret, nil
24115	// {
24116	//   "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.",
24117	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
24118	//   "httpMethod": "GET",
24119	//   "id": "apigee.organizations.environments.analytics.exports.list",
24120	//   "parameterOrder": [
24121	//     "parent"
24122	//   ],
24123	//   "parameters": {
24124	//     "parent": {
24125	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
24126	//       "location": "path",
24127	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24128	//       "required": true,
24129	//       "type": "string"
24130	//     }
24131	//   },
24132	//   "path": "v1/{+parent}/analytics/exports",
24133	//   "response": {
24134	//     "$ref": "GoogleCloudApigeeV1ListExportsResponse"
24135	//   },
24136	//   "scopes": [
24137	//     "https://www.googleapis.com/auth/cloud-platform"
24138	//   ]
24139	// }
24140
24141}
24142
24143// method id "apigee.organizations.environments.apis.deployments.list":
24144
24145type OrganizationsEnvironmentsApisDeploymentsListCall struct {
24146	s            *Service
24147	parent       string
24148	urlParams_   gensupport.URLParams
24149	ifNoneMatch_ string
24150	ctx_         context.Context
24151	header_      http.Header
24152}
24153
24154// List: Lists all deployments of an API proxy in an environment.
24155func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
24156	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24157	c.parent = parent
24158	return c
24159}
24160
24161// Fields allows partial responses to be retrieved. See
24162// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24163// for more information.
24164func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
24165	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24166	return c
24167}
24168
24169// IfNoneMatch sets the optional parameter which makes the operation
24170// fail if the object's ETag matches the given value. This is useful for
24171// getting updates only after the object has changed since the last
24172// request. Use googleapi.IsNotModified to check whether the response
24173// error from Do is the result of In-None-Match.
24174func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
24175	c.ifNoneMatch_ = entityTag
24176	return c
24177}
24178
24179// Context sets the context to be used in this call's Do method. Any
24180// pending HTTP request will be aborted if the provided context is
24181// canceled.
24182func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
24183	c.ctx_ = ctx
24184	return c
24185}
24186
24187// Header returns an http.Header that can be modified by the caller to
24188// add HTTP headers to the request.
24189func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
24190	if c.header_ == nil {
24191		c.header_ = make(http.Header)
24192	}
24193	return c.header_
24194}
24195
24196func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
24197	reqHeaders := make(http.Header)
24198	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24199	for k, v := range c.header_ {
24200		reqHeaders[k] = v
24201	}
24202	reqHeaders.Set("User-Agent", c.s.userAgent())
24203	if c.ifNoneMatch_ != "" {
24204		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24205	}
24206	var body io.Reader = nil
24207	c.urlParams_.Set("alt", alt)
24208	c.urlParams_.Set("prettyPrint", "false")
24209	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
24210	urls += "?" + c.urlParams_.Encode()
24211	req, err := http.NewRequest("GET", urls, body)
24212	if err != nil {
24213		return nil, err
24214	}
24215	req.Header = reqHeaders
24216	googleapi.Expand(req.URL, map[string]string{
24217		"parent": c.parent,
24218	})
24219	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24220}
24221
24222// Do executes the "apigee.organizations.environments.apis.deployments.list" call.
24223// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
24224// will be non-nil. Any non-2xx status code is an error. Response
24225// headers are in either
24226// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
24227// (if a response was returned at all) in
24228// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24229// whether the returned error was because http.StatusNotModified was
24230// returned.
24231func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
24232	gensupport.SetOptions(c.urlParams_, opts...)
24233	res, err := c.doRequest("json")
24234	if res != nil && res.StatusCode == http.StatusNotModified {
24235		if res.Body != nil {
24236			res.Body.Close()
24237		}
24238		return nil, &googleapi.Error{
24239			Code:   res.StatusCode,
24240			Header: res.Header,
24241		}
24242	}
24243	if err != nil {
24244		return nil, err
24245	}
24246	defer googleapi.CloseBody(res)
24247	if err := googleapi.CheckResponse(res); err != nil {
24248		return nil, err
24249	}
24250	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
24251		ServerResponse: googleapi.ServerResponse{
24252			Header:         res.Header,
24253			HTTPStatusCode: res.StatusCode,
24254		},
24255	}
24256	target := &ret
24257	if err := gensupport.DecodeResponse(target, res); err != nil {
24258		return nil, err
24259	}
24260	return ret, nil
24261	// {
24262	//   "description": "Lists all deployments of an API proxy in an environment.",
24263	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments",
24264	//   "httpMethod": "GET",
24265	//   "id": "apigee.organizations.environments.apis.deployments.list",
24266	//   "parameterOrder": [
24267	//     "parent"
24268	//   ],
24269	//   "parameters": {
24270	//     "parent": {
24271	//       "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`",
24272	//       "location": "path",
24273	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$",
24274	//       "required": true,
24275	//       "type": "string"
24276	//     }
24277	//   },
24278	//   "path": "v1/{+parent}/deployments",
24279	//   "response": {
24280	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
24281	//   },
24282	//   "scopes": [
24283	//     "https://www.googleapis.com/auth/cloud-platform"
24284	//   ]
24285	// }
24286
24287}
24288
24289// method id "apigee.organizations.environments.apis.revisions.deploy":
24290
24291type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
24292	s          *Service
24293	name       string
24294	urlParams_ gensupport.URLParams
24295	ctx_       context.Context
24296	header_    http.Header
24297}
24298
24299// Deploy: Deploys a revision of an API proxy. If another revision of
24300// the same API proxy revision is currently deployed, set the `override`
24301// parameter to `true` to have this revision replace the currently
24302// deployed revision. You cannot invoke an API proxy until it has been
24303// deployed to an environment. After you deploy an API proxy revision,
24304// you cannot edit it. To edit the API proxy, you must create and deploy
24305// a new revision. For a request path
24306// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
24307// loyments`, two permissions are required: *
24308// `apigee.deployments.create` on the resource
24309// `organizations/{org}/environments/{env}` *
24310// `apigee.proxyrevisions.deploy` on the resource
24311// `organizations/{org}/apis/{api}/revisions/{rev}`
24312func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
24313	c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24314	c.name = name
24315	return c
24316}
24317
24318// Override sets the optional parameter "override": Flag that specifies
24319// whether the new deployment replaces other deployed revisions of the
24320// API proxy in the environment. Set `override` to `true` to replace
24321// other deployed revisions. By default, `override` is `false` and the
24322// deployment is rejected if other revisions of the API proxy are
24323// deployed in the environment.
24324func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
24325	c.urlParams_.Set("override", fmt.Sprint(override))
24326	return c
24327}
24328
24329// SequencedRollout sets the optional parameter "sequencedRollout": Flag
24330// that specifies whether to enable sequenced rollout. If set to `true`,
24331// a best-effort attempt will be made to roll out the routing rules
24332// corresponding to this deployment and the environment changes to add
24333// this deployment in a safe order. This reduces the risk of downtime
24334// that could be caused by changing the environment group's routing
24335// before the new destination for the affected traffic is ready to
24336// receive it. This should only be necessary if the new deployment will
24337// be capturing traffic from another environment under a shared
24338// environment group or if traffic will be rerouted to a different
24339// environment due to a base path removal. The
24340// GenerateDeployChangeReport API (GenerateDeployChangeReport) may be
24341// used to examine routing changes before issuing the deployment
24342// request, and its response will indicate if a sequenced rollout is
24343// recommended for the deployment.
24344func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
24345	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
24346	return c
24347}
24348
24349// Fields allows partial responses to be retrieved. See
24350// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24351// for more information.
24352func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
24353	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24354	return c
24355}
24356
24357// Context sets the context to be used in this call's Do method. Any
24358// pending HTTP request will be aborted if the provided context is
24359// canceled.
24360func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
24361	c.ctx_ = ctx
24362	return c
24363}
24364
24365// Header returns an http.Header that can be modified by the caller to
24366// add HTTP headers to the request.
24367func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
24368	if c.header_ == nil {
24369		c.header_ = make(http.Header)
24370	}
24371	return c.header_
24372}
24373
24374func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
24375	reqHeaders := make(http.Header)
24376	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24377	for k, v := range c.header_ {
24378		reqHeaders[k] = v
24379	}
24380	reqHeaders.Set("User-Agent", c.s.userAgent())
24381	var body io.Reader = nil
24382	c.urlParams_.Set("alt", alt)
24383	c.urlParams_.Set("prettyPrint", "false")
24384	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
24385	urls += "?" + c.urlParams_.Encode()
24386	req, err := http.NewRequest("POST", urls, body)
24387	if err != nil {
24388		return nil, err
24389	}
24390	req.Header = reqHeaders
24391	googleapi.Expand(req.URL, map[string]string{
24392		"name": c.name,
24393	})
24394	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24395}
24396
24397// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call.
24398// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
24399// non-nil. Any non-2xx status code is an error. Response headers are in
24400// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
24401// response was returned at all) in error.(*googleapi.Error).Header. Use
24402// googleapi.IsNotModified to check whether the returned error was
24403// because http.StatusNotModified was returned.
24404func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
24405	gensupport.SetOptions(c.urlParams_, opts...)
24406	res, err := c.doRequest("json")
24407	if res != nil && res.StatusCode == http.StatusNotModified {
24408		if res.Body != nil {
24409			res.Body.Close()
24410		}
24411		return nil, &googleapi.Error{
24412			Code:   res.StatusCode,
24413			Header: res.Header,
24414		}
24415	}
24416	if err != nil {
24417		return nil, err
24418	}
24419	defer googleapi.CloseBody(res)
24420	if err := googleapi.CheckResponse(res); err != nil {
24421		return nil, err
24422	}
24423	ret := &GoogleCloudApigeeV1Deployment{
24424		ServerResponse: googleapi.ServerResponse{
24425			Header:         res.Header,
24426			HTTPStatusCode: res.StatusCode,
24427		},
24428	}
24429	target := &ret
24430	if err := gensupport.DecodeResponse(target, res); err != nil {
24431		return nil, err
24432	}
24433	return ret, nil
24434	// {
24435	//   "description": "Deploys a revision of an API proxy. If another revision of the same API proxy revision is currently deployed, set the `override` parameter to `true` to have this revision replace the currently deployed revision. You cannot invoke an API proxy until it has been deployed to an environment. After you deploy an API proxy revision, you cannot edit it. To edit the API proxy, you must create and deploy a new revision. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}` ",
24436	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
24437	//   "httpMethod": "POST",
24438	//   "id": "apigee.organizations.environments.apis.revisions.deploy",
24439	//   "parameterOrder": [
24440	//     "name"
24441	//   ],
24442	//   "parameters": {
24443	//     "name": {
24444	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
24445	//       "location": "path",
24446	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
24447	//       "required": true,
24448	//       "type": "string"
24449	//     },
24450	//     "override": {
24451	//       "description": "Flag that specifies whether the new deployment replaces other deployed revisions of the API proxy in the environment. Set `override` to `true` to replace other deployed revisions. By default, `override` is `false` and the deployment is rejected if other revisions of the API proxy are deployed in the environment.",
24452	//       "location": "query",
24453	//       "type": "boolean"
24454	//     },
24455	//     "sequencedRollout": {
24456	//       "description": "Flag that specifies whether to enable sequenced rollout. If set to `true`, a best-effort attempt will be made to roll out the routing rules corresponding to this deployment and the environment changes to add this deployment in a safe order. This reduces the risk of downtime that could be caused by changing the environment group's routing before the new destination for the affected traffic is ready to receive it. This should only be necessary if the new deployment will be capturing traffic from another environment under a shared environment group or if traffic will be rerouted to a different environment due to a base path removal. The [GenerateDeployChangeReport API](GenerateDeployChangeReport) may be used to examine routing changes before issuing the deployment request, and its response will indicate if a sequenced rollout is recommended for the deployment.",
24457	//       "location": "query",
24458	//       "type": "boolean"
24459	//     }
24460	//   },
24461	//   "path": "v1/{+name}/deployments",
24462	//   "response": {
24463	//     "$ref": "GoogleCloudApigeeV1Deployment"
24464	//   },
24465	//   "scopes": [
24466	//     "https://www.googleapis.com/auth/cloud-platform"
24467	//   ]
24468	// }
24469
24470}
24471
24472// method id "apigee.organizations.environments.apis.revisions.getDeployments":
24473
24474type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
24475	s            *Service
24476	name         string
24477	urlParams_   gensupport.URLParams
24478	ifNoneMatch_ string
24479	ctx_         context.Context
24480	header_      http.Header
24481}
24482
24483// GetDeployments: Gets the deployment of an API proxy revision and
24484// actual state reported by runtime pods.
24485func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
24486	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24487	c.name = name
24488	return c
24489}
24490
24491// Fields allows partial responses to be retrieved. See
24492// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24493// for more information.
24494func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
24495	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24496	return c
24497}
24498
24499// IfNoneMatch sets the optional parameter which makes the operation
24500// fail if the object's ETag matches the given value. This is useful for
24501// getting updates only after the object has changed since the last
24502// request. Use googleapi.IsNotModified to check whether the response
24503// error from Do is the result of In-None-Match.
24504func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
24505	c.ifNoneMatch_ = entityTag
24506	return c
24507}
24508
24509// Context sets the context to be used in this call's Do method. Any
24510// pending HTTP request will be aborted if the provided context is
24511// canceled.
24512func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
24513	c.ctx_ = ctx
24514	return c
24515}
24516
24517// Header returns an http.Header that can be modified by the caller to
24518// add HTTP headers to the request.
24519func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
24520	if c.header_ == nil {
24521		c.header_ = make(http.Header)
24522	}
24523	return c.header_
24524}
24525
24526func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
24527	reqHeaders := make(http.Header)
24528	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24529	for k, v := range c.header_ {
24530		reqHeaders[k] = v
24531	}
24532	reqHeaders.Set("User-Agent", c.s.userAgent())
24533	if c.ifNoneMatch_ != "" {
24534		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24535	}
24536	var body io.Reader = nil
24537	c.urlParams_.Set("alt", alt)
24538	c.urlParams_.Set("prettyPrint", "false")
24539	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
24540	urls += "?" + c.urlParams_.Encode()
24541	req, err := http.NewRequest("GET", urls, body)
24542	if err != nil {
24543		return nil, err
24544	}
24545	req.Header = reqHeaders
24546	googleapi.Expand(req.URL, map[string]string{
24547		"name": c.name,
24548	})
24549	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24550}
24551
24552// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
24553// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
24554// non-nil. Any non-2xx status code is an error. Response headers are in
24555// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
24556// response was returned at all) in error.(*googleapi.Error).Header. Use
24557// googleapi.IsNotModified to check whether the returned error was
24558// because http.StatusNotModified was returned.
24559func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
24560	gensupport.SetOptions(c.urlParams_, opts...)
24561	res, err := c.doRequest("json")
24562	if res != nil && res.StatusCode == http.StatusNotModified {
24563		if res.Body != nil {
24564			res.Body.Close()
24565		}
24566		return nil, &googleapi.Error{
24567			Code:   res.StatusCode,
24568			Header: res.Header,
24569		}
24570	}
24571	if err != nil {
24572		return nil, err
24573	}
24574	defer googleapi.CloseBody(res)
24575	if err := googleapi.CheckResponse(res); err != nil {
24576		return nil, err
24577	}
24578	ret := &GoogleCloudApigeeV1Deployment{
24579		ServerResponse: googleapi.ServerResponse{
24580			Header:         res.Header,
24581			HTTPStatusCode: res.StatusCode,
24582		},
24583	}
24584	target := &ret
24585	if err := gensupport.DecodeResponse(target, res); err != nil {
24586		return nil, err
24587	}
24588	return ret, nil
24589	// {
24590	//   "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.",
24591	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
24592	//   "httpMethod": "GET",
24593	//   "id": "apigee.organizations.environments.apis.revisions.getDeployments",
24594	//   "parameterOrder": [
24595	//     "name"
24596	//   ],
24597	//   "parameters": {
24598	//     "name": {
24599	//       "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
24600	//       "location": "path",
24601	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
24602	//       "required": true,
24603	//       "type": "string"
24604	//     }
24605	//   },
24606	//   "path": "v1/{+name}/deployments",
24607	//   "response": {
24608	//     "$ref": "GoogleCloudApigeeV1Deployment"
24609	//   },
24610	//   "scopes": [
24611	//     "https://www.googleapis.com/auth/cloud-platform"
24612	//   ]
24613	// }
24614
24615}
24616
24617// method id "apigee.organizations.environments.apis.revisions.undeploy":
24618
24619type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
24620	s          *Service
24621	name       string
24622	urlParams_ gensupport.URLParams
24623	ctx_       context.Context
24624	header_    http.Header
24625}
24626
24627// Undeploy: Undeploys an API proxy revision from an environment. For a
24628// request path
24629// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
24630// loyments`, two permissions are required: *
24631// `apigee.deployments.delete` on the resource
24632// `organizations/{org}/environments/{env}` *
24633// `apigee.proxyrevisions.undeploy` on the resource
24634// `organizations/{org}/apis/{api}/revisions/{rev}`
24635func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
24636	c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24637	c.name = name
24638	return c
24639}
24640
24641// SequencedRollout sets the optional parameter "sequencedRollout": Flag
24642// that specifies whether to enable sequenced rollout. If set to `true`,
24643// a best-effort attempt will be made to remove the environment group
24644// routing rules corresponding to this deployment before removing the
24645// deployment from the runtime. This is likely to be a rare use case; it
24646// is only needed when the intended effect of undeploying this proxy is
24647// to cause the traffic it currently handles to be rerouted to some
24648// other existing proxy in the environment group. The
24649// GenerateUndeployChangeReport API (GenerateUndeployChangeReport) may
24650// be used to examine routing changes before issuing the undeployment
24651// request, and its response will indicate if a sequenced rollout is
24652// recommended for the undeployment.
24653func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
24654	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
24655	return c
24656}
24657
24658// Fields allows partial responses to be retrieved. See
24659// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24660// for more information.
24661func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
24662	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24663	return c
24664}
24665
24666// Context sets the context to be used in this call's Do method. Any
24667// pending HTTP request will be aborted if the provided context is
24668// canceled.
24669func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
24670	c.ctx_ = ctx
24671	return c
24672}
24673
24674// Header returns an http.Header that can be modified by the caller to
24675// add HTTP headers to the request.
24676func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
24677	if c.header_ == nil {
24678		c.header_ = make(http.Header)
24679	}
24680	return c.header_
24681}
24682
24683func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
24684	reqHeaders := make(http.Header)
24685	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24686	for k, v := range c.header_ {
24687		reqHeaders[k] = v
24688	}
24689	reqHeaders.Set("User-Agent", c.s.userAgent())
24690	var body io.Reader = nil
24691	c.urlParams_.Set("alt", alt)
24692	c.urlParams_.Set("prettyPrint", "false")
24693	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
24694	urls += "?" + c.urlParams_.Encode()
24695	req, err := http.NewRequest("DELETE", urls, body)
24696	if err != nil {
24697		return nil, err
24698	}
24699	req.Header = reqHeaders
24700	googleapi.Expand(req.URL, map[string]string{
24701		"name": c.name,
24702	})
24703	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24704}
24705
24706// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call.
24707// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
24708// non-2xx status code is an error. Response headers are in either
24709// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
24710// returned at all) in error.(*googleapi.Error).Header. Use
24711// googleapi.IsNotModified to check whether the returned error was
24712// because http.StatusNotModified was returned.
24713func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24714	gensupport.SetOptions(c.urlParams_, opts...)
24715	res, err := c.doRequest("json")
24716	if res != nil && res.StatusCode == http.StatusNotModified {
24717		if res.Body != nil {
24718			res.Body.Close()
24719		}
24720		return nil, &googleapi.Error{
24721			Code:   res.StatusCode,
24722			Header: res.Header,
24723		}
24724	}
24725	if err != nil {
24726		return nil, err
24727	}
24728	defer googleapi.CloseBody(res)
24729	if err := googleapi.CheckResponse(res); err != nil {
24730		return nil, err
24731	}
24732	ret := &GoogleProtobufEmpty{
24733		ServerResponse: googleapi.ServerResponse{
24734			Header:         res.Header,
24735			HTTPStatusCode: res.StatusCode,
24736		},
24737	}
24738	target := &ret
24739	if err := gensupport.DecodeResponse(target, res); err != nil {
24740		return nil, err
24741	}
24742	return ret, nil
24743	// {
24744	//   "description": "Undeploys an API proxy revision from an environment. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`",
24745	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
24746	//   "httpMethod": "DELETE",
24747	//   "id": "apigee.organizations.environments.apis.revisions.undeploy",
24748	//   "parameterOrder": [
24749	//     "name"
24750	//   ],
24751	//   "parameters": {
24752	//     "name": {
24753	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
24754	//       "location": "path",
24755	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
24756	//       "required": true,
24757	//       "type": "string"
24758	//     },
24759	//     "sequencedRollout": {
24760	//       "description": "Flag that specifies whether to enable sequenced rollout. If set to `true`, a best-effort attempt will be made to remove the environment group routing rules corresponding to this deployment before removing the deployment from the runtime. This is likely to be a rare use case; it is only needed when the intended effect of undeploying this proxy is to cause the traffic it currently handles to be rerouted to some other existing proxy in the environment group. The [GenerateUndeployChangeReport API](GenerateUndeployChangeReport) may be used to examine routing changes before issuing the undeployment request, and its response will indicate if a sequenced rollout is recommended for the undeployment.",
24761	//       "location": "query",
24762	//       "type": "boolean"
24763	//     }
24764	//   },
24765	//   "path": "v1/{+name}/deployments",
24766	//   "response": {
24767	//     "$ref": "GoogleProtobufEmpty"
24768	//   },
24769	//   "scopes": [
24770	//     "https://www.googleapis.com/auth/cloud-platform"
24771	//   ]
24772	// }
24773
24774}
24775
24776// method id "apigee.organizations.environments.apis.revisions.debugsessions.create":
24777
24778type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
24779	s                               *Service
24780	parent                          string
24781	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
24782	urlParams_                      gensupport.URLParams
24783	ctx_                            context.Context
24784	header_                         http.Header
24785}
24786
24787// Create: Creates a debug session for a deployed API Proxy revision.
24788func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
24789	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24790	c.parent = parent
24791	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
24792	return c
24793}
24794
24795// Timeout sets the optional parameter "timeout": The time in seconds
24796// after which this DebugSession should end. A timeout specified in
24797// DebugSession will overwrite this value.
24798func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
24799	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
24800	return c
24801}
24802
24803// Fields allows partial responses to be retrieved. See
24804// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24805// for more information.
24806func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
24807	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24808	return c
24809}
24810
24811// Context sets the context to be used in this call's Do method. Any
24812// pending HTTP request will be aborted if the provided context is
24813// canceled.
24814func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
24815	c.ctx_ = ctx
24816	return c
24817}
24818
24819// Header returns an http.Header that can be modified by the caller to
24820// add HTTP headers to the request.
24821func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
24822	if c.header_ == nil {
24823		c.header_ = make(http.Header)
24824	}
24825	return c.header_
24826}
24827
24828func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
24829	reqHeaders := make(http.Header)
24830	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24831	for k, v := range c.header_ {
24832		reqHeaders[k] = v
24833	}
24834	reqHeaders.Set("User-Agent", c.s.userAgent())
24835	var body io.Reader = nil
24836	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
24837	if err != nil {
24838		return nil, err
24839	}
24840	reqHeaders.Set("Content-Type", "application/json")
24841	c.urlParams_.Set("alt", alt)
24842	c.urlParams_.Set("prettyPrint", "false")
24843	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
24844	urls += "?" + c.urlParams_.Encode()
24845	req, err := http.NewRequest("POST", urls, body)
24846	if err != nil {
24847		return nil, err
24848	}
24849	req.Header = reqHeaders
24850	googleapi.Expand(req.URL, map[string]string{
24851		"parent": c.parent,
24852	})
24853	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24854}
24855
24856// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
24857// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
24858// non-nil. Any non-2xx status code is an error. Response headers are in
24859// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
24860// a response was returned at all) in error.(*googleapi.Error).Header.
24861// Use googleapi.IsNotModified to check whether the returned error was
24862// because http.StatusNotModified was returned.
24863func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
24864	gensupport.SetOptions(c.urlParams_, opts...)
24865	res, err := c.doRequest("json")
24866	if res != nil && res.StatusCode == http.StatusNotModified {
24867		if res.Body != nil {
24868			res.Body.Close()
24869		}
24870		return nil, &googleapi.Error{
24871			Code:   res.StatusCode,
24872			Header: res.Header,
24873		}
24874	}
24875	if err != nil {
24876		return nil, err
24877	}
24878	defer googleapi.CloseBody(res)
24879	if err := googleapi.CheckResponse(res); err != nil {
24880		return nil, err
24881	}
24882	ret := &GoogleCloudApigeeV1DebugSession{
24883		ServerResponse: googleapi.ServerResponse{
24884			Header:         res.Header,
24885			HTTPStatusCode: res.StatusCode,
24886		},
24887	}
24888	target := &ret
24889	if err := gensupport.DecodeResponse(target, res); err != nil {
24890		return nil, err
24891	}
24892	return ret, nil
24893	// {
24894	//   "description": "Creates a debug session for a deployed API Proxy revision.",
24895	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
24896	//   "httpMethod": "POST",
24897	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.create",
24898	//   "parameterOrder": [
24899	//     "parent"
24900	//   ],
24901	//   "parameters": {
24902	//     "parent": {
24903	//       "description": "Required. The resource name of the API Proxy revision deployment for which to create the DebugSession. Must be of the form `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.",
24904	//       "location": "path",
24905	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
24906	//       "required": true,
24907	//       "type": "string"
24908	//     },
24909	//     "timeout": {
24910	//       "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.",
24911	//       "format": "int64",
24912	//       "location": "query",
24913	//       "type": "string"
24914	//     }
24915	//   },
24916	//   "path": "v1/{+parent}/debugsessions",
24917	//   "request": {
24918	//     "$ref": "GoogleCloudApigeeV1DebugSession"
24919	//   },
24920	//   "response": {
24921	//     "$ref": "GoogleCloudApigeeV1DebugSession"
24922	//   },
24923	//   "scopes": [
24924	//     "https://www.googleapis.com/auth/cloud-platform"
24925	//   ]
24926	// }
24927
24928}
24929
24930// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData":
24931
24932type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
24933	s          *Service
24934	name       string
24935	urlParams_ gensupport.URLParams
24936	ctx_       context.Context
24937	header_    http.Header
24938}
24939
24940// DeleteData: Deletes the data from a debug session. This does not
24941// cancel the debug session or prevent further data from being collected
24942// if the session is still active in runtime pods.
24943func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
24944	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24945	c.name = name
24946	return c
24947}
24948
24949// Fields allows partial responses to be retrieved. See
24950// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24951// for more information.
24952func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
24953	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24954	return c
24955}
24956
24957// Context sets the context to be used in this call's Do method. Any
24958// pending HTTP request will be aborted if the provided context is
24959// canceled.
24960func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
24961	c.ctx_ = ctx
24962	return c
24963}
24964
24965// Header returns an http.Header that can be modified by the caller to
24966// add HTTP headers to the request.
24967func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
24968	if c.header_ == nil {
24969		c.header_ = make(http.Header)
24970	}
24971	return c.header_
24972}
24973
24974func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
24975	reqHeaders := make(http.Header)
24976	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24977	for k, v := range c.header_ {
24978		reqHeaders[k] = v
24979	}
24980	reqHeaders.Set("User-Agent", c.s.userAgent())
24981	var body io.Reader = nil
24982	c.urlParams_.Set("alt", alt)
24983	c.urlParams_.Set("prettyPrint", "false")
24984	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
24985	urls += "?" + c.urlParams_.Encode()
24986	req, err := http.NewRequest("DELETE", urls, body)
24987	if err != nil {
24988		return nil, err
24989	}
24990	req.Header = reqHeaders
24991	googleapi.Expand(req.URL, map[string]string{
24992		"name": c.name,
24993	})
24994	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24995}
24996
24997// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
24998// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
24999// non-2xx status code is an error. Response headers are in either
25000// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25001// returned at all) in error.(*googleapi.Error).Header. Use
25002// googleapi.IsNotModified to check whether the returned error was
25003// because http.StatusNotModified was returned.
25004func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25005	gensupport.SetOptions(c.urlParams_, opts...)
25006	res, err := c.doRequest("json")
25007	if res != nil && res.StatusCode == http.StatusNotModified {
25008		if res.Body != nil {
25009			res.Body.Close()
25010		}
25011		return nil, &googleapi.Error{
25012			Code:   res.StatusCode,
25013			Header: res.Header,
25014		}
25015	}
25016	if err != nil {
25017		return nil, err
25018	}
25019	defer googleapi.CloseBody(res)
25020	if err := googleapi.CheckResponse(res); err != nil {
25021		return nil, err
25022	}
25023	ret := &GoogleProtobufEmpty{
25024		ServerResponse: googleapi.ServerResponse{
25025			Header:         res.Header,
25026			HTTPStatusCode: res.StatusCode,
25027		},
25028	}
25029	target := &ret
25030	if err := gensupport.DecodeResponse(target, res); err != nil {
25031		return nil, err
25032	}
25033	return ret, nil
25034	// {
25035	//   "description": "Deletes the data from a debug session. This does not cancel the debug session or prevent further data from being collected if the session is still active in runtime pods.",
25036	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
25037	//   "httpMethod": "DELETE",
25038	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData",
25039	//   "parameterOrder": [
25040	//     "name"
25041	//   ],
25042	//   "parameters": {
25043	//     "name": {
25044	//       "description": "Required. The name of the debug session to delete. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{debugsession}`.",
25045	//       "location": "path",
25046	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
25047	//       "required": true,
25048	//       "type": "string"
25049	//     }
25050	//   },
25051	//   "path": "v1/{+name}/data",
25052	//   "response": {
25053	//     "$ref": "GoogleProtobufEmpty"
25054	//   },
25055	//   "scopes": [
25056	//     "https://www.googleapis.com/auth/cloud-platform"
25057	//   ]
25058	// }
25059
25060}
25061
25062// method id "apigee.organizations.environments.apis.revisions.debugsessions.get":
25063
25064type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
25065	s            *Service
25066	name         string
25067	urlParams_   gensupport.URLParams
25068	ifNoneMatch_ string
25069	ctx_         context.Context
25070	header_      http.Header
25071}
25072
25073// Get: Retrieves a debug session.
25074func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
25075	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25076	c.name = name
25077	return c
25078}
25079
25080// Fields allows partial responses to be retrieved. See
25081// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25082// for more information.
25083func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
25084	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25085	return c
25086}
25087
25088// IfNoneMatch sets the optional parameter which makes the operation
25089// fail if the object's ETag matches the given value. This is useful for
25090// getting updates only after the object has changed since the last
25091// request. Use googleapi.IsNotModified to check whether the response
25092// error from Do is the result of In-None-Match.
25093func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
25094	c.ifNoneMatch_ = entityTag
25095	return c
25096}
25097
25098// Context sets the context to be used in this call's Do method. Any
25099// pending HTTP request will be aborted if the provided context is
25100// canceled.
25101func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
25102	c.ctx_ = ctx
25103	return c
25104}
25105
25106// Header returns an http.Header that can be modified by the caller to
25107// add HTTP headers to the request.
25108func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
25109	if c.header_ == nil {
25110		c.header_ = make(http.Header)
25111	}
25112	return c.header_
25113}
25114
25115func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
25116	reqHeaders := make(http.Header)
25117	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25118	for k, v := range c.header_ {
25119		reqHeaders[k] = v
25120	}
25121	reqHeaders.Set("User-Agent", c.s.userAgent())
25122	if c.ifNoneMatch_ != "" {
25123		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25124	}
25125	var body io.Reader = nil
25126	c.urlParams_.Set("alt", alt)
25127	c.urlParams_.Set("prettyPrint", "false")
25128	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25129	urls += "?" + c.urlParams_.Encode()
25130	req, err := http.NewRequest("GET", urls, body)
25131	if err != nil {
25132		return nil, err
25133	}
25134	req.Header = reqHeaders
25135	googleapi.Expand(req.URL, map[string]string{
25136		"name": c.name,
25137	})
25138	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25139}
25140
25141// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call.
25142// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
25143// non-nil. Any non-2xx status code is an error. Response headers are in
25144// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
25145// a response was returned at all) in error.(*googleapi.Error).Header.
25146// Use googleapi.IsNotModified to check whether the returned error was
25147// because http.StatusNotModified was returned.
25148func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
25149	gensupport.SetOptions(c.urlParams_, opts...)
25150	res, err := c.doRequest("json")
25151	if res != nil && res.StatusCode == http.StatusNotModified {
25152		if res.Body != nil {
25153			res.Body.Close()
25154		}
25155		return nil, &googleapi.Error{
25156			Code:   res.StatusCode,
25157			Header: res.Header,
25158		}
25159	}
25160	if err != nil {
25161		return nil, err
25162	}
25163	defer googleapi.CloseBody(res)
25164	if err := googleapi.CheckResponse(res); err != nil {
25165		return nil, err
25166	}
25167	ret := &GoogleCloudApigeeV1DebugSession{
25168		ServerResponse: googleapi.ServerResponse{
25169			Header:         res.Header,
25170			HTTPStatusCode: res.StatusCode,
25171		},
25172	}
25173	target := &ret
25174	if err := gensupport.DecodeResponse(target, res); err != nil {
25175		return nil, err
25176	}
25177	return ret, nil
25178	// {
25179	//   "description": "Retrieves a debug session.",
25180	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}",
25181	//   "httpMethod": "GET",
25182	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.get",
25183	//   "parameterOrder": [
25184	//     "name"
25185	//   ],
25186	//   "parameters": {
25187	//     "name": {
25188	//       "description": "Required. The name of the debug session to retrieve. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}`.",
25189	//       "location": "path",
25190	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
25191	//       "required": true,
25192	//       "type": "string"
25193	//     }
25194	//   },
25195	//   "path": "v1/{+name}",
25196	//   "response": {
25197	//     "$ref": "GoogleCloudApigeeV1DebugSession"
25198	//   },
25199	//   "scopes": [
25200	//     "https://www.googleapis.com/auth/cloud-platform"
25201	//   ]
25202	// }
25203
25204}
25205
25206// method id "apigee.organizations.environments.apis.revisions.debugsessions.list":
25207
25208type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
25209	s            *Service
25210	parent       string
25211	urlParams_   gensupport.URLParams
25212	ifNoneMatch_ string
25213	ctx_         context.Context
25214	header_      http.Header
25215}
25216
25217// List: Lists debug sessions that are currently active in the given API
25218// Proxy revision.
25219func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
25220	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25221	c.parent = parent
25222	return c
25223}
25224
25225// PageSize sets the optional parameter "pageSize": Maximum number of
25226// debug sessions to return. The page size defaults to 25.
25227func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
25228	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25229	return c
25230}
25231
25232// PageToken sets the optional parameter "pageToken": Page token,
25233// returned from a previous ListDebugSessions call, that you can use to
25234// retrieve the next page.
25235func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
25236	c.urlParams_.Set("pageToken", pageToken)
25237	return c
25238}
25239
25240// Fields allows partial responses to be retrieved. See
25241// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25242// for more information.
25243func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
25244	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25245	return c
25246}
25247
25248// IfNoneMatch sets the optional parameter which makes the operation
25249// fail if the object's ETag matches the given value. This is useful for
25250// getting updates only after the object has changed since the last
25251// request. Use googleapi.IsNotModified to check whether the response
25252// error from Do is the result of In-None-Match.
25253func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
25254	c.ifNoneMatch_ = entityTag
25255	return c
25256}
25257
25258// Context sets the context to be used in this call's Do method. Any
25259// pending HTTP request will be aborted if the provided context is
25260// canceled.
25261func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
25262	c.ctx_ = ctx
25263	return c
25264}
25265
25266// Header returns an http.Header that can be modified by the caller to
25267// add HTTP headers to the request.
25268func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
25269	if c.header_ == nil {
25270		c.header_ = make(http.Header)
25271	}
25272	return c.header_
25273}
25274
25275func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
25276	reqHeaders := make(http.Header)
25277	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25278	for k, v := range c.header_ {
25279		reqHeaders[k] = v
25280	}
25281	reqHeaders.Set("User-Agent", c.s.userAgent())
25282	if c.ifNoneMatch_ != "" {
25283		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25284	}
25285	var body io.Reader = nil
25286	c.urlParams_.Set("alt", alt)
25287	c.urlParams_.Set("prettyPrint", "false")
25288	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
25289	urls += "?" + c.urlParams_.Encode()
25290	req, err := http.NewRequest("GET", urls, body)
25291	if err != nil {
25292		return nil, err
25293	}
25294	req.Header = reqHeaders
25295	googleapi.Expand(req.URL, map[string]string{
25296		"parent": c.parent,
25297	})
25298	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25299}
25300
25301// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
25302// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error
25303// will be non-nil. Any non-2xx status code is an error. Response
25304// headers are in either
25305// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header
25306// or (if a response was returned at all) in
25307// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25308// whether the returned error was because http.StatusNotModified was
25309// returned.
25310func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
25311	gensupport.SetOptions(c.urlParams_, opts...)
25312	res, err := c.doRequest("json")
25313	if res != nil && res.StatusCode == http.StatusNotModified {
25314		if res.Body != nil {
25315			res.Body.Close()
25316		}
25317		return nil, &googleapi.Error{
25318			Code:   res.StatusCode,
25319			Header: res.Header,
25320		}
25321	}
25322	if err != nil {
25323		return nil, err
25324	}
25325	defer googleapi.CloseBody(res)
25326	if err := googleapi.CheckResponse(res); err != nil {
25327		return nil, err
25328	}
25329	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
25330		ServerResponse: googleapi.ServerResponse{
25331			Header:         res.Header,
25332			HTTPStatusCode: res.StatusCode,
25333		},
25334	}
25335	target := &ret
25336	if err := gensupport.DecodeResponse(target, res); err != nil {
25337		return nil, err
25338	}
25339	return ret, nil
25340	// {
25341	//   "description": "Lists debug sessions that are currently active in the given API Proxy revision.",
25342	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
25343	//   "httpMethod": "GET",
25344	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.list",
25345	//   "parameterOrder": [
25346	//     "parent"
25347	//   ],
25348	//   "parameters": {
25349	//     "pageSize": {
25350	//       "description": "Maximum number of debug sessions to return. The page size defaults to 25.",
25351	//       "format": "int32",
25352	//       "location": "query",
25353	//       "type": "integer"
25354	//     },
25355	//     "pageToken": {
25356	//       "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.",
25357	//       "location": "query",
25358	//       "type": "string"
25359	//     },
25360	//     "parent": {
25361	//       "description": "Required. The name of the API Proxy revision deployment for which to list debug sessions. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.",
25362	//       "location": "path",
25363	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
25364	//       "required": true,
25365	//       "type": "string"
25366	//     }
25367	//   },
25368	//   "path": "v1/{+parent}/debugsessions",
25369	//   "response": {
25370	//     "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse"
25371	//   },
25372	//   "scopes": [
25373	//     "https://www.googleapis.com/auth/cloud-platform"
25374	//   ]
25375	// }
25376
25377}
25378
25379// Pages invokes f for each page of results.
25380// A non-nil error returned from f will halt the iteration.
25381// The provided context supersedes any context provided to the Context method.
25382func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
25383	c.ctx_ = ctx
25384	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
25385	for {
25386		x, err := c.Do()
25387		if err != nil {
25388			return err
25389		}
25390		if err := f(x); err != nil {
25391			return err
25392		}
25393		if x.NextPageToken == "" {
25394			return nil
25395		}
25396		c.PageToken(x.NextPageToken)
25397	}
25398}
25399
25400// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get":
25401
25402type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
25403	s            *Service
25404	name         string
25405	urlParams_   gensupport.URLParams
25406	ifNoneMatch_ string
25407	ctx_         context.Context
25408	header_      http.Header
25409}
25410
25411// Get: Gets the debug data from a transaction.
25412func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
25413	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25414	c.name = name
25415	return c
25416}
25417
25418// Fields allows partial responses to be retrieved. See
25419// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25420// for more information.
25421func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
25422	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25423	return c
25424}
25425
25426// IfNoneMatch sets the optional parameter which makes the operation
25427// fail if the object's ETag matches the given value. This is useful for
25428// getting updates only after the object has changed since the last
25429// request. Use googleapi.IsNotModified to check whether the response
25430// error from Do is the result of In-None-Match.
25431func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
25432	c.ifNoneMatch_ = entityTag
25433	return c
25434}
25435
25436// Context sets the context to be used in this call's Do method. Any
25437// pending HTTP request will be aborted if the provided context is
25438// canceled.
25439func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
25440	c.ctx_ = ctx
25441	return c
25442}
25443
25444// Header returns an http.Header that can be modified by the caller to
25445// add HTTP headers to the request.
25446func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
25447	if c.header_ == nil {
25448		c.header_ = make(http.Header)
25449	}
25450	return c.header_
25451}
25452
25453func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
25454	reqHeaders := make(http.Header)
25455	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25456	for k, v := range c.header_ {
25457		reqHeaders[k] = v
25458	}
25459	reqHeaders.Set("User-Agent", c.s.userAgent())
25460	if c.ifNoneMatch_ != "" {
25461		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25462	}
25463	var body io.Reader = nil
25464	c.urlParams_.Set("alt", alt)
25465	c.urlParams_.Set("prettyPrint", "false")
25466	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25467	urls += "?" + c.urlParams_.Encode()
25468	req, err := http.NewRequest("GET", urls, body)
25469	if err != nil {
25470		return nil, err
25471	}
25472	req.Header = reqHeaders
25473	googleapi.Expand(req.URL, map[string]string{
25474		"name": c.name,
25475	})
25476	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25477}
25478
25479// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
25480// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error
25481// will be non-nil. Any non-2xx status code is an error. Response
25482// headers are in either
25483// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or
25484// (if a response was returned at all) in
25485// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25486// whether the returned error was because http.StatusNotModified was
25487// returned.
25488func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
25489	gensupport.SetOptions(c.urlParams_, opts...)
25490	res, err := c.doRequest("json")
25491	if res != nil && res.StatusCode == http.StatusNotModified {
25492		if res.Body != nil {
25493			res.Body.Close()
25494		}
25495		return nil, &googleapi.Error{
25496			Code:   res.StatusCode,
25497			Header: res.Header,
25498		}
25499	}
25500	if err != nil {
25501		return nil, err
25502	}
25503	defer googleapi.CloseBody(res)
25504	if err := googleapi.CheckResponse(res); err != nil {
25505		return nil, err
25506	}
25507	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
25508		ServerResponse: googleapi.ServerResponse{
25509			Header:         res.Header,
25510			HTTPStatusCode: res.StatusCode,
25511		},
25512	}
25513	target := &ret
25514	if err := gensupport.DecodeResponse(target, res); err != nil {
25515		return nil, err
25516	}
25517	return ret, nil
25518	// {
25519	//   "description": "Gets the debug data from a transaction.",
25520	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}",
25521	//   "httpMethod": "GET",
25522	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get",
25523	//   "parameterOrder": [
25524	//     "name"
25525	//   ],
25526	//   "parameters": {
25527	//     "name": {
25528	//       "description": "Required. The name of the debug session transaction. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}/data/{transaction}`.",
25529	//       "location": "path",
25530	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$",
25531	//       "required": true,
25532	//       "type": "string"
25533	//     }
25534	//   },
25535	//   "path": "v1/{+name}",
25536	//   "response": {
25537	//     "$ref": "GoogleCloudApigeeV1DebugSessionTransaction"
25538	//   },
25539	//   "scopes": [
25540	//     "https://www.googleapis.com/auth/cloud-platform"
25541	//   ]
25542	// }
25543
25544}
25545
25546// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport":
25547
25548type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
25549	s          *Service
25550	name       string
25551	urlParams_ gensupport.URLParams
25552	ctx_       context.Context
25553	header_    http.Header
25554}
25555
25556// GenerateDeployChangeReport: Generates a report for a dry run analysis
25557// of a DeployApiProxy request without committing the deployment. In
25558// addition to the standard validations performed when adding
25559// deployments, additional analysis will be done to detect possible
25560// traffic routing changes that would result from this deployment being
25561// created. Any potential routing conflicts or unsafe changes will be
25562// reported in the response. This routing analysis is not performed for
25563// a non-dry-run DeployApiProxy request. For a request path
25564// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
25565// loyments:generateDeployChangeReport`, two permissions are required: *
25566// `apigee.deployments.create` on the resource
25567// `organizations/{org}/environments/{env}` *
25568// `apigee.proxyrevisions.deploy` on the resource
25569// `organizations/{org}/apis/{api}/revisions/{rev}`
25570func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
25571	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25572	c.name = name
25573	return c
25574}
25575
25576// Override sets the optional parameter "override": Flag that specifies
25577// whether to force the deployment of the new revision over the
25578// currently deployed revision by overriding conflict checks.
25579func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
25580	c.urlParams_.Set("override", fmt.Sprint(override))
25581	return c
25582}
25583
25584// Fields allows partial responses to be retrieved. See
25585// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25586// for more information.
25587func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
25588	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25589	return c
25590}
25591
25592// Context sets the context to be used in this call's Do method. Any
25593// pending HTTP request will be aborted if the provided context is
25594// canceled.
25595func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
25596	c.ctx_ = ctx
25597	return c
25598}
25599
25600// Header returns an http.Header that can be modified by the caller to
25601// add HTTP headers to the request.
25602func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
25603	if c.header_ == nil {
25604		c.header_ = make(http.Header)
25605	}
25606	return c.header_
25607}
25608
25609func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
25610	reqHeaders := make(http.Header)
25611	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25612	for k, v := range c.header_ {
25613		reqHeaders[k] = v
25614	}
25615	reqHeaders.Set("User-Agent", c.s.userAgent())
25616	var body io.Reader = nil
25617	c.urlParams_.Set("alt", alt)
25618	c.urlParams_.Set("prettyPrint", "false")
25619	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
25620	urls += "?" + c.urlParams_.Encode()
25621	req, err := http.NewRequest("POST", urls, body)
25622	if err != nil {
25623		return nil, err
25624	}
25625	req.Header = reqHeaders
25626	googleapi.Expand(req.URL, map[string]string{
25627		"name": c.name,
25628	})
25629	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25630}
25631
25632// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call.
25633// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
25634// will be non-nil. Any non-2xx status code is an error. Response
25635// headers are in either
25636// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
25637// (if a response was returned at all) in
25638// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25639// whether the returned error was because http.StatusNotModified was
25640// returned.
25641func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
25642	gensupport.SetOptions(c.urlParams_, opts...)
25643	res, err := c.doRequest("json")
25644	if res != nil && res.StatusCode == http.StatusNotModified {
25645		if res.Body != nil {
25646			res.Body.Close()
25647		}
25648		return nil, &googleapi.Error{
25649			Code:   res.StatusCode,
25650			Header: res.Header,
25651		}
25652	}
25653	if err != nil {
25654		return nil, err
25655	}
25656	defer googleapi.CloseBody(res)
25657	if err := googleapi.CheckResponse(res); err != nil {
25658		return nil, err
25659	}
25660	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
25661		ServerResponse: googleapi.ServerResponse{
25662			Header:         res.Header,
25663			HTTPStatusCode: res.StatusCode,
25664		},
25665	}
25666	target := &ret
25667	if err := gensupport.DecodeResponse(target, res); err != nil {
25668		return nil, err
25669	}
25670	return ret, nil
25671	// {
25672	//   "description": "Generates a report for a dry run analysis of a DeployApiProxy request without committing the deployment. In addition to the standard validations performed when adding deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being created. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run DeployApiProxy request. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateDeployChangeReport`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.deploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`",
25673	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport",
25674	//   "httpMethod": "POST",
25675	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport",
25676	//   "parameterOrder": [
25677	//     "name"
25678	//   ],
25679	//   "parameters": {
25680	//     "name": {
25681	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
25682	//       "location": "path",
25683	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
25684	//       "required": true,
25685	//       "type": "string"
25686	//     },
25687	//     "override": {
25688	//       "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.",
25689	//       "location": "query",
25690	//       "type": "boolean"
25691	//     }
25692	//   },
25693	//   "path": "v1/{+name}/deployments:generateDeployChangeReport",
25694	//   "response": {
25695	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
25696	//   },
25697	//   "scopes": [
25698	//     "https://www.googleapis.com/auth/cloud-platform"
25699	//   ]
25700	// }
25701
25702}
25703
25704// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport":
25705
25706type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
25707	s          *Service
25708	name       string
25709	urlParams_ gensupport.URLParams
25710	ctx_       context.Context
25711	header_    http.Header
25712}
25713
25714// GenerateUndeployChangeReport: Generates a report for a dry run
25715// analysis of an UndeployApiProxy request without committing the
25716// undeploy. In addition to the standard validations performed when
25717// removing deployments, additional analysis will be done to detect
25718// possible traffic routing changes that would result from this
25719// deployment being removed. Any potential routing conflicts or unsafe
25720// changes will be reported in the response. This routing analysis is
25721// not performed for a non-dry-run UndeployApiProxy request. For a
25722// request path
25723// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
25724// loyments:generateUndeployChangeReport`, two permissions are required:
25725// * `apigee.deployments.delete` on the resource
25726// `organizations/{org}/environments/{env}` *
25727// `apigee.proxyrevisions.undeploy` on the resource
25728// `organizations/{org}/apis/{api}/revisions/{rev}`
25729func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
25730	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25731	c.name = name
25732	return c
25733}
25734
25735// Fields allows partial responses to be retrieved. See
25736// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25737// for more information.
25738func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
25739	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25740	return c
25741}
25742
25743// Context sets the context to be used in this call's Do method. Any
25744// pending HTTP request will be aborted if the provided context is
25745// canceled.
25746func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
25747	c.ctx_ = ctx
25748	return c
25749}
25750
25751// Header returns an http.Header that can be modified by the caller to
25752// add HTTP headers to the request.
25753func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
25754	if c.header_ == nil {
25755		c.header_ = make(http.Header)
25756	}
25757	return c.header_
25758}
25759
25760func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
25761	reqHeaders := make(http.Header)
25762	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25763	for k, v := range c.header_ {
25764		reqHeaders[k] = v
25765	}
25766	reqHeaders.Set("User-Agent", c.s.userAgent())
25767	var body io.Reader = nil
25768	c.urlParams_.Set("alt", alt)
25769	c.urlParams_.Set("prettyPrint", "false")
25770	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
25771	urls += "?" + c.urlParams_.Encode()
25772	req, err := http.NewRequest("POST", urls, body)
25773	if err != nil {
25774		return nil, err
25775	}
25776	req.Header = reqHeaders
25777	googleapi.Expand(req.URL, map[string]string{
25778		"name": c.name,
25779	})
25780	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25781}
25782
25783// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call.
25784// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
25785// will be non-nil. Any non-2xx status code is an error. Response
25786// headers are in either
25787// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
25788// (if a response was returned at all) in
25789// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25790// whether the returned error was because http.StatusNotModified was
25791// returned.
25792func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
25793	gensupport.SetOptions(c.urlParams_, opts...)
25794	res, err := c.doRequest("json")
25795	if res != nil && res.StatusCode == http.StatusNotModified {
25796		if res.Body != nil {
25797			res.Body.Close()
25798		}
25799		return nil, &googleapi.Error{
25800			Code:   res.StatusCode,
25801			Header: res.Header,
25802		}
25803	}
25804	if err != nil {
25805		return nil, err
25806	}
25807	defer googleapi.CloseBody(res)
25808	if err := googleapi.CheckResponse(res); err != nil {
25809		return nil, err
25810	}
25811	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
25812		ServerResponse: googleapi.ServerResponse{
25813			Header:         res.Header,
25814			HTTPStatusCode: res.StatusCode,
25815		},
25816	}
25817	target := &ret
25818	if err := gensupport.DecodeResponse(target, res); err != nil {
25819		return nil, err
25820	}
25821	return ret, nil
25822	// {
25823	//   "description": "Generates a report for a dry run analysis of an UndeployApiProxy request without committing the undeploy. In addition to the standard validations performed when removing deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being removed. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run UndeployApiProxy request. For a request path `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateUndeployChangeReport`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.proxyrevisions.undeploy` on the resource `organizations/{org}/apis/{api}/revisions/{rev}`",
25824	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport",
25825	//   "httpMethod": "POST",
25826	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport",
25827	//   "parameterOrder": [
25828	//     "name"
25829	//   ],
25830	//   "parameters": {
25831	//     "name": {
25832	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
25833	//       "location": "path",
25834	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
25835	//       "required": true,
25836	//       "type": "string"
25837	//     }
25838	//   },
25839	//   "path": "v1/{+name}/deployments:generateUndeployChangeReport",
25840	//   "response": {
25841	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
25842	//   },
25843	//   "scopes": [
25844	//     "https://www.googleapis.com/auth/cloud-platform"
25845	//   ]
25846	// }
25847
25848}
25849
25850// method id "apigee.organizations.environments.caches.delete":
25851
25852type OrganizationsEnvironmentsCachesDeleteCall struct {
25853	s          *Service
25854	name       string
25855	urlParams_ gensupport.URLParams
25856	ctx_       context.Context
25857	header_    http.Header
25858}
25859
25860// Delete: Deletes a cache.
25861func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
25862	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25863	c.name = name
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
25869// for more information.
25870func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
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. Any
25876// pending HTTP request will be aborted if the provided context is
25877// canceled.
25878func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
25879	c.ctx_ = ctx
25880	return c
25881}
25882
25883// Header returns an http.Header that can be modified by the caller to
25884// add HTTP headers to the request.
25885func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
25886	if c.header_ == nil {
25887		c.header_ = make(http.Header)
25888	}
25889	return c.header_
25890}
25891
25892func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
25893	reqHeaders := make(http.Header)
25894	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25895	for k, v := range c.header_ {
25896		reqHeaders[k] = v
25897	}
25898	reqHeaders.Set("User-Agent", c.s.userAgent())
25899	var body io.Reader = nil
25900	c.urlParams_.Set("alt", alt)
25901	c.urlParams_.Set("prettyPrint", "false")
25902	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25903	urls += "?" + c.urlParams_.Encode()
25904	req, err := http.NewRequest("DELETE", urls, body)
25905	if err != nil {
25906		return nil, err
25907	}
25908	req.Header = reqHeaders
25909	googleapi.Expand(req.URL, map[string]string{
25910		"name": c.name,
25911	})
25912	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25913}
25914
25915// Do executes the "apigee.organizations.environments.caches.delete" call.
25916// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
25917// non-2xx status code is an error. Response headers are in either
25918// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25919// returned at all) in error.(*googleapi.Error).Header. Use
25920// googleapi.IsNotModified to check whether the returned error was
25921// because http.StatusNotModified was returned.
25922func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25923	gensupport.SetOptions(c.urlParams_, opts...)
25924	res, err := c.doRequest("json")
25925	if res != nil && res.StatusCode == http.StatusNotModified {
25926		if res.Body != nil {
25927			res.Body.Close()
25928		}
25929		return nil, &googleapi.Error{
25930			Code:   res.StatusCode,
25931			Header: res.Header,
25932		}
25933	}
25934	if err != nil {
25935		return nil, err
25936	}
25937	defer googleapi.CloseBody(res)
25938	if err := googleapi.CheckResponse(res); err != nil {
25939		return nil, err
25940	}
25941	ret := &GoogleProtobufEmpty{
25942		ServerResponse: googleapi.ServerResponse{
25943			Header:         res.Header,
25944			HTTPStatusCode: res.StatusCode,
25945		},
25946	}
25947	target := &ret
25948	if err := gensupport.DecodeResponse(target, res); err != nil {
25949		return nil, err
25950	}
25951	return ret, nil
25952	// {
25953	//   "description": "Deletes a cache.",
25954	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}",
25955	//   "httpMethod": "DELETE",
25956	//   "id": "apigee.organizations.environments.caches.delete",
25957	//   "parameterOrder": [
25958	//     "name"
25959	//   ],
25960	//   "parameters": {
25961	//     "name": {
25962	//       "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`",
25963	//       "location": "path",
25964	//       "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$",
25965	//       "required": true,
25966	//       "type": "string"
25967	//     }
25968	//   },
25969	//   "path": "v1/{+name}",
25970	//   "response": {
25971	//     "$ref": "GoogleProtobufEmpty"
25972	//   },
25973	//   "scopes": [
25974	//     "https://www.googleapis.com/auth/cloud-platform"
25975	//   ]
25976	// }
25977
25978}
25979
25980// method id "apigee.organizations.environments.deployments.list":
25981
25982type OrganizationsEnvironmentsDeploymentsListCall struct {
25983	s            *Service
25984	parent       string
25985	urlParams_   gensupport.URLParams
25986	ifNoneMatch_ string
25987	ctx_         context.Context
25988	header_      http.Header
25989}
25990
25991// List: Lists all deployments of API proxies or shared flows in an
25992// environment.
25993func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
25994	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25995	c.parent = parent
25996	return c
25997}
25998
25999// SharedFlows sets the optional parameter "sharedFlows": Flag that
26000// specifies whether to return shared flow or API proxy deployments. Set
26001// to `true` to return shared flow deployments; set to `false` to return
26002// API proxy deployments. Defaults to `false`.
26003func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
26004	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
26005	return c
26006}
26007
26008// Fields allows partial responses to be retrieved. See
26009// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26010// for more information.
26011func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
26012	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26013	return c
26014}
26015
26016// IfNoneMatch sets the optional parameter which makes the operation
26017// fail if the object's ETag matches the given value. This is useful for
26018// getting updates only after the object has changed since the last
26019// request. Use googleapi.IsNotModified to check whether the response
26020// error from Do is the result of In-None-Match.
26021func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
26022	c.ifNoneMatch_ = entityTag
26023	return c
26024}
26025
26026// Context sets the context to be used in this call's Do method. Any
26027// pending HTTP request will be aborted if the provided context is
26028// canceled.
26029func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
26030	c.ctx_ = ctx
26031	return c
26032}
26033
26034// Header returns an http.Header that can be modified by the caller to
26035// add HTTP headers to the request.
26036func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
26037	if c.header_ == nil {
26038		c.header_ = make(http.Header)
26039	}
26040	return c.header_
26041}
26042
26043func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
26044	reqHeaders := make(http.Header)
26045	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26046	for k, v := range c.header_ {
26047		reqHeaders[k] = v
26048	}
26049	reqHeaders.Set("User-Agent", c.s.userAgent())
26050	if c.ifNoneMatch_ != "" {
26051		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26052	}
26053	var body io.Reader = nil
26054	c.urlParams_.Set("alt", alt)
26055	c.urlParams_.Set("prettyPrint", "false")
26056	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
26057	urls += "?" + c.urlParams_.Encode()
26058	req, err := http.NewRequest("GET", urls, body)
26059	if err != nil {
26060		return nil, err
26061	}
26062	req.Header = reqHeaders
26063	googleapi.Expand(req.URL, map[string]string{
26064		"parent": c.parent,
26065	})
26066	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26067}
26068
26069// Do executes the "apigee.organizations.environments.deployments.list" call.
26070// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
26071// will be non-nil. Any non-2xx status code is an error. Response
26072// headers are in either
26073// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
26074// (if a response was returned at all) in
26075// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26076// whether the returned error was because http.StatusNotModified was
26077// returned.
26078func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
26079	gensupport.SetOptions(c.urlParams_, opts...)
26080	res, err := c.doRequest("json")
26081	if res != nil && res.StatusCode == http.StatusNotModified {
26082		if res.Body != nil {
26083			res.Body.Close()
26084		}
26085		return nil, &googleapi.Error{
26086			Code:   res.StatusCode,
26087			Header: res.Header,
26088		}
26089	}
26090	if err != nil {
26091		return nil, err
26092	}
26093	defer googleapi.CloseBody(res)
26094	if err := googleapi.CheckResponse(res); err != nil {
26095		return nil, err
26096	}
26097	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
26098		ServerResponse: googleapi.ServerResponse{
26099			Header:         res.Header,
26100			HTTPStatusCode: res.StatusCode,
26101		},
26102	}
26103	target := &ret
26104	if err := gensupport.DecodeResponse(target, res); err != nil {
26105		return nil, err
26106	}
26107	return ret, nil
26108	// {
26109	//   "description": "Lists all deployments of API proxies or shared flows in an environment.",
26110	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments",
26111	//   "httpMethod": "GET",
26112	//   "id": "apigee.organizations.environments.deployments.list",
26113	//   "parameterOrder": [
26114	//     "parent"
26115	//   ],
26116	//   "parameters": {
26117	//     "parent": {
26118	//       "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`",
26119	//       "location": "path",
26120	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26121	//       "required": true,
26122	//       "type": "string"
26123	//     },
26124	//     "sharedFlows": {
26125	//       "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments. Set to `true` to return shared flow deployments; set to `false` to return API proxy deployments. Defaults to `false`.",
26126	//       "location": "query",
26127	//       "type": "boolean"
26128	//     }
26129	//   },
26130	//   "path": "v1/{+parent}/deployments",
26131	//   "response": {
26132	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
26133	//   },
26134	//   "scopes": [
26135	//     "https://www.googleapis.com/auth/cloud-platform"
26136	//   ]
26137	// }
26138
26139}
26140
26141// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook":
26142
26143type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
26144	s                           *Service
26145	name                        string
26146	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
26147	urlParams_                  gensupport.URLParams
26148	ctx_                        context.Context
26149	header_                     http.Header
26150}
26151
26152// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
26153func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
26154	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26155	c.name = name
26156	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
26157	return c
26158}
26159
26160// Fields allows partial responses to be retrieved. See
26161// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26162// for more information.
26163func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
26164	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26165	return c
26166}
26167
26168// Context sets the context to be used in this call's Do method. Any
26169// pending HTTP request will be aborted if the provided context is
26170// canceled.
26171func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
26172	c.ctx_ = ctx
26173	return c
26174}
26175
26176// Header returns an http.Header that can be modified by the caller to
26177// add HTTP headers to the request.
26178func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
26179	if c.header_ == nil {
26180		c.header_ = make(http.Header)
26181	}
26182	return c.header_
26183}
26184
26185func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
26186	reqHeaders := make(http.Header)
26187	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26188	for k, v := range c.header_ {
26189		reqHeaders[k] = v
26190	}
26191	reqHeaders.Set("User-Agent", c.s.userAgent())
26192	var body io.Reader = nil
26193	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
26194	if err != nil {
26195		return nil, err
26196	}
26197	reqHeaders.Set("Content-Type", "application/json")
26198	c.urlParams_.Set("alt", alt)
26199	c.urlParams_.Set("prettyPrint", "false")
26200	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26201	urls += "?" + c.urlParams_.Encode()
26202	req, err := http.NewRequest("PUT", urls, body)
26203	if err != nil {
26204		return nil, err
26205	}
26206	req.Header = reqHeaders
26207	googleapi.Expand(req.URL, map[string]string{
26208		"name": c.name,
26209	})
26210	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26211}
26212
26213// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
26214// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
26215// Any non-2xx status code is an error. Response headers are in either
26216// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
26217// was returned at all) in error.(*googleapi.Error).Header. Use
26218// googleapi.IsNotModified to check whether the returned error was
26219// because http.StatusNotModified was returned.
26220func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
26221	gensupport.SetOptions(c.urlParams_, opts...)
26222	res, err := c.doRequest("json")
26223	if res != nil && res.StatusCode == http.StatusNotModified {
26224		if res.Body != nil {
26225			res.Body.Close()
26226		}
26227		return nil, &googleapi.Error{
26228			Code:   res.StatusCode,
26229			Header: res.Header,
26230		}
26231	}
26232	if err != nil {
26233		return nil, err
26234	}
26235	defer googleapi.CloseBody(res)
26236	if err := googleapi.CheckResponse(res); err != nil {
26237		return nil, err
26238	}
26239	ret := &GoogleCloudApigeeV1FlowHook{
26240		ServerResponse: googleapi.ServerResponse{
26241			Header:         res.Header,
26242			HTTPStatusCode: res.StatusCode,
26243		},
26244	}
26245	target := &ret
26246	if err := gensupport.DecodeResponse(target, res); err != nil {
26247		return nil, err
26248	}
26249	return ret, nil
26250	// {
26251	//   "description": "Attaches a shared flow to a flow hook.",
26252	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
26253	//   "httpMethod": "PUT",
26254	//   "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook",
26255	//   "parameterOrder": [
26256	//     "name"
26257	//   ],
26258	//   "parameters": {
26259	//     "name": {
26260	//       "description": "Required. Name of the flow hook to which the shared flow should be attached in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
26261	//       "location": "path",
26262	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
26263	//       "required": true,
26264	//       "type": "string"
26265	//     }
26266	//   },
26267	//   "path": "v1/{+name}",
26268	//   "request": {
26269	//     "$ref": "GoogleCloudApigeeV1FlowHook"
26270	//   },
26271	//   "response": {
26272	//     "$ref": "GoogleCloudApigeeV1FlowHook"
26273	//   },
26274	//   "scopes": [
26275	//     "https://www.googleapis.com/auth/cloud-platform"
26276	//   ]
26277	// }
26278
26279}
26280
26281// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook":
26282
26283type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
26284	s          *Service
26285	name       string
26286	urlParams_ gensupport.URLParams
26287	ctx_       context.Context
26288	header_    http.Header
26289}
26290
26291// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow
26292// hook.
26293func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
26294	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26295	c.name = name
26296	return c
26297}
26298
26299// Fields allows partial responses to be retrieved. See
26300// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26301// for more information.
26302func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
26303	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26304	return c
26305}
26306
26307// Context sets the context to be used in this call's Do method. Any
26308// pending HTTP request will be aborted if the provided context is
26309// canceled.
26310func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
26311	c.ctx_ = ctx
26312	return c
26313}
26314
26315// Header returns an http.Header that can be modified by the caller to
26316// add HTTP headers to the request.
26317func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
26318	if c.header_ == nil {
26319		c.header_ = make(http.Header)
26320	}
26321	return c.header_
26322}
26323
26324func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
26325	reqHeaders := make(http.Header)
26326	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26327	for k, v := range c.header_ {
26328		reqHeaders[k] = v
26329	}
26330	reqHeaders.Set("User-Agent", c.s.userAgent())
26331	var body io.Reader = nil
26332	c.urlParams_.Set("alt", alt)
26333	c.urlParams_.Set("prettyPrint", "false")
26334	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26335	urls += "?" + c.urlParams_.Encode()
26336	req, err := http.NewRequest("DELETE", urls, body)
26337	if err != nil {
26338		return nil, err
26339	}
26340	req.Header = reqHeaders
26341	googleapi.Expand(req.URL, map[string]string{
26342		"name": c.name,
26343	})
26344	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26345}
26346
26347// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
26348// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
26349// Any non-2xx status code is an error. Response headers are in either
26350// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
26351// was returned at all) in error.(*googleapi.Error).Header. Use
26352// googleapi.IsNotModified to check whether the returned error was
26353// because http.StatusNotModified was returned.
26354func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
26355	gensupport.SetOptions(c.urlParams_, opts...)
26356	res, err := c.doRequest("json")
26357	if res != nil && res.StatusCode == http.StatusNotModified {
26358		if res.Body != nil {
26359			res.Body.Close()
26360		}
26361		return nil, &googleapi.Error{
26362			Code:   res.StatusCode,
26363			Header: res.Header,
26364		}
26365	}
26366	if err != nil {
26367		return nil, err
26368	}
26369	defer googleapi.CloseBody(res)
26370	if err := googleapi.CheckResponse(res); err != nil {
26371		return nil, err
26372	}
26373	ret := &GoogleCloudApigeeV1FlowHook{
26374		ServerResponse: googleapi.ServerResponse{
26375			Header:         res.Header,
26376			HTTPStatusCode: res.StatusCode,
26377		},
26378	}
26379	target := &ret
26380	if err := gensupport.DecodeResponse(target, res); err != nil {
26381		return nil, err
26382	}
26383	return ret, nil
26384	// {
26385	//   "description": "Detaches a shared flow from a flow hook.",
26386	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
26387	//   "httpMethod": "DELETE",
26388	//   "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook",
26389	//   "parameterOrder": [
26390	//     "name"
26391	//   ],
26392	//   "parameters": {
26393	//     "name": {
26394	//       "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
26395	//       "location": "path",
26396	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
26397	//       "required": true,
26398	//       "type": "string"
26399	//     }
26400	//   },
26401	//   "path": "v1/{+name}",
26402	//   "response": {
26403	//     "$ref": "GoogleCloudApigeeV1FlowHook"
26404	//   },
26405	//   "scopes": [
26406	//     "https://www.googleapis.com/auth/cloud-platform"
26407	//   ]
26408	// }
26409
26410}
26411
26412// method id "apigee.organizations.environments.flowhooks.get":
26413
26414type OrganizationsEnvironmentsFlowhooksGetCall struct {
26415	s            *Service
26416	name         string
26417	urlParams_   gensupport.URLParams
26418	ifNoneMatch_ string
26419	ctx_         context.Context
26420	header_      http.Header
26421}
26422
26423// Get: Returns the name of the shared flow attached to the specified
26424// flow hook. If there's no shared flow attached to the flow hook, the
26425// API does not return an error; it simply does not return a name in the
26426// response.
26427func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
26428	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26429	c.name = name
26430	return c
26431}
26432
26433// Fields allows partial responses to be retrieved. See
26434// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26435// for more information.
26436func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
26437	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26438	return c
26439}
26440
26441// IfNoneMatch sets the optional parameter which makes the operation
26442// fail if the object's ETag matches the given value. This is useful for
26443// getting updates only after the object has changed since the last
26444// request. Use googleapi.IsNotModified to check whether the response
26445// error from Do is the result of In-None-Match.
26446func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
26447	c.ifNoneMatch_ = entityTag
26448	return c
26449}
26450
26451// Context sets the context to be used in this call's Do method. Any
26452// pending HTTP request will be aborted if the provided context is
26453// canceled.
26454func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
26455	c.ctx_ = ctx
26456	return c
26457}
26458
26459// Header returns an http.Header that can be modified by the caller to
26460// add HTTP headers to the request.
26461func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
26462	if c.header_ == nil {
26463		c.header_ = make(http.Header)
26464	}
26465	return c.header_
26466}
26467
26468func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
26469	reqHeaders := make(http.Header)
26470	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26471	for k, v := range c.header_ {
26472		reqHeaders[k] = v
26473	}
26474	reqHeaders.Set("User-Agent", c.s.userAgent())
26475	if c.ifNoneMatch_ != "" {
26476		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26477	}
26478	var body io.Reader = nil
26479	c.urlParams_.Set("alt", alt)
26480	c.urlParams_.Set("prettyPrint", "false")
26481	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26482	urls += "?" + c.urlParams_.Encode()
26483	req, err := http.NewRequest("GET", urls, body)
26484	if err != nil {
26485		return nil, err
26486	}
26487	req.Header = reqHeaders
26488	googleapi.Expand(req.URL, map[string]string{
26489		"name": c.name,
26490	})
26491	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26492}
26493
26494// Do executes the "apigee.organizations.environments.flowhooks.get" call.
26495// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
26496// Any non-2xx status code is an error. Response headers are in either
26497// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
26498// was returned at all) in error.(*googleapi.Error).Header. Use
26499// googleapi.IsNotModified to check whether the returned error was
26500// because http.StatusNotModified was returned.
26501func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
26502	gensupport.SetOptions(c.urlParams_, opts...)
26503	res, err := c.doRequest("json")
26504	if res != nil && res.StatusCode == http.StatusNotModified {
26505		if res.Body != nil {
26506			res.Body.Close()
26507		}
26508		return nil, &googleapi.Error{
26509			Code:   res.StatusCode,
26510			Header: res.Header,
26511		}
26512	}
26513	if err != nil {
26514		return nil, err
26515	}
26516	defer googleapi.CloseBody(res)
26517	if err := googleapi.CheckResponse(res); err != nil {
26518		return nil, err
26519	}
26520	ret := &GoogleCloudApigeeV1FlowHook{
26521		ServerResponse: googleapi.ServerResponse{
26522			Header:         res.Header,
26523			HTTPStatusCode: res.StatusCode,
26524		},
26525	}
26526	target := &ret
26527	if err := gensupport.DecodeResponse(target, res); err != nil {
26528		return nil, err
26529	}
26530	return ret, nil
26531	// {
26532	//   "description": "Returns the name of the shared flow attached to the specified flow hook. If there's no shared flow attached to the flow hook, the API does not return an error; it simply does not return a name in the response.",
26533	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
26534	//   "httpMethod": "GET",
26535	//   "id": "apigee.organizations.environments.flowhooks.get",
26536	//   "parameterOrder": [
26537	//     "name"
26538	//   ],
26539	//   "parameters": {
26540	//     "name": {
26541	//       "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
26542	//       "location": "path",
26543	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
26544	//       "required": true,
26545	//       "type": "string"
26546	//     }
26547	//   },
26548	//   "path": "v1/{+name}",
26549	//   "response": {
26550	//     "$ref": "GoogleCloudApigeeV1FlowHook"
26551	//   },
26552	//   "scopes": [
26553	//     "https://www.googleapis.com/auth/cloud-platform"
26554	//   ]
26555	// }
26556
26557}
26558
26559// method id "apigee.organizations.environments.keystores.create":
26560
26561type OrganizationsEnvironmentsKeystoresCreateCall struct {
26562	s                           *Service
26563	parent                      string
26564	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
26565	urlParams_                  gensupport.URLParams
26566	ctx_                        context.Context
26567	header_                     http.Header
26568}
26569
26570// Create: Creates a keystore or truststore. - Keystore: Contains
26571// certificates and their associated keys. - Truststore: Contains
26572// trusted certificates used to validate a server's certificate. These
26573// certificates are typically self-signed certificates or certificates
26574// that are not signed by a trusted CA.
26575func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
26576	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26577	c.parent = parent
26578	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
26579	return c
26580}
26581
26582// Name sets the optional parameter "name": Name of the keystore.
26583// Overrides the value in Keystore.
26584func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
26585	c.urlParams_.Set("name", name)
26586	return c
26587}
26588
26589// Fields allows partial responses to be retrieved. See
26590// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26591// for more information.
26592func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
26593	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26594	return c
26595}
26596
26597// Context sets the context to be used in this call's Do method. Any
26598// pending HTTP request will be aborted if the provided context is
26599// canceled.
26600func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
26601	c.ctx_ = ctx
26602	return c
26603}
26604
26605// Header returns an http.Header that can be modified by the caller to
26606// add HTTP headers to the request.
26607func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
26608	if c.header_ == nil {
26609		c.header_ = make(http.Header)
26610	}
26611	return c.header_
26612}
26613
26614func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
26615	reqHeaders := make(http.Header)
26616	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26617	for k, v := range c.header_ {
26618		reqHeaders[k] = v
26619	}
26620	reqHeaders.Set("User-Agent", c.s.userAgent())
26621	var body io.Reader = nil
26622	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
26623	if err != nil {
26624		return nil, err
26625	}
26626	reqHeaders.Set("Content-Type", "application/json")
26627	c.urlParams_.Set("alt", alt)
26628	c.urlParams_.Set("prettyPrint", "false")
26629	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
26630	urls += "?" + c.urlParams_.Encode()
26631	req, err := http.NewRequest("POST", urls, body)
26632	if err != nil {
26633		return nil, err
26634	}
26635	req.Header = reqHeaders
26636	googleapi.Expand(req.URL, map[string]string{
26637		"parent": c.parent,
26638	})
26639	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26640}
26641
26642// Do executes the "apigee.organizations.environments.keystores.create" call.
26643// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
26644// Any non-2xx status code is an error. Response headers are in either
26645// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
26646// was returned at all) in error.(*googleapi.Error).Header. Use
26647// googleapi.IsNotModified to check whether the returned error was
26648// because http.StatusNotModified was returned.
26649func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
26650	gensupport.SetOptions(c.urlParams_, opts...)
26651	res, err := c.doRequest("json")
26652	if res != nil && res.StatusCode == http.StatusNotModified {
26653		if res.Body != nil {
26654			res.Body.Close()
26655		}
26656		return nil, &googleapi.Error{
26657			Code:   res.StatusCode,
26658			Header: res.Header,
26659		}
26660	}
26661	if err != nil {
26662		return nil, err
26663	}
26664	defer googleapi.CloseBody(res)
26665	if err := googleapi.CheckResponse(res); err != nil {
26666		return nil, err
26667	}
26668	ret := &GoogleCloudApigeeV1Keystore{
26669		ServerResponse: googleapi.ServerResponse{
26670			Header:         res.Header,
26671			HTTPStatusCode: res.StatusCode,
26672		},
26673	}
26674	target := &ret
26675	if err := gensupport.DecodeResponse(target, res); err != nil {
26676		return nil, err
26677	}
26678	return ret, nil
26679	// {
26680	//   "description": "Creates a keystore or truststore. - Keystore: Contains certificates and their associated keys. - Truststore: Contains trusted certificates used to validate a server's certificate. These certificates are typically self-signed certificates or certificates that are not signed by a trusted CA.",
26681	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
26682	//   "httpMethod": "POST",
26683	//   "id": "apigee.organizations.environments.keystores.create",
26684	//   "parameterOrder": [
26685	//     "parent"
26686	//   ],
26687	//   "parameters": {
26688	//     "name": {
26689	//       "description": "Optional. Name of the keystore. Overrides the value in Keystore.",
26690	//       "location": "query",
26691	//       "type": "string"
26692	//     },
26693	//     "parent": {
26694	//       "description": "Required. Name of the environment in which to create the keystore. Use the following format in your request: `organizations/{org}/environments/{env}`",
26695	//       "location": "path",
26696	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26697	//       "required": true,
26698	//       "type": "string"
26699	//     }
26700	//   },
26701	//   "path": "v1/{+parent}/keystores",
26702	//   "request": {
26703	//     "$ref": "GoogleCloudApigeeV1Keystore"
26704	//   },
26705	//   "response": {
26706	//     "$ref": "GoogleCloudApigeeV1Keystore"
26707	//   },
26708	//   "scopes": [
26709	//     "https://www.googleapis.com/auth/cloud-platform"
26710	//   ]
26711	// }
26712
26713}
26714
26715// method id "apigee.organizations.environments.keystores.delete":
26716
26717type OrganizationsEnvironmentsKeystoresDeleteCall struct {
26718	s          *Service
26719	name       string
26720	urlParams_ gensupport.URLParams
26721	ctx_       context.Context
26722	header_    http.Header
26723}
26724
26725// Delete: Deletes a keystore or truststore.
26726func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
26727	c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26728	c.name = name
26729	return c
26730}
26731
26732// Fields allows partial responses to be retrieved. See
26733// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26734// for more information.
26735func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
26736	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26737	return c
26738}
26739
26740// Context sets the context to be used in this call's Do method. Any
26741// pending HTTP request will be aborted if the provided context is
26742// canceled.
26743func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
26744	c.ctx_ = ctx
26745	return c
26746}
26747
26748// Header returns an http.Header that can be modified by the caller to
26749// add HTTP headers to the request.
26750func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
26751	if c.header_ == nil {
26752		c.header_ = make(http.Header)
26753	}
26754	return c.header_
26755}
26756
26757func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
26758	reqHeaders := make(http.Header)
26759	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26760	for k, v := range c.header_ {
26761		reqHeaders[k] = v
26762	}
26763	reqHeaders.Set("User-Agent", c.s.userAgent())
26764	var body io.Reader = nil
26765	c.urlParams_.Set("alt", alt)
26766	c.urlParams_.Set("prettyPrint", "false")
26767	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26768	urls += "?" + c.urlParams_.Encode()
26769	req, err := http.NewRequest("DELETE", urls, body)
26770	if err != nil {
26771		return nil, err
26772	}
26773	req.Header = reqHeaders
26774	googleapi.Expand(req.URL, map[string]string{
26775		"name": c.name,
26776	})
26777	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26778}
26779
26780// Do executes the "apigee.organizations.environments.keystores.delete" call.
26781// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
26782// Any non-2xx status code is an error. Response headers are in either
26783// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
26784// was returned at all) in error.(*googleapi.Error).Header. Use
26785// googleapi.IsNotModified to check whether the returned error was
26786// because http.StatusNotModified was returned.
26787func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
26788	gensupport.SetOptions(c.urlParams_, opts...)
26789	res, err := c.doRequest("json")
26790	if res != nil && res.StatusCode == http.StatusNotModified {
26791		if res.Body != nil {
26792			res.Body.Close()
26793		}
26794		return nil, &googleapi.Error{
26795			Code:   res.StatusCode,
26796			Header: res.Header,
26797		}
26798	}
26799	if err != nil {
26800		return nil, err
26801	}
26802	defer googleapi.CloseBody(res)
26803	if err := googleapi.CheckResponse(res); err != nil {
26804		return nil, err
26805	}
26806	ret := &GoogleCloudApigeeV1Keystore{
26807		ServerResponse: googleapi.ServerResponse{
26808			Header:         res.Header,
26809			HTTPStatusCode: res.StatusCode,
26810		},
26811	}
26812	target := &ret
26813	if err := gensupport.DecodeResponse(target, res); err != nil {
26814		return nil, err
26815	}
26816	return ret, nil
26817	// {
26818	//   "description": "Deletes a keystore or truststore.",
26819	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
26820	//   "httpMethod": "DELETE",
26821	//   "id": "apigee.organizations.environments.keystores.delete",
26822	//   "parameterOrder": [
26823	//     "name"
26824	//   ],
26825	//   "parameters": {
26826	//     "name": {
26827	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`",
26828	//       "location": "path",
26829	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
26830	//       "required": true,
26831	//       "type": "string"
26832	//     }
26833	//   },
26834	//   "path": "v1/{+name}",
26835	//   "response": {
26836	//     "$ref": "GoogleCloudApigeeV1Keystore"
26837	//   },
26838	//   "scopes": [
26839	//     "https://www.googleapis.com/auth/cloud-platform"
26840	//   ]
26841	// }
26842
26843}
26844
26845// method id "apigee.organizations.environments.keystores.get":
26846
26847type OrganizationsEnvironmentsKeystoresGetCall struct {
26848	s            *Service
26849	name         string
26850	urlParams_   gensupport.URLParams
26851	ifNoneMatch_ string
26852	ctx_         context.Context
26853	header_      http.Header
26854}
26855
26856// Get: Gets a keystore or truststore.
26857func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
26858	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26859	c.name = name
26860	return c
26861}
26862
26863// Fields allows partial responses to be retrieved. See
26864// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26865// for more information.
26866func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
26867	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26868	return c
26869}
26870
26871// IfNoneMatch sets the optional parameter which makes the operation
26872// fail if the object's ETag matches the given value. This is useful for
26873// getting updates only after the object has changed since the last
26874// request. Use googleapi.IsNotModified to check whether the response
26875// error from Do is the result of In-None-Match.
26876func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
26877	c.ifNoneMatch_ = entityTag
26878	return c
26879}
26880
26881// Context sets the context to be used in this call's Do method. Any
26882// pending HTTP request will be aborted if the provided context is
26883// canceled.
26884func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
26885	c.ctx_ = ctx
26886	return c
26887}
26888
26889// Header returns an http.Header that can be modified by the caller to
26890// add HTTP headers to the request.
26891func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
26892	if c.header_ == nil {
26893		c.header_ = make(http.Header)
26894	}
26895	return c.header_
26896}
26897
26898func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
26899	reqHeaders := make(http.Header)
26900	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26901	for k, v := range c.header_ {
26902		reqHeaders[k] = v
26903	}
26904	reqHeaders.Set("User-Agent", c.s.userAgent())
26905	if c.ifNoneMatch_ != "" {
26906		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26907	}
26908	var body io.Reader = nil
26909	c.urlParams_.Set("alt", alt)
26910	c.urlParams_.Set("prettyPrint", "false")
26911	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26912	urls += "?" + c.urlParams_.Encode()
26913	req, err := http.NewRequest("GET", urls, body)
26914	if err != nil {
26915		return nil, err
26916	}
26917	req.Header = reqHeaders
26918	googleapi.Expand(req.URL, map[string]string{
26919		"name": c.name,
26920	})
26921	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26922}
26923
26924// Do executes the "apigee.organizations.environments.keystores.get" call.
26925// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
26926// Any non-2xx status code is an error. Response headers are in either
26927// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
26928// was returned at all) in error.(*googleapi.Error).Header. Use
26929// googleapi.IsNotModified to check whether the returned error was
26930// because http.StatusNotModified was returned.
26931func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
26932	gensupport.SetOptions(c.urlParams_, opts...)
26933	res, err := c.doRequest("json")
26934	if res != nil && res.StatusCode == http.StatusNotModified {
26935		if res.Body != nil {
26936			res.Body.Close()
26937		}
26938		return nil, &googleapi.Error{
26939			Code:   res.StatusCode,
26940			Header: res.Header,
26941		}
26942	}
26943	if err != nil {
26944		return nil, err
26945	}
26946	defer googleapi.CloseBody(res)
26947	if err := googleapi.CheckResponse(res); err != nil {
26948		return nil, err
26949	}
26950	ret := &GoogleCloudApigeeV1Keystore{
26951		ServerResponse: googleapi.ServerResponse{
26952			Header:         res.Header,
26953			HTTPStatusCode: res.StatusCode,
26954		},
26955	}
26956	target := &ret
26957	if err := gensupport.DecodeResponse(target, res); err != nil {
26958		return nil, err
26959	}
26960	return ret, nil
26961	// {
26962	//   "description": "Gets a keystore or truststore.",
26963	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
26964	//   "httpMethod": "GET",
26965	//   "id": "apigee.organizations.environments.keystores.get",
26966	//   "parameterOrder": [
26967	//     "name"
26968	//   ],
26969	//   "parameters": {
26970	//     "name": {
26971	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
26972	//       "location": "path",
26973	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
26974	//       "required": true,
26975	//       "type": "string"
26976	//     }
26977	//   },
26978	//   "path": "v1/{+name}",
26979	//   "response": {
26980	//     "$ref": "GoogleCloudApigeeV1Keystore"
26981	//   },
26982	//   "scopes": [
26983	//     "https://www.googleapis.com/auth/cloud-platform"
26984	//   ]
26985	// }
26986
26987}
26988
26989// method id "apigee.organizations.environments.keystores.aliases.create":
26990
26991type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
26992	s                 *Service
26993	parent            string
26994	googleapihttpbody *GoogleApiHttpBody
26995	urlParams_        gensupport.URLParams
26996	ctx_              context.Context
26997	header_           http.Header
26998}
26999
27000// Create: Creates an alias from a key/certificate pair. The structure
27001// of the request is controlled by the `format` query parameter: -
27002// `keycertfile` - Separate PEM-encoded key and certificate files are
27003// uploaded. Set `Content-Type: multipart/form-data` and include the
27004// `keyFile`, `certFile`, and `password` (if keys are encrypted) fields
27005// in the request body. If uploading to a truststore, omit `keyFile`. -
27006// `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type:
27007// multipart/form-data`, provide the file in the `file` field, and
27008// include the `password` field if the file is encrypted in the request
27009// body. - `selfsignedcert` - A new private key and certificate are
27010// generated. Set `Content-Type: application/json` and include
27011// CertificateGenerationSpec in the request body.
27012func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27013	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27014	c.parent = parent
27015	c.googleapihttpbody = googleapihttpbody
27016	return c
27017}
27018
27019// Password sets the optional parameter "_password": DEPRECATED: For
27020// improved security, specify the password in the request body instead
27021// of using the query parameter. To specify the password in the request
27022// body, set `Content-type: multipart/form-data` part with name
27023// `password`. Password for the private key file, if required.
27024func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27025	c.urlParams_.Set("_password", Password)
27026	return c
27027}
27028
27029// Alias sets the optional parameter "alias": Alias for the
27030// key/certificate pair. Values must match the regular expression
27031// `[\w\s-.]{1,255}`. This must be provided for all formats except
27032// `selfsignedcert`; self-signed certs may specify the alias in either
27033// this parameter or the JSON body.
27034func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27035	c.urlParams_.Set("alias", alias)
27036	return c
27037}
27038
27039// Format sets the optional parameter "format": Required. Format of the
27040// data. Valid values include: `selfsignedcert`, `keycertfile`, or
27041// `pkcs12`
27042func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27043	c.urlParams_.Set("format", format)
27044	return c
27045}
27046
27047// IgnoreExpiryValidation sets the optional parameter
27048// "ignoreExpiryValidation": Flag that specifies whether to ignore
27049// expiry validation. If set to `true`, no expiry validation will be
27050// performed.
27051func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27052	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
27053	return c
27054}
27055
27056// IgnoreNewlineValidation sets the optional parameter
27057// "ignoreNewlineValidation": Flag that specifies whether to ignore
27058// newline validation. If set to `true`, no error is thrown when the
27059// file contains a certificate chain with no newline between each
27060// certificate. Defaults to `false`.
27061func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27062	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
27063	return c
27064}
27065
27066// Fields allows partial responses to be retrieved. See
27067// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27068// for more information.
27069func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27070	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27071	return c
27072}
27073
27074// Context sets the context to be used in this call's Do method. Any
27075// pending HTTP request will be aborted if the provided context is
27076// canceled.
27077func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
27078	c.ctx_ = ctx
27079	return c
27080}
27081
27082// Header returns an http.Header that can be modified by the caller to
27083// add HTTP headers to the request.
27084func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
27085	if c.header_ == nil {
27086		c.header_ = make(http.Header)
27087	}
27088	return c.header_
27089}
27090
27091func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
27092	reqHeaders := make(http.Header)
27093	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27094	for k, v := range c.header_ {
27095		reqHeaders[k] = v
27096	}
27097	reqHeaders.Set("User-Agent", c.s.userAgent())
27098	var body io.Reader = nil
27099	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
27100	if err != nil {
27101		return nil, err
27102	}
27103	reqHeaders.Set("Content-Type", "application/json")
27104	c.urlParams_.Set("alt", alt)
27105	c.urlParams_.Set("prettyPrint", "false")
27106	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
27107	urls += "?" + c.urlParams_.Encode()
27108	req, err := http.NewRequest("POST", urls, body)
27109	if err != nil {
27110		return nil, err
27111	}
27112	req.Header = reqHeaders
27113	googleapi.Expand(req.URL, map[string]string{
27114		"parent": c.parent,
27115	})
27116	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27117}
27118
27119// Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
27120// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
27121// Any non-2xx status code is an error. Response headers are in either
27122// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
27123// returned at all) in error.(*googleapi.Error).Header. Use
27124// googleapi.IsNotModified to check whether the returned error was
27125// because http.StatusNotModified was returned.
27126func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
27127	gensupport.SetOptions(c.urlParams_, opts...)
27128	res, err := c.doRequest("json")
27129	if res != nil && res.StatusCode == http.StatusNotModified {
27130		if res.Body != nil {
27131			res.Body.Close()
27132		}
27133		return nil, &googleapi.Error{
27134			Code:   res.StatusCode,
27135			Header: res.Header,
27136		}
27137	}
27138	if err != nil {
27139		return nil, err
27140	}
27141	defer googleapi.CloseBody(res)
27142	if err := googleapi.CheckResponse(res); err != nil {
27143		return nil, err
27144	}
27145	ret := &GoogleCloudApigeeV1Alias{
27146		ServerResponse: googleapi.ServerResponse{
27147			Header:         res.Header,
27148			HTTPStatusCode: res.StatusCode,
27149		},
27150	}
27151	target := &ret
27152	if err := gensupport.DecodeResponse(target, res); err != nil {
27153		return nil, err
27154	}
27155	return ret, nil
27156	// {
27157	//   "description": "Creates an alias from a key/certificate pair. The structure of the request is controlled by the `format` query parameter: - `keycertfile` - Separate PEM-encoded key and certificate files are uploaded. Set `Content-Type: multipart/form-data` and include the `keyFile`, `certFile`, and `password` (if keys are encrypted) fields in the request body. If uploading to a truststore, omit `keyFile`. - `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type: multipart/form-data`, provide the file in the `file` field, and include the `password` field if the file is encrypted in the request body. - `selfsignedcert` - A new private key and certificate are generated. Set `Content-Type: application/json` and include CertificateGenerationSpec in the request body.",
27158	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
27159	//   "httpMethod": "POST",
27160	//   "id": "apigee.organizations.environments.keystores.aliases.create",
27161	//   "parameterOrder": [
27162	//     "parent"
27163	//   ],
27164	//   "parameters": {
27165	//     "_password": {
27166	//       "description": "DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set `Content-type: multipart/form-data` part with name `password`. Password for the private key file, if required.",
27167	//       "location": "query",
27168	//       "type": "string"
27169	//     },
27170	//     "alias": {
27171	//       "description": "Alias for the key/certificate pair. Values must match the regular expression `[\\w\\s-.]{1,255}`. This must be provided for all formats except `selfsignedcert`; self-signed certs may specify the alias in either this parameter or the JSON body.",
27172	//       "location": "query",
27173	//       "type": "string"
27174	//     },
27175	//     "format": {
27176	//       "description": "Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12`",
27177	//       "location": "query",
27178	//       "type": "string"
27179	//     },
27180	//     "ignoreExpiryValidation": {
27181	//       "description": "Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
27182	//       "location": "query",
27183	//       "type": "boolean"
27184	//     },
27185	//     "ignoreNewlineValidation": {
27186	//       "description": "Flag that specifies whether to ignore newline validation. If set to `true`, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to `false`.",
27187	//       "location": "query",
27188	//       "type": "boolean"
27189	//     },
27190	//     "parent": {
27191	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
27192	//       "location": "path",
27193	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
27194	//       "required": true,
27195	//       "type": "string"
27196	//     }
27197	//   },
27198	//   "path": "v1/{+parent}/aliases",
27199	//   "request": {
27200	//     "$ref": "GoogleApiHttpBody"
27201	//   },
27202	//   "response": {
27203	//     "$ref": "GoogleCloudApigeeV1Alias"
27204	//   },
27205	//   "scopes": [
27206	//     "https://www.googleapis.com/auth/cloud-platform"
27207	//   ]
27208	// }
27209
27210}
27211
27212// method id "apigee.organizations.environments.keystores.aliases.csr":
27213
27214type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
27215	s            *Service
27216	name         string
27217	urlParams_   gensupport.URLParams
27218	ifNoneMatch_ string
27219	ctx_         context.Context
27220	header_      http.Header
27221}
27222
27223// Csr: Generates a PKCS #10 Certificate Signing Request for the private
27224// key in an alias.
27225func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
27226	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27227	c.name = name
27228	return c
27229}
27230
27231// Fields allows partial responses to be retrieved. See
27232// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27233// for more information.
27234func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
27235	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27236	return c
27237}
27238
27239// IfNoneMatch sets the optional parameter which makes the operation
27240// fail if the object's ETag matches the given value. This is useful for
27241// getting updates only after the object has changed since the last
27242// request. Use googleapi.IsNotModified to check whether the response
27243// error from Do is the result of In-None-Match.
27244func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
27245	c.ifNoneMatch_ = entityTag
27246	return c
27247}
27248
27249// Context sets the context to be used in this call's Do method. Any
27250// pending HTTP request will be aborted if the provided context is
27251// canceled.
27252func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
27253	c.ctx_ = ctx
27254	return c
27255}
27256
27257// Header returns an http.Header that can be modified by the caller to
27258// add HTTP headers to the request.
27259func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
27260	if c.header_ == nil {
27261		c.header_ = make(http.Header)
27262	}
27263	return c.header_
27264}
27265
27266func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
27267	reqHeaders := make(http.Header)
27268	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27269	for k, v := range c.header_ {
27270		reqHeaders[k] = v
27271	}
27272	reqHeaders.Set("User-Agent", c.s.userAgent())
27273	if c.ifNoneMatch_ != "" {
27274		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27275	}
27276	var body io.Reader = nil
27277	c.urlParams_.Set("alt", alt)
27278	c.urlParams_.Set("prettyPrint", "false")
27279	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
27280	urls += "?" + c.urlParams_.Encode()
27281	req, err := http.NewRequest("GET", urls, body)
27282	if err != nil {
27283		return nil, err
27284	}
27285	req.Header = reqHeaders
27286	googleapi.Expand(req.URL, map[string]string{
27287		"name": c.name,
27288	})
27289	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27290}
27291
27292// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
27293// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
27294// non-2xx status code is an error. Response headers are in either
27295// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
27296// returned at all) in error.(*googleapi.Error).Header. Use
27297// googleapi.IsNotModified to check whether the returned error was
27298// because http.StatusNotModified was returned.
27299func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
27300	gensupport.SetOptions(c.urlParams_, opts...)
27301	res, err := c.doRequest("json")
27302	if res != nil && res.StatusCode == http.StatusNotModified {
27303		if res.Body != nil {
27304			res.Body.Close()
27305		}
27306		return nil, &googleapi.Error{
27307			Code:   res.StatusCode,
27308			Header: res.Header,
27309		}
27310	}
27311	if err != nil {
27312		return nil, err
27313	}
27314	defer googleapi.CloseBody(res)
27315	if err := googleapi.CheckResponse(res); err != nil {
27316		return nil, err
27317	}
27318	ret := &GoogleApiHttpBody{
27319		ServerResponse: googleapi.ServerResponse{
27320			Header:         res.Header,
27321			HTTPStatusCode: res.StatusCode,
27322		},
27323	}
27324	target := &ret
27325	if err := gensupport.DecodeResponse(target, res); err != nil {
27326		return nil, err
27327	}
27328	return ret, nil
27329	// {
27330	//   "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.",
27331	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr",
27332	//   "httpMethod": "GET",
27333	//   "id": "apigee.organizations.environments.keystores.aliases.csr",
27334	//   "parameterOrder": [
27335	//     "name"
27336	//   ],
27337	//   "parameters": {
27338	//     "name": {
27339	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
27340	//       "location": "path",
27341	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
27342	//       "required": true,
27343	//       "type": "string"
27344	//     }
27345	//   },
27346	//   "path": "v1/{+name}/csr",
27347	//   "response": {
27348	//     "$ref": "GoogleApiHttpBody"
27349	//   },
27350	//   "scopes": [
27351	//     "https://www.googleapis.com/auth/cloud-platform"
27352	//   ]
27353	// }
27354
27355}
27356
27357// method id "apigee.organizations.environments.keystores.aliases.delete":
27358
27359type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
27360	s          *Service
27361	name       string
27362	urlParams_ gensupport.URLParams
27363	ctx_       context.Context
27364	header_    http.Header
27365}
27366
27367// Delete: Deletes an alias.
27368func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
27369	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27370	c.name = name
27371	return c
27372}
27373
27374// Fields allows partial responses to be retrieved. See
27375// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27376// for more information.
27377func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
27378	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27379	return c
27380}
27381
27382// Context sets the context to be used in this call's Do method. Any
27383// pending HTTP request will be aborted if the provided context is
27384// canceled.
27385func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
27386	c.ctx_ = ctx
27387	return c
27388}
27389
27390// Header returns an http.Header that can be modified by the caller to
27391// add HTTP headers to the request.
27392func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
27393	if c.header_ == nil {
27394		c.header_ = make(http.Header)
27395	}
27396	return c.header_
27397}
27398
27399func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
27400	reqHeaders := make(http.Header)
27401	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27402	for k, v := range c.header_ {
27403		reqHeaders[k] = v
27404	}
27405	reqHeaders.Set("User-Agent", c.s.userAgent())
27406	var body io.Reader = nil
27407	c.urlParams_.Set("alt", alt)
27408	c.urlParams_.Set("prettyPrint", "false")
27409	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27410	urls += "?" + c.urlParams_.Encode()
27411	req, err := http.NewRequest("DELETE", urls, body)
27412	if err != nil {
27413		return nil, err
27414	}
27415	req.Header = reqHeaders
27416	googleapi.Expand(req.URL, map[string]string{
27417		"name": c.name,
27418	})
27419	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27420}
27421
27422// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
27423// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
27424// Any non-2xx status code is an error. Response headers are in either
27425// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
27426// returned at all) in error.(*googleapi.Error).Header. Use
27427// googleapi.IsNotModified to check whether the returned error was
27428// because http.StatusNotModified was returned.
27429func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
27430	gensupport.SetOptions(c.urlParams_, opts...)
27431	res, err := c.doRequest("json")
27432	if res != nil && res.StatusCode == http.StatusNotModified {
27433		if res.Body != nil {
27434			res.Body.Close()
27435		}
27436		return nil, &googleapi.Error{
27437			Code:   res.StatusCode,
27438			Header: res.Header,
27439		}
27440	}
27441	if err != nil {
27442		return nil, err
27443	}
27444	defer googleapi.CloseBody(res)
27445	if err := googleapi.CheckResponse(res); err != nil {
27446		return nil, err
27447	}
27448	ret := &GoogleCloudApigeeV1Alias{
27449		ServerResponse: googleapi.ServerResponse{
27450			Header:         res.Header,
27451			HTTPStatusCode: res.StatusCode,
27452		},
27453	}
27454	target := &ret
27455	if err := gensupport.DecodeResponse(target, res); err != nil {
27456		return nil, err
27457	}
27458	return ret, nil
27459	// {
27460	//   "description": "Deletes an alias.",
27461	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
27462	//   "httpMethod": "DELETE",
27463	//   "id": "apigee.organizations.environments.keystores.aliases.delete",
27464	//   "parameterOrder": [
27465	//     "name"
27466	//   ],
27467	//   "parameters": {
27468	//     "name": {
27469	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
27470	//       "location": "path",
27471	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
27472	//       "required": true,
27473	//       "type": "string"
27474	//     }
27475	//   },
27476	//   "path": "v1/{+name}",
27477	//   "response": {
27478	//     "$ref": "GoogleCloudApigeeV1Alias"
27479	//   },
27480	//   "scopes": [
27481	//     "https://www.googleapis.com/auth/cloud-platform"
27482	//   ]
27483	// }
27484
27485}
27486
27487// method id "apigee.organizations.environments.keystores.aliases.get":
27488
27489type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
27490	s            *Service
27491	name         string
27492	urlParams_   gensupport.URLParams
27493	ifNoneMatch_ string
27494	ctx_         context.Context
27495	header_      http.Header
27496}
27497
27498// Get: Gets an alias.
27499func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
27500	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27501	c.name = name
27502	return c
27503}
27504
27505// Fields allows partial responses to be retrieved. See
27506// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27507// for more information.
27508func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
27509	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27510	return c
27511}
27512
27513// IfNoneMatch sets the optional parameter which makes the operation
27514// fail if the object's ETag matches the given value. This is useful for
27515// getting updates only after the object has changed since the last
27516// request. Use googleapi.IsNotModified to check whether the response
27517// error from Do is the result of In-None-Match.
27518func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
27519	c.ifNoneMatch_ = entityTag
27520	return c
27521}
27522
27523// Context sets the context to be used in this call's Do method. Any
27524// pending HTTP request will be aborted if the provided context is
27525// canceled.
27526func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
27527	c.ctx_ = ctx
27528	return c
27529}
27530
27531// Header returns an http.Header that can be modified by the caller to
27532// add HTTP headers to the request.
27533func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
27534	if c.header_ == nil {
27535		c.header_ = make(http.Header)
27536	}
27537	return c.header_
27538}
27539
27540func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
27541	reqHeaders := make(http.Header)
27542	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27543	for k, v := range c.header_ {
27544		reqHeaders[k] = v
27545	}
27546	reqHeaders.Set("User-Agent", c.s.userAgent())
27547	if c.ifNoneMatch_ != "" {
27548		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27549	}
27550	var body io.Reader = nil
27551	c.urlParams_.Set("alt", alt)
27552	c.urlParams_.Set("prettyPrint", "false")
27553	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27554	urls += "?" + c.urlParams_.Encode()
27555	req, err := http.NewRequest("GET", urls, body)
27556	if err != nil {
27557		return nil, err
27558	}
27559	req.Header = reqHeaders
27560	googleapi.Expand(req.URL, map[string]string{
27561		"name": c.name,
27562	})
27563	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27564}
27565
27566// Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
27567// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
27568// Any non-2xx status code is an error. Response headers are in either
27569// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
27570// returned at all) in error.(*googleapi.Error).Header. Use
27571// googleapi.IsNotModified to check whether the returned error was
27572// because http.StatusNotModified was returned.
27573func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
27574	gensupport.SetOptions(c.urlParams_, opts...)
27575	res, err := c.doRequest("json")
27576	if res != nil && res.StatusCode == http.StatusNotModified {
27577		if res.Body != nil {
27578			res.Body.Close()
27579		}
27580		return nil, &googleapi.Error{
27581			Code:   res.StatusCode,
27582			Header: res.Header,
27583		}
27584	}
27585	if err != nil {
27586		return nil, err
27587	}
27588	defer googleapi.CloseBody(res)
27589	if err := googleapi.CheckResponse(res); err != nil {
27590		return nil, err
27591	}
27592	ret := &GoogleCloudApigeeV1Alias{
27593		ServerResponse: googleapi.ServerResponse{
27594			Header:         res.Header,
27595			HTTPStatusCode: res.StatusCode,
27596		},
27597	}
27598	target := &ret
27599	if err := gensupport.DecodeResponse(target, res); err != nil {
27600		return nil, err
27601	}
27602	return ret, nil
27603	// {
27604	//   "description": "Gets an alias.",
27605	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
27606	//   "httpMethod": "GET",
27607	//   "id": "apigee.organizations.environments.keystores.aliases.get",
27608	//   "parameterOrder": [
27609	//     "name"
27610	//   ],
27611	//   "parameters": {
27612	//     "name": {
27613	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
27614	//       "location": "path",
27615	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
27616	//       "required": true,
27617	//       "type": "string"
27618	//     }
27619	//   },
27620	//   "path": "v1/{+name}",
27621	//   "response": {
27622	//     "$ref": "GoogleCloudApigeeV1Alias"
27623	//   },
27624	//   "scopes": [
27625	//     "https://www.googleapis.com/auth/cloud-platform"
27626	//   ]
27627	// }
27628
27629}
27630
27631// method id "apigee.organizations.environments.keystores.aliases.getCertificate":
27632
27633type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
27634	s            *Service
27635	name         string
27636	urlParams_   gensupport.URLParams
27637	ifNoneMatch_ string
27638	ctx_         context.Context
27639	header_      http.Header
27640}
27641
27642// GetCertificate: Gets the certificate from an alias in PEM-encoded
27643// form.
27644func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
27645	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27646	c.name = name
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
27652// for more information.
27653func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
27654	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27655	return c
27656}
27657
27658// IfNoneMatch sets the optional parameter which makes the operation
27659// fail if the object's ETag matches the given value. This is useful for
27660// getting updates only after the object has changed since the last
27661// request. Use googleapi.IsNotModified to check whether the response
27662// error from Do is the result of In-None-Match.
27663func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
27664	c.ifNoneMatch_ = entityTag
27665	return c
27666}
27667
27668// Context sets the context to be used in this call's Do method. Any
27669// pending HTTP request will be aborted if the provided context is
27670// canceled.
27671func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
27672	c.ctx_ = ctx
27673	return c
27674}
27675
27676// Header returns an http.Header that can be modified by the caller to
27677// add HTTP headers to the request.
27678func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
27679	if c.header_ == nil {
27680		c.header_ = make(http.Header)
27681	}
27682	return c.header_
27683}
27684
27685func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
27686	reqHeaders := make(http.Header)
27687	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27688	for k, v := range c.header_ {
27689		reqHeaders[k] = v
27690	}
27691	reqHeaders.Set("User-Agent", c.s.userAgent())
27692	if c.ifNoneMatch_ != "" {
27693		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27694	}
27695	var body io.Reader = nil
27696	c.urlParams_.Set("alt", alt)
27697	c.urlParams_.Set("prettyPrint", "false")
27698	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
27699	urls += "?" + c.urlParams_.Encode()
27700	req, err := http.NewRequest("GET", urls, body)
27701	if err != nil {
27702		return nil, err
27703	}
27704	req.Header = reqHeaders
27705	googleapi.Expand(req.URL, map[string]string{
27706		"name": c.name,
27707	})
27708	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27709}
27710
27711// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
27712// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
27713// non-2xx status code is an error. Response headers are in either
27714// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
27715// returned at all) in error.(*googleapi.Error).Header. Use
27716// googleapi.IsNotModified to check whether the returned error was
27717// because http.StatusNotModified was returned.
27718func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
27719	gensupport.SetOptions(c.urlParams_, opts...)
27720	res, err := c.doRequest("json")
27721	if res != nil && res.StatusCode == http.StatusNotModified {
27722		if res.Body != nil {
27723			res.Body.Close()
27724		}
27725		return nil, &googleapi.Error{
27726			Code:   res.StatusCode,
27727			Header: res.Header,
27728		}
27729	}
27730	if err != nil {
27731		return nil, err
27732	}
27733	defer googleapi.CloseBody(res)
27734	if err := googleapi.CheckResponse(res); err != nil {
27735		return nil, err
27736	}
27737	ret := &GoogleApiHttpBody{
27738		ServerResponse: googleapi.ServerResponse{
27739			Header:         res.Header,
27740			HTTPStatusCode: res.StatusCode,
27741		},
27742	}
27743	target := &ret
27744	if err := gensupport.DecodeResponse(target, res); err != nil {
27745		return nil, err
27746	}
27747	return ret, nil
27748	// {
27749	//   "description": "Gets the certificate from an alias in PEM-encoded form.",
27750	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate",
27751	//   "httpMethod": "GET",
27752	//   "id": "apigee.organizations.environments.keystores.aliases.getCertificate",
27753	//   "parameterOrder": [
27754	//     "name"
27755	//   ],
27756	//   "parameters": {
27757	//     "name": {
27758	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
27759	//       "location": "path",
27760	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
27761	//       "required": true,
27762	//       "type": "string"
27763	//     }
27764	//   },
27765	//   "path": "v1/{+name}/certificate",
27766	//   "response": {
27767	//     "$ref": "GoogleApiHttpBody"
27768	//   },
27769	//   "scopes": [
27770	//     "https://www.googleapis.com/auth/cloud-platform"
27771	//   ]
27772	// }
27773
27774}
27775
27776// method id "apigee.organizations.environments.keystores.aliases.update":
27777
27778type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
27779	s                 *Service
27780	name              string
27781	googleapihttpbody *GoogleApiHttpBody
27782	urlParams_        gensupport.URLParams
27783	ctx_              context.Context
27784	header_           http.Header
27785}
27786
27787// Update: Updates the certificate in an alias.
27788func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
27789	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27790	c.name = name
27791	c.googleapihttpbody = googleapihttpbody
27792	return c
27793}
27794
27795// IgnoreExpiryValidation sets the optional parameter
27796// "ignoreExpiryValidation": Required. Flag that specifies whether to
27797// ignore expiry validation. If set to `true`, no expiry validation will
27798// be performed.
27799func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
27800	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
27801	return c
27802}
27803
27804// IgnoreNewlineValidation sets the optional parameter
27805// "ignoreNewlineValidation": Flag that specifies whether to ignore
27806// newline validation. If set to `true`, no error is thrown when the
27807// file contains a certificate chain with no newline between each
27808// certificate. Defaults to `false`.
27809func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
27810	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
27811	return c
27812}
27813
27814// Fields allows partial responses to be retrieved. See
27815// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27816// for more information.
27817func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
27818	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27819	return c
27820}
27821
27822// Context sets the context to be used in this call's Do method. Any
27823// pending HTTP request will be aborted if the provided context is
27824// canceled.
27825func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
27826	c.ctx_ = ctx
27827	return c
27828}
27829
27830// Header returns an http.Header that can be modified by the caller to
27831// add HTTP headers to the request.
27832func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
27833	if c.header_ == nil {
27834		c.header_ = make(http.Header)
27835	}
27836	return c.header_
27837}
27838
27839func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
27840	reqHeaders := make(http.Header)
27841	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27842	for k, v := range c.header_ {
27843		reqHeaders[k] = v
27844	}
27845	reqHeaders.Set("User-Agent", c.s.userAgent())
27846	var body io.Reader = nil
27847	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
27848	if err != nil {
27849		return nil, err
27850	}
27851	reqHeaders.Set("Content-Type", "application/json")
27852	c.urlParams_.Set("alt", alt)
27853	c.urlParams_.Set("prettyPrint", "false")
27854	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27855	urls += "?" + c.urlParams_.Encode()
27856	req, err := http.NewRequest("PUT", urls, body)
27857	if err != nil {
27858		return nil, err
27859	}
27860	req.Header = reqHeaders
27861	googleapi.Expand(req.URL, map[string]string{
27862		"name": c.name,
27863	})
27864	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27865}
27866
27867// Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
27868// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
27869// Any non-2xx status code is an error. Response headers are in either
27870// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
27871// returned at all) in error.(*googleapi.Error).Header. Use
27872// googleapi.IsNotModified to check whether the returned error was
27873// because http.StatusNotModified was returned.
27874func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
27875	gensupport.SetOptions(c.urlParams_, opts...)
27876	res, err := c.doRequest("json")
27877	if res != nil && res.StatusCode == http.StatusNotModified {
27878		if res.Body != nil {
27879			res.Body.Close()
27880		}
27881		return nil, &googleapi.Error{
27882			Code:   res.StatusCode,
27883			Header: res.Header,
27884		}
27885	}
27886	if err != nil {
27887		return nil, err
27888	}
27889	defer googleapi.CloseBody(res)
27890	if err := googleapi.CheckResponse(res); err != nil {
27891		return nil, err
27892	}
27893	ret := &GoogleCloudApigeeV1Alias{
27894		ServerResponse: googleapi.ServerResponse{
27895			Header:         res.Header,
27896			HTTPStatusCode: res.StatusCode,
27897		},
27898	}
27899	target := &ret
27900	if err := gensupport.DecodeResponse(target, res); err != nil {
27901		return nil, err
27902	}
27903	return ret, nil
27904	// {
27905	//   "description": "Updates the certificate in an alias.",
27906	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
27907	//   "httpMethod": "PUT",
27908	//   "id": "apigee.organizations.environments.keystores.aliases.update",
27909	//   "parameterOrder": [
27910	//     "name"
27911	//   ],
27912	//   "parameters": {
27913	//     "ignoreExpiryValidation": {
27914	//       "description": "Required. Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
27915	//       "location": "query",
27916	//       "type": "boolean"
27917	//     },
27918	//     "ignoreNewlineValidation": {
27919	//       "description": "Flag that specifies whether to ignore newline validation. If set to `true`, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to `false`.",
27920	//       "location": "query",
27921	//       "type": "boolean"
27922	//     },
27923	//     "name": {
27924	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`",
27925	//       "location": "path",
27926	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
27927	//       "required": true,
27928	//       "type": "string"
27929	//     }
27930	//   },
27931	//   "path": "v1/{+name}",
27932	//   "request": {
27933	//     "$ref": "GoogleApiHttpBody"
27934	//   },
27935	//   "response": {
27936	//     "$ref": "GoogleCloudApigeeV1Alias"
27937	//   },
27938	//   "scopes": [
27939	//     "https://www.googleapis.com/auth/cloud-platform"
27940	//   ]
27941	// }
27942
27943}
27944
27945// method id "apigee.organizations.environments.keyvaluemaps.create":
27946
27947type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
27948	s                              *Service
27949	parent                         string
27950	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
27951	urlParams_                     gensupport.URLParams
27952	ctx_                           context.Context
27953	header_                        http.Header
27954}
27955
27956// Create: Creates a key value map in an environment.
27957func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
27958	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27959	c.parent = parent
27960	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
27961	return c
27962}
27963
27964// Fields allows partial responses to be retrieved. See
27965// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27966// for more information.
27967func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
27968	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27969	return c
27970}
27971
27972// Context sets the context to be used in this call's Do method. Any
27973// pending HTTP request will be aborted if the provided context is
27974// canceled.
27975func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
27976	c.ctx_ = ctx
27977	return c
27978}
27979
27980// Header returns an http.Header that can be modified by the caller to
27981// add HTTP headers to the request.
27982func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
27983	if c.header_ == nil {
27984		c.header_ = make(http.Header)
27985	}
27986	return c.header_
27987}
27988
27989func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
27990	reqHeaders := make(http.Header)
27991	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27992	for k, v := range c.header_ {
27993		reqHeaders[k] = v
27994	}
27995	reqHeaders.Set("User-Agent", c.s.userAgent())
27996	var body io.Reader = nil
27997	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
27998	if err != nil {
27999		return nil, err
28000	}
28001	reqHeaders.Set("Content-Type", "application/json")
28002	c.urlParams_.Set("alt", alt)
28003	c.urlParams_.Set("prettyPrint", "false")
28004	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
28005	urls += "?" + c.urlParams_.Encode()
28006	req, err := http.NewRequest("POST", urls, body)
28007	if err != nil {
28008		return nil, err
28009	}
28010	req.Header = reqHeaders
28011	googleapi.Expand(req.URL, map[string]string{
28012		"parent": c.parent,
28013	})
28014	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28015}
28016
28017// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
28018// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
28019// non-nil. Any non-2xx status code is an error. Response headers are in
28020// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
28021// response was returned at all) in error.(*googleapi.Error).Header. Use
28022// googleapi.IsNotModified to check whether the returned error was
28023// because http.StatusNotModified was returned.
28024func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
28025	gensupport.SetOptions(c.urlParams_, opts...)
28026	res, err := c.doRequest("json")
28027	if res != nil && res.StatusCode == http.StatusNotModified {
28028		if res.Body != nil {
28029			res.Body.Close()
28030		}
28031		return nil, &googleapi.Error{
28032			Code:   res.StatusCode,
28033			Header: res.Header,
28034		}
28035	}
28036	if err != nil {
28037		return nil, err
28038	}
28039	defer googleapi.CloseBody(res)
28040	if err := googleapi.CheckResponse(res); err != nil {
28041		return nil, err
28042	}
28043	ret := &GoogleCloudApigeeV1KeyValueMap{
28044		ServerResponse: googleapi.ServerResponse{
28045			Header:         res.Header,
28046			HTTPStatusCode: res.StatusCode,
28047		},
28048	}
28049	target := &ret
28050	if err := gensupport.DecodeResponse(target, res); err != nil {
28051		return nil, err
28052	}
28053	return ret, nil
28054	// {
28055	//   "description": "Creates a key value map in an environment.",
28056	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
28057	//   "httpMethod": "POST",
28058	//   "id": "apigee.organizations.environments.keyvaluemaps.create",
28059	//   "parameterOrder": [
28060	//     "parent"
28061	//   ],
28062	//   "parameters": {
28063	//     "parent": {
28064	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.",
28065	//       "location": "path",
28066	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
28067	//       "required": true,
28068	//       "type": "string"
28069	//     }
28070	//   },
28071	//   "path": "v1/{+parent}/keyvaluemaps",
28072	//   "request": {
28073	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
28074	//   },
28075	//   "response": {
28076	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
28077	//   },
28078	//   "scopes": [
28079	//     "https://www.googleapis.com/auth/cloud-platform"
28080	//   ]
28081	// }
28082
28083}
28084
28085// method id "apigee.organizations.environments.keyvaluemaps.delete":
28086
28087type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
28088	s          *Service
28089	name       string
28090	urlParams_ gensupport.URLParams
28091	ctx_       context.Context
28092	header_    http.Header
28093}
28094
28095// Delete: Delete a key value map in an environment.
28096func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
28097	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28098	c.name = name
28099	return c
28100}
28101
28102// Fields allows partial responses to be retrieved. See
28103// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28104// for more information.
28105func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
28106	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28107	return c
28108}
28109
28110// Context sets the context to be used in this call's Do method. Any
28111// pending HTTP request will be aborted if the provided context is
28112// canceled.
28113func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
28114	c.ctx_ = ctx
28115	return c
28116}
28117
28118// Header returns an http.Header that can be modified by the caller to
28119// add HTTP headers to the request.
28120func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
28121	if c.header_ == nil {
28122		c.header_ = make(http.Header)
28123	}
28124	return c.header_
28125}
28126
28127func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
28128	reqHeaders := make(http.Header)
28129	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28130	for k, v := range c.header_ {
28131		reqHeaders[k] = v
28132	}
28133	reqHeaders.Set("User-Agent", c.s.userAgent())
28134	var body io.Reader = nil
28135	c.urlParams_.Set("alt", alt)
28136	c.urlParams_.Set("prettyPrint", "false")
28137	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28138	urls += "?" + c.urlParams_.Encode()
28139	req, err := http.NewRequest("DELETE", urls, body)
28140	if err != nil {
28141		return nil, err
28142	}
28143	req.Header = reqHeaders
28144	googleapi.Expand(req.URL, map[string]string{
28145		"name": c.name,
28146	})
28147	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28148}
28149
28150// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
28151// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
28152// non-nil. Any non-2xx status code is an error. Response headers are in
28153// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
28154// response was returned at all) in error.(*googleapi.Error).Header. Use
28155// googleapi.IsNotModified to check whether the returned error was
28156// because http.StatusNotModified was returned.
28157func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
28158	gensupport.SetOptions(c.urlParams_, opts...)
28159	res, err := c.doRequest("json")
28160	if res != nil && res.StatusCode == http.StatusNotModified {
28161		if res.Body != nil {
28162			res.Body.Close()
28163		}
28164		return nil, &googleapi.Error{
28165			Code:   res.StatusCode,
28166			Header: res.Header,
28167		}
28168	}
28169	if err != nil {
28170		return nil, err
28171	}
28172	defer googleapi.CloseBody(res)
28173	if err := googleapi.CheckResponse(res); err != nil {
28174		return nil, err
28175	}
28176	ret := &GoogleCloudApigeeV1KeyValueMap{
28177		ServerResponse: googleapi.ServerResponse{
28178			Header:         res.Header,
28179			HTTPStatusCode: res.StatusCode,
28180		},
28181	}
28182	target := &ret
28183	if err := gensupport.DecodeResponse(target, res); err != nil {
28184		return nil, err
28185	}
28186	return ret, nil
28187	// {
28188	//   "description": "Delete a key value map in an environment.",
28189	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}",
28190	//   "httpMethod": "DELETE",
28191	//   "id": "apigee.organizations.environments.keyvaluemaps.delete",
28192	//   "parameterOrder": [
28193	//     "name"
28194	//   ],
28195	//   "parameters": {
28196	//     "name": {
28197	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.",
28198	//       "location": "path",
28199	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$",
28200	//       "required": true,
28201	//       "type": "string"
28202	//     }
28203	//   },
28204	//   "path": "v1/{+name}",
28205	//   "response": {
28206	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
28207	//   },
28208	//   "scopes": [
28209	//     "https://www.googleapis.com/auth/cloud-platform"
28210	//   ]
28211	// }
28212
28213}
28214
28215// method id "apigee.organizations.environments.optimizedStats.get":
28216
28217type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
28218	s            *Service
28219	name         string
28220	urlParams_   gensupport.URLParams
28221	ifNoneMatch_ string
28222	ctx_         context.Context
28223	header_      http.Header
28224}
28225
28226// Get: This api is similar to GetStats except that the response is less
28227// verbose. In the current scheme, a query parameter _optimized
28228// instructs Edge Analytics to change the response but since this
28229// behavior is not possible with protocol buffer and since this
28230// parameter is predominantly used by Edge UI, we are introducing a
28231// separate api.
28232func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28233	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28234	c.name = name
28235	return c
28236}
28237
28238// Accuracy sets the optional parameter "accuracy": Legacy field: not
28239// used anymore.
28240func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28241	c.urlParams_.Set("accuracy", accuracy)
28242	return c
28243}
28244
28245// AggTable sets the optional parameter "aggTable": If customers want to
28246// query custom aggregate tables, then this parameter can be used to
28247// specify the table name. If this parameter is skipped, then Edge Query
28248// will try to retrieve the data from fact tables which will be
28249// expensive.
28250func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28251	c.urlParams_.Set("aggTable", aggTable)
28252	return c
28253}
28254
28255// Filter sets the optional parameter "filter": Enables drill-down on
28256// specific dimension values.
28257func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28258	c.urlParams_.Set("filter", filter)
28259	return c
28260}
28261
28262// Limit sets the optional parameter "limit": This parameter is used to
28263// limit the number of result items. Default and the max value is 14400.
28264func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28265	c.urlParams_.Set("limit", limit)
28266	return c
28267}
28268
28269// Offset sets the optional parameter "offset": Use offset with limit to
28270// enable pagination of results. For example, to display results 11-20,
28271// set limit to '10' and offset to '10'.
28272func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28273	c.urlParams_.Set("offset", offset)
28274	return c
28275}
28276
28277// Realtime sets the optional parameter "realtime": Legacy field: not
28278// used anymore.
28279func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28280	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
28281	return c
28282}
28283
28284// Select sets the optional parameter "select": Required. The select
28285// parameter contains a comma separated list of metrics. E.g.
28286// sum(message_count),sum(error_count)
28287func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28288	c.urlParams_.Set("select", select_)
28289	return c
28290}
28291
28292// Sonar sets the optional parameter "sonar": This parameter routes the
28293// query to api monitoring service for last hour.
28294func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28295	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
28296	return c
28297}
28298
28299// Sort sets the optional parameter "sort": This parameter specifies if
28300// the sort order should be ascending or descending Supported values are
28301// DESC and ASC.
28302func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28303	c.urlParams_.Set("sort", sort)
28304	return c
28305}
28306
28307// Sortby sets the optional parameter "sortby": Comma separated list of
28308// columns to sort the final result.
28309func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28310	c.urlParams_.Set("sortby", sortby)
28311	return c
28312}
28313
28314// TimeRange sets the optional parameter "timeRange": Required. Time
28315// interval for the interactive query. Time range is specified as
28316// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59
28317func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28318	c.urlParams_.Set("timeRange", timeRange)
28319	return c
28320}
28321
28322// TimeUnit sets the optional parameter "timeUnit": A value of second,
28323// minute, hour, day, week, month. Time Unit specifies the granularity
28324// of metrics returned.
28325func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28326	c.urlParams_.Set("timeUnit", timeUnit)
28327	return c
28328}
28329
28330// Topk sets the optional parameter "topk": Take 'top k' results from
28331// results, for example, to return the top 5 results 'topk=5'.
28332func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28333	c.urlParams_.Set("topk", topk)
28334	return c
28335}
28336
28337// TsAscending sets the optional parameter "tsAscending": Lists
28338// timestamps in ascending order if set to true. Recommend setting this
28339// value to true if you are using sortby with sort=DESC.
28340func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28341	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
28342	return c
28343}
28344
28345// Tzo sets the optional parameter "tzo": This parameters contains the
28346// timezone offset value.
28347func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28348	c.urlParams_.Set("tzo", tzo)
28349	return c
28350}
28351
28352// Fields allows partial responses to be retrieved. See
28353// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28354// for more information.
28355func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28356	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28357	return c
28358}
28359
28360// IfNoneMatch sets the optional parameter which makes the operation
28361// fail if the object's ETag matches the given value. This is useful for
28362// getting updates only after the object has changed since the last
28363// request. Use googleapi.IsNotModified to check whether the response
28364// error from Do is the result of In-None-Match.
28365func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28366	c.ifNoneMatch_ = entityTag
28367	return c
28368}
28369
28370// Context sets the context to be used in this call's Do method. Any
28371// pending HTTP request will be aborted if the provided context is
28372// canceled.
28373func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
28374	c.ctx_ = ctx
28375	return c
28376}
28377
28378// Header returns an http.Header that can be modified by the caller to
28379// add HTTP headers to the request.
28380func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
28381	if c.header_ == nil {
28382		c.header_ = make(http.Header)
28383	}
28384	return c.header_
28385}
28386
28387func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
28388	reqHeaders := make(http.Header)
28389	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28390	for k, v := range c.header_ {
28391		reqHeaders[k] = v
28392	}
28393	reqHeaders.Set("User-Agent", c.s.userAgent())
28394	if c.ifNoneMatch_ != "" {
28395		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28396	}
28397	var body io.Reader = nil
28398	c.urlParams_.Set("alt", alt)
28399	c.urlParams_.Set("prettyPrint", "false")
28400	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28401	urls += "?" + c.urlParams_.Encode()
28402	req, err := http.NewRequest("GET", urls, body)
28403	if err != nil {
28404		return nil, err
28405	}
28406	req.Header = reqHeaders
28407	googleapi.Expand(req.URL, map[string]string{
28408		"name": c.name,
28409	})
28410	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28411}
28412
28413// Do executes the "apigee.organizations.environments.optimizedStats.get" call.
28414// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
28415// non-nil. Any non-2xx status code is an error. Response headers are in
28416// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
28417// (if a response was returned at all) in
28418// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28419// whether the returned error was because http.StatusNotModified was
28420// returned.
28421func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
28422	gensupport.SetOptions(c.urlParams_, opts...)
28423	res, err := c.doRequest("json")
28424	if res != nil && res.StatusCode == http.StatusNotModified {
28425		if res.Body != nil {
28426			res.Body.Close()
28427		}
28428		return nil, &googleapi.Error{
28429			Code:   res.StatusCode,
28430			Header: res.Header,
28431		}
28432	}
28433	if err != nil {
28434		return nil, err
28435	}
28436	defer googleapi.CloseBody(res)
28437	if err := googleapi.CheckResponse(res); err != nil {
28438		return nil, err
28439	}
28440	ret := &GoogleCloudApigeeV1OptimizedStats{
28441		ServerResponse: googleapi.ServerResponse{
28442			Header:         res.Header,
28443			HTTPStatusCode: res.StatusCode,
28444		},
28445	}
28446	target := &ret
28447	if err := gensupport.DecodeResponse(target, res); err != nil {
28448		return nil, err
28449	}
28450	return ret, nil
28451	// {
28452	//   "description": "This api is similar to GetStats except that the response is less verbose. In the current scheme, a query parameter _optimized instructs Edge Analytics to change the response but since this behavior is not possible with protocol buffer and since this parameter is predominantly used by Edge UI, we are introducing a separate api.",
28453	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}",
28454	//   "httpMethod": "GET",
28455	//   "id": "apigee.organizations.environments.optimizedStats.get",
28456	//   "parameterOrder": [
28457	//     "name"
28458	//   ],
28459	//   "parameters": {
28460	//     "accuracy": {
28461	//       "description": "Legacy field: not used anymore.",
28462	//       "location": "query",
28463	//       "type": "string"
28464	//     },
28465	//     "aggTable": {
28466	//       "description": "If customers want to query custom aggregate tables, then this parameter can be used to specify the table name. If this parameter is skipped, then Edge Query will try to retrieve the data from fact tables which will be expensive.",
28467	//       "location": "query",
28468	//       "type": "string"
28469	//     },
28470	//     "filter": {
28471	//       "description": "Enables drill-down on specific dimension values.",
28472	//       "location": "query",
28473	//       "type": "string"
28474	//     },
28475	//     "limit": {
28476	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
28477	//       "location": "query",
28478	//       "type": "string"
28479	//     },
28480	//     "name": {
28481	//       "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/environments/{environment_id/optimizedStats/{dimensions}` Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/environments/{env}/optimizedStats/apiproxy,request_verb`",
28482	//       "location": "path",
28483	//       "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$",
28484	//       "required": true,
28485	//       "type": "string"
28486	//     },
28487	//     "offset": {
28488	//       "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.",
28489	//       "location": "query",
28490	//       "type": "string"
28491	//     },
28492	//     "realtime": {
28493	//       "description": "Legacy field: not used anymore.",
28494	//       "location": "query",
28495	//       "type": "boolean"
28496	//     },
28497	//     "select": {
28498	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
28499	//       "location": "query",
28500	//       "type": "string"
28501	//     },
28502	//     "sonar": {
28503	//       "description": "This parameter routes the query to api monitoring service for last hour.",
28504	//       "location": "query",
28505	//       "type": "boolean"
28506	//     },
28507	//     "sort": {
28508	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
28509	//       "location": "query",
28510	//       "type": "string"
28511	//     },
28512	//     "sortby": {
28513	//       "description": "Comma separated list of columns to sort the final result.",
28514	//       "location": "query",
28515	//       "type": "string"
28516	//     },
28517	//     "timeRange": {
28518	//       "description": "Required. Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59",
28519	//       "location": "query",
28520	//       "type": "string"
28521	//     },
28522	//     "timeUnit": {
28523	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
28524	//       "location": "query",
28525	//       "type": "string"
28526	//     },
28527	//     "topk": {
28528	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
28529	//       "location": "query",
28530	//       "type": "string"
28531	//     },
28532	//     "tsAscending": {
28533	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
28534	//       "location": "query",
28535	//       "type": "boolean"
28536	//     },
28537	//     "tzo": {
28538	//       "description": "This parameters contains the timezone offset value.",
28539	//       "location": "query",
28540	//       "type": "string"
28541	//     }
28542	//   },
28543	//   "path": "v1/{+name}",
28544	//   "response": {
28545	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
28546	//   },
28547	//   "scopes": [
28548	//     "https://www.googleapis.com/auth/cloud-platform"
28549	//   ]
28550	// }
28551
28552}
28553
28554// method id "apigee.organizations.environments.queries.create":
28555
28556type OrganizationsEnvironmentsQueriesCreateCall struct {
28557	s                        *Service
28558	parent                   string
28559	googlecloudapigeev1query *GoogleCloudApigeeV1Query
28560	urlParams_               gensupport.URLParams
28561	ctx_                     context.Context
28562	header_                  http.Header
28563}
28564
28565// Create: Submit a query to be processed in the background. If the
28566// submission of the query succeeds, the API returns a 201 status and an
28567// ID that refer to the query. In addition to the HTTP status 201, the
28568// `state` of "enqueued" means that the request succeeded.
28569func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
28570	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28571	c.parent = parent
28572	c.googlecloudapigeev1query = googlecloudapigeev1query
28573	return c
28574}
28575
28576// Fields allows partial responses to be retrieved. See
28577// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28578// for more information.
28579func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
28580	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28581	return c
28582}
28583
28584// Context sets the context to be used in this call's Do method. Any
28585// pending HTTP request will be aborted if the provided context is
28586// canceled.
28587func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
28588	c.ctx_ = ctx
28589	return c
28590}
28591
28592// Header returns an http.Header that can be modified by the caller to
28593// add HTTP headers to the request.
28594func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
28595	if c.header_ == nil {
28596		c.header_ = make(http.Header)
28597	}
28598	return c.header_
28599}
28600
28601func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
28602	reqHeaders := make(http.Header)
28603	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28604	for k, v := range c.header_ {
28605		reqHeaders[k] = v
28606	}
28607	reqHeaders.Set("User-Agent", c.s.userAgent())
28608	var body io.Reader = nil
28609	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
28610	if err != nil {
28611		return nil, err
28612	}
28613	reqHeaders.Set("Content-Type", "application/json")
28614	c.urlParams_.Set("alt", alt)
28615	c.urlParams_.Set("prettyPrint", "false")
28616	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
28617	urls += "?" + c.urlParams_.Encode()
28618	req, err := http.NewRequest("POST", urls, body)
28619	if err != nil {
28620		return nil, err
28621	}
28622	req.Header = reqHeaders
28623	googleapi.Expand(req.URL, map[string]string{
28624		"parent": c.parent,
28625	})
28626	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28627}
28628
28629// Do executes the "apigee.organizations.environments.queries.create" call.
28630// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
28631// non-nil. Any non-2xx status code is an error. Response headers are in
28632// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
28633// response was returned at all) in error.(*googleapi.Error).Header. Use
28634// googleapi.IsNotModified to check whether the returned error was
28635// because http.StatusNotModified was returned.
28636func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
28637	gensupport.SetOptions(c.urlParams_, opts...)
28638	res, err := c.doRequest("json")
28639	if res != nil && res.StatusCode == http.StatusNotModified {
28640		if res.Body != nil {
28641			res.Body.Close()
28642		}
28643		return nil, &googleapi.Error{
28644			Code:   res.StatusCode,
28645			Header: res.Header,
28646		}
28647	}
28648	if err != nil {
28649		return nil, err
28650	}
28651	defer googleapi.CloseBody(res)
28652	if err := googleapi.CheckResponse(res); err != nil {
28653		return nil, err
28654	}
28655	ret := &GoogleCloudApigeeV1AsyncQuery{
28656		ServerResponse: googleapi.ServerResponse{
28657			Header:         res.Header,
28658			HTTPStatusCode: res.StatusCode,
28659		},
28660	}
28661	target := &ret
28662	if err := gensupport.DecodeResponse(target, res); err != nil {
28663		return nil, err
28664	}
28665	return ret, nil
28666	// {
28667	//   "description": "Submit a query to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.",
28668	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
28669	//   "httpMethod": "POST",
28670	//   "id": "apigee.organizations.environments.queries.create",
28671	//   "parameterOrder": [
28672	//     "parent"
28673	//   ],
28674	//   "parameters": {
28675	//     "parent": {
28676	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
28677	//       "location": "path",
28678	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
28679	//       "required": true,
28680	//       "type": "string"
28681	//     }
28682	//   },
28683	//   "path": "v1/{+parent}/queries",
28684	//   "request": {
28685	//     "$ref": "GoogleCloudApigeeV1Query"
28686	//   },
28687	//   "response": {
28688	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
28689	//   },
28690	//   "scopes": [
28691	//     "https://www.googleapis.com/auth/cloud-platform"
28692	//   ]
28693	// }
28694
28695}
28696
28697// method id "apigee.organizations.environments.queries.get":
28698
28699type OrganizationsEnvironmentsQueriesGetCall struct {
28700	s            *Service
28701	name         string
28702	urlParams_   gensupport.URLParams
28703	ifNoneMatch_ string
28704	ctx_         context.Context
28705	header_      http.Header
28706}
28707
28708// Get: Get query status If the query is still in progress, the `state`
28709// is set to "running" After the query has completed successfully,
28710// `state` is set to "completed"
28711func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
28712	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28713	c.name = name
28714	return c
28715}
28716
28717// Fields allows partial responses to be retrieved. See
28718// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28719// for more information.
28720func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
28721	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28722	return c
28723}
28724
28725// IfNoneMatch sets the optional parameter which makes the operation
28726// fail if the object's ETag matches the given value. This is useful for
28727// getting updates only after the object has changed since the last
28728// request. Use googleapi.IsNotModified to check whether the response
28729// error from Do is the result of In-None-Match.
28730func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
28731	c.ifNoneMatch_ = entityTag
28732	return c
28733}
28734
28735// Context sets the context to be used in this call's Do method. Any
28736// pending HTTP request will be aborted if the provided context is
28737// canceled.
28738func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
28739	c.ctx_ = ctx
28740	return c
28741}
28742
28743// Header returns an http.Header that can be modified by the caller to
28744// add HTTP headers to the request.
28745func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
28746	if c.header_ == nil {
28747		c.header_ = make(http.Header)
28748	}
28749	return c.header_
28750}
28751
28752func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
28753	reqHeaders := make(http.Header)
28754	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28755	for k, v := range c.header_ {
28756		reqHeaders[k] = v
28757	}
28758	reqHeaders.Set("User-Agent", c.s.userAgent())
28759	if c.ifNoneMatch_ != "" {
28760		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28761	}
28762	var body io.Reader = nil
28763	c.urlParams_.Set("alt", alt)
28764	c.urlParams_.Set("prettyPrint", "false")
28765	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28766	urls += "?" + c.urlParams_.Encode()
28767	req, err := http.NewRequest("GET", urls, body)
28768	if err != nil {
28769		return nil, err
28770	}
28771	req.Header = reqHeaders
28772	googleapi.Expand(req.URL, map[string]string{
28773		"name": c.name,
28774	})
28775	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28776}
28777
28778// Do executes the "apigee.organizations.environments.queries.get" call.
28779// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
28780// non-nil. Any non-2xx status code is an error. Response headers are in
28781// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
28782// response was returned at all) in error.(*googleapi.Error).Header. Use
28783// googleapi.IsNotModified to check whether the returned error was
28784// because http.StatusNotModified was returned.
28785func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
28786	gensupport.SetOptions(c.urlParams_, opts...)
28787	res, err := c.doRequest("json")
28788	if res != nil && res.StatusCode == http.StatusNotModified {
28789		if res.Body != nil {
28790			res.Body.Close()
28791		}
28792		return nil, &googleapi.Error{
28793			Code:   res.StatusCode,
28794			Header: res.Header,
28795		}
28796	}
28797	if err != nil {
28798		return nil, err
28799	}
28800	defer googleapi.CloseBody(res)
28801	if err := googleapi.CheckResponse(res); err != nil {
28802		return nil, err
28803	}
28804	ret := &GoogleCloudApigeeV1AsyncQuery{
28805		ServerResponse: googleapi.ServerResponse{
28806			Header:         res.Header,
28807			HTTPStatusCode: res.StatusCode,
28808		},
28809	}
28810	target := &ret
28811	if err := gensupport.DecodeResponse(target, res); err != nil {
28812		return nil, err
28813	}
28814	return ret, nil
28815	// {
28816	//   "description": "Get query status If the query is still in progress, the `state` is set to \"running\" After the query has completed successfully, `state` is set to \"completed\"",
28817	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}",
28818	//   "httpMethod": "GET",
28819	//   "id": "apigee.organizations.environments.queries.get",
28820	//   "parameterOrder": [
28821	//     "name"
28822	//   ],
28823	//   "parameters": {
28824	//     "name": {
28825	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.",
28826	//       "location": "path",
28827	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$",
28828	//       "required": true,
28829	//       "type": "string"
28830	//     }
28831	//   },
28832	//   "path": "v1/{+name}",
28833	//   "response": {
28834	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
28835	//   },
28836	//   "scopes": [
28837	//     "https://www.googleapis.com/auth/cloud-platform"
28838	//   ]
28839	// }
28840
28841}
28842
28843// method id "apigee.organizations.environments.queries.getResult":
28844
28845type OrganizationsEnvironmentsQueriesGetResultCall struct {
28846	s            *Service
28847	name         string
28848	urlParams_   gensupport.URLParams
28849	ifNoneMatch_ string
28850	ctx_         context.Context
28851	header_      http.Header
28852}
28853
28854// GetResult: After the query is completed, use this API to retrieve the
28855// results. If the request succeeds, and there is a non-zero result set,
28856// the result is downloaded to the client as a zipped JSON file. The
28857// name of the downloaded file will be: OfflineQueryResult-.zip Example:
28858// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
28859func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
28860	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28861	c.name = name
28862	return c
28863}
28864
28865// Fields allows partial responses to be retrieved. See
28866// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28867// for more information.
28868func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
28869	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28870	return c
28871}
28872
28873// IfNoneMatch sets the optional parameter which makes the operation
28874// fail if the object's ETag matches the given value. This is useful for
28875// getting updates only after the object has changed since the last
28876// request. Use googleapi.IsNotModified to check whether the response
28877// error from Do is the result of In-None-Match.
28878func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
28879	c.ifNoneMatch_ = entityTag
28880	return c
28881}
28882
28883// Context sets the context to be used in this call's Do method. Any
28884// pending HTTP request will be aborted if the provided context is
28885// canceled.
28886func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
28887	c.ctx_ = ctx
28888	return c
28889}
28890
28891// Header returns an http.Header that can be modified by the caller to
28892// add HTTP headers to the request.
28893func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
28894	if c.header_ == nil {
28895		c.header_ = make(http.Header)
28896	}
28897	return c.header_
28898}
28899
28900func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
28901	reqHeaders := make(http.Header)
28902	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28903	for k, v := range c.header_ {
28904		reqHeaders[k] = v
28905	}
28906	reqHeaders.Set("User-Agent", c.s.userAgent())
28907	if c.ifNoneMatch_ != "" {
28908		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28909	}
28910	var body io.Reader = nil
28911	c.urlParams_.Set("alt", alt)
28912	c.urlParams_.Set("prettyPrint", "false")
28913	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28914	urls += "?" + c.urlParams_.Encode()
28915	req, err := http.NewRequest("GET", urls, body)
28916	if err != nil {
28917		return nil, err
28918	}
28919	req.Header = reqHeaders
28920	googleapi.Expand(req.URL, map[string]string{
28921		"name": c.name,
28922	})
28923	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28924}
28925
28926// Do executes the "apigee.organizations.environments.queries.getResult" call.
28927// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
28928// non-2xx status code is an error. Response headers are in either
28929// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
28930// returned at all) in error.(*googleapi.Error).Header. Use
28931// googleapi.IsNotModified to check whether the returned error was
28932// because http.StatusNotModified was returned.
28933func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
28934	gensupport.SetOptions(c.urlParams_, opts...)
28935	res, err := c.doRequest("json")
28936	if res != nil && res.StatusCode == http.StatusNotModified {
28937		if res.Body != nil {
28938			res.Body.Close()
28939		}
28940		return nil, &googleapi.Error{
28941			Code:   res.StatusCode,
28942			Header: res.Header,
28943		}
28944	}
28945	if err != nil {
28946		return nil, err
28947	}
28948	defer googleapi.CloseBody(res)
28949	if err := googleapi.CheckResponse(res); err != nil {
28950		return nil, err
28951	}
28952	ret := &GoogleApiHttpBody{
28953		ServerResponse: googleapi.ServerResponse{
28954			Header:         res.Header,
28955			HTTPStatusCode: res.StatusCode,
28956		},
28957	}
28958	target := &ret
28959	if err := gensupport.DecodeResponse(target, res); err != nil {
28960		return nil, err
28961	}
28962	return ret, nil
28963	// {
28964	//   "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`",
28965	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result",
28966	//   "httpMethod": "GET",
28967	//   "id": "apigee.organizations.environments.queries.getResult",
28968	//   "parameterOrder": [
28969	//     "name"
28970	//   ],
28971	//   "parameters": {
28972	//     "name": {
28973	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.",
28974	//       "location": "path",
28975	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$",
28976	//       "required": true,
28977	//       "type": "string"
28978	//     }
28979	//   },
28980	//   "path": "v1/{+name}",
28981	//   "response": {
28982	//     "$ref": "GoogleApiHttpBody"
28983	//   },
28984	//   "scopes": [
28985	//     "https://www.googleapis.com/auth/cloud-platform"
28986	//   ]
28987	// }
28988
28989}
28990
28991// method id "apigee.organizations.environments.queries.list":
28992
28993type OrganizationsEnvironmentsQueriesListCall struct {
28994	s            *Service
28995	parent       string
28996	urlParams_   gensupport.URLParams
28997	ifNoneMatch_ string
28998	ctx_         context.Context
28999	header_      http.Header
29000}
29001
29002// List: Return a list of Asynchronous Queries
29003func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
29004	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29005	c.parent = parent
29006	return c
29007}
29008
29009// Dataset sets the optional parameter "dataset": Filter response list
29010// by dataset. Example: `api`, `mint`
29011func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
29012	c.urlParams_.Set("dataset", dataset)
29013	return c
29014}
29015
29016// From sets the optional parameter "from": Filter response list by
29017// returning asynchronous queries that created after this date time.
29018// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
29019func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
29020	c.urlParams_.Set("from", from)
29021	return c
29022}
29023
29024// InclQueriesWithoutReport sets the optional parameter
29025// "inclQueriesWithoutReport": Flag to include asynchronous queries that
29026// don't have a report denifition.
29027func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
29028	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
29029	return c
29030}
29031
29032// Status sets the optional parameter "status": Filter response list by
29033// asynchronous query status.
29034func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
29035	c.urlParams_.Set("status", status)
29036	return c
29037}
29038
29039// SubmittedBy sets the optional parameter "submittedBy": Filter
29040// response list by user who submitted queries.
29041func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
29042	c.urlParams_.Set("submittedBy", submittedBy)
29043	return c
29044}
29045
29046// To sets the optional parameter "to": Filter response list by
29047// returning asynchronous queries that created before this date time.
29048// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
29049func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
29050	c.urlParams_.Set("to", to)
29051	return c
29052}
29053
29054// Fields allows partial responses to be retrieved. See
29055// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29056// for more information.
29057func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
29058	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29059	return c
29060}
29061
29062// IfNoneMatch sets the optional parameter which makes the operation
29063// fail if the object's ETag matches the given value. This is useful for
29064// getting updates only after the object has changed since the last
29065// request. Use googleapi.IsNotModified to check whether the response
29066// error from Do is the result of In-None-Match.
29067func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
29068	c.ifNoneMatch_ = entityTag
29069	return c
29070}
29071
29072// Context sets the context to be used in this call's Do method. Any
29073// pending HTTP request will be aborted if the provided context is
29074// canceled.
29075func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
29076	c.ctx_ = ctx
29077	return c
29078}
29079
29080// Header returns an http.Header that can be modified by the caller to
29081// add HTTP headers to the request.
29082func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
29083	if c.header_ == nil {
29084		c.header_ = make(http.Header)
29085	}
29086	return c.header_
29087}
29088
29089func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
29090	reqHeaders := make(http.Header)
29091	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29092	for k, v := range c.header_ {
29093		reqHeaders[k] = v
29094	}
29095	reqHeaders.Set("User-Agent", c.s.userAgent())
29096	if c.ifNoneMatch_ != "" {
29097		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29098	}
29099	var body io.Reader = nil
29100	c.urlParams_.Set("alt", alt)
29101	c.urlParams_.Set("prettyPrint", "false")
29102	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
29103	urls += "?" + c.urlParams_.Encode()
29104	req, err := http.NewRequest("GET", urls, body)
29105	if err != nil {
29106		return nil, err
29107	}
29108	req.Header = reqHeaders
29109	googleapi.Expand(req.URL, map[string]string{
29110		"parent": c.parent,
29111	})
29112	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29113}
29114
29115// Do executes the "apigee.organizations.environments.queries.list" call.
29116// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
29117// will be non-nil. Any non-2xx status code is an error. Response
29118// headers are in either
29119// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
29120// (if a response was returned at all) in
29121// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29122// whether the returned error was because http.StatusNotModified was
29123// returned.
29124func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
29125	gensupport.SetOptions(c.urlParams_, opts...)
29126	res, err := c.doRequest("json")
29127	if res != nil && res.StatusCode == http.StatusNotModified {
29128		if res.Body != nil {
29129			res.Body.Close()
29130		}
29131		return nil, &googleapi.Error{
29132			Code:   res.StatusCode,
29133			Header: res.Header,
29134		}
29135	}
29136	if err != nil {
29137		return nil, err
29138	}
29139	defer googleapi.CloseBody(res)
29140	if err := googleapi.CheckResponse(res); err != nil {
29141		return nil, err
29142	}
29143	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
29144		ServerResponse: googleapi.ServerResponse{
29145			Header:         res.Header,
29146			HTTPStatusCode: res.StatusCode,
29147		},
29148	}
29149	target := &ret
29150	if err := gensupport.DecodeResponse(target, res); err != nil {
29151		return nil, err
29152	}
29153	return ret, nil
29154	// {
29155	//   "description": "Return a list of Asynchronous Queries",
29156	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
29157	//   "httpMethod": "GET",
29158	//   "id": "apigee.organizations.environments.queries.list",
29159	//   "parameterOrder": [
29160	//     "parent"
29161	//   ],
29162	//   "parameters": {
29163	//     "dataset": {
29164	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
29165	//       "location": "query",
29166	//       "type": "string"
29167	//     },
29168	//     "from": {
29169	//       "description": "Filter response list by returning asynchronous queries that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.",
29170	//       "location": "query",
29171	//       "type": "string"
29172	//     },
29173	//     "inclQueriesWithoutReport": {
29174	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
29175	//       "location": "query",
29176	//       "type": "string"
29177	//     },
29178	//     "parent": {
29179	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
29180	//       "location": "path",
29181	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29182	//       "required": true,
29183	//       "type": "string"
29184	//     },
29185	//     "status": {
29186	//       "description": "Filter response list by asynchronous query status.",
29187	//       "location": "query",
29188	//       "type": "string"
29189	//     },
29190	//     "submittedBy": {
29191	//       "description": "Filter response list by user who submitted queries.",
29192	//       "location": "query",
29193	//       "type": "string"
29194	//     },
29195	//     "to": {
29196	//       "description": "Filter response list by returning asynchronous queries that created before this date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.",
29197	//       "location": "query",
29198	//       "type": "string"
29199	//     }
29200	//   },
29201	//   "path": "v1/{+parent}/queries",
29202	//   "response": {
29203	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
29204	//   },
29205	//   "scopes": [
29206	//     "https://www.googleapis.com/auth/cloud-platform"
29207	//   ]
29208	// }
29209
29210}
29211
29212// method id "apigee.organizations.environments.references.create":
29213
29214type OrganizationsEnvironmentsReferencesCreateCall struct {
29215	s                            *Service
29216	parent                       string
29217	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
29218	urlParams_                   gensupport.URLParams
29219	ctx_                         context.Context
29220	header_                      http.Header
29221}
29222
29223// Create: Creates a Reference in the specified environment.
29224func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
29225	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29226	c.parent = parent
29227	c.googlecloudapigeev1reference = googlecloudapigeev1reference
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
29233// for more information.
29234func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
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. Any
29240// pending HTTP request will be aborted if the provided context is
29241// canceled.
29242func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
29243	c.ctx_ = ctx
29244	return c
29245}
29246
29247// Header returns an http.Header that can be modified by the caller to
29248// add HTTP headers to the request.
29249func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
29250	if c.header_ == nil {
29251		c.header_ = make(http.Header)
29252	}
29253	return c.header_
29254}
29255
29256func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
29257	reqHeaders := make(http.Header)
29258	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29259	for k, v := range c.header_ {
29260		reqHeaders[k] = v
29261	}
29262	reqHeaders.Set("User-Agent", c.s.userAgent())
29263	var body io.Reader = nil
29264	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
29265	if err != nil {
29266		return nil, err
29267	}
29268	reqHeaders.Set("Content-Type", "application/json")
29269	c.urlParams_.Set("alt", alt)
29270	c.urlParams_.Set("prettyPrint", "false")
29271	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
29272	urls += "?" + c.urlParams_.Encode()
29273	req, err := http.NewRequest("POST", urls, body)
29274	if err != nil {
29275		return nil, err
29276	}
29277	req.Header = reqHeaders
29278	googleapi.Expand(req.URL, map[string]string{
29279		"parent": c.parent,
29280	})
29281	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29282}
29283
29284// Do executes the "apigee.organizations.environments.references.create" call.
29285// Exactly one of *GoogleCloudApigeeV1Reference or error will be
29286// non-nil. Any non-2xx status code is an error. Response headers are in
29287// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
29288// response was returned at all) in error.(*googleapi.Error).Header. Use
29289// googleapi.IsNotModified to check whether the returned error was
29290// because http.StatusNotModified was returned.
29291func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
29292	gensupport.SetOptions(c.urlParams_, opts...)
29293	res, err := c.doRequest("json")
29294	if res != nil && res.StatusCode == http.StatusNotModified {
29295		if res.Body != nil {
29296			res.Body.Close()
29297		}
29298		return nil, &googleapi.Error{
29299			Code:   res.StatusCode,
29300			Header: res.Header,
29301		}
29302	}
29303	if err != nil {
29304		return nil, err
29305	}
29306	defer googleapi.CloseBody(res)
29307	if err := googleapi.CheckResponse(res); err != nil {
29308		return nil, err
29309	}
29310	ret := &GoogleCloudApigeeV1Reference{
29311		ServerResponse: googleapi.ServerResponse{
29312			Header:         res.Header,
29313			HTTPStatusCode: res.StatusCode,
29314		},
29315	}
29316	target := &ret
29317	if err := gensupport.DecodeResponse(target, res); err != nil {
29318		return nil, err
29319	}
29320	return ret, nil
29321	// {
29322	//   "description": "Creates a Reference in the specified environment.",
29323	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
29324	//   "httpMethod": "POST",
29325	//   "id": "apigee.organizations.environments.references.create",
29326	//   "parameterOrder": [
29327	//     "parent"
29328	//   ],
29329	//   "parameters": {
29330	//     "parent": {
29331	//       "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.",
29332	//       "location": "path",
29333	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29334	//       "required": true,
29335	//       "type": "string"
29336	//     }
29337	//   },
29338	//   "path": "v1/{+parent}/references",
29339	//   "request": {
29340	//     "$ref": "GoogleCloudApigeeV1Reference"
29341	//   },
29342	//   "response": {
29343	//     "$ref": "GoogleCloudApigeeV1Reference"
29344	//   },
29345	//   "scopes": [
29346	//     "https://www.googleapis.com/auth/cloud-platform"
29347	//   ]
29348	// }
29349
29350}
29351
29352// method id "apigee.organizations.environments.references.delete":
29353
29354type OrganizationsEnvironmentsReferencesDeleteCall struct {
29355	s          *Service
29356	name       string
29357	urlParams_ gensupport.URLParams
29358	ctx_       context.Context
29359	header_    http.Header
29360}
29361
29362// Delete: Deletes a Reference from an environment. Returns the deleted
29363// Reference resource.
29364func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
29365	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29366	c.name = name
29367	return c
29368}
29369
29370// Fields allows partial responses to be retrieved. See
29371// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29372// for more information.
29373func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
29374	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29375	return c
29376}
29377
29378// Context sets the context to be used in this call's Do method. Any
29379// pending HTTP request will be aborted if the provided context is
29380// canceled.
29381func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
29382	c.ctx_ = ctx
29383	return c
29384}
29385
29386// Header returns an http.Header that can be modified by the caller to
29387// add HTTP headers to the request.
29388func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
29389	if c.header_ == nil {
29390		c.header_ = make(http.Header)
29391	}
29392	return c.header_
29393}
29394
29395func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
29396	reqHeaders := make(http.Header)
29397	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29398	for k, v := range c.header_ {
29399		reqHeaders[k] = v
29400	}
29401	reqHeaders.Set("User-Agent", c.s.userAgent())
29402	var body io.Reader = nil
29403	c.urlParams_.Set("alt", alt)
29404	c.urlParams_.Set("prettyPrint", "false")
29405	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29406	urls += "?" + c.urlParams_.Encode()
29407	req, err := http.NewRequest("DELETE", urls, body)
29408	if err != nil {
29409		return nil, err
29410	}
29411	req.Header = reqHeaders
29412	googleapi.Expand(req.URL, map[string]string{
29413		"name": c.name,
29414	})
29415	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29416}
29417
29418// Do executes the "apigee.organizations.environments.references.delete" call.
29419// Exactly one of *GoogleCloudApigeeV1Reference or error will be
29420// non-nil. Any non-2xx status code is an error. Response headers are in
29421// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
29422// response was returned at all) in error.(*googleapi.Error).Header. Use
29423// googleapi.IsNotModified to check whether the returned error was
29424// because http.StatusNotModified was returned.
29425func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
29426	gensupport.SetOptions(c.urlParams_, opts...)
29427	res, err := c.doRequest("json")
29428	if res != nil && res.StatusCode == http.StatusNotModified {
29429		if res.Body != nil {
29430			res.Body.Close()
29431		}
29432		return nil, &googleapi.Error{
29433			Code:   res.StatusCode,
29434			Header: res.Header,
29435		}
29436	}
29437	if err != nil {
29438		return nil, err
29439	}
29440	defer googleapi.CloseBody(res)
29441	if err := googleapi.CheckResponse(res); err != nil {
29442		return nil, err
29443	}
29444	ret := &GoogleCloudApigeeV1Reference{
29445		ServerResponse: googleapi.ServerResponse{
29446			Header:         res.Header,
29447			HTTPStatusCode: res.StatusCode,
29448		},
29449	}
29450	target := &ret
29451	if err := gensupport.DecodeResponse(target, res); err != nil {
29452		return nil, err
29453	}
29454	return ret, nil
29455	// {
29456	//   "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.",
29457	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
29458	//   "httpMethod": "DELETE",
29459	//   "id": "apigee.organizations.environments.references.delete",
29460	//   "parameterOrder": [
29461	//     "name"
29462	//   ],
29463	//   "parameters": {
29464	//     "name": {
29465	//       "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
29466	//       "location": "path",
29467	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
29468	//       "required": true,
29469	//       "type": "string"
29470	//     }
29471	//   },
29472	//   "path": "v1/{+name}",
29473	//   "response": {
29474	//     "$ref": "GoogleCloudApigeeV1Reference"
29475	//   },
29476	//   "scopes": [
29477	//     "https://www.googleapis.com/auth/cloud-platform"
29478	//   ]
29479	// }
29480
29481}
29482
29483// method id "apigee.organizations.environments.references.get":
29484
29485type OrganizationsEnvironmentsReferencesGetCall struct {
29486	s            *Service
29487	name         string
29488	urlParams_   gensupport.URLParams
29489	ifNoneMatch_ string
29490	ctx_         context.Context
29491	header_      http.Header
29492}
29493
29494// Get: Gets a Reference resource.
29495func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
29496	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29497	c.name = name
29498	return c
29499}
29500
29501// Fields allows partial responses to be retrieved. See
29502// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29503// for more information.
29504func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
29505	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29506	return c
29507}
29508
29509// IfNoneMatch sets the optional parameter which makes the operation
29510// fail if the object's ETag matches the given value. This is useful for
29511// getting updates only after the object has changed since the last
29512// request. Use googleapi.IsNotModified to check whether the response
29513// error from Do is the result of In-None-Match.
29514func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
29515	c.ifNoneMatch_ = entityTag
29516	return c
29517}
29518
29519// Context sets the context to be used in this call's Do method. Any
29520// pending HTTP request will be aborted if the provided context is
29521// canceled.
29522func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
29523	c.ctx_ = ctx
29524	return c
29525}
29526
29527// Header returns an http.Header that can be modified by the caller to
29528// add HTTP headers to the request.
29529func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
29530	if c.header_ == nil {
29531		c.header_ = make(http.Header)
29532	}
29533	return c.header_
29534}
29535
29536func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
29537	reqHeaders := make(http.Header)
29538	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29539	for k, v := range c.header_ {
29540		reqHeaders[k] = v
29541	}
29542	reqHeaders.Set("User-Agent", c.s.userAgent())
29543	if c.ifNoneMatch_ != "" {
29544		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29545	}
29546	var body io.Reader = nil
29547	c.urlParams_.Set("alt", alt)
29548	c.urlParams_.Set("prettyPrint", "false")
29549	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29550	urls += "?" + c.urlParams_.Encode()
29551	req, err := http.NewRequest("GET", urls, body)
29552	if err != nil {
29553		return nil, err
29554	}
29555	req.Header = reqHeaders
29556	googleapi.Expand(req.URL, map[string]string{
29557		"name": c.name,
29558	})
29559	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29560}
29561
29562// Do executes the "apigee.organizations.environments.references.get" call.
29563// Exactly one of *GoogleCloudApigeeV1Reference or error will be
29564// non-nil. Any non-2xx status code is an error. Response headers are in
29565// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
29566// response was returned at all) in error.(*googleapi.Error).Header. Use
29567// googleapi.IsNotModified to check whether the returned error was
29568// because http.StatusNotModified was returned.
29569func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
29570	gensupport.SetOptions(c.urlParams_, opts...)
29571	res, err := c.doRequest("json")
29572	if res != nil && res.StatusCode == http.StatusNotModified {
29573		if res.Body != nil {
29574			res.Body.Close()
29575		}
29576		return nil, &googleapi.Error{
29577			Code:   res.StatusCode,
29578			Header: res.Header,
29579		}
29580	}
29581	if err != nil {
29582		return nil, err
29583	}
29584	defer googleapi.CloseBody(res)
29585	if err := googleapi.CheckResponse(res); err != nil {
29586		return nil, err
29587	}
29588	ret := &GoogleCloudApigeeV1Reference{
29589		ServerResponse: googleapi.ServerResponse{
29590			Header:         res.Header,
29591			HTTPStatusCode: res.StatusCode,
29592		},
29593	}
29594	target := &ret
29595	if err := gensupport.DecodeResponse(target, res); err != nil {
29596		return nil, err
29597	}
29598	return ret, nil
29599	// {
29600	//   "description": "Gets a Reference resource.",
29601	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
29602	//   "httpMethod": "GET",
29603	//   "id": "apigee.organizations.environments.references.get",
29604	//   "parameterOrder": [
29605	//     "name"
29606	//   ],
29607	//   "parameters": {
29608	//     "name": {
29609	//       "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
29610	//       "location": "path",
29611	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
29612	//       "required": true,
29613	//       "type": "string"
29614	//     }
29615	//   },
29616	//   "path": "v1/{+name}",
29617	//   "response": {
29618	//     "$ref": "GoogleCloudApigeeV1Reference"
29619	//   },
29620	//   "scopes": [
29621	//     "https://www.googleapis.com/auth/cloud-platform"
29622	//   ]
29623	// }
29624
29625}
29626
29627// method id "apigee.organizations.environments.references.update":
29628
29629type OrganizationsEnvironmentsReferencesUpdateCall struct {
29630	s                            *Service
29631	name                         string
29632	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
29633	urlParams_                   gensupport.URLParams
29634	ctx_                         context.Context
29635	header_                      http.Header
29636}
29637
29638// Update: Updates an existing Reference. Note that this operation has
29639// PUT semantics; it will replace the entirety of the existing Reference
29640// with the resource in the request body.
29641func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
29642	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29643	c.name = name
29644	c.googlecloudapigeev1reference = googlecloudapigeev1reference
29645	return c
29646}
29647
29648// Fields allows partial responses to be retrieved. See
29649// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29650// for more information.
29651func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
29652	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29653	return c
29654}
29655
29656// Context sets the context to be used in this call's Do method. Any
29657// pending HTTP request will be aborted if the provided context is
29658// canceled.
29659func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
29660	c.ctx_ = ctx
29661	return c
29662}
29663
29664// Header returns an http.Header that can be modified by the caller to
29665// add HTTP headers to the request.
29666func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
29667	if c.header_ == nil {
29668		c.header_ = make(http.Header)
29669	}
29670	return c.header_
29671}
29672
29673func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
29674	reqHeaders := make(http.Header)
29675	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29676	for k, v := range c.header_ {
29677		reqHeaders[k] = v
29678	}
29679	reqHeaders.Set("User-Agent", c.s.userAgent())
29680	var body io.Reader = nil
29681	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
29682	if err != nil {
29683		return nil, err
29684	}
29685	reqHeaders.Set("Content-Type", "application/json")
29686	c.urlParams_.Set("alt", alt)
29687	c.urlParams_.Set("prettyPrint", "false")
29688	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29689	urls += "?" + c.urlParams_.Encode()
29690	req, err := http.NewRequest("PUT", urls, body)
29691	if err != nil {
29692		return nil, err
29693	}
29694	req.Header = reqHeaders
29695	googleapi.Expand(req.URL, map[string]string{
29696		"name": c.name,
29697	})
29698	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29699}
29700
29701// Do executes the "apigee.organizations.environments.references.update" call.
29702// Exactly one of *GoogleCloudApigeeV1Reference or error will be
29703// non-nil. Any non-2xx status code is an error. Response headers are in
29704// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
29705// response was returned at all) in error.(*googleapi.Error).Header. Use
29706// googleapi.IsNotModified to check whether the returned error was
29707// because http.StatusNotModified was returned.
29708func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
29709	gensupport.SetOptions(c.urlParams_, opts...)
29710	res, err := c.doRequest("json")
29711	if res != nil && res.StatusCode == http.StatusNotModified {
29712		if res.Body != nil {
29713			res.Body.Close()
29714		}
29715		return nil, &googleapi.Error{
29716			Code:   res.StatusCode,
29717			Header: res.Header,
29718		}
29719	}
29720	if err != nil {
29721		return nil, err
29722	}
29723	defer googleapi.CloseBody(res)
29724	if err := googleapi.CheckResponse(res); err != nil {
29725		return nil, err
29726	}
29727	ret := &GoogleCloudApigeeV1Reference{
29728		ServerResponse: googleapi.ServerResponse{
29729			Header:         res.Header,
29730			HTTPStatusCode: res.StatusCode,
29731		},
29732	}
29733	target := &ret
29734	if err := gensupport.DecodeResponse(target, res); err != nil {
29735		return nil, err
29736	}
29737	return ret, nil
29738	// {
29739	//   "description": "Updates an existing Reference. Note that this operation has PUT semantics; it will replace the entirety of the existing Reference with the resource in the request body.",
29740	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
29741	//   "httpMethod": "PUT",
29742	//   "id": "apigee.organizations.environments.references.update",
29743	//   "parameterOrder": [
29744	//     "name"
29745	//   ],
29746	//   "parameters": {
29747	//     "name": {
29748	//       "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
29749	//       "location": "path",
29750	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
29751	//       "required": true,
29752	//       "type": "string"
29753	//     }
29754	//   },
29755	//   "path": "v1/{+name}",
29756	//   "request": {
29757	//     "$ref": "GoogleCloudApigeeV1Reference"
29758	//   },
29759	//   "response": {
29760	//     "$ref": "GoogleCloudApigeeV1Reference"
29761	//   },
29762	//   "scopes": [
29763	//     "https://www.googleapis.com/auth/cloud-platform"
29764	//   ]
29765	// }
29766
29767}
29768
29769// method id "apigee.organizations.environments.resourcefiles.create":
29770
29771type OrganizationsEnvironmentsResourcefilesCreateCall struct {
29772	s                 *Service
29773	parent            string
29774	googleapihttpbody *GoogleApiHttpBody
29775	urlParams_        gensupport.URLParams
29776	ctx_              context.Context
29777	header_           http.Header
29778}
29779
29780// Create: Creates a resource file. Specify the `Content-Type` as
29781// `application/octet-stream` or `multipart/form-data`. For more
29782// information about resource files, see Resource files
29783// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
29784func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
29785	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29786	c.parent = parent
29787	c.googleapihttpbody = googleapihttpbody
29788	return c
29789}
29790
29791// Name sets the optional parameter "name": Required. Name of the
29792// resource file. Must match the regular expression:
29793// [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}
29794func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
29795	c.urlParams_.Set("name", name)
29796	return c
29797}
29798
29799// Type sets the optional parameter "type": Required. Resource file
29800// type. {{ resource_file_type }}
29801func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
29802	c.urlParams_.Set("type", type_)
29803	return c
29804}
29805
29806// Fields allows partial responses to be retrieved. See
29807// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29808// for more information.
29809func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
29810	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29811	return c
29812}
29813
29814// Context sets the context to be used in this call's Do method. Any
29815// pending HTTP request will be aborted if the provided context is
29816// canceled.
29817func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
29818	c.ctx_ = ctx
29819	return c
29820}
29821
29822// Header returns an http.Header that can be modified by the caller to
29823// add HTTP headers to the request.
29824func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
29825	if c.header_ == nil {
29826		c.header_ = make(http.Header)
29827	}
29828	return c.header_
29829}
29830
29831func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
29832	reqHeaders := make(http.Header)
29833	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29834	for k, v := range c.header_ {
29835		reqHeaders[k] = v
29836	}
29837	reqHeaders.Set("User-Agent", c.s.userAgent())
29838	var body io.Reader = nil
29839	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
29840	if err != nil {
29841		return nil, err
29842	}
29843	reqHeaders.Set("Content-Type", "application/json")
29844	c.urlParams_.Set("alt", alt)
29845	c.urlParams_.Set("prettyPrint", "false")
29846	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
29847	urls += "?" + c.urlParams_.Encode()
29848	req, err := http.NewRequest("POST", urls, body)
29849	if err != nil {
29850		return nil, err
29851	}
29852	req.Header = reqHeaders
29853	googleapi.Expand(req.URL, map[string]string{
29854		"parent": c.parent,
29855	})
29856	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29857}
29858
29859// Do executes the "apigee.organizations.environments.resourcefiles.create" call.
29860// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
29861// non-nil. Any non-2xx status code is an error. Response headers are in
29862// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
29863// a response was returned at all) in error.(*googleapi.Error).Header.
29864// Use googleapi.IsNotModified to check whether the returned error was
29865// because http.StatusNotModified was returned.
29866func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
29867	gensupport.SetOptions(c.urlParams_, opts...)
29868	res, err := c.doRequest("json")
29869	if res != nil && res.StatusCode == http.StatusNotModified {
29870		if res.Body != nil {
29871			res.Body.Close()
29872		}
29873		return nil, &googleapi.Error{
29874			Code:   res.StatusCode,
29875			Header: res.Header,
29876		}
29877	}
29878	if err != nil {
29879		return nil, err
29880	}
29881	defer googleapi.CloseBody(res)
29882	if err := googleapi.CheckResponse(res); err != nil {
29883		return nil, err
29884	}
29885	ret := &GoogleCloudApigeeV1ResourceFile{
29886		ServerResponse: googleapi.ServerResponse{
29887			Header:         res.Header,
29888			HTTPStatusCode: res.StatusCode,
29889		},
29890	}
29891	target := &ret
29892	if err := gensupport.DecodeResponse(target, res); err != nil {
29893		return nil, err
29894	}
29895	return ret, nil
29896	// {
29897	//   "description": "Creates a resource file. Specify the `Content-Type` as `application/octet-stream` or `multipart/form-data`. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).",
29898	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
29899	//   "httpMethod": "POST",
29900	//   "id": "apigee.organizations.environments.resourcefiles.create",
29901	//   "parameterOrder": [
29902	//     "parent"
29903	//   ],
29904	//   "parameters": {
29905	//     "name": {
29906	//       "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
29907	//       "location": "query",
29908	//       "type": "string"
29909	//     },
29910	//     "parent": {
29911	//       "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.",
29912	//       "location": "path",
29913	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29914	//       "required": true,
29915	//       "type": "string"
29916	//     },
29917	//     "type": {
29918	//       "description": "Required. Resource file type. {{ resource_file_type }}",
29919	//       "location": "query",
29920	//       "type": "string"
29921	//     }
29922	//   },
29923	//   "path": "v1/{+parent}/resourcefiles",
29924	//   "request": {
29925	//     "$ref": "GoogleApiHttpBody"
29926	//   },
29927	//   "response": {
29928	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
29929	//   },
29930	//   "scopes": [
29931	//     "https://www.googleapis.com/auth/cloud-platform"
29932	//   ]
29933	// }
29934
29935}
29936
29937// method id "apigee.organizations.environments.resourcefiles.delete":
29938
29939type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
29940	s          *Service
29941	parent     string
29942	type_      string
29943	name       string
29944	urlParams_ gensupport.URLParams
29945	ctx_       context.Context
29946	header_    http.Header
29947}
29948
29949// Delete: Deletes a resource file. For more information about resource
29950// files, see Resource files
29951// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
29952func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
29953	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29954	c.parent = parent
29955	c.type_ = type_
29956	c.name = name
29957	return c
29958}
29959
29960// Fields allows partial responses to be retrieved. See
29961// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29962// for more information.
29963func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
29964	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29965	return c
29966}
29967
29968// Context sets the context to be used in this call's Do method. Any
29969// pending HTTP request will be aborted if the provided context is
29970// canceled.
29971func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
29972	c.ctx_ = ctx
29973	return c
29974}
29975
29976// Header returns an http.Header that can be modified by the caller to
29977// add HTTP headers to the request.
29978func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
29979	if c.header_ == nil {
29980		c.header_ = make(http.Header)
29981	}
29982	return c.header_
29983}
29984
29985func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
29986	reqHeaders := make(http.Header)
29987	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29988	for k, v := range c.header_ {
29989		reqHeaders[k] = v
29990	}
29991	reqHeaders.Set("User-Agent", c.s.userAgent())
29992	var body io.Reader = nil
29993	c.urlParams_.Set("alt", alt)
29994	c.urlParams_.Set("prettyPrint", "false")
29995	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
29996	urls += "?" + c.urlParams_.Encode()
29997	req, err := http.NewRequest("DELETE", urls, body)
29998	if err != nil {
29999		return nil, err
30000	}
30001	req.Header = reqHeaders
30002	googleapi.Expand(req.URL, map[string]string{
30003		"parent": c.parent,
30004		"type":   c.type_,
30005		"name":   c.name,
30006	})
30007	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30008}
30009
30010// Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
30011// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
30012// non-nil. Any non-2xx status code is an error. Response headers are in
30013// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
30014// a response was returned at all) in error.(*googleapi.Error).Header.
30015// Use googleapi.IsNotModified to check whether the returned error was
30016// because http.StatusNotModified was returned.
30017func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
30018	gensupport.SetOptions(c.urlParams_, opts...)
30019	res, err := c.doRequest("json")
30020	if res != nil && res.StatusCode == http.StatusNotModified {
30021		if res.Body != nil {
30022			res.Body.Close()
30023		}
30024		return nil, &googleapi.Error{
30025			Code:   res.StatusCode,
30026			Header: res.Header,
30027		}
30028	}
30029	if err != nil {
30030		return nil, err
30031	}
30032	defer googleapi.CloseBody(res)
30033	if err := googleapi.CheckResponse(res); err != nil {
30034		return nil, err
30035	}
30036	ret := &GoogleCloudApigeeV1ResourceFile{
30037		ServerResponse: googleapi.ServerResponse{
30038			Header:         res.Header,
30039			HTTPStatusCode: res.StatusCode,
30040		},
30041	}
30042	target := &ret
30043	if err := gensupport.DecodeResponse(target, res); err != nil {
30044		return nil, err
30045	}
30046	return ret, nil
30047	// {
30048	//   "description": "Deletes a resource file. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).",
30049	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
30050	//   "httpMethod": "DELETE",
30051	//   "id": "apigee.organizations.environments.resourcefiles.delete",
30052	//   "parameterOrder": [
30053	//     "parent",
30054	//     "type",
30055	//     "name"
30056	//   ],
30057	//   "parameters": {
30058	//     "name": {
30059	//       "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
30060	//       "location": "path",
30061	//       "required": true,
30062	//       "type": "string"
30063	//     },
30064	//     "parent": {
30065	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
30066	//       "location": "path",
30067	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30068	//       "required": true,
30069	//       "type": "string"
30070	//     },
30071	//     "type": {
30072	//       "description": "Required. Resource file type. {{ resource_file_type }}",
30073	//       "location": "path",
30074	//       "required": true,
30075	//       "type": "string"
30076	//     }
30077	//   },
30078	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
30079	//   "response": {
30080	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
30081	//   },
30082	//   "scopes": [
30083	//     "https://www.googleapis.com/auth/cloud-platform"
30084	//   ]
30085	// }
30086
30087}
30088
30089// method id "apigee.organizations.environments.resourcefiles.get":
30090
30091type OrganizationsEnvironmentsResourcefilesGetCall struct {
30092	s            *Service
30093	parent       string
30094	type_        string
30095	name         string
30096	urlParams_   gensupport.URLParams
30097	ifNoneMatch_ string
30098	ctx_         context.Context
30099	header_      http.Header
30100}
30101
30102// Get: Gets the contents of a resource file. For more information about
30103// resource files, see Resource files
30104// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
30105func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
30106	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30107	c.parent = parent
30108	c.type_ = type_
30109	c.name = name
30110	return c
30111}
30112
30113// Fields allows partial responses to be retrieved. See
30114// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30115// for more information.
30116func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
30117	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30118	return c
30119}
30120
30121// IfNoneMatch sets the optional parameter which makes the operation
30122// fail if the object's ETag matches the given value. This is useful for
30123// getting updates only after the object has changed since the last
30124// request. Use googleapi.IsNotModified to check whether the response
30125// error from Do is the result of In-None-Match.
30126func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
30127	c.ifNoneMatch_ = entityTag
30128	return c
30129}
30130
30131// Context sets the context to be used in this call's Do method. Any
30132// pending HTTP request will be aborted if the provided context is
30133// canceled.
30134func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
30135	c.ctx_ = ctx
30136	return c
30137}
30138
30139// Header returns an http.Header that can be modified by the caller to
30140// add HTTP headers to the request.
30141func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
30142	if c.header_ == nil {
30143		c.header_ = make(http.Header)
30144	}
30145	return c.header_
30146}
30147
30148func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
30149	reqHeaders := make(http.Header)
30150	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30151	for k, v := range c.header_ {
30152		reqHeaders[k] = v
30153	}
30154	reqHeaders.Set("User-Agent", c.s.userAgent())
30155	if c.ifNoneMatch_ != "" {
30156		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30157	}
30158	var body io.Reader = nil
30159	c.urlParams_.Set("alt", alt)
30160	c.urlParams_.Set("prettyPrint", "false")
30161	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
30162	urls += "?" + c.urlParams_.Encode()
30163	req, err := http.NewRequest("GET", urls, body)
30164	if err != nil {
30165		return nil, err
30166	}
30167	req.Header = reqHeaders
30168	googleapi.Expand(req.URL, map[string]string{
30169		"parent": c.parent,
30170		"type":   c.type_,
30171		"name":   c.name,
30172	})
30173	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30174}
30175
30176// Do executes the "apigee.organizations.environments.resourcefiles.get" call.
30177// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
30178// non-2xx status code is an error. Response headers are in either
30179// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
30180// returned at all) in error.(*googleapi.Error).Header. Use
30181// googleapi.IsNotModified to check whether the returned error was
30182// because http.StatusNotModified was returned.
30183func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
30184	gensupport.SetOptions(c.urlParams_, opts...)
30185	res, err := c.doRequest("json")
30186	if res != nil && res.StatusCode == http.StatusNotModified {
30187		if res.Body != nil {
30188			res.Body.Close()
30189		}
30190		return nil, &googleapi.Error{
30191			Code:   res.StatusCode,
30192			Header: res.Header,
30193		}
30194	}
30195	if err != nil {
30196		return nil, err
30197	}
30198	defer googleapi.CloseBody(res)
30199	if err := googleapi.CheckResponse(res); err != nil {
30200		return nil, err
30201	}
30202	ret := &GoogleApiHttpBody{
30203		ServerResponse: googleapi.ServerResponse{
30204			Header:         res.Header,
30205			HTTPStatusCode: res.StatusCode,
30206		},
30207	}
30208	target := &ret
30209	if err := gensupport.DecodeResponse(target, res); err != nil {
30210		return nil, err
30211	}
30212	return ret, nil
30213	// {
30214	//   "description": "Gets the contents of a resource file. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).",
30215	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
30216	//   "httpMethod": "GET",
30217	//   "id": "apigee.organizations.environments.resourcefiles.get",
30218	//   "parameterOrder": [
30219	//     "parent",
30220	//     "type",
30221	//     "name"
30222	//   ],
30223	//   "parameters": {
30224	//     "name": {
30225	//       "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
30226	//       "location": "path",
30227	//       "required": true,
30228	//       "type": "string"
30229	//     },
30230	//     "parent": {
30231	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
30232	//       "location": "path",
30233	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30234	//       "required": true,
30235	//       "type": "string"
30236	//     },
30237	//     "type": {
30238	//       "description": "Required. Resource file type. {{ resource_file_type }}",
30239	//       "location": "path",
30240	//       "required": true,
30241	//       "type": "string"
30242	//     }
30243	//   },
30244	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
30245	//   "response": {
30246	//     "$ref": "GoogleApiHttpBody"
30247	//   },
30248	//   "scopes": [
30249	//     "https://www.googleapis.com/auth/cloud-platform"
30250	//   ]
30251	// }
30252
30253}
30254
30255// method id "apigee.organizations.environments.resourcefiles.list":
30256
30257type OrganizationsEnvironmentsResourcefilesListCall struct {
30258	s            *Service
30259	parent       string
30260	urlParams_   gensupport.URLParams
30261	ifNoneMatch_ string
30262	ctx_         context.Context
30263	header_      http.Header
30264}
30265
30266// List: Lists all resource files, optionally filtering by type. For
30267// more information about resource files, see Resource files
30268// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
30269func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
30270	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30271	c.parent = parent
30272	return c
30273}
30274
30275// Type sets the optional parameter "type": Type of resource files to
30276// list. {{ resource_file_type }}
30277func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
30278	c.urlParams_.Set("type", type_)
30279	return c
30280}
30281
30282// Fields allows partial responses to be retrieved. See
30283// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30284// for more information.
30285func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
30286	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30287	return c
30288}
30289
30290// IfNoneMatch sets the optional parameter which makes the operation
30291// fail if the object's ETag matches the given value. This is useful for
30292// getting updates only after the object has changed since the last
30293// request. Use googleapi.IsNotModified to check whether the response
30294// error from Do is the result of In-None-Match.
30295func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
30296	c.ifNoneMatch_ = entityTag
30297	return c
30298}
30299
30300// Context sets the context to be used in this call's Do method. Any
30301// pending HTTP request will be aborted if the provided context is
30302// canceled.
30303func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
30304	c.ctx_ = ctx
30305	return c
30306}
30307
30308// Header returns an http.Header that can be modified by the caller to
30309// add HTTP headers to the request.
30310func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
30311	if c.header_ == nil {
30312		c.header_ = make(http.Header)
30313	}
30314	return c.header_
30315}
30316
30317func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
30318	reqHeaders := make(http.Header)
30319	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30320	for k, v := range c.header_ {
30321		reqHeaders[k] = v
30322	}
30323	reqHeaders.Set("User-Agent", c.s.userAgent())
30324	if c.ifNoneMatch_ != "" {
30325		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30326	}
30327	var body io.Reader = nil
30328	c.urlParams_.Set("alt", alt)
30329	c.urlParams_.Set("prettyPrint", "false")
30330	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
30331	urls += "?" + c.urlParams_.Encode()
30332	req, err := http.NewRequest("GET", urls, body)
30333	if err != nil {
30334		return nil, err
30335	}
30336	req.Header = reqHeaders
30337	googleapi.Expand(req.URL, map[string]string{
30338		"parent": c.parent,
30339	})
30340	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30341}
30342
30343// Do executes the "apigee.organizations.environments.resourcefiles.list" call.
30344// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
30345// or error will be non-nil. Any non-2xx status code is an error.
30346// Response headers are in either
30347// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
30348// ader or (if a response was returned at all) in
30349// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30350// whether the returned error was because http.StatusNotModified was
30351// returned.
30352func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
30353	gensupport.SetOptions(c.urlParams_, opts...)
30354	res, err := c.doRequest("json")
30355	if res != nil && res.StatusCode == http.StatusNotModified {
30356		if res.Body != nil {
30357			res.Body.Close()
30358		}
30359		return nil, &googleapi.Error{
30360			Code:   res.StatusCode,
30361			Header: res.Header,
30362		}
30363	}
30364	if err != nil {
30365		return nil, err
30366	}
30367	defer googleapi.CloseBody(res)
30368	if err := googleapi.CheckResponse(res); err != nil {
30369		return nil, err
30370	}
30371	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
30372		ServerResponse: googleapi.ServerResponse{
30373			Header:         res.Header,
30374			HTTPStatusCode: res.StatusCode,
30375		},
30376	}
30377	target := &ret
30378	if err := gensupport.DecodeResponse(target, res); err != nil {
30379		return nil, err
30380	}
30381	return ret, nil
30382	// {
30383	//   "description": "Lists all resource files, optionally filtering by type. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).",
30384	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
30385	//   "httpMethod": "GET",
30386	//   "id": "apigee.organizations.environments.resourcefiles.list",
30387	//   "parameterOrder": [
30388	//     "parent"
30389	//   ],
30390	//   "parameters": {
30391	//     "parent": {
30392	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
30393	//       "location": "path",
30394	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30395	//       "required": true,
30396	//       "type": "string"
30397	//     },
30398	//     "type": {
30399	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
30400	//       "location": "query",
30401	//       "type": "string"
30402	//     }
30403	//   },
30404	//   "path": "v1/{+parent}/resourcefiles",
30405	//   "response": {
30406	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
30407	//   },
30408	//   "scopes": [
30409	//     "https://www.googleapis.com/auth/cloud-platform"
30410	//   ]
30411	// }
30412
30413}
30414
30415// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources":
30416
30417type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
30418	s            *Service
30419	parent       string
30420	type_        string
30421	urlParams_   gensupport.URLParams
30422	ifNoneMatch_ string
30423	ctx_         context.Context
30424	header_      http.Header
30425}
30426
30427// ListEnvironmentResources: Lists all resource files, optionally
30428// filtering by type. For more information about resource files, see
30429// Resource files
30430// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
30431func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
30432	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30433	c.parent = parent
30434	c.type_ = type_
30435	return c
30436}
30437
30438// Fields allows partial responses to be retrieved. See
30439// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30440// for more information.
30441func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
30442	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30443	return c
30444}
30445
30446// IfNoneMatch sets the optional parameter which makes the operation
30447// fail if the object's ETag matches the given value. This is useful for
30448// getting updates only after the object has changed since the last
30449// request. Use googleapi.IsNotModified to check whether the response
30450// error from Do is the result of In-None-Match.
30451func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
30452	c.ifNoneMatch_ = entityTag
30453	return c
30454}
30455
30456// Context sets the context to be used in this call's Do method. Any
30457// pending HTTP request will be aborted if the provided context is
30458// canceled.
30459func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
30460	c.ctx_ = ctx
30461	return c
30462}
30463
30464// Header returns an http.Header that can be modified by the caller to
30465// add HTTP headers to the request.
30466func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
30467	if c.header_ == nil {
30468		c.header_ = make(http.Header)
30469	}
30470	return c.header_
30471}
30472
30473func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
30474	reqHeaders := make(http.Header)
30475	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30476	for k, v := range c.header_ {
30477		reqHeaders[k] = v
30478	}
30479	reqHeaders.Set("User-Agent", c.s.userAgent())
30480	if c.ifNoneMatch_ != "" {
30481		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30482	}
30483	var body io.Reader = nil
30484	c.urlParams_.Set("alt", alt)
30485	c.urlParams_.Set("prettyPrint", "false")
30486	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
30487	urls += "?" + c.urlParams_.Encode()
30488	req, err := http.NewRequest("GET", urls, body)
30489	if err != nil {
30490		return nil, err
30491	}
30492	req.Header = reqHeaders
30493	googleapi.Expand(req.URL, map[string]string{
30494		"parent": c.parent,
30495		"type":   c.type_,
30496	})
30497	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30498}
30499
30500// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
30501// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
30502// or error will be non-nil. Any non-2xx status code is an error.
30503// Response headers are in either
30504// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
30505// ader or (if a response was returned at all) in
30506// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30507// whether the returned error was because http.StatusNotModified was
30508// returned.
30509func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
30510	gensupport.SetOptions(c.urlParams_, opts...)
30511	res, err := c.doRequest("json")
30512	if res != nil && res.StatusCode == http.StatusNotModified {
30513		if res.Body != nil {
30514			res.Body.Close()
30515		}
30516		return nil, &googleapi.Error{
30517			Code:   res.StatusCode,
30518			Header: res.Header,
30519		}
30520	}
30521	if err != nil {
30522		return nil, err
30523	}
30524	defer googleapi.CloseBody(res)
30525	if err := googleapi.CheckResponse(res); err != nil {
30526		return nil, err
30527	}
30528	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
30529		ServerResponse: googleapi.ServerResponse{
30530			Header:         res.Header,
30531			HTTPStatusCode: res.StatusCode,
30532		},
30533	}
30534	target := &ret
30535	if err := gensupport.DecodeResponse(target, res); err != nil {
30536		return nil, err
30537	}
30538	return ret, nil
30539	// {
30540	//   "description": "Lists all resource files, optionally filtering by type. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).",
30541	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}",
30542	//   "httpMethod": "GET",
30543	//   "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources",
30544	//   "parameterOrder": [
30545	//     "parent",
30546	//     "type"
30547	//   ],
30548	//   "parameters": {
30549	//     "parent": {
30550	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
30551	//       "location": "path",
30552	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30553	//       "required": true,
30554	//       "type": "string"
30555	//     },
30556	//     "type": {
30557	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
30558	//       "location": "path",
30559	//       "required": true,
30560	//       "type": "string"
30561	//     }
30562	//   },
30563	//   "path": "v1/{+parent}/resourcefiles/{type}",
30564	//   "response": {
30565	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
30566	//   },
30567	//   "scopes": [
30568	//     "https://www.googleapis.com/auth/cloud-platform"
30569	//   ]
30570	// }
30571
30572}
30573
30574// method id "apigee.organizations.environments.resourcefiles.update":
30575
30576type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
30577	s                 *Service
30578	parent            string
30579	type_             string
30580	name              string
30581	googleapihttpbody *GoogleApiHttpBody
30582	urlParams_        gensupport.URLParams
30583	ctx_              context.Context
30584	header_           http.Header
30585}
30586
30587// Update: Updates a resource file. Specify the `Content-Type` as
30588// `application/octet-stream` or `multipart/form-data`. For more
30589// information about resource files, see Resource files
30590// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
30591func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
30592	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30593	c.parent = parent
30594	c.type_ = type_
30595	c.name = name
30596	c.googleapihttpbody = googleapihttpbody
30597	return c
30598}
30599
30600// Fields allows partial responses to be retrieved. See
30601// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30602// for more information.
30603func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
30604	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30605	return c
30606}
30607
30608// Context sets the context to be used in this call's Do method. Any
30609// pending HTTP request will be aborted if the provided context is
30610// canceled.
30611func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
30612	c.ctx_ = ctx
30613	return c
30614}
30615
30616// Header returns an http.Header that can be modified by the caller to
30617// add HTTP headers to the request.
30618func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
30619	if c.header_ == nil {
30620		c.header_ = make(http.Header)
30621	}
30622	return c.header_
30623}
30624
30625func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
30626	reqHeaders := make(http.Header)
30627	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30628	for k, v := range c.header_ {
30629		reqHeaders[k] = v
30630	}
30631	reqHeaders.Set("User-Agent", c.s.userAgent())
30632	var body io.Reader = nil
30633	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
30634	if err != nil {
30635		return nil, err
30636	}
30637	reqHeaders.Set("Content-Type", "application/json")
30638	c.urlParams_.Set("alt", alt)
30639	c.urlParams_.Set("prettyPrint", "false")
30640	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
30641	urls += "?" + c.urlParams_.Encode()
30642	req, err := http.NewRequest("PUT", urls, body)
30643	if err != nil {
30644		return nil, err
30645	}
30646	req.Header = reqHeaders
30647	googleapi.Expand(req.URL, map[string]string{
30648		"parent": c.parent,
30649		"type":   c.type_,
30650		"name":   c.name,
30651	})
30652	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30653}
30654
30655// Do executes the "apigee.organizations.environments.resourcefiles.update" call.
30656// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
30657// non-nil. Any non-2xx status code is an error. Response headers are in
30658// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
30659// a response was returned at all) in error.(*googleapi.Error).Header.
30660// Use googleapi.IsNotModified to check whether the returned error was
30661// because http.StatusNotModified was returned.
30662func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
30663	gensupport.SetOptions(c.urlParams_, opts...)
30664	res, err := c.doRequest("json")
30665	if res != nil && res.StatusCode == http.StatusNotModified {
30666		if res.Body != nil {
30667			res.Body.Close()
30668		}
30669		return nil, &googleapi.Error{
30670			Code:   res.StatusCode,
30671			Header: res.Header,
30672		}
30673	}
30674	if err != nil {
30675		return nil, err
30676	}
30677	defer googleapi.CloseBody(res)
30678	if err := googleapi.CheckResponse(res); err != nil {
30679		return nil, err
30680	}
30681	ret := &GoogleCloudApigeeV1ResourceFile{
30682		ServerResponse: googleapi.ServerResponse{
30683			Header:         res.Header,
30684			HTTPStatusCode: res.StatusCode,
30685		},
30686	}
30687	target := &ret
30688	if err := gensupport.DecodeResponse(target, res); err != nil {
30689		return nil, err
30690	}
30691	return ret, nil
30692	// {
30693	//   "description": "Updates a resource file. Specify the `Content-Type` as `application/octet-stream` or `multipart/form-data`. For more information about resource files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).",
30694	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
30695	//   "httpMethod": "PUT",
30696	//   "id": "apigee.organizations.environments.resourcefiles.update",
30697	//   "parameterOrder": [
30698	//     "parent",
30699	//     "type",
30700	//     "name"
30701	//   ],
30702	//   "parameters": {
30703	//     "name": {
30704	//       "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
30705	//       "location": "path",
30706	//       "required": true,
30707	//       "type": "string"
30708	//     },
30709	//     "parent": {
30710	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
30711	//       "location": "path",
30712	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30713	//       "required": true,
30714	//       "type": "string"
30715	//     },
30716	//     "type": {
30717	//       "description": "Required. Resource file type. {{ resource_file_type }}",
30718	//       "location": "path",
30719	//       "required": true,
30720	//       "type": "string"
30721	//     }
30722	//   },
30723	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
30724	//   "request": {
30725	//     "$ref": "GoogleApiHttpBody"
30726	//   },
30727	//   "response": {
30728	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
30729	//   },
30730	//   "scopes": [
30731	//     "https://www.googleapis.com/auth/cloud-platform"
30732	//   ]
30733	// }
30734
30735}
30736
30737// method id "apigee.organizations.environments.sharedflows.deployments.list":
30738
30739type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
30740	s            *Service
30741	parent       string
30742	urlParams_   gensupport.URLParams
30743	ifNoneMatch_ string
30744	ctx_         context.Context
30745	header_      http.Header
30746}
30747
30748// List: Lists all deployments of a shared flow in an environment.
30749func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
30750	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30751	c.parent = parent
30752	return c
30753}
30754
30755// Fields allows partial responses to be retrieved. See
30756// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30757// for more information.
30758func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
30759	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30760	return c
30761}
30762
30763// IfNoneMatch sets the optional parameter which makes the operation
30764// fail if the object's ETag matches the given value. This is useful for
30765// getting updates only after the object has changed since the last
30766// request. Use googleapi.IsNotModified to check whether the response
30767// error from Do is the result of In-None-Match.
30768func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
30769	c.ifNoneMatch_ = entityTag
30770	return c
30771}
30772
30773// Context sets the context to be used in this call's Do method. Any
30774// pending HTTP request will be aborted if the provided context is
30775// canceled.
30776func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
30777	c.ctx_ = ctx
30778	return c
30779}
30780
30781// Header returns an http.Header that can be modified by the caller to
30782// add HTTP headers to the request.
30783func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
30784	if c.header_ == nil {
30785		c.header_ = make(http.Header)
30786	}
30787	return c.header_
30788}
30789
30790func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
30791	reqHeaders := make(http.Header)
30792	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30793	for k, v := range c.header_ {
30794		reqHeaders[k] = v
30795	}
30796	reqHeaders.Set("User-Agent", c.s.userAgent())
30797	if c.ifNoneMatch_ != "" {
30798		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30799	}
30800	var body io.Reader = nil
30801	c.urlParams_.Set("alt", alt)
30802	c.urlParams_.Set("prettyPrint", "false")
30803	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
30804	urls += "?" + c.urlParams_.Encode()
30805	req, err := http.NewRequest("GET", urls, body)
30806	if err != nil {
30807		return nil, err
30808	}
30809	req.Header = reqHeaders
30810	googleapi.Expand(req.URL, map[string]string{
30811		"parent": c.parent,
30812	})
30813	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30814}
30815
30816// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
30817// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
30818// will be non-nil. Any non-2xx status code is an error. Response
30819// headers are in either
30820// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
30821// (if a response was returned at all) in
30822// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30823// whether the returned error was because http.StatusNotModified was
30824// returned.
30825func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
30826	gensupport.SetOptions(c.urlParams_, opts...)
30827	res, err := c.doRequest("json")
30828	if res != nil && res.StatusCode == http.StatusNotModified {
30829		if res.Body != nil {
30830			res.Body.Close()
30831		}
30832		return nil, &googleapi.Error{
30833			Code:   res.StatusCode,
30834			Header: res.Header,
30835		}
30836	}
30837	if err != nil {
30838		return nil, err
30839	}
30840	defer googleapi.CloseBody(res)
30841	if err := googleapi.CheckResponse(res); err != nil {
30842		return nil, err
30843	}
30844	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
30845		ServerResponse: googleapi.ServerResponse{
30846			Header:         res.Header,
30847			HTTPStatusCode: res.StatusCode,
30848		},
30849	}
30850	target := &ret
30851	if err := gensupport.DecodeResponse(target, res); err != nil {
30852		return nil, err
30853	}
30854	return ret, nil
30855	// {
30856	//   "description": "Lists all deployments of a shared flow in an environment.",
30857	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments",
30858	//   "httpMethod": "GET",
30859	//   "id": "apigee.organizations.environments.sharedflows.deployments.list",
30860	//   "parameterOrder": [
30861	//     "parent"
30862	//   ],
30863	//   "parameters": {
30864	//     "parent": {
30865	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`",
30866	//       "location": "path",
30867	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$",
30868	//       "required": true,
30869	//       "type": "string"
30870	//     }
30871	//   },
30872	//   "path": "v1/{+parent}/deployments",
30873	//   "response": {
30874	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
30875	//   },
30876	//   "scopes": [
30877	//     "https://www.googleapis.com/auth/cloud-platform"
30878	//   ]
30879	// }
30880
30881}
30882
30883// method id "apigee.organizations.environments.sharedflows.revisions.deploy":
30884
30885type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
30886	s          *Service
30887	name       string
30888	urlParams_ gensupport.URLParams
30889	ctx_       context.Context
30890	header_    http.Header
30891}
30892
30893// Deploy: Deploys a revision of a shared flow. If another revision of
30894// the same shared flow is currently deployed, set the `override`
30895// parameter to `true` to have this revision replace the currently
30896// deployed revision. You cannot use a shared flow until it has been
30897// deployed to an environment. For a request path
30898// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
30899// v}/deployments`, two permissions are required: *
30900// `apigee.deployments.create` on the resource
30901// `organizations/{org}/environments/{env}` *
30902// `apigee.sharedflowrevisions.deploy` on the resource
30903// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
30904func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
30905	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30906	c.name = name
30907	return c
30908}
30909
30910// Override sets the optional parameter "override": Flag that specifies
30911// whether the new deployment replaces other deployed revisions of the
30912// shared flow in the environment. Set `override` to `true` to replace
30913// other deployed revisions. By default, `override` is `false` and the
30914// deployment is rejected if other revisions of the shared flow are
30915// deployed in the environment.
30916func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
30917	c.urlParams_.Set("override", fmt.Sprint(override))
30918	return c
30919}
30920
30921// Fields allows partial responses to be retrieved. See
30922// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30923// for more information.
30924func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
30925	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30926	return c
30927}
30928
30929// Context sets the context to be used in this call's Do method. Any
30930// pending HTTP request will be aborted if the provided context is
30931// canceled.
30932func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
30933	c.ctx_ = ctx
30934	return c
30935}
30936
30937// Header returns an http.Header that can be modified by the caller to
30938// add HTTP headers to the request.
30939func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
30940	if c.header_ == nil {
30941		c.header_ = make(http.Header)
30942	}
30943	return c.header_
30944}
30945
30946func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
30947	reqHeaders := make(http.Header)
30948	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30949	for k, v := range c.header_ {
30950		reqHeaders[k] = v
30951	}
30952	reqHeaders.Set("User-Agent", c.s.userAgent())
30953	var body io.Reader = nil
30954	c.urlParams_.Set("alt", alt)
30955	c.urlParams_.Set("prettyPrint", "false")
30956	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
30957	urls += "?" + c.urlParams_.Encode()
30958	req, err := http.NewRequest("POST", urls, body)
30959	if err != nil {
30960		return nil, err
30961	}
30962	req.Header = reqHeaders
30963	googleapi.Expand(req.URL, map[string]string{
30964		"name": c.name,
30965	})
30966	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30967}
30968
30969// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call.
30970// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
30971// non-nil. Any non-2xx status code is an error. Response headers are in
30972// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
30973// response was returned at all) in error.(*googleapi.Error).Header. Use
30974// googleapi.IsNotModified to check whether the returned error was
30975// because http.StatusNotModified was returned.
30976func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
30977	gensupport.SetOptions(c.urlParams_, opts...)
30978	res, err := c.doRequest("json")
30979	if res != nil && res.StatusCode == http.StatusNotModified {
30980		if res.Body != nil {
30981			res.Body.Close()
30982		}
30983		return nil, &googleapi.Error{
30984			Code:   res.StatusCode,
30985			Header: res.Header,
30986		}
30987	}
30988	if err != nil {
30989		return nil, err
30990	}
30991	defer googleapi.CloseBody(res)
30992	if err := googleapi.CheckResponse(res); err != nil {
30993		return nil, err
30994	}
30995	ret := &GoogleCloudApigeeV1Deployment{
30996		ServerResponse: googleapi.ServerResponse{
30997			Header:         res.Header,
30998			HTTPStatusCode: res.StatusCode,
30999		},
31000	}
31001	target := &ret
31002	if err := gensupport.DecodeResponse(target, res); err != nil {
31003		return nil, err
31004	}
31005	return ret, nil
31006	// {
31007	//   "description": "Deploys a revision of a shared flow. If another revision of the same shared flow is currently deployed, set the `override` parameter to `true` to have this revision replace the currently deployed revision. You cannot use a shared flow until it has been deployed to an environment. For a request path `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.create` on the resource `organizations/{org}/environments/{env}` * `apigee.sharedflowrevisions.deploy` on the resource `organizations/{org}/sharedflows/{sf}/revisions/{rev}`",
31008	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
31009	//   "httpMethod": "POST",
31010	//   "id": "apigee.organizations.environments.sharedflows.revisions.deploy",
31011	//   "parameterOrder": [
31012	//     "name"
31013	//   ],
31014	//   "parameters": {
31015	//     "name": {
31016	//       "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
31017	//       "location": "path",
31018	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
31019	//       "required": true,
31020	//       "type": "string"
31021	//     },
31022	//     "override": {
31023	//       "description": "Flag that specifies whether the new deployment replaces other deployed revisions of the shared flow in the environment. Set `override` to `true` to replace other deployed revisions. By default, `override` is `false` and the deployment is rejected if other revisions of the shared flow are deployed in the environment.",
31024	//       "location": "query",
31025	//       "type": "boolean"
31026	//     }
31027	//   },
31028	//   "path": "v1/{+name}/deployments",
31029	//   "response": {
31030	//     "$ref": "GoogleCloudApigeeV1Deployment"
31031	//   },
31032	//   "scopes": [
31033	//     "https://www.googleapis.com/auth/cloud-platform"
31034	//   ]
31035	// }
31036
31037}
31038
31039// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments":
31040
31041type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
31042	s            *Service
31043	name         string
31044	urlParams_   gensupport.URLParams
31045	ifNoneMatch_ string
31046	ctx_         context.Context
31047	header_      http.Header
31048}
31049
31050// GetDeployments: Gets the deployment of a shared flow revision and
31051// actual state reported by runtime pods.
31052func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
31053	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31054	c.name = name
31055	return c
31056}
31057
31058// Fields allows partial responses to be retrieved. See
31059// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31060// for more information.
31061func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
31062	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31063	return c
31064}
31065
31066// IfNoneMatch sets the optional parameter which makes the operation
31067// fail if the object's ETag matches the given value. This is useful for
31068// getting updates only after the object has changed since the last
31069// request. Use googleapi.IsNotModified to check whether the response
31070// error from Do is the result of In-None-Match.
31071func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
31072	c.ifNoneMatch_ = entityTag
31073	return c
31074}
31075
31076// Context sets the context to be used in this call's Do method. Any
31077// pending HTTP request will be aborted if the provided context is
31078// canceled.
31079func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
31080	c.ctx_ = ctx
31081	return c
31082}
31083
31084// Header returns an http.Header that can be modified by the caller to
31085// add HTTP headers to the request.
31086func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
31087	if c.header_ == nil {
31088		c.header_ = make(http.Header)
31089	}
31090	return c.header_
31091}
31092
31093func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
31094	reqHeaders := make(http.Header)
31095	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31096	for k, v := range c.header_ {
31097		reqHeaders[k] = v
31098	}
31099	reqHeaders.Set("User-Agent", c.s.userAgent())
31100	if c.ifNoneMatch_ != "" {
31101		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31102	}
31103	var body io.Reader = nil
31104	c.urlParams_.Set("alt", alt)
31105	c.urlParams_.Set("prettyPrint", "false")
31106	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
31107	urls += "?" + c.urlParams_.Encode()
31108	req, err := http.NewRequest("GET", urls, body)
31109	if err != nil {
31110		return nil, err
31111	}
31112	req.Header = reqHeaders
31113	googleapi.Expand(req.URL, map[string]string{
31114		"name": c.name,
31115	})
31116	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31117}
31118
31119// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
31120// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
31121// non-nil. Any non-2xx status code is an error. Response headers are in
31122// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
31123// response was returned at all) in error.(*googleapi.Error).Header. Use
31124// googleapi.IsNotModified to check whether the returned error was
31125// because http.StatusNotModified was returned.
31126func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
31127	gensupport.SetOptions(c.urlParams_, opts...)
31128	res, err := c.doRequest("json")
31129	if res != nil && res.StatusCode == http.StatusNotModified {
31130		if res.Body != nil {
31131			res.Body.Close()
31132		}
31133		return nil, &googleapi.Error{
31134			Code:   res.StatusCode,
31135			Header: res.Header,
31136		}
31137	}
31138	if err != nil {
31139		return nil, err
31140	}
31141	defer googleapi.CloseBody(res)
31142	if err := googleapi.CheckResponse(res); err != nil {
31143		return nil, err
31144	}
31145	ret := &GoogleCloudApigeeV1Deployment{
31146		ServerResponse: googleapi.ServerResponse{
31147			Header:         res.Header,
31148			HTTPStatusCode: res.StatusCode,
31149		},
31150	}
31151	target := &ret
31152	if err := gensupport.DecodeResponse(target, res); err != nil {
31153		return nil, err
31154	}
31155	return ret, nil
31156	// {
31157	//   "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.",
31158	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
31159	//   "httpMethod": "GET",
31160	//   "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments",
31161	//   "parameterOrder": [
31162	//     "name"
31163	//   ],
31164	//   "parameters": {
31165	//     "name": {
31166	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
31167	//       "location": "path",
31168	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
31169	//       "required": true,
31170	//       "type": "string"
31171	//     }
31172	//   },
31173	//   "path": "v1/{+name}/deployments",
31174	//   "response": {
31175	//     "$ref": "GoogleCloudApigeeV1Deployment"
31176	//   },
31177	//   "scopes": [
31178	//     "https://www.googleapis.com/auth/cloud-platform"
31179	//   ]
31180	// }
31181
31182}
31183
31184// method id "apigee.organizations.environments.sharedflows.revisions.undeploy":
31185
31186type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
31187	s          *Service
31188	name       string
31189	urlParams_ gensupport.URLParams
31190	ctx_       context.Context
31191	header_    http.Header
31192}
31193
31194// Undeploy: Undeploys a shared flow revision from an environment. For a
31195// request path
31196// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
31197// v}/deployments`, two permissions are required: *
31198// `apigee.deployments.delete` on the resource
31199// `organizations/{org}/environments/{env}` *
31200// `apigee.sharedflowrevisions.undeploy` on the resource
31201// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
31202func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
31203	c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31204	c.name = name
31205	return c
31206}
31207
31208// Fields allows partial responses to be retrieved. See
31209// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31210// for more information.
31211func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
31212	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31213	return c
31214}
31215
31216// Context sets the context to be used in this call's Do method. Any
31217// pending HTTP request will be aborted if the provided context is
31218// canceled.
31219func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
31220	c.ctx_ = ctx
31221	return c
31222}
31223
31224// Header returns an http.Header that can be modified by the caller to
31225// add HTTP headers to the request.
31226func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
31227	if c.header_ == nil {
31228		c.header_ = make(http.Header)
31229	}
31230	return c.header_
31231}
31232
31233func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
31234	reqHeaders := make(http.Header)
31235	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31236	for k, v := range c.header_ {
31237		reqHeaders[k] = v
31238	}
31239	reqHeaders.Set("User-Agent", c.s.userAgent())
31240	var body io.Reader = nil
31241	c.urlParams_.Set("alt", alt)
31242	c.urlParams_.Set("prettyPrint", "false")
31243	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
31244	urls += "?" + c.urlParams_.Encode()
31245	req, err := http.NewRequest("DELETE", urls, body)
31246	if err != nil {
31247		return nil, err
31248	}
31249	req.Header = reqHeaders
31250	googleapi.Expand(req.URL, map[string]string{
31251		"name": c.name,
31252	})
31253	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31254}
31255
31256// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call.
31257// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
31258// non-2xx status code is an error. Response headers are in either
31259// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
31260// returned at all) in error.(*googleapi.Error).Header. Use
31261// googleapi.IsNotModified to check whether the returned error was
31262// because http.StatusNotModified was returned.
31263func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31264	gensupport.SetOptions(c.urlParams_, opts...)
31265	res, err := c.doRequest("json")
31266	if res != nil && res.StatusCode == http.StatusNotModified {
31267		if res.Body != nil {
31268			res.Body.Close()
31269		}
31270		return nil, &googleapi.Error{
31271			Code:   res.StatusCode,
31272			Header: res.Header,
31273		}
31274	}
31275	if err != nil {
31276		return nil, err
31277	}
31278	defer googleapi.CloseBody(res)
31279	if err := googleapi.CheckResponse(res); err != nil {
31280		return nil, err
31281	}
31282	ret := &GoogleProtobufEmpty{
31283		ServerResponse: googleapi.ServerResponse{
31284			Header:         res.Header,
31285			HTTPStatusCode: res.StatusCode,
31286		},
31287	}
31288	target := &ret
31289	if err := gensupport.DecodeResponse(target, res); err != nil {
31290		return nil, err
31291	}
31292	return ret, nil
31293	// {
31294	//   "description": "Undeploys a shared flow revision from an environment. For a request path `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{rev}/deployments`, two permissions are required: * `apigee.deployments.delete` on the resource `organizations/{org}/environments/{env}` * `apigee.sharedflowrevisions.undeploy` on the resource `organizations/{org}/sharedflows/{sf}/revisions/{rev}`",
31295	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
31296	//   "httpMethod": "DELETE",
31297	//   "id": "apigee.organizations.environments.sharedflows.revisions.undeploy",
31298	//   "parameterOrder": [
31299	//     "name"
31300	//   ],
31301	//   "parameters": {
31302	//     "name": {
31303	//       "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
31304	//       "location": "path",
31305	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
31306	//       "required": true,
31307	//       "type": "string"
31308	//     }
31309	//   },
31310	//   "path": "v1/{+name}/deployments",
31311	//   "response": {
31312	//     "$ref": "GoogleProtobufEmpty"
31313	//   },
31314	//   "scopes": [
31315	//     "https://www.googleapis.com/auth/cloud-platform"
31316	//   ]
31317	// }
31318
31319}
31320
31321// method id "apigee.organizations.environments.stats.get":
31322
31323type OrganizationsEnvironmentsStatsGetCall struct {
31324	s            *Service
31325	name         string
31326	urlParams_   gensupport.URLParams
31327	ifNoneMatch_ string
31328	ctx_         context.Context
31329	header_      http.Header
31330}
31331
31332// Get: Retrieve metrics grouped by dimensions. The types of metrics you
31333// can retrieve include traffic, message counts, API call latency,
31334// response size, and cache hits and counts. Dimensions let you view
31335// metrics in meaningful groups. The stats api does accept dimensions as
31336// path params. The dimensions are optional in which case the metrics
31337// are computed on the entire data for the given timerange.
31338func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
31339	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31340	c.name = name
31341	return c
31342}
31343
31344// Accuracy sets the optional parameter "accuracy": Legacy field: not
31345// used anymore. This field is present to support UI calls which still
31346// use this parameter.
31347func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
31348	c.urlParams_.Set("accuracy", accuracy)
31349	return c
31350}
31351
31352// AggTable sets the optional parameter "aggTable": If customers want to
31353// query custom aggregate tables, then this parameter can be used to
31354// specify the table name. If this parameter is skipped, then Edge Query
31355// will try to retrieve the data from fact tables which will be
31356// expensive.
31357func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
31358	c.urlParams_.Set("aggTable", aggTable)
31359	return c
31360}
31361
31362// Filter sets the optional parameter "filter": Enables drill-down on
31363// specific dimension values
31364func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
31365	c.urlParams_.Set("filter", filter)
31366	return c
31367}
31368
31369// Limit sets the optional parameter "limit": This parameter is used to
31370// limit the number of result items. Default and the max value is 14400.
31371func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
31372	c.urlParams_.Set("limit", limit)
31373	return c
31374}
31375
31376// Offset sets the optional parameter "offset": Use offset with limit to
31377// enable pagination of results. For example, to display results 11-20,
31378// set limit to '10' and offset to '10'.
31379func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
31380	c.urlParams_.Set("offset", offset)
31381	return c
31382}
31383
31384// Realtime sets the optional parameter "realtime": Legacy field: not
31385// used anymore.
31386func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
31387	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
31388	return c
31389}
31390
31391// Select sets the optional parameter "select": The select parameter
31392// contains a comma separated list of metrics. E.g.
31393// sum(message_count),sum(error_count)
31394func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
31395	c.urlParams_.Set("select", select_)
31396	return c
31397}
31398
31399// Sonar sets the optional parameter "sonar": This parameter routes the
31400// query to api monitoring service for last hour.
31401func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
31402	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
31403	return c
31404}
31405
31406// Sort sets the optional parameter "sort": This parameter specifies if
31407// the sort order should be ascending or descending Supported values are
31408// DESC and ASC.
31409func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
31410	c.urlParams_.Set("sort", sort)
31411	return c
31412}
31413
31414// Sortby sets the optional parameter "sortby": Comma separated list of
31415// columns to sort the final result.
31416func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
31417	c.urlParams_.Set("sortby", sortby)
31418	return c
31419}
31420
31421// TimeRange sets the optional parameter "timeRange": Time interval for
31422// the interactive query. Time range is specified as start~end E.g.
31423// 04/15/2017 00:00~05/15/2017 23:59
31424func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
31425	c.urlParams_.Set("timeRange", timeRange)
31426	return c
31427}
31428
31429// TimeUnit sets the optional parameter "timeUnit": A value of second,
31430// minute, hour, day, week, month. Time Unit specifies the granularity
31431// of metrics returned.
31432func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
31433	c.urlParams_.Set("timeUnit", timeUnit)
31434	return c
31435}
31436
31437// Topk sets the optional parameter "topk": Take 'top k' results from
31438// results, for example, to return the top 5 results 'topk=5'.
31439func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
31440	c.urlParams_.Set("topk", topk)
31441	return c
31442}
31443
31444// TsAscending sets the optional parameter "tsAscending": Lists
31445// timestamps in ascending order if set to true. Recommend setting this
31446// value to true if you are using sortby with sort=DESC.
31447func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
31448	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
31449	return c
31450}
31451
31452// Tzo sets the optional parameter "tzo": This parameters contains the
31453// timezone offset value.
31454func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
31455	c.urlParams_.Set("tzo", tzo)
31456	return c
31457}
31458
31459// Fields allows partial responses to be retrieved. See
31460// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31461// for more information.
31462func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
31463	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31464	return c
31465}
31466
31467// IfNoneMatch sets the optional parameter which makes the operation
31468// fail if the object's ETag matches the given value. This is useful for
31469// getting updates only after the object has changed since the last
31470// request. Use googleapi.IsNotModified to check whether the response
31471// error from Do is the result of In-None-Match.
31472func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
31473	c.ifNoneMatch_ = entityTag
31474	return c
31475}
31476
31477// Context sets the context to be used in this call's Do method. Any
31478// pending HTTP request will be aborted if the provided context is
31479// canceled.
31480func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
31481	c.ctx_ = ctx
31482	return c
31483}
31484
31485// Header returns an http.Header that can be modified by the caller to
31486// add HTTP headers to the request.
31487func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
31488	if c.header_ == nil {
31489		c.header_ = make(http.Header)
31490	}
31491	return c.header_
31492}
31493
31494func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
31495	reqHeaders := make(http.Header)
31496	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31497	for k, v := range c.header_ {
31498		reqHeaders[k] = v
31499	}
31500	reqHeaders.Set("User-Agent", c.s.userAgent())
31501	if c.ifNoneMatch_ != "" {
31502		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31503	}
31504	var body io.Reader = nil
31505	c.urlParams_.Set("alt", alt)
31506	c.urlParams_.Set("prettyPrint", "false")
31507	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31508	urls += "?" + c.urlParams_.Encode()
31509	req, err := http.NewRequest("GET", urls, body)
31510	if err != nil {
31511		return nil, err
31512	}
31513	req.Header = reqHeaders
31514	googleapi.Expand(req.URL, map[string]string{
31515		"name": c.name,
31516	})
31517	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31518}
31519
31520// Do executes the "apigee.organizations.environments.stats.get" call.
31521// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
31522// Any non-2xx status code is an error. Response headers are in either
31523// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
31524// returned at all) in error.(*googleapi.Error).Header. Use
31525// googleapi.IsNotModified to check whether the returned error was
31526// because http.StatusNotModified was returned.
31527func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
31528	gensupport.SetOptions(c.urlParams_, opts...)
31529	res, err := c.doRequest("json")
31530	if res != nil && res.StatusCode == http.StatusNotModified {
31531		if res.Body != nil {
31532			res.Body.Close()
31533		}
31534		return nil, &googleapi.Error{
31535			Code:   res.StatusCode,
31536			Header: res.Header,
31537		}
31538	}
31539	if err != nil {
31540		return nil, err
31541	}
31542	defer googleapi.CloseBody(res)
31543	if err := googleapi.CheckResponse(res); err != nil {
31544		return nil, err
31545	}
31546	ret := &GoogleCloudApigeeV1Stats{
31547		ServerResponse: googleapi.ServerResponse{
31548			Header:         res.Header,
31549			HTTPStatusCode: res.StatusCode,
31550		},
31551	}
31552	target := &ret
31553	if err := gensupport.DecodeResponse(target, res); err != nil {
31554		return nil, err
31555	}
31556	return ret, nil
31557	// {
31558	//   "description": "Retrieve metrics grouped by dimensions. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. The stats api does accept dimensions as path params. The dimensions are optional in which case the metrics are computed on the entire data for the given timerange.",
31559	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}",
31560	//   "httpMethod": "GET",
31561	//   "id": "apigee.organizations.environments.stats.get",
31562	//   "parameterOrder": [
31563	//     "name"
31564	//   ],
31565	//   "parameters": {
31566	//     "accuracy": {
31567	//       "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.",
31568	//       "location": "query",
31569	//       "type": "string"
31570	//     },
31571	//     "aggTable": {
31572	//       "description": "If customers want to query custom aggregate tables, then this parameter can be used to specify the table name. If this parameter is skipped, then Edge Query will try to retrieve the data from fact tables which will be expensive.",
31573	//       "location": "query",
31574	//       "type": "string"
31575	//     },
31576	//     "filter": {
31577	//       "description": "Enables drill-down on specific dimension values",
31578	//       "location": "query",
31579	//       "type": "string"
31580	//     },
31581	//     "limit": {
31582	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
31583	//       "location": "query",
31584	//       "type": "string"
31585	//     },
31586	//     "name": {
31587	//       "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}` Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`",
31588	//       "location": "path",
31589	//       "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$",
31590	//       "required": true,
31591	//       "type": "string"
31592	//     },
31593	//     "offset": {
31594	//       "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.",
31595	//       "location": "query",
31596	//       "type": "string"
31597	//     },
31598	//     "realtime": {
31599	//       "description": "Legacy field: not used anymore.",
31600	//       "location": "query",
31601	//       "type": "boolean"
31602	//     },
31603	//     "select": {
31604	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
31605	//       "location": "query",
31606	//       "type": "string"
31607	//     },
31608	//     "sonar": {
31609	//       "description": "This parameter routes the query to api monitoring service for last hour.",
31610	//       "location": "query",
31611	//       "type": "boolean"
31612	//     },
31613	//     "sort": {
31614	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
31615	//       "location": "query",
31616	//       "type": "string"
31617	//     },
31618	//     "sortby": {
31619	//       "description": "Comma separated list of columns to sort the final result.",
31620	//       "location": "query",
31621	//       "type": "string"
31622	//     },
31623	//     "timeRange": {
31624	//       "description": "Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59",
31625	//       "location": "query",
31626	//       "type": "string"
31627	//     },
31628	//     "timeUnit": {
31629	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
31630	//       "location": "query",
31631	//       "type": "string"
31632	//     },
31633	//     "topk": {
31634	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
31635	//       "location": "query",
31636	//       "type": "string"
31637	//     },
31638	//     "tsAscending": {
31639	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
31640	//       "location": "query",
31641	//       "type": "boolean"
31642	//     },
31643	//     "tzo": {
31644	//       "description": "This parameters contains the timezone offset value.",
31645	//       "location": "query",
31646	//       "type": "string"
31647	//     }
31648	//   },
31649	//   "path": "v1/{+name}",
31650	//   "response": {
31651	//     "$ref": "GoogleCloudApigeeV1Stats"
31652	//   },
31653	//   "scopes": [
31654	//     "https://www.googleapis.com/auth/cloud-platform"
31655	//   ]
31656	// }
31657
31658}
31659
31660// method id "apigee.organizations.environments.targetservers.create":
31661
31662type OrganizationsEnvironmentsTargetserversCreateCall struct {
31663	s                               *Service
31664	parent                          string
31665	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
31666	urlParams_                      gensupport.URLParams
31667	ctx_                            context.Context
31668	header_                         http.Header
31669}
31670
31671// Create: Creates a TargetServer in the specified environment.
31672func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
31673	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31674	c.parent = parent
31675	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
31676	return c
31677}
31678
31679// Name sets the optional parameter "name": The ID to give the
31680// TargetServer. This will overwrite the value in TargetServer.
31681func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
31682	c.urlParams_.Set("name", name)
31683	return c
31684}
31685
31686// Fields allows partial responses to be retrieved. See
31687// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31688// for more information.
31689func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
31690	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31691	return c
31692}
31693
31694// Context sets the context to be used in this call's Do method. Any
31695// pending HTTP request will be aborted if the provided context is
31696// canceled.
31697func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
31698	c.ctx_ = ctx
31699	return c
31700}
31701
31702// Header returns an http.Header that can be modified by the caller to
31703// add HTTP headers to the request.
31704func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
31705	if c.header_ == nil {
31706		c.header_ = make(http.Header)
31707	}
31708	return c.header_
31709}
31710
31711func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
31712	reqHeaders := make(http.Header)
31713	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31714	for k, v := range c.header_ {
31715		reqHeaders[k] = v
31716	}
31717	reqHeaders.Set("User-Agent", c.s.userAgent())
31718	var body io.Reader = nil
31719	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
31720	if err != nil {
31721		return nil, err
31722	}
31723	reqHeaders.Set("Content-Type", "application/json")
31724	c.urlParams_.Set("alt", alt)
31725	c.urlParams_.Set("prettyPrint", "false")
31726	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
31727	urls += "?" + c.urlParams_.Encode()
31728	req, err := http.NewRequest("POST", urls, body)
31729	if err != nil {
31730		return nil, err
31731	}
31732	req.Header = reqHeaders
31733	googleapi.Expand(req.URL, map[string]string{
31734		"parent": c.parent,
31735	})
31736	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31737}
31738
31739// Do executes the "apigee.organizations.environments.targetservers.create" call.
31740// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
31741// non-nil. Any non-2xx status code is an error. Response headers are in
31742// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
31743// a response was returned at all) in error.(*googleapi.Error).Header.
31744// Use googleapi.IsNotModified to check whether the returned error was
31745// because http.StatusNotModified was returned.
31746func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, 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, &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, err
31764	}
31765	ret := &GoogleCloudApigeeV1TargetServer{
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	//   "description": "Creates a TargetServer in the specified environment.",
31778	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
31779	//   "httpMethod": "POST",
31780	//   "id": "apigee.organizations.environments.targetservers.create",
31781	//   "parameterOrder": [
31782	//     "parent"
31783	//   ],
31784	//   "parameters": {
31785	//     "name": {
31786	//       "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.",
31787	//       "location": "query",
31788	//       "type": "string"
31789	//     },
31790	//     "parent": {
31791	//       "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.",
31792	//       "location": "path",
31793	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31794	//       "required": true,
31795	//       "type": "string"
31796	//     }
31797	//   },
31798	//   "path": "v1/{+parent}/targetservers",
31799	//   "request": {
31800	//     "$ref": "GoogleCloudApigeeV1TargetServer"
31801	//   },
31802	//   "response": {
31803	//     "$ref": "GoogleCloudApigeeV1TargetServer"
31804	//   },
31805	//   "scopes": [
31806	//     "https://www.googleapis.com/auth/cloud-platform"
31807	//   ]
31808	// }
31809
31810}
31811
31812// method id "apigee.organizations.environments.targetservers.delete":
31813
31814type OrganizationsEnvironmentsTargetserversDeleteCall struct {
31815	s          *Service
31816	name       string
31817	urlParams_ gensupport.URLParams
31818	ctx_       context.Context
31819	header_    http.Header
31820}
31821
31822// Delete: Deletes a TargetServer from an environment. Returns the
31823// deleted TargetServer resource.
31824func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
31825	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31826	c.name = name
31827	return c
31828}
31829
31830// Fields allows partial responses to be retrieved. See
31831// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31832// for more information.
31833func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
31834	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31835	return c
31836}
31837
31838// Context sets the context to be used in this call's Do method. Any
31839// pending HTTP request will be aborted if the provided context is
31840// canceled.
31841func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
31842	c.ctx_ = ctx
31843	return c
31844}
31845
31846// Header returns an http.Header that can be modified by the caller to
31847// add HTTP headers to the request.
31848func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
31849	if c.header_ == nil {
31850		c.header_ = make(http.Header)
31851	}
31852	return c.header_
31853}
31854
31855func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
31856	reqHeaders := make(http.Header)
31857	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31858	for k, v := range c.header_ {
31859		reqHeaders[k] = v
31860	}
31861	reqHeaders.Set("User-Agent", c.s.userAgent())
31862	var body io.Reader = nil
31863	c.urlParams_.Set("alt", alt)
31864	c.urlParams_.Set("prettyPrint", "false")
31865	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31866	urls += "?" + c.urlParams_.Encode()
31867	req, err := http.NewRequest("DELETE", urls, body)
31868	if err != nil {
31869		return nil, err
31870	}
31871	req.Header = reqHeaders
31872	googleapi.Expand(req.URL, map[string]string{
31873		"name": c.name,
31874	})
31875	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31876}
31877
31878// Do executes the "apigee.organizations.environments.targetservers.delete" call.
31879// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
31880// non-nil. Any non-2xx status code is an error. Response headers are in
31881// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
31882// a response was returned at all) in error.(*googleapi.Error).Header.
31883// Use googleapi.IsNotModified to check whether the returned error was
31884// because http.StatusNotModified was returned.
31885func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
31886	gensupport.SetOptions(c.urlParams_, opts...)
31887	res, err := c.doRequest("json")
31888	if res != nil && res.StatusCode == http.StatusNotModified {
31889		if res.Body != nil {
31890			res.Body.Close()
31891		}
31892		return nil, &googleapi.Error{
31893			Code:   res.StatusCode,
31894			Header: res.Header,
31895		}
31896	}
31897	if err != nil {
31898		return nil, err
31899	}
31900	defer googleapi.CloseBody(res)
31901	if err := googleapi.CheckResponse(res); err != nil {
31902		return nil, err
31903	}
31904	ret := &GoogleCloudApigeeV1TargetServer{
31905		ServerResponse: googleapi.ServerResponse{
31906			Header:         res.Header,
31907			HTTPStatusCode: res.StatusCode,
31908		},
31909	}
31910	target := &ret
31911	if err := gensupport.DecodeResponse(target, res); err != nil {
31912		return nil, err
31913	}
31914	return ret, nil
31915	// {
31916	//   "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.",
31917	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
31918	//   "httpMethod": "DELETE",
31919	//   "id": "apigee.organizations.environments.targetservers.delete",
31920	//   "parameterOrder": [
31921	//     "name"
31922	//   ],
31923	//   "parameters": {
31924	//     "name": {
31925	//       "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
31926	//       "location": "path",
31927	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
31928	//       "required": true,
31929	//       "type": "string"
31930	//     }
31931	//   },
31932	//   "path": "v1/{+name}",
31933	//   "response": {
31934	//     "$ref": "GoogleCloudApigeeV1TargetServer"
31935	//   },
31936	//   "scopes": [
31937	//     "https://www.googleapis.com/auth/cloud-platform"
31938	//   ]
31939	// }
31940
31941}
31942
31943// method id "apigee.organizations.environments.targetservers.get":
31944
31945type OrganizationsEnvironmentsTargetserversGetCall struct {
31946	s            *Service
31947	name         string
31948	urlParams_   gensupport.URLParams
31949	ifNoneMatch_ string
31950	ctx_         context.Context
31951	header_      http.Header
31952}
31953
31954// Get: Gets a TargetServer resource.
31955func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
31956	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31957	c.name = name
31958	return c
31959}
31960
31961// Fields allows partial responses to be retrieved. See
31962// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31963// for more information.
31964func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
31965	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31966	return c
31967}
31968
31969// IfNoneMatch sets the optional parameter which makes the operation
31970// fail if the object's ETag matches the given value. This is useful for
31971// getting updates only after the object has changed since the last
31972// request. Use googleapi.IsNotModified to check whether the response
31973// error from Do is the result of In-None-Match.
31974func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
31975	c.ifNoneMatch_ = entityTag
31976	return c
31977}
31978
31979// Context sets the context to be used in this call's Do method. Any
31980// pending HTTP request will be aborted if the provided context is
31981// canceled.
31982func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
31983	c.ctx_ = ctx
31984	return c
31985}
31986
31987// Header returns an http.Header that can be modified by the caller to
31988// add HTTP headers to the request.
31989func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
31990	if c.header_ == nil {
31991		c.header_ = make(http.Header)
31992	}
31993	return c.header_
31994}
31995
31996func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
31997	reqHeaders := make(http.Header)
31998	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31999	for k, v := range c.header_ {
32000		reqHeaders[k] = v
32001	}
32002	reqHeaders.Set("User-Agent", c.s.userAgent())
32003	if c.ifNoneMatch_ != "" {
32004		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32005	}
32006	var body io.Reader = nil
32007	c.urlParams_.Set("alt", alt)
32008	c.urlParams_.Set("prettyPrint", "false")
32009	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32010	urls += "?" + c.urlParams_.Encode()
32011	req, err := http.NewRequest("GET", urls, body)
32012	if err != nil {
32013		return nil, err
32014	}
32015	req.Header = reqHeaders
32016	googleapi.Expand(req.URL, map[string]string{
32017		"name": c.name,
32018	})
32019	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32020}
32021
32022// Do executes the "apigee.organizations.environments.targetservers.get" call.
32023// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
32024// non-nil. Any non-2xx status code is an error. Response headers are in
32025// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
32026// a response was returned at all) in error.(*googleapi.Error).Header.
32027// Use googleapi.IsNotModified to check whether the returned error was
32028// because http.StatusNotModified was returned.
32029func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
32030	gensupport.SetOptions(c.urlParams_, opts...)
32031	res, err := c.doRequest("json")
32032	if res != nil && res.StatusCode == http.StatusNotModified {
32033		if res.Body != nil {
32034			res.Body.Close()
32035		}
32036		return nil, &googleapi.Error{
32037			Code:   res.StatusCode,
32038			Header: res.Header,
32039		}
32040	}
32041	if err != nil {
32042		return nil, err
32043	}
32044	defer googleapi.CloseBody(res)
32045	if err := googleapi.CheckResponse(res); err != nil {
32046		return nil, err
32047	}
32048	ret := &GoogleCloudApigeeV1TargetServer{
32049		ServerResponse: googleapi.ServerResponse{
32050			Header:         res.Header,
32051			HTTPStatusCode: res.StatusCode,
32052		},
32053	}
32054	target := &ret
32055	if err := gensupport.DecodeResponse(target, res); err != nil {
32056		return nil, err
32057	}
32058	return ret, nil
32059	// {
32060	//   "description": "Gets a TargetServer resource.",
32061	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
32062	//   "httpMethod": "GET",
32063	//   "id": "apigee.organizations.environments.targetservers.get",
32064	//   "parameterOrder": [
32065	//     "name"
32066	//   ],
32067	//   "parameters": {
32068	//     "name": {
32069	//       "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
32070	//       "location": "path",
32071	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
32072	//       "required": true,
32073	//       "type": "string"
32074	//     }
32075	//   },
32076	//   "path": "v1/{+name}",
32077	//   "response": {
32078	//     "$ref": "GoogleCloudApigeeV1TargetServer"
32079	//   },
32080	//   "scopes": [
32081	//     "https://www.googleapis.com/auth/cloud-platform"
32082	//   ]
32083	// }
32084
32085}
32086
32087// method id "apigee.organizations.environments.targetservers.update":
32088
32089type OrganizationsEnvironmentsTargetserversUpdateCall struct {
32090	s                               *Service
32091	name                            string
32092	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
32093	urlParams_                      gensupport.URLParams
32094	ctx_                            context.Context
32095	header_                         http.Header
32096}
32097
32098// Update: Updates an existing TargetServer. Note that this operation
32099// has PUT semantics; it will replace the entirety of the existing
32100// TargetServer with the resource in the request body.
32101func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
32102	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32103	c.name = name
32104	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
32105	return c
32106}
32107
32108// Fields allows partial responses to be retrieved. See
32109// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32110// for more information.
32111func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
32112	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32113	return c
32114}
32115
32116// Context sets the context to be used in this call's Do method. Any
32117// pending HTTP request will be aborted if the provided context is
32118// canceled.
32119func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
32120	c.ctx_ = ctx
32121	return c
32122}
32123
32124// Header returns an http.Header that can be modified by the caller to
32125// add HTTP headers to the request.
32126func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
32127	if c.header_ == nil {
32128		c.header_ = make(http.Header)
32129	}
32130	return c.header_
32131}
32132
32133func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
32134	reqHeaders := make(http.Header)
32135	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32136	for k, v := range c.header_ {
32137		reqHeaders[k] = v
32138	}
32139	reqHeaders.Set("User-Agent", c.s.userAgent())
32140	var body io.Reader = nil
32141	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
32142	if err != nil {
32143		return nil, err
32144	}
32145	reqHeaders.Set("Content-Type", "application/json")
32146	c.urlParams_.Set("alt", alt)
32147	c.urlParams_.Set("prettyPrint", "false")
32148	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32149	urls += "?" + c.urlParams_.Encode()
32150	req, err := http.NewRequest("PUT", urls, body)
32151	if err != nil {
32152		return nil, err
32153	}
32154	req.Header = reqHeaders
32155	googleapi.Expand(req.URL, map[string]string{
32156		"name": c.name,
32157	})
32158	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32159}
32160
32161// Do executes the "apigee.organizations.environments.targetservers.update" call.
32162// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
32163// non-nil. Any non-2xx status code is an error. Response headers are in
32164// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
32165// a response was returned at all) in error.(*googleapi.Error).Header.
32166// Use googleapi.IsNotModified to check whether the returned error was
32167// because http.StatusNotModified was returned.
32168func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
32169	gensupport.SetOptions(c.urlParams_, opts...)
32170	res, err := c.doRequest("json")
32171	if res != nil && res.StatusCode == http.StatusNotModified {
32172		if res.Body != nil {
32173			res.Body.Close()
32174		}
32175		return nil, &googleapi.Error{
32176			Code:   res.StatusCode,
32177			Header: res.Header,
32178		}
32179	}
32180	if err != nil {
32181		return nil, err
32182	}
32183	defer googleapi.CloseBody(res)
32184	if err := googleapi.CheckResponse(res); err != nil {
32185		return nil, err
32186	}
32187	ret := &GoogleCloudApigeeV1TargetServer{
32188		ServerResponse: googleapi.ServerResponse{
32189			Header:         res.Header,
32190			HTTPStatusCode: res.StatusCode,
32191		},
32192	}
32193	target := &ret
32194	if err := gensupport.DecodeResponse(target, res); err != nil {
32195		return nil, err
32196	}
32197	return ret, nil
32198	// {
32199	//   "description": "Updates an existing TargetServer. Note that this operation has PUT semantics; it will replace the entirety of the existing TargetServer with the resource in the request body.",
32200	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
32201	//   "httpMethod": "PUT",
32202	//   "id": "apigee.organizations.environments.targetservers.update",
32203	//   "parameterOrder": [
32204	//     "name"
32205	//   ],
32206	//   "parameters": {
32207	//     "name": {
32208	//       "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
32209	//       "location": "path",
32210	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
32211	//       "required": true,
32212	//       "type": "string"
32213	//     }
32214	//   },
32215	//   "path": "v1/{+name}",
32216	//   "request": {
32217	//     "$ref": "GoogleCloudApigeeV1TargetServer"
32218	//   },
32219	//   "response": {
32220	//     "$ref": "GoogleCloudApigeeV1TargetServer"
32221	//   },
32222	//   "scopes": [
32223	//     "https://www.googleapis.com/auth/cloud-platform"
32224	//   ]
32225	// }
32226
32227}
32228
32229// method id "apigee.organizations.environments.traceConfig.overrides.create":
32230
32231type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
32232	s                                      *Service
32233	parent                                 string
32234	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
32235	urlParams_                             gensupport.URLParams
32236	ctx_                                   context.Context
32237	header_                                http.Header
32238}
32239
32240// Create: Creates a trace configuration override. The response contains
32241// a system-generated UUID, that can be used to view, update, or delete
32242// the configuration override. Use the List API to view the existing
32243// trace configuration overrides.
32244func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
32245	c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32246	c.parent = parent
32247	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
32248	return c
32249}
32250
32251// Fields allows partial responses to be retrieved. See
32252// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32253// for more information.
32254func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
32255	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32256	return c
32257}
32258
32259// Context sets the context to be used in this call's Do method. Any
32260// pending HTTP request will be aborted if the provided context is
32261// canceled.
32262func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
32263	c.ctx_ = ctx
32264	return c
32265}
32266
32267// Header returns an http.Header that can be modified by the caller to
32268// add HTTP headers to the request.
32269func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
32270	if c.header_ == nil {
32271		c.header_ = make(http.Header)
32272	}
32273	return c.header_
32274}
32275
32276func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
32277	reqHeaders := make(http.Header)
32278	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32279	for k, v := range c.header_ {
32280		reqHeaders[k] = v
32281	}
32282	reqHeaders.Set("User-Agent", c.s.userAgent())
32283	var body io.Reader = nil
32284	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
32285	if err != nil {
32286		return nil, err
32287	}
32288	reqHeaders.Set("Content-Type", "application/json")
32289	c.urlParams_.Set("alt", alt)
32290	c.urlParams_.Set("prettyPrint", "false")
32291	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
32292	urls += "?" + c.urlParams_.Encode()
32293	req, err := http.NewRequest("POST", urls, body)
32294	if err != nil {
32295		return nil, err
32296	}
32297	req.Header = reqHeaders
32298	googleapi.Expand(req.URL, map[string]string{
32299		"parent": c.parent,
32300	})
32301	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32302}
32303
32304// Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call.
32305// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
32306// be non-nil. Any non-2xx status code is an error. Response headers are
32307// in either
32308// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
32309// a response was returned at all) in error.(*googleapi.Error).Header.
32310// Use googleapi.IsNotModified to check whether the returned error was
32311// because http.StatusNotModified was returned.
32312func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
32313	gensupport.SetOptions(c.urlParams_, opts...)
32314	res, err := c.doRequest("json")
32315	if res != nil && res.StatusCode == http.StatusNotModified {
32316		if res.Body != nil {
32317			res.Body.Close()
32318		}
32319		return nil, &googleapi.Error{
32320			Code:   res.StatusCode,
32321			Header: res.Header,
32322		}
32323	}
32324	if err != nil {
32325		return nil, err
32326	}
32327	defer googleapi.CloseBody(res)
32328	if err := googleapi.CheckResponse(res); err != nil {
32329		return nil, err
32330	}
32331	ret := &GoogleCloudApigeeV1TraceConfigOverride{
32332		ServerResponse: googleapi.ServerResponse{
32333			Header:         res.Header,
32334			HTTPStatusCode: res.StatusCode,
32335		},
32336	}
32337	target := &ret
32338	if err := gensupport.DecodeResponse(target, res); err != nil {
32339		return nil, err
32340	}
32341	return ret, nil
32342	// {
32343	//   "description": "Creates a trace configuration override. The response contains a system-generated UUID, that can be used to view, update, or delete the configuration override. Use the List API to view the existing trace configuration overrides.",
32344	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
32345	//   "httpMethod": "POST",
32346	//   "id": "apigee.organizations.environments.traceConfig.overrides.create",
32347	//   "parameterOrder": [
32348	//     "parent"
32349	//   ],
32350	//   "parameters": {
32351	//     "parent": {
32352	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request. \"organizations/*/environments/*/traceConfig\".",
32353	//       "location": "path",
32354	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
32355	//       "required": true,
32356	//       "type": "string"
32357	//     }
32358	//   },
32359	//   "path": "v1/{+parent}/overrides",
32360	//   "request": {
32361	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
32362	//   },
32363	//   "response": {
32364	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
32365	//   },
32366	//   "scopes": [
32367	//     "https://www.googleapis.com/auth/cloud-platform"
32368	//   ]
32369	// }
32370
32371}
32372
32373// method id "apigee.organizations.environments.traceConfig.overrides.delete":
32374
32375type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
32376	s          *Service
32377	name       string
32378	urlParams_ gensupport.URLParams
32379	ctx_       context.Context
32380	header_    http.Header
32381}
32382
32383// Delete: Deletes a distributed trace configuration override.
32384func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
32385	c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32386	c.name = name
32387	return c
32388}
32389
32390// Fields allows partial responses to be retrieved. See
32391// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32392// for more information.
32393func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
32394	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32395	return c
32396}
32397
32398// Context sets the context to be used in this call's Do method. Any
32399// pending HTTP request will be aborted if the provided context is
32400// canceled.
32401func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
32402	c.ctx_ = ctx
32403	return c
32404}
32405
32406// Header returns an http.Header that can be modified by the caller to
32407// add HTTP headers to the request.
32408func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
32409	if c.header_ == nil {
32410		c.header_ = make(http.Header)
32411	}
32412	return c.header_
32413}
32414
32415func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
32416	reqHeaders := make(http.Header)
32417	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32418	for k, v := range c.header_ {
32419		reqHeaders[k] = v
32420	}
32421	reqHeaders.Set("User-Agent", c.s.userAgent())
32422	var body io.Reader = nil
32423	c.urlParams_.Set("alt", alt)
32424	c.urlParams_.Set("prettyPrint", "false")
32425	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32426	urls += "?" + c.urlParams_.Encode()
32427	req, err := http.NewRequest("DELETE", urls, body)
32428	if err != nil {
32429		return nil, err
32430	}
32431	req.Header = reqHeaders
32432	googleapi.Expand(req.URL, map[string]string{
32433		"name": c.name,
32434	})
32435	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32436}
32437
32438// Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call.
32439// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
32440// non-2xx status code is an error. Response headers are in either
32441// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
32442// returned at all) in error.(*googleapi.Error).Header. Use
32443// googleapi.IsNotModified to check whether the returned error was
32444// because http.StatusNotModified was returned.
32445func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
32446	gensupport.SetOptions(c.urlParams_, opts...)
32447	res, err := c.doRequest("json")
32448	if res != nil && res.StatusCode == http.StatusNotModified {
32449		if res.Body != nil {
32450			res.Body.Close()
32451		}
32452		return nil, &googleapi.Error{
32453			Code:   res.StatusCode,
32454			Header: res.Header,
32455		}
32456	}
32457	if err != nil {
32458		return nil, err
32459	}
32460	defer googleapi.CloseBody(res)
32461	if err := googleapi.CheckResponse(res); err != nil {
32462		return nil, err
32463	}
32464	ret := &GoogleProtobufEmpty{
32465		ServerResponse: googleapi.ServerResponse{
32466			Header:         res.Header,
32467			HTTPStatusCode: res.StatusCode,
32468		},
32469	}
32470	target := &ret
32471	if err := gensupport.DecodeResponse(target, res); err != nil {
32472		return nil, err
32473	}
32474	return ret, nil
32475	// {
32476	//   "description": "Deletes a distributed trace configuration override.",
32477	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
32478	//   "httpMethod": "DELETE",
32479	//   "id": "apigee.organizations.environments.traceConfig.overrides.delete",
32480	//   "parameterOrder": [
32481	//     "name"
32482	//   ],
32483	//   "parameters": {
32484	//     "name": {
32485	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
32486	//       "location": "path",
32487	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
32488	//       "required": true,
32489	//       "type": "string"
32490	//     }
32491	//   },
32492	//   "path": "v1/{+name}",
32493	//   "response": {
32494	//     "$ref": "GoogleProtobufEmpty"
32495	//   },
32496	//   "scopes": [
32497	//     "https://www.googleapis.com/auth/cloud-platform"
32498	//   ]
32499	// }
32500
32501}
32502
32503// method id "apigee.organizations.environments.traceConfig.overrides.get":
32504
32505type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
32506	s            *Service
32507	name         string
32508	urlParams_   gensupport.URLParams
32509	ifNoneMatch_ string
32510	ctx_         context.Context
32511	header_      http.Header
32512}
32513
32514// Get: Gets a trace configuration override.
32515func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
32516	c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32517	c.name = name
32518	return c
32519}
32520
32521// Fields allows partial responses to be retrieved. See
32522// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32523// for more information.
32524func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
32525	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32526	return c
32527}
32528
32529// IfNoneMatch sets the optional parameter which makes the operation
32530// fail if the object's ETag matches the given value. This is useful for
32531// getting updates only after the object has changed since the last
32532// request. Use googleapi.IsNotModified to check whether the response
32533// error from Do is the result of In-None-Match.
32534func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
32535	c.ifNoneMatch_ = entityTag
32536	return c
32537}
32538
32539// Context sets the context to be used in this call's Do method. Any
32540// pending HTTP request will be aborted if the provided context is
32541// canceled.
32542func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
32543	c.ctx_ = ctx
32544	return c
32545}
32546
32547// Header returns an http.Header that can be modified by the caller to
32548// add HTTP headers to the request.
32549func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
32550	if c.header_ == nil {
32551		c.header_ = make(http.Header)
32552	}
32553	return c.header_
32554}
32555
32556func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
32557	reqHeaders := make(http.Header)
32558	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32559	for k, v := range c.header_ {
32560		reqHeaders[k] = v
32561	}
32562	reqHeaders.Set("User-Agent", c.s.userAgent())
32563	if c.ifNoneMatch_ != "" {
32564		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32565	}
32566	var body io.Reader = nil
32567	c.urlParams_.Set("alt", alt)
32568	c.urlParams_.Set("prettyPrint", "false")
32569	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32570	urls += "?" + c.urlParams_.Encode()
32571	req, err := http.NewRequest("GET", urls, body)
32572	if err != nil {
32573		return nil, err
32574	}
32575	req.Header = reqHeaders
32576	googleapi.Expand(req.URL, map[string]string{
32577		"name": c.name,
32578	})
32579	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32580}
32581
32582// Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call.
32583// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
32584// be non-nil. Any non-2xx status code is an error. Response headers are
32585// in either
32586// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
32587// a response was returned at all) in error.(*googleapi.Error).Header.
32588// Use googleapi.IsNotModified to check whether the returned error was
32589// because http.StatusNotModified was returned.
32590func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
32591	gensupport.SetOptions(c.urlParams_, opts...)
32592	res, err := c.doRequest("json")
32593	if res != nil && res.StatusCode == http.StatusNotModified {
32594		if res.Body != nil {
32595			res.Body.Close()
32596		}
32597		return nil, &googleapi.Error{
32598			Code:   res.StatusCode,
32599			Header: res.Header,
32600		}
32601	}
32602	if err != nil {
32603		return nil, err
32604	}
32605	defer googleapi.CloseBody(res)
32606	if err := googleapi.CheckResponse(res); err != nil {
32607		return nil, err
32608	}
32609	ret := &GoogleCloudApigeeV1TraceConfigOverride{
32610		ServerResponse: googleapi.ServerResponse{
32611			Header:         res.Header,
32612			HTTPStatusCode: res.StatusCode,
32613		},
32614	}
32615	target := &ret
32616	if err := gensupport.DecodeResponse(target, res); err != nil {
32617		return nil, err
32618	}
32619	return ret, nil
32620	// {
32621	//   "description": "Gets a trace configuration override.",
32622	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
32623	//   "httpMethod": "GET",
32624	//   "id": "apigee.organizations.environments.traceConfig.overrides.get",
32625	//   "parameterOrder": [
32626	//     "name"
32627	//   ],
32628	//   "parameters": {
32629	//     "name": {
32630	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
32631	//       "location": "path",
32632	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
32633	//       "required": true,
32634	//       "type": "string"
32635	//     }
32636	//   },
32637	//   "path": "v1/{+name}",
32638	//   "response": {
32639	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
32640	//   },
32641	//   "scopes": [
32642	//     "https://www.googleapis.com/auth/cloud-platform"
32643	//   ]
32644	// }
32645
32646}
32647
32648// method id "apigee.organizations.environments.traceConfig.overrides.list":
32649
32650type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
32651	s            *Service
32652	parent       string
32653	urlParams_   gensupport.URLParams
32654	ifNoneMatch_ string
32655	ctx_         context.Context
32656	header_      http.Header
32657}
32658
32659// List: Lists all of the distributed trace configuration overrides in
32660// an environment.
32661func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
32662	c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32663	c.parent = parent
32664	return c
32665}
32666
32667// PageSize sets the optional parameter "pageSize": Maximum number of
32668// trace configuration overrides to return. If not specified, the
32669// maximum number returned is 25. The maximum number cannot exceed 100.
32670func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
32671	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32672	return c
32673}
32674
32675// PageToken sets the optional parameter "pageToken": A page token,
32676// returned from a previous `ListTraceConfigOverrides` call. Token value
32677// that can be used to retrieve the subsequent page. When paginating,
32678// all other parameters provided to `ListTraceConfigOverrides` must
32679// match those specified in the call to obtain the page token.
32680func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
32681	c.urlParams_.Set("pageToken", pageToken)
32682	return c
32683}
32684
32685// Fields allows partial responses to be retrieved. See
32686// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32687// for more information.
32688func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
32689	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32690	return c
32691}
32692
32693// IfNoneMatch sets the optional parameter which makes the operation
32694// fail if the object's ETag matches the given value. This is useful for
32695// getting updates only after the object has changed since the last
32696// request. Use googleapi.IsNotModified to check whether the response
32697// error from Do is the result of In-None-Match.
32698func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
32699	c.ifNoneMatch_ = entityTag
32700	return c
32701}
32702
32703// Context sets the context to be used in this call's Do method. Any
32704// pending HTTP request will be aborted if the provided context is
32705// canceled.
32706func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
32707	c.ctx_ = ctx
32708	return c
32709}
32710
32711// Header returns an http.Header that can be modified by the caller to
32712// add HTTP headers to the request.
32713func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
32714	if c.header_ == nil {
32715		c.header_ = make(http.Header)
32716	}
32717	return c.header_
32718}
32719
32720func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
32721	reqHeaders := make(http.Header)
32722	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32723	for k, v := range c.header_ {
32724		reqHeaders[k] = v
32725	}
32726	reqHeaders.Set("User-Agent", c.s.userAgent())
32727	if c.ifNoneMatch_ != "" {
32728		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32729	}
32730	var body io.Reader = nil
32731	c.urlParams_.Set("alt", alt)
32732	c.urlParams_.Set("prettyPrint", "false")
32733	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
32734	urls += "?" + c.urlParams_.Encode()
32735	req, err := http.NewRequest("GET", urls, body)
32736	if err != nil {
32737		return nil, err
32738	}
32739	req.Header = reqHeaders
32740	googleapi.Expand(req.URL, map[string]string{
32741		"parent": c.parent,
32742	})
32743	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32744}
32745
32746// Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call.
32747// Exactly one of *GoogleCloudApigeeV1ListTraceConfigOverridesResponse
32748// or error will be non-nil. Any non-2xx status code is an error.
32749// Response headers are in either
32750// *GoogleCloudApigeeV1ListTraceConfigOverridesResponse.ServerResponse.He
32751// ader or (if a response was returned at all) in
32752// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32753// whether the returned error was because http.StatusNotModified was
32754// returned.
32755func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
32756	gensupport.SetOptions(c.urlParams_, opts...)
32757	res, err := c.doRequest("json")
32758	if res != nil && res.StatusCode == http.StatusNotModified {
32759		if res.Body != nil {
32760			res.Body.Close()
32761		}
32762		return nil, &googleapi.Error{
32763			Code:   res.StatusCode,
32764			Header: res.Header,
32765		}
32766	}
32767	if err != nil {
32768		return nil, err
32769	}
32770	defer googleapi.CloseBody(res)
32771	if err := googleapi.CheckResponse(res); err != nil {
32772		return nil, err
32773	}
32774	ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
32775		ServerResponse: googleapi.ServerResponse{
32776			Header:         res.Header,
32777			HTTPStatusCode: res.StatusCode,
32778		},
32779	}
32780	target := &ret
32781	if err := gensupport.DecodeResponse(target, res); err != nil {
32782		return nil, err
32783	}
32784	return ret, nil
32785	// {
32786	//   "description": "Lists all of the distributed trace configuration overrides in an environment.",
32787	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
32788	//   "httpMethod": "GET",
32789	//   "id": "apigee.organizations.environments.traceConfig.overrides.list",
32790	//   "parameterOrder": [
32791	//     "parent"
32792	//   ],
32793	//   "parameters": {
32794	//     "pageSize": {
32795	//       "description": "Maximum number of trace configuration overrides to return. If not specified, the maximum number returned is 25. The maximum number cannot exceed 100.",
32796	//       "format": "int32",
32797	//       "location": "query",
32798	//       "type": "integer"
32799	//     },
32800	//     "pageToken": {
32801	//       "description": "A page token, returned from a previous `ListTraceConfigOverrides` call. Token value that can be used to retrieve the subsequent page. When paginating, all other parameters provided to `ListTraceConfigOverrides` must match those specified in the call to obtain the page token.",
32802	//       "location": "query",
32803	//       "type": "string"
32804	//     },
32805	//     "parent": {
32806	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
32807	//       "location": "path",
32808	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
32809	//       "required": true,
32810	//       "type": "string"
32811	//     }
32812	//   },
32813	//   "path": "v1/{+parent}/overrides",
32814	//   "response": {
32815	//     "$ref": "GoogleCloudApigeeV1ListTraceConfigOverridesResponse"
32816	//   },
32817	//   "scopes": [
32818	//     "https://www.googleapis.com/auth/cloud-platform"
32819	//   ]
32820	// }
32821
32822}
32823
32824// Pages invokes f for each page of results.
32825// A non-nil error returned from f will halt the iteration.
32826// The provided context supersedes any context provided to the Context method.
32827func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
32828	c.ctx_ = ctx
32829	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
32830	for {
32831		x, err := c.Do()
32832		if err != nil {
32833			return err
32834		}
32835		if err := f(x); err != nil {
32836			return err
32837		}
32838		if x.NextPageToken == "" {
32839			return nil
32840		}
32841		c.PageToken(x.NextPageToken)
32842	}
32843}
32844
32845// method id "apigee.organizations.environments.traceConfig.overrides.patch":
32846
32847type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
32848	s                                      *Service
32849	name                                   string
32850	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
32851	urlParams_                             gensupport.URLParams
32852	ctx_                                   context.Context
32853	header_                                http.Header
32854}
32855
32856// Patch: Updates a distributed trace configuration override. Note that
32857// the repeated fields have replace semantics when included in the field
32858// mask and that they will be overwritten by the value of the fields in
32859// the request body.
32860func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
32861	c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32862	c.name = name
32863	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
32864	return c
32865}
32866
32867// UpdateMask sets the optional parameter "updateMask": List of fields
32868// to be updated.
32869func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
32870	c.urlParams_.Set("updateMask", updateMask)
32871	return c
32872}
32873
32874// Fields allows partial responses to be retrieved. See
32875// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32876// for more information.
32877func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
32878	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32879	return c
32880}
32881
32882// Context sets the context to be used in this call's Do method. Any
32883// pending HTTP request will be aborted if the provided context is
32884// canceled.
32885func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
32886	c.ctx_ = ctx
32887	return c
32888}
32889
32890// Header returns an http.Header that can be modified by the caller to
32891// add HTTP headers to the request.
32892func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
32893	if c.header_ == nil {
32894		c.header_ = make(http.Header)
32895	}
32896	return c.header_
32897}
32898
32899func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
32900	reqHeaders := make(http.Header)
32901	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32902	for k, v := range c.header_ {
32903		reqHeaders[k] = v
32904	}
32905	reqHeaders.Set("User-Agent", c.s.userAgent())
32906	var body io.Reader = nil
32907	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
32908	if err != nil {
32909		return nil, err
32910	}
32911	reqHeaders.Set("Content-Type", "application/json")
32912	c.urlParams_.Set("alt", alt)
32913	c.urlParams_.Set("prettyPrint", "false")
32914	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32915	urls += "?" + c.urlParams_.Encode()
32916	req, err := http.NewRequest("PATCH", urls, body)
32917	if err != nil {
32918		return nil, err
32919	}
32920	req.Header = reqHeaders
32921	googleapi.Expand(req.URL, map[string]string{
32922		"name": c.name,
32923	})
32924	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32925}
32926
32927// Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call.
32928// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
32929// be non-nil. Any non-2xx status code is an error. Response headers are
32930// in either
32931// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
32932// a response was returned at all) in error.(*googleapi.Error).Header.
32933// Use googleapi.IsNotModified to check whether the returned error was
32934// because http.StatusNotModified was returned.
32935func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
32936	gensupport.SetOptions(c.urlParams_, opts...)
32937	res, err := c.doRequest("json")
32938	if res != nil && res.StatusCode == http.StatusNotModified {
32939		if res.Body != nil {
32940			res.Body.Close()
32941		}
32942		return nil, &googleapi.Error{
32943			Code:   res.StatusCode,
32944			Header: res.Header,
32945		}
32946	}
32947	if err != nil {
32948		return nil, err
32949	}
32950	defer googleapi.CloseBody(res)
32951	if err := googleapi.CheckResponse(res); err != nil {
32952		return nil, err
32953	}
32954	ret := &GoogleCloudApigeeV1TraceConfigOverride{
32955		ServerResponse: googleapi.ServerResponse{
32956			Header:         res.Header,
32957			HTTPStatusCode: res.StatusCode,
32958		},
32959	}
32960	target := &ret
32961	if err := gensupport.DecodeResponse(target, res); err != nil {
32962		return nil, err
32963	}
32964	return ret, nil
32965	// {
32966	//   "description": "Updates a distributed trace configuration override. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.",
32967	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
32968	//   "httpMethod": "PATCH",
32969	//   "id": "apigee.organizations.environments.traceConfig.overrides.patch",
32970	//   "parameterOrder": [
32971	//     "name"
32972	//   ],
32973	//   "parameters": {
32974	//     "name": {
32975	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
32976	//       "location": "path",
32977	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
32978	//       "required": true,
32979	//       "type": "string"
32980	//     },
32981	//     "updateMask": {
32982	//       "description": "List of fields to be updated.",
32983	//       "format": "google-fieldmask",
32984	//       "location": "query",
32985	//       "type": "string"
32986	//     }
32987	//   },
32988	//   "path": "v1/{+name}",
32989	//   "request": {
32990	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
32991	//   },
32992	//   "response": {
32993	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
32994	//   },
32995	//   "scopes": [
32996	//     "https://www.googleapis.com/auth/cloud-platform"
32997	//   ]
32998	// }
32999
33000}
33001
33002// method id "apigee.organizations.hostQueries.create":
33003
33004type OrganizationsHostQueriesCreateCall struct {
33005	s                        *Service
33006	parent                   string
33007	googlecloudapigeev1query *GoogleCloudApigeeV1Query
33008	urlParams_               gensupport.URLParams
33009	ctx_                     context.Context
33010	header_                  http.Header
33011}
33012
33013// Create: Submit a query at host level to be processed in the
33014// background. If the submission of the query succeeds, the API returns
33015// a 201 status and an ID that refer to the query. In addition to the
33016// HTTP status 201, the `state` of "enqueued" means that the request
33017// succeeded.
33018func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
33019	c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33020	c.parent = parent
33021	c.googlecloudapigeev1query = googlecloudapigeev1query
33022	return c
33023}
33024
33025// Fields allows partial responses to be retrieved. See
33026// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33027// for more information.
33028func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
33029	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33030	return c
33031}
33032
33033// Context sets the context to be used in this call's Do method. Any
33034// pending HTTP request will be aborted if the provided context is
33035// canceled.
33036func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
33037	c.ctx_ = ctx
33038	return c
33039}
33040
33041// Header returns an http.Header that can be modified by the caller to
33042// add HTTP headers to the request.
33043func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
33044	if c.header_ == nil {
33045		c.header_ = make(http.Header)
33046	}
33047	return c.header_
33048}
33049
33050func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
33051	reqHeaders := make(http.Header)
33052	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
33053	for k, v := range c.header_ {
33054		reqHeaders[k] = v
33055	}
33056	reqHeaders.Set("User-Agent", c.s.userAgent())
33057	var body io.Reader = nil
33058	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
33059	if err != nil {
33060		return nil, err
33061	}
33062	reqHeaders.Set("Content-Type", "application/json")
33063	c.urlParams_.Set("alt", alt)
33064	c.urlParams_.Set("prettyPrint", "false")
33065	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
33066	urls += "?" + c.urlParams_.Encode()
33067	req, err := http.NewRequest("POST", urls, body)
33068	if err != nil {
33069		return nil, err
33070	}
33071	req.Header = reqHeaders
33072	googleapi.Expand(req.URL, map[string]string{
33073		"parent": c.parent,
33074	})
33075	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33076}
33077
33078// Do executes the "apigee.organizations.hostQueries.create" call.
33079// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
33080// non-nil. Any non-2xx status code is an error. Response headers are in
33081// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
33082// response was returned at all) in error.(*googleapi.Error).Header. Use
33083// googleapi.IsNotModified to check whether the returned error was
33084// because http.StatusNotModified was returned.
33085func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33086	gensupport.SetOptions(c.urlParams_, opts...)
33087	res, err := c.doRequest("json")
33088	if res != nil && res.StatusCode == http.StatusNotModified {
33089		if res.Body != nil {
33090			res.Body.Close()
33091		}
33092		return nil, &googleapi.Error{
33093			Code:   res.StatusCode,
33094			Header: res.Header,
33095		}
33096	}
33097	if err != nil {
33098		return nil, err
33099	}
33100	defer googleapi.CloseBody(res)
33101	if err := googleapi.CheckResponse(res); err != nil {
33102		return nil, err
33103	}
33104	ret := &GoogleCloudApigeeV1AsyncQuery{
33105		ServerResponse: googleapi.ServerResponse{
33106			Header:         res.Header,
33107			HTTPStatusCode: res.StatusCode,
33108		},
33109	}
33110	target := &ret
33111	if err := gensupport.DecodeResponse(target, res); err != nil {
33112		return nil, err
33113	}
33114	return ret, nil
33115	// {
33116	//   "description": "Submit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.",
33117	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
33118	//   "httpMethod": "POST",
33119	//   "id": "apigee.organizations.hostQueries.create",
33120	//   "parameterOrder": [
33121	//     "parent"
33122	//   ],
33123	//   "parameters": {
33124	//     "parent": {
33125	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
33126	//       "location": "path",
33127	//       "pattern": "^organizations/[^/]+$",
33128	//       "required": true,
33129	//       "type": "string"
33130	//     }
33131	//   },
33132	//   "path": "v1/{+parent}/hostQueries",
33133	//   "request": {
33134	//     "$ref": "GoogleCloudApigeeV1Query"
33135	//   },
33136	//   "response": {
33137	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
33138	//   },
33139	//   "scopes": [
33140	//     "https://www.googleapis.com/auth/cloud-platform"
33141	//   ]
33142	// }
33143
33144}
33145
33146// method id "apigee.organizations.hostQueries.get":
33147
33148type OrganizationsHostQueriesGetCall struct {
33149	s            *Service
33150	name         string
33151	urlParams_   gensupport.URLParams
33152	ifNoneMatch_ string
33153	ctx_         context.Context
33154	header_      http.Header
33155}
33156
33157// Get: Get status of a query submitted at host level. If the query is
33158// still in progress, the `state` is set to "running" After the query
33159// has completed successfully, `state` is set to "completed"
33160func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
33161	c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33162	c.name = name
33163	return c
33164}
33165
33166// Fields allows partial responses to be retrieved. See
33167// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33168// for more information.
33169func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
33170	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33171	return c
33172}
33173
33174// IfNoneMatch sets the optional parameter which makes the operation
33175// fail if the object's ETag matches the given value. This is useful for
33176// getting updates only after the object has changed since the last
33177// request. Use googleapi.IsNotModified to check whether the response
33178// error from Do is the result of In-None-Match.
33179func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
33180	c.ifNoneMatch_ = entityTag
33181	return c
33182}
33183
33184// Context sets the context to be used in this call's Do method. Any
33185// pending HTTP request will be aborted if the provided context is
33186// canceled.
33187func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
33188	c.ctx_ = ctx
33189	return c
33190}
33191
33192// Header returns an http.Header that can be modified by the caller to
33193// add HTTP headers to the request.
33194func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
33195	if c.header_ == nil {
33196		c.header_ = make(http.Header)
33197	}
33198	return c.header_
33199}
33200
33201func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
33202	reqHeaders := make(http.Header)
33203	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
33204	for k, v := range c.header_ {
33205		reqHeaders[k] = v
33206	}
33207	reqHeaders.Set("User-Agent", c.s.userAgent())
33208	if c.ifNoneMatch_ != "" {
33209		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33210	}
33211	var body io.Reader = nil
33212	c.urlParams_.Set("alt", alt)
33213	c.urlParams_.Set("prettyPrint", "false")
33214	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33215	urls += "?" + c.urlParams_.Encode()
33216	req, err := http.NewRequest("GET", urls, body)
33217	if err != nil {
33218		return nil, err
33219	}
33220	req.Header = reqHeaders
33221	googleapi.Expand(req.URL, map[string]string{
33222		"name": c.name,
33223	})
33224	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33225}
33226
33227// Do executes the "apigee.organizations.hostQueries.get" call.
33228// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
33229// non-nil. Any non-2xx status code is an error. Response headers are in
33230// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
33231// response was returned at all) in error.(*googleapi.Error).Header. Use
33232// googleapi.IsNotModified to check whether the returned error was
33233// because http.StatusNotModified was returned.
33234func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33235	gensupport.SetOptions(c.urlParams_, opts...)
33236	res, err := c.doRequest("json")
33237	if res != nil && res.StatusCode == http.StatusNotModified {
33238		if res.Body != nil {
33239			res.Body.Close()
33240		}
33241		return nil, &googleapi.Error{
33242			Code:   res.StatusCode,
33243			Header: res.Header,
33244		}
33245	}
33246	if err != nil {
33247		return nil, err
33248	}
33249	defer googleapi.CloseBody(res)
33250	if err := googleapi.CheckResponse(res); err != nil {
33251		return nil, err
33252	}
33253	ret := &GoogleCloudApigeeV1AsyncQuery{
33254		ServerResponse: googleapi.ServerResponse{
33255			Header:         res.Header,
33256			HTTPStatusCode: res.StatusCode,
33257		},
33258	}
33259	target := &ret
33260	if err := gensupport.DecodeResponse(target, res); err != nil {
33261		return nil, err
33262	}
33263	return ret, nil
33264	// {
33265	//   "description": "Get status of a query submitted at host level. If the query is still in progress, the `state` is set to \"running\" After the query has completed successfully, `state` is set to \"completed\"",
33266	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}",
33267	//   "httpMethod": "GET",
33268	//   "id": "apigee.organizations.hostQueries.get",
33269	//   "parameterOrder": [
33270	//     "name"
33271	//   ],
33272	//   "parameters": {
33273	//     "name": {
33274	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.",
33275	//       "location": "path",
33276	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+$",
33277	//       "required": true,
33278	//       "type": "string"
33279	//     }
33280	//   },
33281	//   "path": "v1/{+name}",
33282	//   "response": {
33283	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
33284	//   },
33285	//   "scopes": [
33286	//     "https://www.googleapis.com/auth/cloud-platform"
33287	//   ]
33288	// }
33289
33290}
33291
33292// method id "apigee.organizations.hostQueries.getResult":
33293
33294type OrganizationsHostQueriesGetResultCall struct {
33295	s            *Service
33296	name         string
33297	urlParams_   gensupport.URLParams
33298	ifNoneMatch_ string
33299	ctx_         context.Context
33300	header_      http.Header
33301}
33302
33303// GetResult: After the query is completed, use this API to retrieve the
33304// results. If the request succeeds, and there is a non-zero result set,
33305// the result is downloaded to the client as a zipped JSON file. The
33306// name of the downloaded file will be: OfflineQueryResult-.zip Example:
33307// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
33308func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
33309	c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33310	c.name = name
33311	return c
33312}
33313
33314// Fields allows partial responses to be retrieved. See
33315// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33316// for more information.
33317func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
33318	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33319	return c
33320}
33321
33322// IfNoneMatch sets the optional parameter which makes the operation
33323// fail if the object's ETag matches the given value. This is useful for
33324// getting updates only after the object has changed since the last
33325// request. Use googleapi.IsNotModified to check whether the response
33326// error from Do is the result of In-None-Match.
33327func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
33328	c.ifNoneMatch_ = entityTag
33329	return c
33330}
33331
33332// Context sets the context to be used in this call's Do method. Any
33333// pending HTTP request will be aborted if the provided context is
33334// canceled.
33335func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
33336	c.ctx_ = ctx
33337	return c
33338}
33339
33340// Header returns an http.Header that can be modified by the caller to
33341// add HTTP headers to the request.
33342func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
33343	if c.header_ == nil {
33344		c.header_ = make(http.Header)
33345	}
33346	return c.header_
33347}
33348
33349func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
33350	reqHeaders := make(http.Header)
33351	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
33352	for k, v := range c.header_ {
33353		reqHeaders[k] = v
33354	}
33355	reqHeaders.Set("User-Agent", c.s.userAgent())
33356	if c.ifNoneMatch_ != "" {
33357		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33358	}
33359	var body io.Reader = nil
33360	c.urlParams_.Set("alt", alt)
33361	c.urlParams_.Set("prettyPrint", "false")
33362	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33363	urls += "?" + c.urlParams_.Encode()
33364	req, err := http.NewRequest("GET", urls, body)
33365	if err != nil {
33366		return nil, err
33367	}
33368	req.Header = reqHeaders
33369	googleapi.Expand(req.URL, map[string]string{
33370		"name": c.name,
33371	})
33372	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33373}
33374
33375// Do executes the "apigee.organizations.hostQueries.getResult" call.
33376// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
33377// non-2xx status code is an error. Response headers are in either
33378// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
33379// returned at all) in error.(*googleapi.Error).Header. Use
33380// googleapi.IsNotModified to check whether the returned error was
33381// because http.StatusNotModified was returned.
33382func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
33383	gensupport.SetOptions(c.urlParams_, opts...)
33384	res, err := c.doRequest("json")
33385	if res != nil && res.StatusCode == http.StatusNotModified {
33386		if res.Body != nil {
33387			res.Body.Close()
33388		}
33389		return nil, &googleapi.Error{
33390			Code:   res.StatusCode,
33391			Header: res.Header,
33392		}
33393	}
33394	if err != nil {
33395		return nil, err
33396	}
33397	defer googleapi.CloseBody(res)
33398	if err := googleapi.CheckResponse(res); err != nil {
33399		return nil, err
33400	}
33401	ret := &GoogleApiHttpBody{
33402		ServerResponse: googleapi.ServerResponse{
33403			Header:         res.Header,
33404			HTTPStatusCode: res.StatusCode,
33405		},
33406	}
33407	target := &ret
33408	if err := gensupport.DecodeResponse(target, res); err != nil {
33409		return nil, err
33410	}
33411	return ret, nil
33412	// {
33413	//   "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`",
33414	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result",
33415	//   "httpMethod": "GET",
33416	//   "id": "apigee.organizations.hostQueries.getResult",
33417	//   "parameterOrder": [
33418	//     "name"
33419	//   ],
33420	//   "parameters": {
33421	//     "name": {
33422	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.",
33423	//       "location": "path",
33424	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$",
33425	//       "required": true,
33426	//       "type": "string"
33427	//     }
33428	//   },
33429	//   "path": "v1/{+name}",
33430	//   "response": {
33431	//     "$ref": "GoogleApiHttpBody"
33432	//   },
33433	//   "scopes": [
33434	//     "https://www.googleapis.com/auth/cloud-platform"
33435	//   ]
33436	// }
33437
33438}
33439
33440// method id "apigee.organizations.hostQueries.getResultView":
33441
33442type OrganizationsHostQueriesGetResultViewCall struct {
33443	s            *Service
33444	name         string
33445	urlParams_   gensupport.URLParams
33446	ifNoneMatch_ string
33447	ctx_         context.Context
33448	header_      http.Header
33449}
33450
33451// GetResultView:
33452func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
33453	c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33454	c.name = name
33455	return c
33456}
33457
33458// Fields allows partial responses to be retrieved. See
33459// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33460// for more information.
33461func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
33462	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33463	return c
33464}
33465
33466// IfNoneMatch sets the optional parameter which makes the operation
33467// fail if the object's ETag matches the given value. This is useful for
33468// getting updates only after the object has changed since the last
33469// request. Use googleapi.IsNotModified to check whether the response
33470// error from Do is the result of In-None-Match.
33471func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
33472	c.ifNoneMatch_ = entityTag
33473	return c
33474}
33475
33476// Context sets the context to be used in this call's Do method. Any
33477// pending HTTP request will be aborted if the provided context is
33478// canceled.
33479func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
33480	c.ctx_ = ctx
33481	return c
33482}
33483
33484// Header returns an http.Header that can be modified by the caller to
33485// add HTTP headers to the request.
33486func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
33487	if c.header_ == nil {
33488		c.header_ = make(http.Header)
33489	}
33490	return c.header_
33491}
33492
33493func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
33494	reqHeaders := make(http.Header)
33495	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
33496	for k, v := range c.header_ {
33497		reqHeaders[k] = v
33498	}
33499	reqHeaders.Set("User-Agent", c.s.userAgent())
33500	if c.ifNoneMatch_ != "" {
33501		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33502	}
33503	var body io.Reader = nil
33504	c.urlParams_.Set("alt", alt)
33505	c.urlParams_.Set("prettyPrint", "false")
33506	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33507	urls += "?" + c.urlParams_.Encode()
33508	req, err := http.NewRequest("GET", urls, body)
33509	if err != nil {
33510		return nil, err
33511	}
33512	req.Header = reqHeaders
33513	googleapi.Expand(req.URL, map[string]string{
33514		"name": c.name,
33515	})
33516	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33517}
33518
33519// Do executes the "apigee.organizations.hostQueries.getResultView" call.
33520// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will
33521// be non-nil. Any non-2xx status code is an error. Response headers are
33522// in either
33523// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if
33524// a response was returned at all) in error.(*googleapi.Error).Header.
33525// Use googleapi.IsNotModified to check whether the returned error was
33526// because http.StatusNotModified was returned.
33527func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
33528	gensupport.SetOptions(c.urlParams_, opts...)
33529	res, err := c.doRequest("json")
33530	if res != nil && res.StatusCode == http.StatusNotModified {
33531		if res.Body != nil {
33532			res.Body.Close()
33533		}
33534		return nil, &googleapi.Error{
33535			Code:   res.StatusCode,
33536			Header: res.Header,
33537		}
33538	}
33539	if err != nil {
33540		return nil, err
33541	}
33542	defer googleapi.CloseBody(res)
33543	if err := googleapi.CheckResponse(res); err != nil {
33544		return nil, err
33545	}
33546	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
33547		ServerResponse: googleapi.ServerResponse{
33548			Header:         res.Header,
33549			HTTPStatusCode: res.StatusCode,
33550		},
33551	}
33552	target := &ret
33553	if err := gensupport.DecodeResponse(target, res); err != nil {
33554		return nil, err
33555	}
33556	return ret, nil
33557	// {
33558	//   "description": "",
33559	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView",
33560	//   "httpMethod": "GET",
33561	//   "id": "apigee.organizations.hostQueries.getResultView",
33562	//   "parameterOrder": [
33563	//     "name"
33564	//   ],
33565	//   "parameters": {
33566	//     "name": {
33567	//       "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.",
33568	//       "location": "path",
33569	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$",
33570	//       "required": true,
33571	//       "type": "string"
33572	//     }
33573	//   },
33574	//   "path": "v1/{+name}",
33575	//   "response": {
33576	//     "$ref": "GoogleCloudApigeeV1AsyncQueryResultView"
33577	//   },
33578	//   "scopes": [
33579	//     "https://www.googleapis.com/auth/cloud-platform"
33580	//   ]
33581	// }
33582
33583}
33584
33585// method id "apigee.organizations.hostQueries.list":
33586
33587type OrganizationsHostQueriesListCall struct {
33588	s            *Service
33589	parent       string
33590	urlParams_   gensupport.URLParams
33591	ifNoneMatch_ string
33592	ctx_         context.Context
33593	header_      http.Header
33594}
33595
33596// List: Return a list of Asynchronous Queries at host level.
33597func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
33598	c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33599	c.parent = parent
33600	return c
33601}
33602
33603// Dataset sets the optional parameter "dataset": Filter response list
33604// by dataset. Example: `api`, `mint`
33605func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
33606	c.urlParams_.Set("dataset", dataset)
33607	return c
33608}
33609
33610// EnvgroupHostname sets the optional parameter "envgroupHostname":
33611// Required. Filter response list by hostname.
33612func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
33613	c.urlParams_.Set("envgroupHostname", envgroupHostname)
33614	return c
33615}
33616
33617// From sets the optional parameter "from": Filter response list by
33618// returning asynchronous queries that created after this date time.
33619// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
33620func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
33621	c.urlParams_.Set("from", from)
33622	return c
33623}
33624
33625// InclQueriesWithoutReport sets the optional parameter
33626// "inclQueriesWithoutReport": Flag to include asynchronous queries that
33627// don't have a report denifition.
33628func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
33629	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
33630	return c
33631}
33632
33633// Status sets the optional parameter "status": Filter response list by
33634// asynchronous query status.
33635func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
33636	c.urlParams_.Set("status", status)
33637	return c
33638}
33639
33640// SubmittedBy sets the optional parameter "submittedBy": Filter
33641// response list by user who submitted queries.
33642func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
33643	c.urlParams_.Set("submittedBy", submittedBy)
33644	return c
33645}
33646
33647// To sets the optional parameter "to": Filter response list by
33648// returning asynchronous queries that created before this date time.
33649// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
33650func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
33651	c.urlParams_.Set("to", to)
33652	return c
33653}
33654
33655// Fields allows partial responses to be retrieved. See
33656// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33657// for more information.
33658func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
33659	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33660	return c
33661}
33662
33663// IfNoneMatch sets the optional parameter which makes the operation
33664// fail if the object's ETag matches the given value. This is useful for
33665// getting updates only after the object has changed since the last
33666// request. Use googleapi.IsNotModified to check whether the response
33667// error from Do is the result of In-None-Match.
33668func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
33669	c.ifNoneMatch_ = entityTag
33670	return c
33671}
33672
33673// Context sets the context to be used in this call's Do method. Any
33674// pending HTTP request will be aborted if the provided context is
33675// canceled.
33676func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
33677	c.ctx_ = ctx
33678	return c
33679}
33680
33681// Header returns an http.Header that can be modified by the caller to
33682// add HTTP headers to the request.
33683func (c *OrganizationsHostQueriesListCall) Header() http.Header {
33684	if c.header_ == nil {
33685		c.header_ = make(http.Header)
33686	}
33687	return c.header_
33688}
33689
33690func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
33691	reqHeaders := make(http.Header)
33692	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
33693	for k, v := range c.header_ {
33694		reqHeaders[k] = v
33695	}
33696	reqHeaders.Set("User-Agent", c.s.userAgent())
33697	if c.ifNoneMatch_ != "" {
33698		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33699	}
33700	var body io.Reader = nil
33701	c.urlParams_.Set("alt", alt)
33702	c.urlParams_.Set("prettyPrint", "false")
33703	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
33704	urls += "?" + c.urlParams_.Encode()
33705	req, err := http.NewRequest("GET", urls, body)
33706	if err != nil {
33707		return nil, err
33708	}
33709	req.Header = reqHeaders
33710	googleapi.Expand(req.URL, map[string]string{
33711		"parent": c.parent,
33712	})
33713	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33714}
33715
33716// Do executes the "apigee.organizations.hostQueries.list" call.
33717// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
33718// will be non-nil. Any non-2xx status code is an error. Response
33719// headers are in either
33720// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
33721// (if a response was returned at all) in
33722// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33723// whether the returned error was because http.StatusNotModified was
33724// returned.
33725func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
33726	gensupport.SetOptions(c.urlParams_, opts...)
33727	res, err := c.doRequest("json")
33728	if res != nil && res.StatusCode == http.StatusNotModified {
33729		if res.Body != nil {
33730			res.Body.Close()
33731		}
33732		return nil, &googleapi.Error{
33733			Code:   res.StatusCode,
33734			Header: res.Header,
33735		}
33736	}
33737	if err != nil {
33738		return nil, err
33739	}
33740	defer googleapi.CloseBody(res)
33741	if err := googleapi.CheckResponse(res); err != nil {
33742		return nil, err
33743	}
33744	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
33745		ServerResponse: googleapi.ServerResponse{
33746			Header:         res.Header,
33747			HTTPStatusCode: res.StatusCode,
33748		},
33749	}
33750	target := &ret
33751	if err := gensupport.DecodeResponse(target, res); err != nil {
33752		return nil, err
33753	}
33754	return ret, nil
33755	// {
33756	//   "description": "Return a list of Asynchronous Queries at host level.",
33757	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
33758	//   "httpMethod": "GET",
33759	//   "id": "apigee.organizations.hostQueries.list",
33760	//   "parameterOrder": [
33761	//     "parent"
33762	//   ],
33763	//   "parameters": {
33764	//     "dataset": {
33765	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
33766	//       "location": "query",
33767	//       "type": "string"
33768	//     },
33769	//     "envgroupHostname": {
33770	//       "description": "Required. Filter response list by hostname.",
33771	//       "location": "query",
33772	//       "type": "string"
33773	//     },
33774	//     "from": {
33775	//       "description": "Filter response list by returning asynchronous queries that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.",
33776	//       "location": "query",
33777	//       "type": "string"
33778	//     },
33779	//     "inclQueriesWithoutReport": {
33780	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
33781	//       "location": "query",
33782	//       "type": "string"
33783	//     },
33784	//     "parent": {
33785	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
33786	//       "location": "path",
33787	//       "pattern": "^organizations/[^/]+$",
33788	//       "required": true,
33789	//       "type": "string"
33790	//     },
33791	//     "status": {
33792	//       "description": "Filter response list by asynchronous query status.",
33793	//       "location": "query",
33794	//       "type": "string"
33795	//     },
33796	//     "submittedBy": {
33797	//       "description": "Filter response list by user who submitted queries.",
33798	//       "location": "query",
33799	//       "type": "string"
33800	//     },
33801	//     "to": {
33802	//       "description": "Filter response list by returning asynchronous queries that created before this date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.",
33803	//       "location": "query",
33804	//       "type": "string"
33805	//     }
33806	//   },
33807	//   "path": "v1/{+parent}/hostQueries",
33808	//   "response": {
33809	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
33810	//   },
33811	//   "scopes": [
33812	//     "https://www.googleapis.com/auth/cloud-platform"
33813	//   ]
33814	// }
33815
33816}
33817
33818// method id "apigee.organizations.hostStats.get":
33819
33820type OrganizationsHostStatsGetCall struct {
33821	s            *Service
33822	name         string
33823	urlParams_   gensupport.URLParams
33824	ifNoneMatch_ string
33825	ctx_         context.Context
33826	header_      http.Header
33827}
33828
33829// Get: Retrieve metrics grouped by dimensions in host level. The types
33830// of metrics you can retrieve include traffic, message counts, API call
33831// latency, response size, and cache hits and counts. Dimensions let you
33832// view metrics in meaningful groups. The stats api does accept
33833// dimensions as path params. The dimensions are optional in which case
33834// the metrics are computed on the entire data for the given timerange.
33835func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
33836	c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33837	c.name = name
33838	return c
33839}
33840
33841// Accuracy sets the optional parameter "accuracy": Legacy field: not
33842// used anymore.
33843func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
33844	c.urlParams_.Set("accuracy", accuracy)
33845	return c
33846}
33847
33848// EnvgroupHostname sets the optional parameter "envgroupHostname":
33849// Required. The hostname for which the interactive query will be
33850// executed.
33851func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
33852	c.urlParams_.Set("envgroupHostname", envgroupHostname)
33853	return c
33854}
33855
33856// Filter sets the optional parameter "filter": Enables drill-down on
33857// specific dimension values.
33858func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
33859	c.urlParams_.Set("filter", filter)
33860	return c
33861}
33862
33863// Limit sets the optional parameter "limit": This parameter is used to
33864// limit the number of result items. Default and the max value is 14400.
33865func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
33866	c.urlParams_.Set("limit", limit)
33867	return c
33868}
33869
33870// Offset sets the optional parameter "offset": Use offset with limit to
33871// enable pagination of results. For example, to display results 11-20,
33872// set limit to '10' and offset to '10'.
33873func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
33874	c.urlParams_.Set("offset", offset)
33875	return c
33876}
33877
33878// Realtime sets the optional parameter "realtime": Legacy field: not
33879// used anymore.
33880func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
33881	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
33882	return c
33883}
33884
33885// Select sets the optional parameter "select": The select parameter
33886// contains a comma separated list of metrics. E.g.
33887// sum(message_count),sum(error_count)
33888func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
33889	c.urlParams_.Set("select", select_)
33890	return c
33891}
33892
33893// Sort sets the optional parameter "sort": This parameter specifies if
33894// the sort order should be ascending or descending Supported values are
33895// DESC and ASC.
33896func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
33897	c.urlParams_.Set("sort", sort)
33898	return c
33899}
33900
33901// Sortby sets the optional parameter "sortby": Comma separated list of
33902// columns to sort the final result.
33903func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
33904	c.urlParams_.Set("sortby", sortby)
33905	return c
33906}
33907
33908// TimeRange sets the optional parameter "timeRange": Time interval for
33909// the interactive query. Time range is specified as start~end E.g.
33910// 04/15/2017 00:00~05/15/2017 23:59
33911func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
33912	c.urlParams_.Set("timeRange", timeRange)
33913	return c
33914}
33915
33916// TimeUnit sets the optional parameter "timeUnit": A value of second,
33917// minute, hour, day, week, month. Time Unit specifies the granularity
33918// of metrics returned.
33919func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
33920	c.urlParams_.Set("timeUnit", timeUnit)
33921	return c
33922}
33923
33924// Topk sets the optional parameter "topk": Take 'top k' results from
33925// results, for example, to return the top 5 results 'topk=5'.
33926func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
33927	c.urlParams_.Set("topk", topk)
33928	return c
33929}
33930
33931// TsAscending sets the optional parameter "tsAscending": Lists
33932// timestamps in ascending order if set to true. Recommend setting this
33933// value to true if you are using sortby with sort=DESC.
33934func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
33935	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
33936	return c
33937}
33938
33939// Tzo sets the optional parameter "tzo": This parameters contains the
33940// timezone offset value.
33941func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
33942	c.urlParams_.Set("tzo", tzo)
33943	return c
33944}
33945
33946// Fields allows partial responses to be retrieved. See
33947// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33948// for more information.
33949func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
33950	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33951	return c
33952}
33953
33954// IfNoneMatch sets the optional parameter which makes the operation
33955// fail if the object's ETag matches the given value. This is useful for
33956// getting updates only after the object has changed since the last
33957// request. Use googleapi.IsNotModified to check whether the response
33958// error from Do is the result of In-None-Match.
33959func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
33960	c.ifNoneMatch_ = entityTag
33961	return c
33962}
33963
33964// Context sets the context to be used in this call's Do method. Any
33965// pending HTTP request will be aborted if the provided context is
33966// canceled.
33967func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
33968	c.ctx_ = ctx
33969	return c
33970}
33971
33972// Header returns an http.Header that can be modified by the caller to
33973// add HTTP headers to the request.
33974func (c *OrganizationsHostStatsGetCall) Header() http.Header {
33975	if c.header_ == nil {
33976		c.header_ = make(http.Header)
33977	}
33978	return c.header_
33979}
33980
33981func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
33982	reqHeaders := make(http.Header)
33983	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
33984	for k, v := range c.header_ {
33985		reqHeaders[k] = v
33986	}
33987	reqHeaders.Set("User-Agent", c.s.userAgent())
33988	if c.ifNoneMatch_ != "" {
33989		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33990	}
33991	var body io.Reader = nil
33992	c.urlParams_.Set("alt", alt)
33993	c.urlParams_.Set("prettyPrint", "false")
33994	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33995	urls += "?" + c.urlParams_.Encode()
33996	req, err := http.NewRequest("GET", urls, body)
33997	if err != nil {
33998		return nil, err
33999	}
34000	req.Header = reqHeaders
34001	googleapi.Expand(req.URL, map[string]string{
34002		"name": c.name,
34003	})
34004	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34005}
34006
34007// Do executes the "apigee.organizations.hostStats.get" call.
34008// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
34009// Any non-2xx status code is an error. Response headers are in either
34010// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
34011// returned at all) in error.(*googleapi.Error).Header. Use
34012// googleapi.IsNotModified to check whether the returned error was
34013// because http.StatusNotModified was returned.
34014func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
34015	gensupport.SetOptions(c.urlParams_, opts...)
34016	res, err := c.doRequest("json")
34017	if res != nil && res.StatusCode == http.StatusNotModified {
34018		if res.Body != nil {
34019			res.Body.Close()
34020		}
34021		return nil, &googleapi.Error{
34022			Code:   res.StatusCode,
34023			Header: res.Header,
34024		}
34025	}
34026	if err != nil {
34027		return nil, err
34028	}
34029	defer googleapi.CloseBody(res)
34030	if err := googleapi.CheckResponse(res); err != nil {
34031		return nil, err
34032	}
34033	ret := &GoogleCloudApigeeV1Stats{
34034		ServerResponse: googleapi.ServerResponse{
34035			Header:         res.Header,
34036			HTTPStatusCode: res.StatusCode,
34037		},
34038	}
34039	target := &ret
34040	if err := gensupport.DecodeResponse(target, res); err != nil {
34041		return nil, err
34042	}
34043	return ret, nil
34044	// {
34045	//   "description": "Retrieve metrics grouped by dimensions in host level. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. The stats api does accept dimensions as path params. The dimensions are optional in which case the metrics are computed on the entire data for the given timerange.",
34046	//   "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}",
34047	//   "httpMethod": "GET",
34048	//   "id": "apigee.organizations.hostStats.get",
34049	//   "parameterOrder": [
34050	//     "name"
34051	//   ],
34052	//   "parameters": {
34053	//     "accuracy": {
34054	//       "description": "Legacy field: not used anymore.",
34055	//       "location": "query",
34056	//       "type": "string"
34057	//     },
34058	//     "envgroupHostname": {
34059	//       "description": "Required. The hostname for which the interactive query will be executed.",
34060	//       "location": "query",
34061	//       "type": "string"
34062	//     },
34063	//     "filter": {
34064	//       "description": "Enables drill-down on specific dimension values.",
34065	//       "location": "query",
34066	//       "type": "string"
34067	//     },
34068	//     "limit": {
34069	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
34070	//       "location": "query",
34071	//       "type": "string"
34072	//     },
34073	//     "name": {
34074	//       "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/hostStats/{dimensions}`. Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/hostStats/apiproxy,request_verb`",
34075	//       "location": "path",
34076	//       "pattern": "^organizations/[^/]+/hostStats/.*$",
34077	//       "required": true,
34078	//       "type": "string"
34079	//     },
34080	//     "offset": {
34081	//       "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.",
34082	//       "location": "query",
34083	//       "type": "string"
34084	//     },
34085	//     "realtime": {
34086	//       "description": "Legacy field: not used anymore.",
34087	//       "location": "query",
34088	//       "type": "boolean"
34089	//     },
34090	//     "select": {
34091	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
34092	//       "location": "query",
34093	//       "type": "string"
34094	//     },
34095	//     "sort": {
34096	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
34097	//       "location": "query",
34098	//       "type": "string"
34099	//     },
34100	//     "sortby": {
34101	//       "description": "Comma separated list of columns to sort the final result.",
34102	//       "location": "query",
34103	//       "type": "string"
34104	//     },
34105	//     "timeRange": {
34106	//       "description": "Time interval for the interactive query. Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59",
34107	//       "location": "query",
34108	//       "type": "string"
34109	//     },
34110	//     "timeUnit": {
34111	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
34112	//       "location": "query",
34113	//       "type": "string"
34114	//     },
34115	//     "topk": {
34116	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
34117	//       "location": "query",
34118	//       "type": "string"
34119	//     },
34120	//     "tsAscending": {
34121	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
34122	//       "location": "query",
34123	//       "type": "boolean"
34124	//     },
34125	//     "tzo": {
34126	//       "description": "This parameters contains the timezone offset value.",
34127	//       "location": "query",
34128	//       "type": "string"
34129	//     }
34130	//   },
34131	//   "path": "v1/{+name}",
34132	//   "response": {
34133	//     "$ref": "GoogleCloudApigeeV1Stats"
34134	//   },
34135	//   "scopes": [
34136	//     "https://www.googleapis.com/auth/cloud-platform"
34137	//   ]
34138	// }
34139
34140}
34141
34142// method id "apigee.organizations.instances.create":
34143
34144type OrganizationsInstancesCreateCall struct {
34145	s                           *Service
34146	parent                      string
34147	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
34148	urlParams_                  gensupport.URLParams
34149	ctx_                        context.Context
34150	header_                     http.Header
34151}
34152
34153// Create: Creates an Apigee runtime instance. The instance is
34154// accessible from the authorized network configured on the
34155// organization. **Note:** Not supported for Apigee hybrid.
34156func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
34157	c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34158	c.parent = parent
34159	c.googlecloudapigeev1instance = googlecloudapigeev1instance
34160	return c
34161}
34162
34163// Fields allows partial responses to be retrieved. See
34164// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34165// for more information.
34166func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
34167	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34168	return c
34169}
34170
34171// Context sets the context to be used in this call's Do method. Any
34172// pending HTTP request will be aborted if the provided context is
34173// canceled.
34174func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
34175	c.ctx_ = ctx
34176	return c
34177}
34178
34179// Header returns an http.Header that can be modified by the caller to
34180// add HTTP headers to the request.
34181func (c *OrganizationsInstancesCreateCall) Header() http.Header {
34182	if c.header_ == nil {
34183		c.header_ = make(http.Header)
34184	}
34185	return c.header_
34186}
34187
34188func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
34189	reqHeaders := make(http.Header)
34190	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
34191	for k, v := range c.header_ {
34192		reqHeaders[k] = v
34193	}
34194	reqHeaders.Set("User-Agent", c.s.userAgent())
34195	var body io.Reader = nil
34196	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
34197	if err != nil {
34198		return nil, err
34199	}
34200	reqHeaders.Set("Content-Type", "application/json")
34201	c.urlParams_.Set("alt", alt)
34202	c.urlParams_.Set("prettyPrint", "false")
34203	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
34204	urls += "?" + c.urlParams_.Encode()
34205	req, err := http.NewRequest("POST", urls, body)
34206	if err != nil {
34207		return nil, err
34208	}
34209	req.Header = reqHeaders
34210	googleapi.Expand(req.URL, map[string]string{
34211		"parent": c.parent,
34212	})
34213	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34214}
34215
34216// Do executes the "apigee.organizations.instances.create" call.
34217// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
34218// Any non-2xx status code is an error. Response headers are in either
34219// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
34220// was returned at all) in error.(*googleapi.Error).Header. Use
34221// googleapi.IsNotModified to check whether the returned error was
34222// because http.StatusNotModified was returned.
34223func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34224	gensupport.SetOptions(c.urlParams_, opts...)
34225	res, err := c.doRequest("json")
34226	if res != nil && res.StatusCode == http.StatusNotModified {
34227		if res.Body != nil {
34228			res.Body.Close()
34229		}
34230		return nil, &googleapi.Error{
34231			Code:   res.StatusCode,
34232			Header: res.Header,
34233		}
34234	}
34235	if err != nil {
34236		return nil, err
34237	}
34238	defer googleapi.CloseBody(res)
34239	if err := googleapi.CheckResponse(res); err != nil {
34240		return nil, err
34241	}
34242	ret := &GoogleLongrunningOperation{
34243		ServerResponse: googleapi.ServerResponse{
34244			Header:         res.Header,
34245			HTTPStatusCode: res.StatusCode,
34246		},
34247	}
34248	target := &ret
34249	if err := gensupport.DecodeResponse(target, res); err != nil {
34250		return nil, err
34251	}
34252	return ret, nil
34253	// {
34254	//   "description": "Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. **Note:** Not supported for Apigee hybrid.",
34255	//   "flatPath": "v1/organizations/{organizationsId}/instances",
34256	//   "httpMethod": "POST",
34257	//   "id": "apigee.organizations.instances.create",
34258	//   "parameterOrder": [
34259	//     "parent"
34260	//   ],
34261	//   "parameters": {
34262	//     "parent": {
34263	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
34264	//       "location": "path",
34265	//       "pattern": "^organizations/[^/]+$",
34266	//       "required": true,
34267	//       "type": "string"
34268	//     }
34269	//   },
34270	//   "path": "v1/{+parent}/instances",
34271	//   "request": {
34272	//     "$ref": "GoogleCloudApigeeV1Instance"
34273	//   },
34274	//   "response": {
34275	//     "$ref": "GoogleLongrunningOperation"
34276	//   },
34277	//   "scopes": [
34278	//     "https://www.googleapis.com/auth/cloud-platform"
34279	//   ]
34280	// }
34281
34282}
34283
34284// method id "apigee.organizations.instances.delete":
34285
34286type OrganizationsInstancesDeleteCall struct {
34287	s          *Service
34288	name       string
34289	urlParams_ gensupport.URLParams
34290	ctx_       context.Context
34291	header_    http.Header
34292}
34293
34294// Delete: Deletes an Apigee runtime instance. The instance stops
34295// serving requests and the runtime data is deleted. **Note:** Not
34296// supported for Apigee hybrid.
34297func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
34298	c := &OrganizationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34299	c.name = name
34300	return c
34301}
34302
34303// Fields allows partial responses to be retrieved. See
34304// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34305// for more information.
34306func (c *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
34307	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34308	return c
34309}
34310
34311// Context sets the context to be used in this call's Do method. Any
34312// pending HTTP request will be aborted if the provided context is
34313// canceled.
34314func (c *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
34315	c.ctx_ = ctx
34316	return c
34317}
34318
34319// Header returns an http.Header that can be modified by the caller to
34320// add HTTP headers to the request.
34321func (c *OrganizationsInstancesDeleteCall) Header() http.Header {
34322	if c.header_ == nil {
34323		c.header_ = make(http.Header)
34324	}
34325	return c.header_
34326}
34327
34328func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
34329	reqHeaders := make(http.Header)
34330	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
34331	for k, v := range c.header_ {
34332		reqHeaders[k] = v
34333	}
34334	reqHeaders.Set("User-Agent", c.s.userAgent())
34335	var body io.Reader = nil
34336	c.urlParams_.Set("alt", alt)
34337	c.urlParams_.Set("prettyPrint", "false")
34338	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34339	urls += "?" + c.urlParams_.Encode()
34340	req, err := http.NewRequest("DELETE", urls, body)
34341	if err != nil {
34342		return nil, err
34343	}
34344	req.Header = reqHeaders
34345	googleapi.Expand(req.URL, map[string]string{
34346		"name": c.name,
34347	})
34348	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34349}
34350
34351// Do executes the "apigee.organizations.instances.delete" call.
34352// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
34353// Any non-2xx status code is an error. Response headers are in either
34354// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
34355// was returned at all) in error.(*googleapi.Error).Header. Use
34356// googleapi.IsNotModified to check whether the returned error was
34357// because http.StatusNotModified was returned.
34358func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34359	gensupport.SetOptions(c.urlParams_, opts...)
34360	res, err := c.doRequest("json")
34361	if res != nil && res.StatusCode == http.StatusNotModified {
34362		if res.Body != nil {
34363			res.Body.Close()
34364		}
34365		return nil, &googleapi.Error{
34366			Code:   res.StatusCode,
34367			Header: res.Header,
34368		}
34369	}
34370	if err != nil {
34371		return nil, err
34372	}
34373	defer googleapi.CloseBody(res)
34374	if err := googleapi.CheckResponse(res); err != nil {
34375		return nil, err
34376	}
34377	ret := &GoogleLongrunningOperation{
34378		ServerResponse: googleapi.ServerResponse{
34379			Header:         res.Header,
34380			HTTPStatusCode: res.StatusCode,
34381		},
34382	}
34383	target := &ret
34384	if err := gensupport.DecodeResponse(target, res); err != nil {
34385		return nil, err
34386	}
34387	return ret, nil
34388	// {
34389	//   "description": "Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. **Note:** Not supported for Apigee hybrid.",
34390	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
34391	//   "httpMethod": "DELETE",
34392	//   "id": "apigee.organizations.instances.delete",
34393	//   "parameterOrder": [
34394	//     "name"
34395	//   ],
34396	//   "parameters": {
34397	//     "name": {
34398	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
34399	//       "location": "path",
34400	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
34401	//       "required": true,
34402	//       "type": "string"
34403	//     }
34404	//   },
34405	//   "path": "v1/{+name}",
34406	//   "response": {
34407	//     "$ref": "GoogleLongrunningOperation"
34408	//   },
34409	//   "scopes": [
34410	//     "https://www.googleapis.com/auth/cloud-platform"
34411	//   ]
34412	// }
34413
34414}
34415
34416// method id "apigee.organizations.instances.get":
34417
34418type OrganizationsInstancesGetCall struct {
34419	s            *Service
34420	name         string
34421	urlParams_   gensupport.URLParams
34422	ifNoneMatch_ string
34423	ctx_         context.Context
34424	header_      http.Header
34425}
34426
34427// Get: Gets the details for an Apigee runtime instance. **Note:** Not
34428// supported for Apigee hybrid.
34429func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
34430	c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34431	c.name = name
34432	return c
34433}
34434
34435// Fields allows partial responses to be retrieved. See
34436// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34437// for more information.
34438func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
34439	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34440	return c
34441}
34442
34443// IfNoneMatch sets the optional parameter which makes the operation
34444// fail if the object's ETag matches the given value. This is useful for
34445// getting updates only after the object has changed since the last
34446// request. Use googleapi.IsNotModified to check whether the response
34447// error from Do is the result of In-None-Match.
34448func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
34449	c.ifNoneMatch_ = entityTag
34450	return c
34451}
34452
34453// Context sets the context to be used in this call's Do method. Any
34454// pending HTTP request will be aborted if the provided context is
34455// canceled.
34456func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
34457	c.ctx_ = ctx
34458	return c
34459}
34460
34461// Header returns an http.Header that can be modified by the caller to
34462// add HTTP headers to the request.
34463func (c *OrganizationsInstancesGetCall) Header() http.Header {
34464	if c.header_ == nil {
34465		c.header_ = make(http.Header)
34466	}
34467	return c.header_
34468}
34469
34470func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
34471	reqHeaders := make(http.Header)
34472	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
34473	for k, v := range c.header_ {
34474		reqHeaders[k] = v
34475	}
34476	reqHeaders.Set("User-Agent", c.s.userAgent())
34477	if c.ifNoneMatch_ != "" {
34478		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34479	}
34480	var body io.Reader = nil
34481	c.urlParams_.Set("alt", alt)
34482	c.urlParams_.Set("prettyPrint", "false")
34483	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34484	urls += "?" + c.urlParams_.Encode()
34485	req, err := http.NewRequest("GET", urls, body)
34486	if err != nil {
34487		return nil, err
34488	}
34489	req.Header = reqHeaders
34490	googleapi.Expand(req.URL, map[string]string{
34491		"name": c.name,
34492	})
34493	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34494}
34495
34496// Do executes the "apigee.organizations.instances.get" call.
34497// Exactly one of *GoogleCloudApigeeV1Instance or error will be non-nil.
34498// Any non-2xx status code is an error. Response headers are in either
34499// *GoogleCloudApigeeV1Instance.ServerResponse.Header or (if a response
34500// was returned at all) in error.(*googleapi.Error).Header. Use
34501// googleapi.IsNotModified to check whether the returned error was
34502// because http.StatusNotModified was returned.
34503func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
34504	gensupport.SetOptions(c.urlParams_, opts...)
34505	res, err := c.doRequest("json")
34506	if res != nil && res.StatusCode == http.StatusNotModified {
34507		if res.Body != nil {
34508			res.Body.Close()
34509		}
34510		return nil, &googleapi.Error{
34511			Code:   res.StatusCode,
34512			Header: res.Header,
34513		}
34514	}
34515	if err != nil {
34516		return nil, err
34517	}
34518	defer googleapi.CloseBody(res)
34519	if err := googleapi.CheckResponse(res); err != nil {
34520		return nil, err
34521	}
34522	ret := &GoogleCloudApigeeV1Instance{
34523		ServerResponse: googleapi.ServerResponse{
34524			Header:         res.Header,
34525			HTTPStatusCode: res.StatusCode,
34526		},
34527	}
34528	target := &ret
34529	if err := gensupport.DecodeResponse(target, res); err != nil {
34530		return nil, err
34531	}
34532	return ret, nil
34533	// {
34534	//   "description": "Gets the details for an Apigee runtime instance. **Note:** Not supported for Apigee hybrid.",
34535	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
34536	//   "httpMethod": "GET",
34537	//   "id": "apigee.organizations.instances.get",
34538	//   "parameterOrder": [
34539	//     "name"
34540	//   ],
34541	//   "parameters": {
34542	//     "name": {
34543	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
34544	//       "location": "path",
34545	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
34546	//       "required": true,
34547	//       "type": "string"
34548	//     }
34549	//   },
34550	//   "path": "v1/{+name}",
34551	//   "response": {
34552	//     "$ref": "GoogleCloudApigeeV1Instance"
34553	//   },
34554	//   "scopes": [
34555	//     "https://www.googleapis.com/auth/cloud-platform"
34556	//   ]
34557	// }
34558
34559}
34560
34561// method id "apigee.organizations.instances.list":
34562
34563type OrganizationsInstancesListCall struct {
34564	s            *Service
34565	parent       string
34566	urlParams_   gensupport.URLParams
34567	ifNoneMatch_ string
34568	ctx_         context.Context
34569	header_      http.Header
34570}
34571
34572// List: Lists all Apigee runtime instances for the organization.
34573// **Note:** Not supported for Apigee hybrid.
34574func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
34575	c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34576	c.parent = parent
34577	return c
34578}
34579
34580// PageSize sets the optional parameter "pageSize": Maximum number of
34581// instances to return. Defaults to 25.
34582func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
34583	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34584	return c
34585}
34586
34587// PageToken sets the optional parameter "pageToken": Page token,
34588// returned from a previous ListInstances call, that you can use to
34589// retrieve the next page of content.
34590func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
34591	c.urlParams_.Set("pageToken", pageToken)
34592	return c
34593}
34594
34595// Fields allows partial responses to be retrieved. See
34596// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34597// for more information.
34598func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
34599	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34600	return c
34601}
34602
34603// IfNoneMatch sets the optional parameter which makes the operation
34604// fail if the object's ETag matches the given value. This is useful for
34605// getting updates only after the object has changed since the last
34606// request. Use googleapi.IsNotModified to check whether the response
34607// error from Do is the result of In-None-Match.
34608func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
34609	c.ifNoneMatch_ = entityTag
34610	return c
34611}
34612
34613// Context sets the context to be used in this call's Do method. Any
34614// pending HTTP request will be aborted if the provided context is
34615// canceled.
34616func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
34617	c.ctx_ = ctx
34618	return c
34619}
34620
34621// Header returns an http.Header that can be modified by the caller to
34622// add HTTP headers to the request.
34623func (c *OrganizationsInstancesListCall) Header() http.Header {
34624	if c.header_ == nil {
34625		c.header_ = make(http.Header)
34626	}
34627	return c.header_
34628}
34629
34630func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
34631	reqHeaders := make(http.Header)
34632	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
34633	for k, v := range c.header_ {
34634		reqHeaders[k] = v
34635	}
34636	reqHeaders.Set("User-Agent", c.s.userAgent())
34637	if c.ifNoneMatch_ != "" {
34638		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34639	}
34640	var body io.Reader = nil
34641	c.urlParams_.Set("alt", alt)
34642	c.urlParams_.Set("prettyPrint", "false")
34643	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
34644	urls += "?" + c.urlParams_.Encode()
34645	req, err := http.NewRequest("GET", urls, body)
34646	if err != nil {
34647		return nil, err
34648	}
34649	req.Header = reqHeaders
34650	googleapi.Expand(req.URL, map[string]string{
34651		"parent": c.parent,
34652	})
34653	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34654}
34655
34656// Do executes the "apigee.organizations.instances.list" call.
34657// Exactly one of *GoogleCloudApigeeV1ListInstancesResponse or error
34658// will be non-nil. Any non-2xx status code is an error. Response
34659// headers are in either
34660// *GoogleCloudApigeeV1ListInstancesResponse.ServerResponse.Header or
34661// (if a response was returned at all) in
34662// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34663// whether the returned error was because http.StatusNotModified was
34664// returned.
34665func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
34666	gensupport.SetOptions(c.urlParams_, opts...)
34667	res, err := c.doRequest("json")
34668	if res != nil && res.StatusCode == http.StatusNotModified {
34669		if res.Body != nil {
34670			res.Body.Close()
34671		}
34672		return nil, &googleapi.Error{
34673			Code:   res.StatusCode,
34674			Header: res.Header,
34675		}
34676	}
34677	if err != nil {
34678		return nil, err
34679	}
34680	defer googleapi.CloseBody(res)
34681	if err := googleapi.CheckResponse(res); err != nil {
34682		return nil, err
34683	}
34684	ret := &GoogleCloudApigeeV1ListInstancesResponse{
34685		ServerResponse: googleapi.ServerResponse{
34686			Header:         res.Header,
34687			HTTPStatusCode: res.StatusCode,
34688		},
34689	}
34690	target := &ret
34691	if err := gensupport.DecodeResponse(target, res); err != nil {
34692		return nil, err
34693	}
34694	return ret, nil
34695	// {
34696	//   "description": "Lists all Apigee runtime instances for the organization. **Note:** Not supported for Apigee hybrid.",
34697	//   "flatPath": "v1/organizations/{organizationsId}/instances",
34698	//   "httpMethod": "GET",
34699	//   "id": "apigee.organizations.instances.list",
34700	//   "parameterOrder": [
34701	//     "parent"
34702	//   ],
34703	//   "parameters": {
34704	//     "pageSize": {
34705	//       "description": "Maximum number of instances to return. Defaults to 25.",
34706	//       "format": "int32",
34707	//       "location": "query",
34708	//       "type": "integer"
34709	//     },
34710	//     "pageToken": {
34711	//       "description": "Page token, returned from a previous ListInstances call, that you can use to retrieve the next page of content.",
34712	//       "location": "query",
34713	//       "type": "string"
34714	//     },
34715	//     "parent": {
34716	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
34717	//       "location": "path",
34718	//       "pattern": "^organizations/[^/]+$",
34719	//       "required": true,
34720	//       "type": "string"
34721	//     }
34722	//   },
34723	//   "path": "v1/{+parent}/instances",
34724	//   "response": {
34725	//     "$ref": "GoogleCloudApigeeV1ListInstancesResponse"
34726	//   },
34727	//   "scopes": [
34728	//     "https://www.googleapis.com/auth/cloud-platform"
34729	//   ]
34730	// }
34731
34732}
34733
34734// Pages invokes f for each page of results.
34735// A non-nil error returned from f will halt the iteration.
34736// The provided context supersedes any context provided to the Context method.
34737func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
34738	c.ctx_ = ctx
34739	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
34740	for {
34741		x, err := c.Do()
34742		if err != nil {
34743			return err
34744		}
34745		if err := f(x); err != nil {
34746			return err
34747		}
34748		if x.NextPageToken == "" {
34749			return nil
34750		}
34751		c.PageToken(x.NextPageToken)
34752	}
34753}
34754
34755// method id "apigee.organizations.instances.reportStatus":
34756
34757type OrganizationsInstancesReportStatusCall struct {
34758	s                                              *Service
34759	instance                                       string
34760	googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
34761	urlParams_                                     gensupport.URLParams
34762	ctx_                                           context.Context
34763	header_                                        http.Header
34764}
34765
34766// ReportStatus: Reports the latest status for a runtime instance.
34767func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
34768	c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34769	c.instance = instance
34770	c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
34771	return c
34772}
34773
34774// Fields allows partial responses to be retrieved. See
34775// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34776// for more information.
34777func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
34778	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34779	return c
34780}
34781
34782// Context sets the context to be used in this call's Do method. Any
34783// pending HTTP request will be aborted if the provided context is
34784// canceled.
34785func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
34786	c.ctx_ = ctx
34787	return c
34788}
34789
34790// Header returns an http.Header that can be modified by the caller to
34791// add HTTP headers to the request.
34792func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
34793	if c.header_ == nil {
34794		c.header_ = make(http.Header)
34795	}
34796	return c.header_
34797}
34798
34799func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
34800	reqHeaders := make(http.Header)
34801	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
34802	for k, v := range c.header_ {
34803		reqHeaders[k] = v
34804	}
34805	reqHeaders.Set("User-Agent", c.s.userAgent())
34806	var body io.Reader = nil
34807	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
34808	if err != nil {
34809		return nil, err
34810	}
34811	reqHeaders.Set("Content-Type", "application/json")
34812	c.urlParams_.Set("alt", alt)
34813	c.urlParams_.Set("prettyPrint", "false")
34814	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
34815	urls += "?" + c.urlParams_.Encode()
34816	req, err := http.NewRequest("POST", urls, body)
34817	if err != nil {
34818		return nil, err
34819	}
34820	req.Header = reqHeaders
34821	googleapi.Expand(req.URL, map[string]string{
34822		"instance": c.instance,
34823	})
34824	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34825}
34826
34827// Do executes the "apigee.organizations.instances.reportStatus" call.
34828// Exactly one of *GoogleCloudApigeeV1ReportInstanceStatusResponse or
34829// error will be non-nil. Any non-2xx status code is an error. Response
34830// headers are in either
34831// *GoogleCloudApigeeV1ReportInstanceStatusResponse.ServerResponse.Header
34832//  or (if a response was returned at all) in
34833// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34834// whether the returned error was because http.StatusNotModified was
34835// returned.
34836func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
34837	gensupport.SetOptions(c.urlParams_, opts...)
34838	res, err := c.doRequest("json")
34839	if res != nil && res.StatusCode == http.StatusNotModified {
34840		if res.Body != nil {
34841			res.Body.Close()
34842		}
34843		return nil, &googleapi.Error{
34844			Code:   res.StatusCode,
34845			Header: res.Header,
34846		}
34847	}
34848	if err != nil {
34849		return nil, err
34850	}
34851	defer googleapi.CloseBody(res)
34852	if err := googleapi.CheckResponse(res); err != nil {
34853		return nil, err
34854	}
34855	ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
34856		ServerResponse: googleapi.ServerResponse{
34857			Header:         res.Header,
34858			HTTPStatusCode: res.StatusCode,
34859		},
34860	}
34861	target := &ret
34862	if err := gensupport.DecodeResponse(target, res); err != nil {
34863		return nil, err
34864	}
34865	return ret, nil
34866	// {
34867	//   "description": "Reports the latest status for a runtime instance.",
34868	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}:reportStatus",
34869	//   "httpMethod": "POST",
34870	//   "id": "apigee.organizations.instances.reportStatus",
34871	//   "parameterOrder": [
34872	//     "instance"
34873	//   ],
34874	//   "parameters": {
34875	//     "instance": {
34876	//       "description": "The name of the instance reporting this status. For SaaS the request will be rejected if no instance exists under this name. Format is organizations/{org}/instances/{instance}",
34877	//       "location": "path",
34878	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
34879	//       "required": true,
34880	//       "type": "string"
34881	//     }
34882	//   },
34883	//   "path": "v1/{+instance}:reportStatus",
34884	//   "request": {
34885	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusRequest"
34886	//   },
34887	//   "response": {
34888	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusResponse"
34889	//   },
34890	//   "scopes": [
34891	//     "https://www.googleapis.com/auth/cloud-platform"
34892	//   ]
34893	// }
34894
34895}
34896
34897// method id "apigee.organizations.instances.attachments.create":
34898
34899type OrganizationsInstancesAttachmentsCreateCall struct {
34900	s                                     *Service
34901	parent                                string
34902	googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
34903	urlParams_                            gensupport.URLParams
34904	ctx_                                  context.Context
34905	header_                               http.Header
34906}
34907
34908// Create: Creates a new attachment of an environment to an instance.
34909// **Note:** Not supported for Apigee hybrid.
34910func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
34911	c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34912	c.parent = parent
34913	c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
34914	return c
34915}
34916
34917// Fields allows partial responses to be retrieved. See
34918// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34919// for more information.
34920func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
34921	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34922	return c
34923}
34924
34925// Context sets the context to be used in this call's Do method. Any
34926// pending HTTP request will be aborted if the provided context is
34927// canceled.
34928func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
34929	c.ctx_ = ctx
34930	return c
34931}
34932
34933// Header returns an http.Header that can be modified by the caller to
34934// add HTTP headers to the request.
34935func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
34936	if c.header_ == nil {
34937		c.header_ = make(http.Header)
34938	}
34939	return c.header_
34940}
34941
34942func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
34943	reqHeaders := make(http.Header)
34944	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
34945	for k, v := range c.header_ {
34946		reqHeaders[k] = v
34947	}
34948	reqHeaders.Set("User-Agent", c.s.userAgent())
34949	var body io.Reader = nil
34950	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
34951	if err != nil {
34952		return nil, err
34953	}
34954	reqHeaders.Set("Content-Type", "application/json")
34955	c.urlParams_.Set("alt", alt)
34956	c.urlParams_.Set("prettyPrint", "false")
34957	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
34958	urls += "?" + c.urlParams_.Encode()
34959	req, err := http.NewRequest("POST", urls, body)
34960	if err != nil {
34961		return nil, err
34962	}
34963	req.Header = reqHeaders
34964	googleapi.Expand(req.URL, map[string]string{
34965		"parent": c.parent,
34966	})
34967	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34968}
34969
34970// Do executes the "apigee.organizations.instances.attachments.create" call.
34971// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
34972// Any non-2xx status code is an error. Response headers are in either
34973// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
34974// was returned at all) in error.(*googleapi.Error).Header. Use
34975// googleapi.IsNotModified to check whether the returned error was
34976// because http.StatusNotModified was returned.
34977func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34978	gensupport.SetOptions(c.urlParams_, opts...)
34979	res, err := c.doRequest("json")
34980	if res != nil && res.StatusCode == http.StatusNotModified {
34981		if res.Body != nil {
34982			res.Body.Close()
34983		}
34984		return nil, &googleapi.Error{
34985			Code:   res.StatusCode,
34986			Header: res.Header,
34987		}
34988	}
34989	if err != nil {
34990		return nil, err
34991	}
34992	defer googleapi.CloseBody(res)
34993	if err := googleapi.CheckResponse(res); err != nil {
34994		return nil, err
34995	}
34996	ret := &GoogleLongrunningOperation{
34997		ServerResponse: googleapi.ServerResponse{
34998			Header:         res.Header,
34999			HTTPStatusCode: res.StatusCode,
35000		},
35001	}
35002	target := &ret
35003	if err := gensupport.DecodeResponse(target, res); err != nil {
35004		return nil, err
35005	}
35006	return ret, nil
35007	// {
35008	//   "description": "Creates a new attachment of an environment to an instance. **Note:** Not supported for Apigee hybrid.",
35009	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
35010	//   "httpMethod": "POST",
35011	//   "id": "apigee.organizations.instances.attachments.create",
35012	//   "parameterOrder": [
35013	//     "parent"
35014	//   ],
35015	//   "parameters": {
35016	//     "parent": {
35017	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
35018	//       "location": "path",
35019	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
35020	//       "required": true,
35021	//       "type": "string"
35022	//     }
35023	//   },
35024	//   "path": "v1/{+parent}/attachments",
35025	//   "request": {
35026	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
35027	//   },
35028	//   "response": {
35029	//     "$ref": "GoogleLongrunningOperation"
35030	//   },
35031	//   "scopes": [
35032	//     "https://www.googleapis.com/auth/cloud-platform"
35033	//   ]
35034	// }
35035
35036}
35037
35038// method id "apigee.organizations.instances.attachments.delete":
35039
35040type OrganizationsInstancesAttachmentsDeleteCall struct {
35041	s          *Service
35042	name       string
35043	urlParams_ gensupport.URLParams
35044	ctx_       context.Context
35045	header_    http.Header
35046}
35047
35048// Delete: Deletes an attachment. **Note:** Not supported for Apigee
35049// hybrid.
35050func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
35051	c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35052	c.name = name
35053	return c
35054}
35055
35056// Fields allows partial responses to be retrieved. See
35057// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35058// for more information.
35059func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
35060	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35061	return c
35062}
35063
35064// Context sets the context to be used in this call's Do method. Any
35065// pending HTTP request will be aborted if the provided context is
35066// canceled.
35067func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
35068	c.ctx_ = ctx
35069	return c
35070}
35071
35072// Header returns an http.Header that can be modified by the caller to
35073// add HTTP headers to the request.
35074func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
35075	if c.header_ == nil {
35076		c.header_ = make(http.Header)
35077	}
35078	return c.header_
35079}
35080
35081func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
35082	reqHeaders := make(http.Header)
35083	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35084	for k, v := range c.header_ {
35085		reqHeaders[k] = v
35086	}
35087	reqHeaders.Set("User-Agent", c.s.userAgent())
35088	var body io.Reader = nil
35089	c.urlParams_.Set("alt", alt)
35090	c.urlParams_.Set("prettyPrint", "false")
35091	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35092	urls += "?" + c.urlParams_.Encode()
35093	req, err := http.NewRequest("DELETE", urls, body)
35094	if err != nil {
35095		return nil, err
35096	}
35097	req.Header = reqHeaders
35098	googleapi.Expand(req.URL, map[string]string{
35099		"name": c.name,
35100	})
35101	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35102}
35103
35104// Do executes the "apigee.organizations.instances.attachments.delete" call.
35105// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35106// Any non-2xx status code is an error. Response headers are in either
35107// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35108// was returned at all) in error.(*googleapi.Error).Header. Use
35109// googleapi.IsNotModified to check whether the returned error was
35110// because http.StatusNotModified was returned.
35111func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35112	gensupport.SetOptions(c.urlParams_, opts...)
35113	res, err := c.doRequest("json")
35114	if res != nil && res.StatusCode == http.StatusNotModified {
35115		if res.Body != nil {
35116			res.Body.Close()
35117		}
35118		return nil, &googleapi.Error{
35119			Code:   res.StatusCode,
35120			Header: res.Header,
35121		}
35122	}
35123	if err != nil {
35124		return nil, err
35125	}
35126	defer googleapi.CloseBody(res)
35127	if err := googleapi.CheckResponse(res); err != nil {
35128		return nil, err
35129	}
35130	ret := &GoogleLongrunningOperation{
35131		ServerResponse: googleapi.ServerResponse{
35132			Header:         res.Header,
35133			HTTPStatusCode: res.StatusCode,
35134		},
35135	}
35136	target := &ret
35137	if err := gensupport.DecodeResponse(target, res); err != nil {
35138		return nil, err
35139	}
35140	return ret, nil
35141	// {
35142	//   "description": "Deletes an attachment. **Note:** Not supported for Apigee hybrid.",
35143	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
35144	//   "httpMethod": "DELETE",
35145	//   "id": "apigee.organizations.instances.attachments.delete",
35146	//   "parameterOrder": [
35147	//     "name"
35148	//   ],
35149	//   "parameters": {
35150	//     "name": {
35151	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`.",
35152	//       "location": "path",
35153	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
35154	//       "required": true,
35155	//       "type": "string"
35156	//     }
35157	//   },
35158	//   "path": "v1/{+name}",
35159	//   "response": {
35160	//     "$ref": "GoogleLongrunningOperation"
35161	//   },
35162	//   "scopes": [
35163	//     "https://www.googleapis.com/auth/cloud-platform"
35164	//   ]
35165	// }
35166
35167}
35168
35169// method id "apigee.organizations.instances.attachments.get":
35170
35171type OrganizationsInstancesAttachmentsGetCall struct {
35172	s            *Service
35173	name         string
35174	urlParams_   gensupport.URLParams
35175	ifNoneMatch_ string
35176	ctx_         context.Context
35177	header_      http.Header
35178}
35179
35180// Get: Gets an attachment. **Note:** Not supported for Apigee hybrid.
35181func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
35182	c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35183	c.name = name
35184	return c
35185}
35186
35187// Fields allows partial responses to be retrieved. See
35188// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35189// for more information.
35190func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
35191	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35192	return c
35193}
35194
35195// IfNoneMatch sets the optional parameter which makes the operation
35196// fail if the object's ETag matches the given value. This is useful for
35197// getting updates only after the object has changed since the last
35198// request. Use googleapi.IsNotModified to check whether the response
35199// error from Do is the result of In-None-Match.
35200func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
35201	c.ifNoneMatch_ = entityTag
35202	return c
35203}
35204
35205// Context sets the context to be used in this call's Do method. Any
35206// pending HTTP request will be aborted if the provided context is
35207// canceled.
35208func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
35209	c.ctx_ = ctx
35210	return c
35211}
35212
35213// Header returns an http.Header that can be modified by the caller to
35214// add HTTP headers to the request.
35215func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
35216	if c.header_ == nil {
35217		c.header_ = make(http.Header)
35218	}
35219	return c.header_
35220}
35221
35222func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
35223	reqHeaders := make(http.Header)
35224	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35225	for k, v := range c.header_ {
35226		reqHeaders[k] = v
35227	}
35228	reqHeaders.Set("User-Agent", c.s.userAgent())
35229	if c.ifNoneMatch_ != "" {
35230		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35231	}
35232	var body io.Reader = nil
35233	c.urlParams_.Set("alt", alt)
35234	c.urlParams_.Set("prettyPrint", "false")
35235	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35236	urls += "?" + c.urlParams_.Encode()
35237	req, err := http.NewRequest("GET", urls, body)
35238	if err != nil {
35239		return nil, err
35240	}
35241	req.Header = reqHeaders
35242	googleapi.Expand(req.URL, map[string]string{
35243		"name": c.name,
35244	})
35245	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35246}
35247
35248// Do executes the "apigee.organizations.instances.attachments.get" call.
35249// Exactly one of *GoogleCloudApigeeV1InstanceAttachment or error will
35250// be non-nil. Any non-2xx status code is an error. Response headers are
35251// in either
35252// *GoogleCloudApigeeV1InstanceAttachment.ServerResponse.Header or (if a
35253// response was returned at all) in error.(*googleapi.Error).Header. Use
35254// googleapi.IsNotModified to check whether the returned error was
35255// because http.StatusNotModified was returned.
35256func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
35257	gensupport.SetOptions(c.urlParams_, opts...)
35258	res, err := c.doRequest("json")
35259	if res != nil && res.StatusCode == http.StatusNotModified {
35260		if res.Body != nil {
35261			res.Body.Close()
35262		}
35263		return nil, &googleapi.Error{
35264			Code:   res.StatusCode,
35265			Header: res.Header,
35266		}
35267	}
35268	if err != nil {
35269		return nil, err
35270	}
35271	defer googleapi.CloseBody(res)
35272	if err := googleapi.CheckResponse(res); err != nil {
35273		return nil, err
35274	}
35275	ret := &GoogleCloudApigeeV1InstanceAttachment{
35276		ServerResponse: googleapi.ServerResponse{
35277			Header:         res.Header,
35278			HTTPStatusCode: res.StatusCode,
35279		},
35280	}
35281	target := &ret
35282	if err := gensupport.DecodeResponse(target, res); err != nil {
35283		return nil, err
35284	}
35285	return ret, nil
35286	// {
35287	//   "description": "Gets an attachment. **Note:** Not supported for Apigee hybrid.",
35288	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
35289	//   "httpMethod": "GET",
35290	//   "id": "apigee.organizations.instances.attachments.get",
35291	//   "parameterOrder": [
35292	//     "name"
35293	//   ],
35294	//   "parameters": {
35295	//     "name": {
35296	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`",
35297	//       "location": "path",
35298	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
35299	//       "required": true,
35300	//       "type": "string"
35301	//     }
35302	//   },
35303	//   "path": "v1/{+name}",
35304	//   "response": {
35305	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
35306	//   },
35307	//   "scopes": [
35308	//     "https://www.googleapis.com/auth/cloud-platform"
35309	//   ]
35310	// }
35311
35312}
35313
35314// method id "apigee.organizations.instances.attachments.list":
35315
35316type OrganizationsInstancesAttachmentsListCall struct {
35317	s            *Service
35318	parent       string
35319	urlParams_   gensupport.URLParams
35320	ifNoneMatch_ string
35321	ctx_         context.Context
35322	header_      http.Header
35323}
35324
35325// List: Lists all attachments to an instance. **Note:** Not supported
35326// for Apigee hybrid.
35327func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
35328	c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35329	c.parent = parent
35330	return c
35331}
35332
35333// PageSize sets the optional parameter "pageSize": Maximum number of
35334// instance attachments to return. Defaults to 25.
35335func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
35336	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35337	return c
35338}
35339
35340// PageToken sets the optional parameter "pageToken": Page token,
35341// returned by a previous ListInstanceAttachments call, that you can use
35342// to retrieve the next page of content.
35343func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
35344	c.urlParams_.Set("pageToken", pageToken)
35345	return c
35346}
35347
35348// Fields allows partial responses to be retrieved. See
35349// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35350// for more information.
35351func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
35352	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35353	return c
35354}
35355
35356// IfNoneMatch sets the optional parameter which makes the operation
35357// fail if the object's ETag matches the given value. This is useful for
35358// getting updates only after the object has changed since the last
35359// request. Use googleapi.IsNotModified to check whether the response
35360// error from Do is the result of In-None-Match.
35361func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
35362	c.ifNoneMatch_ = entityTag
35363	return c
35364}
35365
35366// Context sets the context to be used in this call's Do method. Any
35367// pending HTTP request will be aborted if the provided context is
35368// canceled.
35369func (c *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
35370	c.ctx_ = ctx
35371	return c
35372}
35373
35374// Header returns an http.Header that can be modified by the caller to
35375// add HTTP headers to the request.
35376func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
35377	if c.header_ == nil {
35378		c.header_ = make(http.Header)
35379	}
35380	return c.header_
35381}
35382
35383func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
35384	reqHeaders := make(http.Header)
35385	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35386	for k, v := range c.header_ {
35387		reqHeaders[k] = v
35388	}
35389	reqHeaders.Set("User-Agent", c.s.userAgent())
35390	if c.ifNoneMatch_ != "" {
35391		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35392	}
35393	var body io.Reader = nil
35394	c.urlParams_.Set("alt", alt)
35395	c.urlParams_.Set("prettyPrint", "false")
35396	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
35397	urls += "?" + c.urlParams_.Encode()
35398	req, err := http.NewRequest("GET", urls, body)
35399	if err != nil {
35400		return nil, err
35401	}
35402	req.Header = reqHeaders
35403	googleapi.Expand(req.URL, map[string]string{
35404		"parent": c.parent,
35405	})
35406	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35407}
35408
35409// Do executes the "apigee.organizations.instances.attachments.list" call.
35410// Exactly one of *GoogleCloudApigeeV1ListInstanceAttachmentsResponse or
35411// error will be non-nil. Any non-2xx status code is an error. Response
35412// headers are in either
35413// *GoogleCloudApigeeV1ListInstanceAttachmentsResponse.ServerResponse.Hea
35414// der or (if a response was returned at all) in
35415// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35416// whether the returned error was because http.StatusNotModified was
35417// returned.
35418func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
35419	gensupport.SetOptions(c.urlParams_, opts...)
35420	res, err := c.doRequest("json")
35421	if res != nil && res.StatusCode == http.StatusNotModified {
35422		if res.Body != nil {
35423			res.Body.Close()
35424		}
35425		return nil, &googleapi.Error{
35426			Code:   res.StatusCode,
35427			Header: res.Header,
35428		}
35429	}
35430	if err != nil {
35431		return nil, err
35432	}
35433	defer googleapi.CloseBody(res)
35434	if err := googleapi.CheckResponse(res); err != nil {
35435		return nil, err
35436	}
35437	ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
35438		ServerResponse: googleapi.ServerResponse{
35439			Header:         res.Header,
35440			HTTPStatusCode: res.StatusCode,
35441		},
35442	}
35443	target := &ret
35444	if err := gensupport.DecodeResponse(target, res); err != nil {
35445		return nil, err
35446	}
35447	return ret, nil
35448	// {
35449	//   "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.",
35450	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
35451	//   "httpMethod": "GET",
35452	//   "id": "apigee.organizations.instances.attachments.list",
35453	//   "parameterOrder": [
35454	//     "parent"
35455	//   ],
35456	//   "parameters": {
35457	//     "pageSize": {
35458	//       "description": "Maximum number of instance attachments to return. Defaults to 25.",
35459	//       "format": "int32",
35460	//       "location": "query",
35461	//       "type": "integer"
35462	//     },
35463	//     "pageToken": {
35464	//       "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.",
35465	//       "location": "query",
35466	//       "type": "string"
35467	//     },
35468	//     "parent": {
35469	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
35470	//       "location": "path",
35471	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
35472	//       "required": true,
35473	//       "type": "string"
35474	//     }
35475	//   },
35476	//   "path": "v1/{+parent}/attachments",
35477	//   "response": {
35478	//     "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse"
35479	//   },
35480	//   "scopes": [
35481	//     "https://www.googleapis.com/auth/cloud-platform"
35482	//   ]
35483	// }
35484
35485}
35486
35487// Pages invokes f for each page of results.
35488// A non-nil error returned from f will halt the iteration.
35489// The provided context supersedes any context provided to the Context method.
35490func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
35491	c.ctx_ = ctx
35492	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
35493	for {
35494		x, err := c.Do()
35495		if err != nil {
35496			return err
35497		}
35498		if err := f(x); err != nil {
35499			return err
35500		}
35501		if x.NextPageToken == "" {
35502			return nil
35503		}
35504		c.PageToken(x.NextPageToken)
35505	}
35506}
35507
35508// method id "apigee.organizations.instances.canaryevaluations.create":
35509
35510type OrganizationsInstancesCanaryevaluationsCreateCall struct {
35511	s                                   *Service
35512	parent                              string
35513	googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
35514	urlParams_                          gensupport.URLParams
35515	ctx_                                context.Context
35516	header_                             http.Header
35517}
35518
35519// Create: Creates a new canary evaluation for an organization.
35520func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
35521	c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35522	c.parent = parent
35523	c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
35524	return c
35525}
35526
35527// Fields allows partial responses to be retrieved. See
35528// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35529// for more information.
35530func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
35531	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35532	return c
35533}
35534
35535// Context sets the context to be used in this call's Do method. Any
35536// pending HTTP request will be aborted if the provided context is
35537// canceled.
35538func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
35539	c.ctx_ = ctx
35540	return c
35541}
35542
35543// Header returns an http.Header that can be modified by the caller to
35544// add HTTP headers to the request.
35545func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
35546	if c.header_ == nil {
35547		c.header_ = make(http.Header)
35548	}
35549	return c.header_
35550}
35551
35552func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
35553	reqHeaders := make(http.Header)
35554	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35555	for k, v := range c.header_ {
35556		reqHeaders[k] = v
35557	}
35558	reqHeaders.Set("User-Agent", c.s.userAgent())
35559	var body io.Reader = nil
35560	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
35561	if err != nil {
35562		return nil, err
35563	}
35564	reqHeaders.Set("Content-Type", "application/json")
35565	c.urlParams_.Set("alt", alt)
35566	c.urlParams_.Set("prettyPrint", "false")
35567	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
35568	urls += "?" + c.urlParams_.Encode()
35569	req, err := http.NewRequest("POST", urls, body)
35570	if err != nil {
35571		return nil, err
35572	}
35573	req.Header = reqHeaders
35574	googleapi.Expand(req.URL, map[string]string{
35575		"parent": c.parent,
35576	})
35577	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35578}
35579
35580// Do executes the "apigee.organizations.instances.canaryevaluations.create" call.
35581// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35582// Any non-2xx status code is an error. Response headers are in either
35583// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35584// was returned at all) in error.(*googleapi.Error).Header. Use
35585// googleapi.IsNotModified to check whether the returned error was
35586// because http.StatusNotModified was returned.
35587func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35588	gensupport.SetOptions(c.urlParams_, opts...)
35589	res, err := c.doRequest("json")
35590	if res != nil && res.StatusCode == http.StatusNotModified {
35591		if res.Body != nil {
35592			res.Body.Close()
35593		}
35594		return nil, &googleapi.Error{
35595			Code:   res.StatusCode,
35596			Header: res.Header,
35597		}
35598	}
35599	if err != nil {
35600		return nil, err
35601	}
35602	defer googleapi.CloseBody(res)
35603	if err := googleapi.CheckResponse(res); err != nil {
35604		return nil, err
35605	}
35606	ret := &GoogleLongrunningOperation{
35607		ServerResponse: googleapi.ServerResponse{
35608			Header:         res.Header,
35609			HTTPStatusCode: res.StatusCode,
35610		},
35611	}
35612	target := &ret
35613	if err := gensupport.DecodeResponse(target, res); err != nil {
35614		return nil, err
35615	}
35616	return ret, nil
35617	// {
35618	//   "description": "Creates a new canary evaluation for an organization.",
35619	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations",
35620	//   "httpMethod": "POST",
35621	//   "id": "apigee.organizations.instances.canaryevaluations.create",
35622	//   "parameterOrder": [
35623	//     "parent"
35624	//   ],
35625	//   "parameters": {
35626	//     "parent": {
35627	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
35628	//       "location": "path",
35629	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
35630	//       "required": true,
35631	//       "type": "string"
35632	//     }
35633	//   },
35634	//   "path": "v1/{+parent}/canaryevaluations",
35635	//   "request": {
35636	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
35637	//   },
35638	//   "response": {
35639	//     "$ref": "GoogleLongrunningOperation"
35640	//   },
35641	//   "scopes": [
35642	//     "https://www.googleapis.com/auth/cloud-platform"
35643	//   ]
35644	// }
35645
35646}
35647
35648// method id "apigee.organizations.instances.canaryevaluations.get":
35649
35650type OrganizationsInstancesCanaryevaluationsGetCall struct {
35651	s            *Service
35652	name         string
35653	urlParams_   gensupport.URLParams
35654	ifNoneMatch_ string
35655	ctx_         context.Context
35656	header_      http.Header
35657}
35658
35659// Get: Gets a CanaryEvaluation for an organization.
35660func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
35661	c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35662	c.name = name
35663	return c
35664}
35665
35666// Fields allows partial responses to be retrieved. See
35667// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35668// for more information.
35669func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
35670	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35671	return c
35672}
35673
35674// IfNoneMatch sets the optional parameter which makes the operation
35675// fail if the object's ETag matches the given value. This is useful for
35676// getting updates only after the object has changed since the last
35677// request. Use googleapi.IsNotModified to check whether the response
35678// error from Do is the result of In-None-Match.
35679func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
35680	c.ifNoneMatch_ = entityTag
35681	return c
35682}
35683
35684// Context sets the context to be used in this call's Do method. Any
35685// pending HTTP request will be aborted if the provided context is
35686// canceled.
35687func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
35688	c.ctx_ = ctx
35689	return c
35690}
35691
35692// Header returns an http.Header that can be modified by the caller to
35693// add HTTP headers to the request.
35694func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
35695	if c.header_ == nil {
35696		c.header_ = make(http.Header)
35697	}
35698	return c.header_
35699}
35700
35701func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
35702	reqHeaders := make(http.Header)
35703	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35704	for k, v := range c.header_ {
35705		reqHeaders[k] = v
35706	}
35707	reqHeaders.Set("User-Agent", c.s.userAgent())
35708	if c.ifNoneMatch_ != "" {
35709		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35710	}
35711	var body io.Reader = nil
35712	c.urlParams_.Set("alt", alt)
35713	c.urlParams_.Set("prettyPrint", "false")
35714	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35715	urls += "?" + c.urlParams_.Encode()
35716	req, err := http.NewRequest("GET", urls, body)
35717	if err != nil {
35718		return nil, err
35719	}
35720	req.Header = reqHeaders
35721	googleapi.Expand(req.URL, map[string]string{
35722		"name": c.name,
35723	})
35724	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35725}
35726
35727// Do executes the "apigee.organizations.instances.canaryevaluations.get" call.
35728// Exactly one of *GoogleCloudApigeeV1CanaryEvaluation or error will be
35729// non-nil. Any non-2xx status code is an error. Response headers are in
35730// either *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or
35731// (if a response was returned at all) in
35732// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35733// whether the returned error was because http.StatusNotModified was
35734// returned.
35735func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
35736	gensupport.SetOptions(c.urlParams_, opts...)
35737	res, err := c.doRequest("json")
35738	if res != nil && res.StatusCode == http.StatusNotModified {
35739		if res.Body != nil {
35740			res.Body.Close()
35741		}
35742		return nil, &googleapi.Error{
35743			Code:   res.StatusCode,
35744			Header: res.Header,
35745		}
35746	}
35747	if err != nil {
35748		return nil, err
35749	}
35750	defer googleapi.CloseBody(res)
35751	if err := googleapi.CheckResponse(res); err != nil {
35752		return nil, err
35753	}
35754	ret := &GoogleCloudApigeeV1CanaryEvaluation{
35755		ServerResponse: googleapi.ServerResponse{
35756			Header:         res.Header,
35757			HTTPStatusCode: res.StatusCode,
35758		},
35759	}
35760	target := &ret
35761	if err := gensupport.DecodeResponse(target, res); err != nil {
35762		return nil, err
35763	}
35764	return ret, nil
35765	// {
35766	//   "description": "Gets a CanaryEvaluation for an organization.",
35767	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}",
35768	//   "httpMethod": "GET",
35769	//   "id": "apigee.organizations.instances.canaryevaluations.get",
35770	//   "parameterOrder": [
35771	//     "name"
35772	//   ],
35773	//   "parameters": {
35774	//     "name": {
35775	//       "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`",
35776	//       "location": "path",
35777	//       "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$",
35778	//       "required": true,
35779	//       "type": "string"
35780	//     }
35781	//   },
35782	//   "path": "v1/{+name}",
35783	//   "response": {
35784	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
35785	//   },
35786	//   "scopes": [
35787	//     "https://www.googleapis.com/auth/cloud-platform"
35788	//   ]
35789	// }
35790
35791}
35792
35793// method id "apigee.organizations.instances.natAddresses.activate":
35794
35795type OrganizationsInstancesNatAddressesActivateCall struct {
35796	s                                            *Service
35797	name                                         string
35798	googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
35799	urlParams_                                   gensupport.URLParams
35800	ctx_                                         context.Context
35801	header_                                      http.Header
35802}
35803
35804// Activate: Activates the NAT address. The Apigee instance can now use
35805// this for Internet egress traffic. **Note:** Not supported for Apigee
35806// hybrid.
35807func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
35808	c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35809	c.name = name
35810	c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
35811	return c
35812}
35813
35814// Fields allows partial responses to be retrieved. See
35815// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35816// for more information.
35817func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
35818	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35819	return c
35820}
35821
35822// Context sets the context to be used in this call's Do method. Any
35823// pending HTTP request will be aborted if the provided context is
35824// canceled.
35825func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
35826	c.ctx_ = ctx
35827	return c
35828}
35829
35830// Header returns an http.Header that can be modified by the caller to
35831// add HTTP headers to the request.
35832func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
35833	if c.header_ == nil {
35834		c.header_ = make(http.Header)
35835	}
35836	return c.header_
35837}
35838
35839func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
35840	reqHeaders := make(http.Header)
35841	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35842	for k, v := range c.header_ {
35843		reqHeaders[k] = v
35844	}
35845	reqHeaders.Set("User-Agent", c.s.userAgent())
35846	var body io.Reader = nil
35847	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
35848	if err != nil {
35849		return nil, err
35850	}
35851	reqHeaders.Set("Content-Type", "application/json")
35852	c.urlParams_.Set("alt", alt)
35853	c.urlParams_.Set("prettyPrint", "false")
35854	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
35855	urls += "?" + c.urlParams_.Encode()
35856	req, err := http.NewRequest("POST", urls, body)
35857	if err != nil {
35858		return nil, err
35859	}
35860	req.Header = reqHeaders
35861	googleapi.Expand(req.URL, map[string]string{
35862		"name": c.name,
35863	})
35864	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35865}
35866
35867// Do executes the "apigee.organizations.instances.natAddresses.activate" call.
35868// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35869// Any non-2xx status code is an error. Response headers are in either
35870// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35871// was returned at all) in error.(*googleapi.Error).Header. Use
35872// googleapi.IsNotModified to check whether the returned error was
35873// because http.StatusNotModified was returned.
35874func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35875	gensupport.SetOptions(c.urlParams_, opts...)
35876	res, err := c.doRequest("json")
35877	if res != nil && res.StatusCode == http.StatusNotModified {
35878		if res.Body != nil {
35879			res.Body.Close()
35880		}
35881		return nil, &googleapi.Error{
35882			Code:   res.StatusCode,
35883			Header: res.Header,
35884		}
35885	}
35886	if err != nil {
35887		return nil, err
35888	}
35889	defer googleapi.CloseBody(res)
35890	if err := googleapi.CheckResponse(res); err != nil {
35891		return nil, err
35892	}
35893	ret := &GoogleLongrunningOperation{
35894		ServerResponse: googleapi.ServerResponse{
35895			Header:         res.Header,
35896			HTTPStatusCode: res.StatusCode,
35897		},
35898	}
35899	target := &ret
35900	if err := gensupport.DecodeResponse(target, res); err != nil {
35901		return nil, err
35902	}
35903	return ret, nil
35904	// {
35905	//   "description": "Activates the NAT address. The Apigee instance can now use this for Internet egress traffic. **Note:** Not supported for Apigee hybrid.",
35906	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}:activate",
35907	//   "httpMethod": "POST",
35908	//   "id": "apigee.organizations.instances.natAddresses.activate",
35909	//   "parameterOrder": [
35910	//     "name"
35911	//   ],
35912	//   "parameters": {
35913	//     "name": {
35914	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
35915	//       "location": "path",
35916	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
35917	//       "required": true,
35918	//       "type": "string"
35919	//     }
35920	//   },
35921	//   "path": "v1/{+name}:activate",
35922	//   "request": {
35923	//     "$ref": "GoogleCloudApigeeV1ActivateNatAddressRequest"
35924	//   },
35925	//   "response": {
35926	//     "$ref": "GoogleLongrunningOperation"
35927	//   },
35928	//   "scopes": [
35929	//     "https://www.googleapis.com/auth/cloud-platform"
35930	//   ]
35931	// }
35932
35933}
35934
35935// method id "apigee.organizations.instances.natAddresses.create":
35936
35937type OrganizationsInstancesNatAddressesCreateCall struct {
35938	s                             *Service
35939	parent                        string
35940	googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
35941	urlParams_                    gensupport.URLParams
35942	ctx_                          context.Context
35943	header_                       http.Header
35944}
35945
35946// Create: Creates a NAT address. The address is created in the RESERVED
35947// state and a static external IP address will be provisioned. At this
35948// time, the instance will not use this IP address for Internet egress
35949// traffic. The address can be activated for use once any required
35950// firewall IP whitelisting has been completed. **Note:** Not supported
35951// for Apigee hybrid.
35952func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
35953	c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35954	c.parent = parent
35955	c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
35956	return c
35957}
35958
35959// Fields allows partial responses to be retrieved. See
35960// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35961// for more information.
35962func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
35963	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35964	return c
35965}
35966
35967// Context sets the context to be used in this call's Do method. Any
35968// pending HTTP request will be aborted if the provided context is
35969// canceled.
35970func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
35971	c.ctx_ = ctx
35972	return c
35973}
35974
35975// Header returns an http.Header that can be modified by the caller to
35976// add HTTP headers to the request.
35977func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
35978	if c.header_ == nil {
35979		c.header_ = make(http.Header)
35980	}
35981	return c.header_
35982}
35983
35984func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
35985	reqHeaders := make(http.Header)
35986	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
35987	for k, v := range c.header_ {
35988		reqHeaders[k] = v
35989	}
35990	reqHeaders.Set("User-Agent", c.s.userAgent())
35991	var body io.Reader = nil
35992	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
35993	if err != nil {
35994		return nil, err
35995	}
35996	reqHeaders.Set("Content-Type", "application/json")
35997	c.urlParams_.Set("alt", alt)
35998	c.urlParams_.Set("prettyPrint", "false")
35999	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
36000	urls += "?" + c.urlParams_.Encode()
36001	req, err := http.NewRequest("POST", urls, body)
36002	if err != nil {
36003		return nil, err
36004	}
36005	req.Header = reqHeaders
36006	googleapi.Expand(req.URL, map[string]string{
36007		"parent": c.parent,
36008	})
36009	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36010}
36011
36012// Do executes the "apigee.organizations.instances.natAddresses.create" call.
36013// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36014// Any non-2xx status code is an error. Response headers are in either
36015// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36016// was returned at all) in error.(*googleapi.Error).Header. Use
36017// googleapi.IsNotModified to check whether the returned error was
36018// because http.StatusNotModified was returned.
36019func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36020	gensupport.SetOptions(c.urlParams_, opts...)
36021	res, err := c.doRequest("json")
36022	if res != nil && res.StatusCode == http.StatusNotModified {
36023		if res.Body != nil {
36024			res.Body.Close()
36025		}
36026		return nil, &googleapi.Error{
36027			Code:   res.StatusCode,
36028			Header: res.Header,
36029		}
36030	}
36031	if err != nil {
36032		return nil, err
36033	}
36034	defer googleapi.CloseBody(res)
36035	if err := googleapi.CheckResponse(res); err != nil {
36036		return nil, err
36037	}
36038	ret := &GoogleLongrunningOperation{
36039		ServerResponse: googleapi.ServerResponse{
36040			Header:         res.Header,
36041			HTTPStatusCode: res.StatusCode,
36042		},
36043	}
36044	target := &ret
36045	if err := gensupport.DecodeResponse(target, res); err != nil {
36046		return nil, err
36047	}
36048	return ret, nil
36049	// {
36050	//   "description": "Creates a NAT address. The address is created in the RESERVED state and a static external IP address will be provisioned. At this time, the instance will not use this IP address for Internet egress traffic. The address can be activated for use once any required firewall IP whitelisting has been completed. **Note:** Not supported for Apigee hybrid.",
36051	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
36052	//   "httpMethod": "POST",
36053	//   "id": "apigee.organizations.instances.natAddresses.create",
36054	//   "parameterOrder": [
36055	//     "parent"
36056	//   ],
36057	//   "parameters": {
36058	//     "parent": {
36059	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
36060	//       "location": "path",
36061	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
36062	//       "required": true,
36063	//       "type": "string"
36064	//     }
36065	//   },
36066	//   "path": "v1/{+parent}/natAddresses",
36067	//   "request": {
36068	//     "$ref": "GoogleCloudApigeeV1NatAddress"
36069	//   },
36070	//   "response": {
36071	//     "$ref": "GoogleLongrunningOperation"
36072	//   },
36073	//   "scopes": [
36074	//     "https://www.googleapis.com/auth/cloud-platform"
36075	//   ]
36076	// }
36077
36078}
36079
36080// method id "apigee.organizations.instances.natAddresses.delete":
36081
36082type OrganizationsInstancesNatAddressesDeleteCall struct {
36083	s          *Service
36084	name       string
36085	urlParams_ gensupport.URLParams
36086	ctx_       context.Context
36087	header_    http.Header
36088}
36089
36090// Delete: Deletes the NAT address. Connections that are actively using
36091// the address are drained before it is removed. **Note:** Not supported
36092// for Apigee hybrid.
36093func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
36094	c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36095	c.name = name
36096	return c
36097}
36098
36099// Fields allows partial responses to be retrieved. See
36100// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36101// for more information.
36102func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
36103	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36104	return c
36105}
36106
36107// Context sets the context to be used in this call's Do method. Any
36108// pending HTTP request will be aborted if the provided context is
36109// canceled.
36110func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
36111	c.ctx_ = ctx
36112	return c
36113}
36114
36115// Header returns an http.Header that can be modified by the caller to
36116// add HTTP headers to the request.
36117func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
36118	if c.header_ == nil {
36119		c.header_ = make(http.Header)
36120	}
36121	return c.header_
36122}
36123
36124func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
36125	reqHeaders := make(http.Header)
36126	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
36127	for k, v := range c.header_ {
36128		reqHeaders[k] = v
36129	}
36130	reqHeaders.Set("User-Agent", c.s.userAgent())
36131	var body io.Reader = nil
36132	c.urlParams_.Set("alt", alt)
36133	c.urlParams_.Set("prettyPrint", "false")
36134	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36135	urls += "?" + c.urlParams_.Encode()
36136	req, err := http.NewRequest("DELETE", urls, body)
36137	if err != nil {
36138		return nil, err
36139	}
36140	req.Header = reqHeaders
36141	googleapi.Expand(req.URL, map[string]string{
36142		"name": c.name,
36143	})
36144	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36145}
36146
36147// Do executes the "apigee.organizations.instances.natAddresses.delete" call.
36148// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36149// Any non-2xx status code is an error. Response headers are in either
36150// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36151// was returned at all) in error.(*googleapi.Error).Header. Use
36152// googleapi.IsNotModified to check whether the returned error was
36153// because http.StatusNotModified was returned.
36154func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36155	gensupport.SetOptions(c.urlParams_, opts...)
36156	res, err := c.doRequest("json")
36157	if res != nil && res.StatusCode == http.StatusNotModified {
36158		if res.Body != nil {
36159			res.Body.Close()
36160		}
36161		return nil, &googleapi.Error{
36162			Code:   res.StatusCode,
36163			Header: res.Header,
36164		}
36165	}
36166	if err != nil {
36167		return nil, err
36168	}
36169	defer googleapi.CloseBody(res)
36170	if err := googleapi.CheckResponse(res); err != nil {
36171		return nil, err
36172	}
36173	ret := &GoogleLongrunningOperation{
36174		ServerResponse: googleapi.ServerResponse{
36175			Header:         res.Header,
36176			HTTPStatusCode: res.StatusCode,
36177		},
36178	}
36179	target := &ret
36180	if err := gensupport.DecodeResponse(target, res); err != nil {
36181		return nil, err
36182	}
36183	return ret, nil
36184	// {
36185	//   "description": "Deletes the NAT address. Connections that are actively using the address are drained before it is removed. **Note:** Not supported for Apigee hybrid.",
36186	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
36187	//   "httpMethod": "DELETE",
36188	//   "id": "apigee.organizations.instances.natAddresses.delete",
36189	//   "parameterOrder": [
36190	//     "name"
36191	//   ],
36192	//   "parameters": {
36193	//     "name": {
36194	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
36195	//       "location": "path",
36196	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
36197	//       "required": true,
36198	//       "type": "string"
36199	//     }
36200	//   },
36201	//   "path": "v1/{+name}",
36202	//   "response": {
36203	//     "$ref": "GoogleLongrunningOperation"
36204	//   },
36205	//   "scopes": [
36206	//     "https://www.googleapis.com/auth/cloud-platform"
36207	//   ]
36208	// }
36209
36210}
36211
36212// method id "apigee.organizations.instances.natAddresses.get":
36213
36214type OrganizationsInstancesNatAddressesGetCall struct {
36215	s            *Service
36216	name         string
36217	urlParams_   gensupport.URLParams
36218	ifNoneMatch_ string
36219	ctx_         context.Context
36220	header_      http.Header
36221}
36222
36223// Get: Gets the details of a NAT address. **Note:** Not supported for
36224// Apigee hybrid.
36225func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
36226	c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36227	c.name = name
36228	return c
36229}
36230
36231// Fields allows partial responses to be retrieved. See
36232// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36233// for more information.
36234func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
36235	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36236	return c
36237}
36238
36239// IfNoneMatch sets the optional parameter which makes the operation
36240// fail if the object's ETag matches the given value. This is useful for
36241// getting updates only after the object has changed since the last
36242// request. Use googleapi.IsNotModified to check whether the response
36243// error from Do is the result of In-None-Match.
36244func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
36245	c.ifNoneMatch_ = entityTag
36246	return c
36247}
36248
36249// Context sets the context to be used in this call's Do method. Any
36250// pending HTTP request will be aborted if the provided context is
36251// canceled.
36252func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
36253	c.ctx_ = ctx
36254	return c
36255}
36256
36257// Header returns an http.Header that can be modified by the caller to
36258// add HTTP headers to the request.
36259func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
36260	if c.header_ == nil {
36261		c.header_ = make(http.Header)
36262	}
36263	return c.header_
36264}
36265
36266func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
36267	reqHeaders := make(http.Header)
36268	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
36269	for k, v := range c.header_ {
36270		reqHeaders[k] = v
36271	}
36272	reqHeaders.Set("User-Agent", c.s.userAgent())
36273	if c.ifNoneMatch_ != "" {
36274		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36275	}
36276	var body io.Reader = nil
36277	c.urlParams_.Set("alt", alt)
36278	c.urlParams_.Set("prettyPrint", "false")
36279	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36280	urls += "?" + c.urlParams_.Encode()
36281	req, err := http.NewRequest("GET", urls, body)
36282	if err != nil {
36283		return nil, err
36284	}
36285	req.Header = reqHeaders
36286	googleapi.Expand(req.URL, map[string]string{
36287		"name": c.name,
36288	})
36289	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36290}
36291
36292// Do executes the "apigee.organizations.instances.natAddresses.get" call.
36293// Exactly one of *GoogleCloudApigeeV1NatAddress or error will be
36294// non-nil. Any non-2xx status code is an error. Response headers are in
36295// either *GoogleCloudApigeeV1NatAddress.ServerResponse.Header or (if a
36296// response was returned at all) in error.(*googleapi.Error).Header. Use
36297// googleapi.IsNotModified to check whether the returned error was
36298// because http.StatusNotModified was returned.
36299func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
36300	gensupport.SetOptions(c.urlParams_, opts...)
36301	res, err := c.doRequest("json")
36302	if res != nil && res.StatusCode == http.StatusNotModified {
36303		if res.Body != nil {
36304			res.Body.Close()
36305		}
36306		return nil, &googleapi.Error{
36307			Code:   res.StatusCode,
36308			Header: res.Header,
36309		}
36310	}
36311	if err != nil {
36312		return nil, err
36313	}
36314	defer googleapi.CloseBody(res)
36315	if err := googleapi.CheckResponse(res); err != nil {
36316		return nil, err
36317	}
36318	ret := &GoogleCloudApigeeV1NatAddress{
36319		ServerResponse: googleapi.ServerResponse{
36320			Header:         res.Header,
36321			HTTPStatusCode: res.StatusCode,
36322		},
36323	}
36324	target := &ret
36325	if err := gensupport.DecodeResponse(target, res); err != nil {
36326		return nil, err
36327	}
36328	return ret, nil
36329	// {
36330	//   "description": "Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid.",
36331	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
36332	//   "httpMethod": "GET",
36333	//   "id": "apigee.organizations.instances.natAddresses.get",
36334	//   "parameterOrder": [
36335	//     "name"
36336	//   ],
36337	//   "parameters": {
36338	//     "name": {
36339	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`",
36340	//       "location": "path",
36341	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
36342	//       "required": true,
36343	//       "type": "string"
36344	//     }
36345	//   },
36346	//   "path": "v1/{+name}",
36347	//   "response": {
36348	//     "$ref": "GoogleCloudApigeeV1NatAddress"
36349	//   },
36350	//   "scopes": [
36351	//     "https://www.googleapis.com/auth/cloud-platform"
36352	//   ]
36353	// }
36354
36355}
36356
36357// method id "apigee.organizations.instances.natAddresses.list":
36358
36359type OrganizationsInstancesNatAddressesListCall struct {
36360	s            *Service
36361	parent       string
36362	urlParams_   gensupport.URLParams
36363	ifNoneMatch_ string
36364	ctx_         context.Context
36365	header_      http.Header
36366}
36367
36368// List: Lists the NAT addresses for an Apigee instance. **Note:** Not
36369// supported for Apigee hybrid.
36370func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
36371	c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36372	c.parent = parent
36373	return c
36374}
36375
36376// PageSize sets the optional parameter "pageSize": Maximum number of
36377// natAddresses to return. Defaults to 25.
36378func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
36379	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36380	return c
36381}
36382
36383// PageToken sets the optional parameter "pageToken": Page token,
36384// returned from a previous ListNatAddresses call, that you can use to
36385// retrieve the next page of content.
36386func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
36387	c.urlParams_.Set("pageToken", pageToken)
36388	return c
36389}
36390
36391// Fields allows partial responses to be retrieved. See
36392// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36393// for more information.
36394func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
36395	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36396	return c
36397}
36398
36399// IfNoneMatch sets the optional parameter which makes the operation
36400// fail if the object's ETag matches the given value. This is useful for
36401// getting updates only after the object has changed since the last
36402// request. Use googleapi.IsNotModified to check whether the response
36403// error from Do is the result of In-None-Match.
36404func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
36405	c.ifNoneMatch_ = entityTag
36406	return c
36407}
36408
36409// Context sets the context to be used in this call's Do method. Any
36410// pending HTTP request will be aborted if the provided context is
36411// canceled.
36412func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
36413	c.ctx_ = ctx
36414	return c
36415}
36416
36417// Header returns an http.Header that can be modified by the caller to
36418// add HTTP headers to the request.
36419func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
36420	if c.header_ == nil {
36421		c.header_ = make(http.Header)
36422	}
36423	return c.header_
36424}
36425
36426func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
36427	reqHeaders := make(http.Header)
36428	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
36429	for k, v := range c.header_ {
36430		reqHeaders[k] = v
36431	}
36432	reqHeaders.Set("User-Agent", c.s.userAgent())
36433	if c.ifNoneMatch_ != "" {
36434		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36435	}
36436	var body io.Reader = nil
36437	c.urlParams_.Set("alt", alt)
36438	c.urlParams_.Set("prettyPrint", "false")
36439	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
36440	urls += "?" + c.urlParams_.Encode()
36441	req, err := http.NewRequest("GET", urls, body)
36442	if err != nil {
36443		return nil, err
36444	}
36445	req.Header = reqHeaders
36446	googleapi.Expand(req.URL, map[string]string{
36447		"parent": c.parent,
36448	})
36449	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36450}
36451
36452// Do executes the "apigee.organizations.instances.natAddresses.list" call.
36453// Exactly one of *GoogleCloudApigeeV1ListNatAddressesResponse or error
36454// will be non-nil. Any non-2xx status code is an error. Response
36455// headers are in either
36456// *GoogleCloudApigeeV1ListNatAddressesResponse.ServerResponse.Header or
36457// (if a response was returned at all) in
36458// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36459// whether the returned error was because http.StatusNotModified was
36460// returned.
36461func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
36462	gensupport.SetOptions(c.urlParams_, opts...)
36463	res, err := c.doRequest("json")
36464	if res != nil && res.StatusCode == http.StatusNotModified {
36465		if res.Body != nil {
36466			res.Body.Close()
36467		}
36468		return nil, &googleapi.Error{
36469			Code:   res.StatusCode,
36470			Header: res.Header,
36471		}
36472	}
36473	if err != nil {
36474		return nil, err
36475	}
36476	defer googleapi.CloseBody(res)
36477	if err := googleapi.CheckResponse(res); err != nil {
36478		return nil, err
36479	}
36480	ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
36481		ServerResponse: googleapi.ServerResponse{
36482			Header:         res.Header,
36483			HTTPStatusCode: res.StatusCode,
36484		},
36485	}
36486	target := &ret
36487	if err := gensupport.DecodeResponse(target, res); err != nil {
36488		return nil, err
36489	}
36490	return ret, nil
36491	// {
36492	//   "description": "Lists the NAT addresses for an Apigee instance. **Note:** Not supported for Apigee hybrid.",
36493	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
36494	//   "httpMethod": "GET",
36495	//   "id": "apigee.organizations.instances.natAddresses.list",
36496	//   "parameterOrder": [
36497	//     "parent"
36498	//   ],
36499	//   "parameters": {
36500	//     "pageSize": {
36501	//       "description": "Maximum number of natAddresses to return. Defaults to 25.",
36502	//       "format": "int32",
36503	//       "location": "query",
36504	//       "type": "integer"
36505	//     },
36506	//     "pageToken": {
36507	//       "description": "Page token, returned from a previous ListNatAddresses call, that you can use to retrieve the next page of content.",
36508	//       "location": "query",
36509	//       "type": "string"
36510	//     },
36511	//     "parent": {
36512	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
36513	//       "location": "path",
36514	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
36515	//       "required": true,
36516	//       "type": "string"
36517	//     }
36518	//   },
36519	//   "path": "v1/{+parent}/natAddresses",
36520	//   "response": {
36521	//     "$ref": "GoogleCloudApigeeV1ListNatAddressesResponse"
36522	//   },
36523	//   "scopes": [
36524	//     "https://www.googleapis.com/auth/cloud-platform"
36525	//   ]
36526	// }
36527
36528}
36529
36530// Pages invokes f for each page of results.
36531// A non-nil error returned from f will halt the iteration.
36532// The provided context supersedes any context provided to the Context method.
36533func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
36534	c.ctx_ = ctx
36535	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
36536	for {
36537		x, err := c.Do()
36538		if err != nil {
36539			return err
36540		}
36541		if err := f(x); err != nil {
36542			return err
36543		}
36544		if x.NextPageToken == "" {
36545			return nil
36546		}
36547		c.PageToken(x.NextPageToken)
36548	}
36549}
36550
36551// method id "apigee.organizations.keyvaluemaps.create":
36552
36553type OrganizationsKeyvaluemapsCreateCall struct {
36554	s                              *Service
36555	parent                         string
36556	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
36557	urlParams_                     gensupport.URLParams
36558	ctx_                           context.Context
36559	header_                        http.Header
36560}
36561
36562// Create: Creates a key value map in an organization.
36563func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
36564	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36565	c.parent = parent
36566	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
36567	return c
36568}
36569
36570// Fields allows partial responses to be retrieved. See
36571// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36572// for more information.
36573func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
36574	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36575	return c
36576}
36577
36578// Context sets the context to be used in this call's Do method. Any
36579// pending HTTP request will be aborted if the provided context is
36580// canceled.
36581func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
36582	c.ctx_ = ctx
36583	return c
36584}
36585
36586// Header returns an http.Header that can be modified by the caller to
36587// add HTTP headers to the request.
36588func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
36589	if c.header_ == nil {
36590		c.header_ = make(http.Header)
36591	}
36592	return c.header_
36593}
36594
36595func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
36596	reqHeaders := make(http.Header)
36597	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
36598	for k, v := range c.header_ {
36599		reqHeaders[k] = v
36600	}
36601	reqHeaders.Set("User-Agent", c.s.userAgent())
36602	var body io.Reader = nil
36603	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
36604	if err != nil {
36605		return nil, err
36606	}
36607	reqHeaders.Set("Content-Type", "application/json")
36608	c.urlParams_.Set("alt", alt)
36609	c.urlParams_.Set("prettyPrint", "false")
36610	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
36611	urls += "?" + c.urlParams_.Encode()
36612	req, err := http.NewRequest("POST", urls, body)
36613	if err != nil {
36614		return nil, err
36615	}
36616	req.Header = reqHeaders
36617	googleapi.Expand(req.URL, map[string]string{
36618		"parent": c.parent,
36619	})
36620	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36621}
36622
36623// Do executes the "apigee.organizations.keyvaluemaps.create" call.
36624// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
36625// non-nil. Any non-2xx status code is an error. Response headers are in
36626// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
36627// response was returned at all) in error.(*googleapi.Error).Header. Use
36628// googleapi.IsNotModified to check whether the returned error was
36629// because http.StatusNotModified was returned.
36630func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
36631	gensupport.SetOptions(c.urlParams_, opts...)
36632	res, err := c.doRequest("json")
36633	if res != nil && res.StatusCode == http.StatusNotModified {
36634		if res.Body != nil {
36635			res.Body.Close()
36636		}
36637		return nil, &googleapi.Error{
36638			Code:   res.StatusCode,
36639			Header: res.Header,
36640		}
36641	}
36642	if err != nil {
36643		return nil, err
36644	}
36645	defer googleapi.CloseBody(res)
36646	if err := googleapi.CheckResponse(res); err != nil {
36647		return nil, err
36648	}
36649	ret := &GoogleCloudApigeeV1KeyValueMap{
36650		ServerResponse: googleapi.ServerResponse{
36651			Header:         res.Header,
36652			HTTPStatusCode: res.StatusCode,
36653		},
36654	}
36655	target := &ret
36656	if err := gensupport.DecodeResponse(target, res); err != nil {
36657		return nil, err
36658	}
36659	return ret, nil
36660	// {
36661	//   "description": "Creates a key value map in an organization.",
36662	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
36663	//   "httpMethod": "POST",
36664	//   "id": "apigee.organizations.keyvaluemaps.create",
36665	//   "parameterOrder": [
36666	//     "parent"
36667	//   ],
36668	//   "parameters": {
36669	//     "parent": {
36670	//       "description": "Required. The name of the organization in which to create the key value map file. Must be of the form `organizations/{organization}`.",
36671	//       "location": "path",
36672	//       "pattern": "^organizations/[^/]+$",
36673	//       "required": true,
36674	//       "type": "string"
36675	//     }
36676	//   },
36677	//   "path": "v1/{+parent}/keyvaluemaps",
36678	//   "request": {
36679	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
36680	//   },
36681	//   "response": {
36682	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
36683	//   },
36684	//   "scopes": [
36685	//     "https://www.googleapis.com/auth/cloud-platform"
36686	//   ]
36687	// }
36688
36689}
36690
36691// method id "apigee.organizations.keyvaluemaps.delete":
36692
36693type OrganizationsKeyvaluemapsDeleteCall struct {
36694	s          *Service
36695	name       string
36696	urlParams_ gensupport.URLParams
36697	ctx_       context.Context
36698	header_    http.Header
36699}
36700
36701// Delete: Delete a key value map in an organization.
36702func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
36703	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36704	c.name = name
36705	return c
36706}
36707
36708// Fields allows partial responses to be retrieved. See
36709// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36710// for more information.
36711func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
36712	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36713	return c
36714}
36715
36716// Context sets the context to be used in this call's Do method. Any
36717// pending HTTP request will be aborted if the provided context is
36718// canceled.
36719func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
36720	c.ctx_ = ctx
36721	return c
36722}
36723
36724// Header returns an http.Header that can be modified by the caller to
36725// add HTTP headers to the request.
36726func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
36727	if c.header_ == nil {
36728		c.header_ = make(http.Header)
36729	}
36730	return c.header_
36731}
36732
36733func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
36734	reqHeaders := make(http.Header)
36735	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
36736	for k, v := range c.header_ {
36737		reqHeaders[k] = v
36738	}
36739	reqHeaders.Set("User-Agent", c.s.userAgent())
36740	var body io.Reader = nil
36741	c.urlParams_.Set("alt", alt)
36742	c.urlParams_.Set("prettyPrint", "false")
36743	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36744	urls += "?" + c.urlParams_.Encode()
36745	req, err := http.NewRequest("DELETE", urls, body)
36746	if err != nil {
36747		return nil, err
36748	}
36749	req.Header = reqHeaders
36750	googleapi.Expand(req.URL, map[string]string{
36751		"name": c.name,
36752	})
36753	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36754}
36755
36756// Do executes the "apigee.organizations.keyvaluemaps.delete" call.
36757// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
36758// non-nil. Any non-2xx status code is an error. Response headers are in
36759// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
36760// response was returned at all) in error.(*googleapi.Error).Header. Use
36761// googleapi.IsNotModified to check whether the returned error was
36762// because http.StatusNotModified was returned.
36763func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
36764	gensupport.SetOptions(c.urlParams_, opts...)
36765	res, err := c.doRequest("json")
36766	if res != nil && res.StatusCode == http.StatusNotModified {
36767		if res.Body != nil {
36768			res.Body.Close()
36769		}
36770		return nil, &googleapi.Error{
36771			Code:   res.StatusCode,
36772			Header: res.Header,
36773		}
36774	}
36775	if err != nil {
36776		return nil, err
36777	}
36778	defer googleapi.CloseBody(res)
36779	if err := googleapi.CheckResponse(res); err != nil {
36780		return nil, err
36781	}
36782	ret := &GoogleCloudApigeeV1KeyValueMap{
36783		ServerResponse: googleapi.ServerResponse{
36784			Header:         res.Header,
36785			HTTPStatusCode: res.StatusCode,
36786		},
36787	}
36788	target := &ret
36789	if err := gensupport.DecodeResponse(target, res); err != nil {
36790		return nil, err
36791	}
36792	return ret, nil
36793	// {
36794	//   "description": "Delete a key value map in an organization.",
36795	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps/{keyvaluemapsId}",
36796	//   "httpMethod": "DELETE",
36797	//   "id": "apigee.organizations.keyvaluemaps.delete",
36798	//   "parameterOrder": [
36799	//     "name"
36800	//   ],
36801	//   "parameters": {
36802	//     "name": {
36803	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.",
36804	//       "location": "path",
36805	//       "pattern": "^organizations/[^/]+/keyvaluemaps/[^/]+$",
36806	//       "required": true,
36807	//       "type": "string"
36808	//     }
36809	//   },
36810	//   "path": "v1/{+name}",
36811	//   "response": {
36812	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
36813	//   },
36814	//   "scopes": [
36815	//     "https://www.googleapis.com/auth/cloud-platform"
36816	//   ]
36817	// }
36818
36819}
36820
36821// method id "apigee.organizations.operations.get":
36822
36823type OrganizationsOperationsGetCall struct {
36824	s            *Service
36825	name         string
36826	urlParams_   gensupport.URLParams
36827	ifNoneMatch_ string
36828	ctx_         context.Context
36829	header_      http.Header
36830}
36831
36832// Get: Gets the latest state of a long-running operation. Clients can
36833// use this method to poll the operation result at intervals as
36834// recommended by the API service.
36835func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
36836	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36837	c.name = name
36838	return c
36839}
36840
36841// Fields allows partial responses to be retrieved. See
36842// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36843// for more information.
36844func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
36845	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36846	return c
36847}
36848
36849// IfNoneMatch sets the optional parameter which makes the operation
36850// fail if the object's ETag matches the given value. This is useful for
36851// getting updates only after the object has changed since the last
36852// request. Use googleapi.IsNotModified to check whether the response
36853// error from Do is the result of In-None-Match.
36854func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
36855	c.ifNoneMatch_ = entityTag
36856	return c
36857}
36858
36859// Context sets the context to be used in this call's Do method. Any
36860// pending HTTP request will be aborted if the provided context is
36861// canceled.
36862func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
36863	c.ctx_ = ctx
36864	return c
36865}
36866
36867// Header returns an http.Header that can be modified by the caller to
36868// add HTTP headers to the request.
36869func (c *OrganizationsOperationsGetCall) Header() http.Header {
36870	if c.header_ == nil {
36871		c.header_ = make(http.Header)
36872	}
36873	return c.header_
36874}
36875
36876func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
36877	reqHeaders := make(http.Header)
36878	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
36879	for k, v := range c.header_ {
36880		reqHeaders[k] = v
36881	}
36882	reqHeaders.Set("User-Agent", c.s.userAgent())
36883	if c.ifNoneMatch_ != "" {
36884		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36885	}
36886	var body io.Reader = nil
36887	c.urlParams_.Set("alt", alt)
36888	c.urlParams_.Set("prettyPrint", "false")
36889	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36890	urls += "?" + c.urlParams_.Encode()
36891	req, err := http.NewRequest("GET", urls, body)
36892	if err != nil {
36893		return nil, err
36894	}
36895	req.Header = reqHeaders
36896	googleapi.Expand(req.URL, map[string]string{
36897		"name": c.name,
36898	})
36899	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36900}
36901
36902// Do executes the "apigee.organizations.operations.get" call.
36903// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36904// Any non-2xx status code is an error. Response headers are in either
36905// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36906// was returned at all) in error.(*googleapi.Error).Header. Use
36907// googleapi.IsNotModified to check whether the returned error was
36908// because http.StatusNotModified was returned.
36909func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36910	gensupport.SetOptions(c.urlParams_, opts...)
36911	res, err := c.doRequest("json")
36912	if res != nil && res.StatusCode == http.StatusNotModified {
36913		if res.Body != nil {
36914			res.Body.Close()
36915		}
36916		return nil, &googleapi.Error{
36917			Code:   res.StatusCode,
36918			Header: res.Header,
36919		}
36920	}
36921	if err != nil {
36922		return nil, err
36923	}
36924	defer googleapi.CloseBody(res)
36925	if err := googleapi.CheckResponse(res); err != nil {
36926		return nil, err
36927	}
36928	ret := &GoogleLongrunningOperation{
36929		ServerResponse: googleapi.ServerResponse{
36930			Header:         res.Header,
36931			HTTPStatusCode: res.StatusCode,
36932		},
36933	}
36934	target := &ret
36935	if err := gensupport.DecodeResponse(target, res); err != nil {
36936		return nil, err
36937	}
36938	return ret, nil
36939	// {
36940	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
36941	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
36942	//   "httpMethod": "GET",
36943	//   "id": "apigee.organizations.operations.get",
36944	//   "parameterOrder": [
36945	//     "name"
36946	//   ],
36947	//   "parameters": {
36948	//     "name": {
36949	//       "description": "The name of the operation resource.",
36950	//       "location": "path",
36951	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
36952	//       "required": true,
36953	//       "type": "string"
36954	//     }
36955	//   },
36956	//   "path": "v1/{+name}",
36957	//   "response": {
36958	//     "$ref": "GoogleLongrunningOperation"
36959	//   },
36960	//   "scopes": [
36961	//     "https://www.googleapis.com/auth/cloud-platform"
36962	//   ]
36963	// }
36964
36965}
36966
36967// method id "apigee.organizations.operations.list":
36968
36969type OrganizationsOperationsListCall struct {
36970	s            *Service
36971	name         string
36972	urlParams_   gensupport.URLParams
36973	ifNoneMatch_ string
36974	ctx_         context.Context
36975	header_      http.Header
36976}
36977
36978// List: Lists operations that match the specified filter in the
36979// request. If the server doesn't support this method, it returns
36980// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
36981// override the binding to use different resource name schemes, such as
36982// `users/*/operations`. To override the binding, API services can add a
36983// binding such as "/v1/{name=users/*}/operations" to their service
36984// configuration. For backwards compatibility, the default name includes
36985// the operations collection id, however overriding users must ensure
36986// the name binding is the parent resource, without the operations
36987// collection id.
36988func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
36989	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36990	c.name = name
36991	return c
36992}
36993
36994// Filter sets the optional parameter "filter": The standard list
36995// filter.
36996func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
36997	c.urlParams_.Set("filter", filter)
36998	return c
36999}
37000
37001// PageSize sets the optional parameter "pageSize": The standard list
37002// page size.
37003func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
37004	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37005	return c
37006}
37007
37008// PageToken sets the optional parameter "pageToken": The standard list
37009// page token.
37010func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
37011	c.urlParams_.Set("pageToken", pageToken)
37012	return c
37013}
37014
37015// Fields allows partial responses to be retrieved. See
37016// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37017// for more information.
37018func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
37019	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37020	return c
37021}
37022
37023// IfNoneMatch sets the optional parameter which makes the operation
37024// fail if the object's ETag matches the given value. This is useful for
37025// getting updates only after the object has changed since the last
37026// request. Use googleapi.IsNotModified to check whether the response
37027// error from Do is the result of In-None-Match.
37028func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
37029	c.ifNoneMatch_ = entityTag
37030	return c
37031}
37032
37033// Context sets the context to be used in this call's Do method. Any
37034// pending HTTP request will be aborted if the provided context is
37035// canceled.
37036func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
37037	c.ctx_ = ctx
37038	return c
37039}
37040
37041// Header returns an http.Header that can be modified by the caller to
37042// add HTTP headers to the request.
37043func (c *OrganizationsOperationsListCall) Header() http.Header {
37044	if c.header_ == nil {
37045		c.header_ = make(http.Header)
37046	}
37047	return c.header_
37048}
37049
37050func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
37051	reqHeaders := make(http.Header)
37052	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
37053	for k, v := range c.header_ {
37054		reqHeaders[k] = v
37055	}
37056	reqHeaders.Set("User-Agent", c.s.userAgent())
37057	if c.ifNoneMatch_ != "" {
37058		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37059	}
37060	var body io.Reader = nil
37061	c.urlParams_.Set("alt", alt)
37062	c.urlParams_.Set("prettyPrint", "false")
37063	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
37064	urls += "?" + c.urlParams_.Encode()
37065	req, err := http.NewRequest("GET", urls, body)
37066	if err != nil {
37067		return nil, err
37068	}
37069	req.Header = reqHeaders
37070	googleapi.Expand(req.URL, map[string]string{
37071		"name": c.name,
37072	})
37073	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37074}
37075
37076// Do executes the "apigee.organizations.operations.list" call.
37077// Exactly one of *GoogleLongrunningListOperationsResponse or error will
37078// be non-nil. Any non-2xx status code is an error. Response headers are
37079// in either
37080// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
37081// a response was returned at all) in error.(*googleapi.Error).Header.
37082// Use googleapi.IsNotModified to check whether the returned error was
37083// because http.StatusNotModified was returned.
37084func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
37085	gensupport.SetOptions(c.urlParams_, opts...)
37086	res, err := c.doRequest("json")
37087	if res != nil && res.StatusCode == http.StatusNotModified {
37088		if res.Body != nil {
37089			res.Body.Close()
37090		}
37091		return nil, &googleapi.Error{
37092			Code:   res.StatusCode,
37093			Header: res.Header,
37094		}
37095	}
37096	if err != nil {
37097		return nil, err
37098	}
37099	defer googleapi.CloseBody(res)
37100	if err := googleapi.CheckResponse(res); err != nil {
37101		return nil, err
37102	}
37103	ret := &GoogleLongrunningListOperationsResponse{
37104		ServerResponse: googleapi.ServerResponse{
37105			Header:         res.Header,
37106			HTTPStatusCode: res.StatusCode,
37107		},
37108	}
37109	target := &ret
37110	if err := gensupport.DecodeResponse(target, res); err != nil {
37111		return nil, err
37112	}
37113	return ret, nil
37114	// {
37115	//   "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
37116	//   "flatPath": "v1/organizations/{organizationsId}/operations",
37117	//   "httpMethod": "GET",
37118	//   "id": "apigee.organizations.operations.list",
37119	//   "parameterOrder": [
37120	//     "name"
37121	//   ],
37122	//   "parameters": {
37123	//     "filter": {
37124	//       "description": "The standard list filter.",
37125	//       "location": "query",
37126	//       "type": "string"
37127	//     },
37128	//     "name": {
37129	//       "description": "The name of the operation's parent resource.",
37130	//       "location": "path",
37131	//       "pattern": "^organizations/[^/]+$",
37132	//       "required": true,
37133	//       "type": "string"
37134	//     },
37135	//     "pageSize": {
37136	//       "description": "The standard list page size.",
37137	//       "format": "int32",
37138	//       "location": "query",
37139	//       "type": "integer"
37140	//     },
37141	//     "pageToken": {
37142	//       "description": "The standard list page token.",
37143	//       "location": "query",
37144	//       "type": "string"
37145	//     }
37146	//   },
37147	//   "path": "v1/{+name}/operations",
37148	//   "response": {
37149	//     "$ref": "GoogleLongrunningListOperationsResponse"
37150	//   },
37151	//   "scopes": [
37152	//     "https://www.googleapis.com/auth/cloud-platform"
37153	//   ]
37154	// }
37155
37156}
37157
37158// Pages invokes f for each page of results.
37159// A non-nil error returned from f will halt the iteration.
37160// The provided context supersedes any context provided to the Context method.
37161func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
37162	c.ctx_ = ctx
37163	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
37164	for {
37165		x, err := c.Do()
37166		if err != nil {
37167			return err
37168		}
37169		if err := f(x); err != nil {
37170			return err
37171		}
37172		if x.NextPageToken == "" {
37173			return nil
37174		}
37175		c.PageToken(x.NextPageToken)
37176	}
37177}
37178
37179// method id "apigee.organizations.optimizedHostStats.get":
37180
37181type OrganizationsOptimizedHostStatsGetCall struct {
37182	s            *Service
37183	name         string
37184	urlParams_   gensupport.URLParams
37185	ifNoneMatch_ string
37186	ctx_         context.Context
37187	header_      http.Header
37188}
37189
37190// Get: This api is similar to GetHostStats except that the response is
37191// less verbose.
37192func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
37193	c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37194	c.name = name
37195	return c
37196}
37197
37198// Accuracy sets the optional parameter "accuracy": Legacy field: not
37199// used anymore.
37200func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
37201	c.urlParams_.Set("accuracy", accuracy)
37202	return c
37203}
37204
37205// EnvgroupHostname sets the optional parameter "envgroupHostname":
37206// Required. The hostname for which the interactive query will be
37207// executed.
37208func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
37209	c.urlParams_.Set("envgroupHostname", envgroupHostname)
37210	return c
37211}
37212
37213// Filter sets the optional parameter "filter": Enables drill-down on
37214// specific dimension values.
37215func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
37216	c.urlParams_.Set("filter", filter)
37217	return c
37218}
37219
37220// Limit sets the optional parameter "limit": This parameter is used to
37221// limit the number of result items. Default and the max value is 14400.
37222func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
37223	c.urlParams_.Set("limit", limit)
37224	return c
37225}
37226
37227// Offset sets the optional parameter "offset": Use offset with limit to
37228// enable pagination of results. For example, to display results 11-20,
37229// set limit to '10' and offset to '10'.
37230func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
37231	c.urlParams_.Set("offset", offset)
37232	return c
37233}
37234
37235// Realtime sets the optional parameter "realtime": Legacy field: not
37236// used anymore.
37237func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
37238	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
37239	return c
37240}
37241
37242// Select sets the optional parameter "select": Required. The select
37243// parameter contains a comma separated list of metrics. E.g.
37244// sum(message_count),sum(error_count)
37245func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
37246	c.urlParams_.Set("select", select_)
37247	return c
37248}
37249
37250// Sort sets the optional parameter "sort": This parameter specifies if
37251// the sort order should be ascending or descending Supported values are
37252// DESC and ASC.
37253func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
37254	c.urlParams_.Set("sort", sort)
37255	return c
37256}
37257
37258// Sortby sets the optional parameter "sortby": Comma separated list of
37259// columns to sort the final result.
37260func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
37261	c.urlParams_.Set("sortby", sortby)
37262	return c
37263}
37264
37265// TimeRange sets the optional parameter "timeRange": Required. Time
37266// interval for the interactive query. Time range is specified as
37267// start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.
37268func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
37269	c.urlParams_.Set("timeRange", timeRange)
37270	return c
37271}
37272
37273// TimeUnit sets the optional parameter "timeUnit": A value of second,
37274// minute, hour, day, week, month. Time Unit specifies the granularity
37275// of metrics returned.
37276func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
37277	c.urlParams_.Set("timeUnit", timeUnit)
37278	return c
37279}
37280
37281// Topk sets the optional parameter "topk": Take 'top k' results from
37282// results, for example, to return the top 5 results 'topk=5'.
37283func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
37284	c.urlParams_.Set("topk", topk)
37285	return c
37286}
37287
37288// TsAscending sets the optional parameter "tsAscending": Lists
37289// timestamps in ascending order if set to true. Recommend setting this
37290// value to true if you are using sortby with sort=DESC.
37291func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
37292	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
37293	return c
37294}
37295
37296// Tzo sets the optional parameter "tzo": This parameters contains the
37297// timezone offset value.
37298func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
37299	c.urlParams_.Set("tzo", tzo)
37300	return c
37301}
37302
37303// Fields allows partial responses to be retrieved. See
37304// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37305// for more information.
37306func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
37307	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37308	return c
37309}
37310
37311// IfNoneMatch sets the optional parameter which makes the operation
37312// fail if the object's ETag matches the given value. This is useful for
37313// getting updates only after the object has changed since the last
37314// request. Use googleapi.IsNotModified to check whether the response
37315// error from Do is the result of In-None-Match.
37316func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
37317	c.ifNoneMatch_ = entityTag
37318	return c
37319}
37320
37321// Context sets the context to be used in this call's Do method. Any
37322// pending HTTP request will be aborted if the provided context is
37323// canceled.
37324func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
37325	c.ctx_ = ctx
37326	return c
37327}
37328
37329// Header returns an http.Header that can be modified by the caller to
37330// add HTTP headers to the request.
37331func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
37332	if c.header_ == nil {
37333		c.header_ = make(http.Header)
37334	}
37335	return c.header_
37336}
37337
37338func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
37339	reqHeaders := make(http.Header)
37340	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
37341	for k, v := range c.header_ {
37342		reqHeaders[k] = v
37343	}
37344	reqHeaders.Set("User-Agent", c.s.userAgent())
37345	if c.ifNoneMatch_ != "" {
37346		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37347	}
37348	var body io.Reader = nil
37349	c.urlParams_.Set("alt", alt)
37350	c.urlParams_.Set("prettyPrint", "false")
37351	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37352	urls += "?" + c.urlParams_.Encode()
37353	req, err := http.NewRequest("GET", urls, body)
37354	if err != nil {
37355		return nil, err
37356	}
37357	req.Header = reqHeaders
37358	googleapi.Expand(req.URL, map[string]string{
37359		"name": c.name,
37360	})
37361	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37362}
37363
37364// Do executes the "apigee.organizations.optimizedHostStats.get" call.
37365// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
37366// non-nil. Any non-2xx status code is an error. Response headers are in
37367// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
37368// (if a response was returned at all) in
37369// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37370// whether the returned error was because http.StatusNotModified was
37371// returned.
37372func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
37373	gensupport.SetOptions(c.urlParams_, opts...)
37374	res, err := c.doRequest("json")
37375	if res != nil && res.StatusCode == http.StatusNotModified {
37376		if res.Body != nil {
37377			res.Body.Close()
37378		}
37379		return nil, &googleapi.Error{
37380			Code:   res.StatusCode,
37381			Header: res.Header,
37382		}
37383	}
37384	if err != nil {
37385		return nil, err
37386	}
37387	defer googleapi.CloseBody(res)
37388	if err := googleapi.CheckResponse(res); err != nil {
37389		return nil, err
37390	}
37391	ret := &GoogleCloudApigeeV1OptimizedStats{
37392		ServerResponse: googleapi.ServerResponse{
37393			Header:         res.Header,
37394			HTTPStatusCode: res.StatusCode,
37395		},
37396	}
37397	target := &ret
37398	if err := gensupport.DecodeResponse(target, res); err != nil {
37399		return nil, err
37400	}
37401	return ret, nil
37402	// {
37403	//   "description": "This api is similar to GetHostStats except that the response is less verbose.",
37404	//   "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}",
37405	//   "httpMethod": "GET",
37406	//   "id": "apigee.organizations.optimizedHostStats.get",
37407	//   "parameterOrder": [
37408	//     "name"
37409	//   ],
37410	//   "parameters": {
37411	//     "accuracy": {
37412	//       "description": "Legacy field: not used anymore.",
37413	//       "location": "query",
37414	//       "type": "string"
37415	//     },
37416	//     "envgroupHostname": {
37417	//       "description": "Required. The hostname for which the interactive query will be executed.",
37418	//       "location": "query",
37419	//       "type": "string"
37420	//     },
37421	//     "filter": {
37422	//       "description": "Enables drill-down on specific dimension values.",
37423	//       "location": "query",
37424	//       "type": "string"
37425	//     },
37426	//     "limit": {
37427	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
37428	//       "location": "query",
37429	//       "type": "string"
37430	//     },
37431	//     "name": {
37432	//       "description": "Required. The resource name for which the interactive query will be executed. Must be of the form `organizations/{organization_id}/optimizedHostStats/{dimensions}`. Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, target_host. The value of dimensions should be comma separated list as shown below `organizations/{org}/optimizedHostStats/apiproxy,request_verb`",
37433	//       "location": "path",
37434	//       "pattern": "^organizations/[^/]+/optimizedHostStats/.*$",
37435	//       "required": true,
37436	//       "type": "string"
37437	//     },
37438	//     "offset": {
37439	//       "description": "Use offset with limit to enable pagination of results. For example, to display results 11-20, set limit to '10' and offset to '10'.",
37440	//       "location": "query",
37441	//       "type": "string"
37442	//     },
37443	//     "realtime": {
37444	//       "description": "Legacy field: not used anymore.",
37445	//       "location": "query",
37446	//       "type": "boolean"
37447	//     },
37448	//     "select": {
37449	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
37450	//       "location": "query",
37451	//       "type": "string"
37452	//     },
37453	//     "sort": {
37454	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
37455	//       "location": "query",
37456	//       "type": "string"
37457	//     },
37458	//     "sortby": {
37459	//       "description": "Comma separated list of columns to sort the final result.",
37460	//       "location": "query",
37461	//       "type": "string"
37462	//     },
37463	//     "timeRange": {
37464	//       "description": "Required. Time interval for the interactive query. Time range is specified as start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.",
37465	//       "location": "query",
37466	//       "type": "string"
37467	//     },
37468	//     "timeUnit": {
37469	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
37470	//       "location": "query",
37471	//       "type": "string"
37472	//     },
37473	//     "topk": {
37474	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
37475	//       "location": "query",
37476	//       "type": "string"
37477	//     },
37478	//     "tsAscending": {
37479	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
37480	//       "location": "query",
37481	//       "type": "boolean"
37482	//     },
37483	//     "tzo": {
37484	//       "description": "This parameters contains the timezone offset value.",
37485	//       "location": "query",
37486	//       "type": "string"
37487	//     }
37488	//   },
37489	//   "path": "v1/{+name}",
37490	//   "response": {
37491	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
37492	//   },
37493	//   "scopes": [
37494	//     "https://www.googleapis.com/auth/cloud-platform"
37495	//   ]
37496	// }
37497
37498}
37499
37500// method id "apigee.organizations.reports.create":
37501
37502type OrganizationsReportsCreateCall struct {
37503	s                               *Service
37504	parent                          string
37505	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
37506	urlParams_                      gensupport.URLParams
37507	ctx_                            context.Context
37508	header_                         http.Header
37509}
37510
37511// Create: Creates a Custom Report for an Organization. A Custom Report
37512// provides Apigee Customers to create custom dashboards in addition to
37513// the standard dashboards which are provided. The Custom Report in its
37514// simplest form contains specifications about metrics, dimensions and
37515// filters. It is important to note that the custom report by itself
37516// does not provide an executable entity. The Edge UI converts the
37517// custom report definition into an analytics query and displays the
37518// result in a chart.
37519func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
37520	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37521	c.parent = parent
37522	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
37523	return c
37524}
37525
37526// Fields allows partial responses to be retrieved. See
37527// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37528// for more information.
37529func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
37530	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37531	return c
37532}
37533
37534// Context sets the context to be used in this call's Do method. Any
37535// pending HTTP request will be aborted if the provided context is
37536// canceled.
37537func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
37538	c.ctx_ = ctx
37539	return c
37540}
37541
37542// Header returns an http.Header that can be modified by the caller to
37543// add HTTP headers to the request.
37544func (c *OrganizationsReportsCreateCall) Header() http.Header {
37545	if c.header_ == nil {
37546		c.header_ = make(http.Header)
37547	}
37548	return c.header_
37549}
37550
37551func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
37552	reqHeaders := make(http.Header)
37553	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
37554	for k, v := range c.header_ {
37555		reqHeaders[k] = v
37556	}
37557	reqHeaders.Set("User-Agent", c.s.userAgent())
37558	var body io.Reader = nil
37559	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
37560	if err != nil {
37561		return nil, err
37562	}
37563	reqHeaders.Set("Content-Type", "application/json")
37564	c.urlParams_.Set("alt", alt)
37565	c.urlParams_.Set("prettyPrint", "false")
37566	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
37567	urls += "?" + c.urlParams_.Encode()
37568	req, err := http.NewRequest("POST", urls, body)
37569	if err != nil {
37570		return nil, err
37571	}
37572	req.Header = reqHeaders
37573	googleapi.Expand(req.URL, map[string]string{
37574		"parent": c.parent,
37575	})
37576	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37577}
37578
37579// Do executes the "apigee.organizations.reports.create" call.
37580// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
37581// non-nil. Any non-2xx status code is an error. Response headers are in
37582// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
37583// a response was returned at all) in error.(*googleapi.Error).Header.
37584// Use googleapi.IsNotModified to check whether the returned error was
37585// because http.StatusNotModified was returned.
37586func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
37587	gensupport.SetOptions(c.urlParams_, opts...)
37588	res, err := c.doRequest("json")
37589	if res != nil && res.StatusCode == http.StatusNotModified {
37590		if res.Body != nil {
37591			res.Body.Close()
37592		}
37593		return nil, &googleapi.Error{
37594			Code:   res.StatusCode,
37595			Header: res.Header,
37596		}
37597	}
37598	if err != nil {
37599		return nil, err
37600	}
37601	defer googleapi.CloseBody(res)
37602	if err := googleapi.CheckResponse(res); err != nil {
37603		return nil, err
37604	}
37605	ret := &GoogleCloudApigeeV1CustomReport{
37606		ServerResponse: googleapi.ServerResponse{
37607			Header:         res.Header,
37608			HTTPStatusCode: res.StatusCode,
37609		},
37610	}
37611	target := &ret
37612	if err := gensupport.DecodeResponse(target, res); err != nil {
37613		return nil, err
37614	}
37615	return ret, nil
37616	// {
37617	//   "description": "Creates a Custom Report for an Organization. A Custom Report provides Apigee Customers to create custom dashboards in addition to the standard dashboards which are provided. The Custom Report in its simplest form contains specifications about metrics, dimensions and filters. It is important to note that the custom report by itself does not provide an executable entity. The Edge UI converts the custom report definition into an analytics query and displays the result in a chart.",
37618	//   "flatPath": "v1/organizations/{organizationsId}/reports",
37619	//   "httpMethod": "POST",
37620	//   "id": "apigee.organizations.reports.create",
37621	//   "parameterOrder": [
37622	//     "parent"
37623	//   ],
37624	//   "parameters": {
37625	//     "parent": {
37626	//       "description": "Required. The parent organization name under which the Custom Report will be created. Must be of the form: `organizations/{organization_id}/reports`",
37627	//       "location": "path",
37628	//       "pattern": "^organizations/[^/]+$",
37629	//       "required": true,
37630	//       "type": "string"
37631	//     }
37632	//   },
37633	//   "path": "v1/{+parent}/reports",
37634	//   "request": {
37635	//     "$ref": "GoogleCloudApigeeV1CustomReport"
37636	//   },
37637	//   "response": {
37638	//     "$ref": "GoogleCloudApigeeV1CustomReport"
37639	//   },
37640	//   "scopes": [
37641	//     "https://www.googleapis.com/auth/cloud-platform"
37642	//   ]
37643	// }
37644
37645}
37646
37647// method id "apigee.organizations.reports.delete":
37648
37649type OrganizationsReportsDeleteCall struct {
37650	s          *Service
37651	name       string
37652	urlParams_ gensupport.URLParams
37653	ctx_       context.Context
37654	header_    http.Header
37655}
37656
37657// Delete: Deletes an existing custom report definition
37658func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
37659	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37660	c.name = name
37661	return c
37662}
37663
37664// Fields allows partial responses to be retrieved. See
37665// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37666// for more information.
37667func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
37668	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37669	return c
37670}
37671
37672// Context sets the context to be used in this call's Do method. Any
37673// pending HTTP request will be aborted if the provided context is
37674// canceled.
37675func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
37676	c.ctx_ = ctx
37677	return c
37678}
37679
37680// Header returns an http.Header that can be modified by the caller to
37681// add HTTP headers to the request.
37682func (c *OrganizationsReportsDeleteCall) Header() http.Header {
37683	if c.header_ == nil {
37684		c.header_ = make(http.Header)
37685	}
37686	return c.header_
37687}
37688
37689func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
37690	reqHeaders := make(http.Header)
37691	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
37692	for k, v := range c.header_ {
37693		reqHeaders[k] = v
37694	}
37695	reqHeaders.Set("User-Agent", c.s.userAgent())
37696	var body io.Reader = nil
37697	c.urlParams_.Set("alt", alt)
37698	c.urlParams_.Set("prettyPrint", "false")
37699	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37700	urls += "?" + c.urlParams_.Encode()
37701	req, err := http.NewRequest("DELETE", urls, body)
37702	if err != nil {
37703		return nil, err
37704	}
37705	req.Header = reqHeaders
37706	googleapi.Expand(req.URL, map[string]string{
37707		"name": c.name,
37708	})
37709	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37710}
37711
37712// Do executes the "apigee.organizations.reports.delete" call.
37713// Exactly one of *GoogleCloudApigeeV1DeleteCustomReportResponse or
37714// error will be non-nil. Any non-2xx status code is an error. Response
37715// headers are in either
37716// *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header
37717// or (if a response was returned at all) in
37718// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37719// whether the returned error was because http.StatusNotModified was
37720// returned.
37721func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
37722	gensupport.SetOptions(c.urlParams_, opts...)
37723	res, err := c.doRequest("json")
37724	if res != nil && res.StatusCode == http.StatusNotModified {
37725		if res.Body != nil {
37726			res.Body.Close()
37727		}
37728		return nil, &googleapi.Error{
37729			Code:   res.StatusCode,
37730			Header: res.Header,
37731		}
37732	}
37733	if err != nil {
37734		return nil, err
37735	}
37736	defer googleapi.CloseBody(res)
37737	if err := googleapi.CheckResponse(res); err != nil {
37738		return nil, err
37739	}
37740	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
37741		ServerResponse: googleapi.ServerResponse{
37742			Header:         res.Header,
37743			HTTPStatusCode: res.StatusCode,
37744		},
37745	}
37746	target := &ret
37747	if err := gensupport.DecodeResponse(target, res); err != nil {
37748		return nil, err
37749	}
37750	return ret, nil
37751	// {
37752	//   "description": "Deletes an existing custom report definition",
37753	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
37754	//   "httpMethod": "DELETE",
37755	//   "id": "apigee.organizations.reports.delete",
37756	//   "parameterOrder": [
37757	//     "name"
37758	//   ],
37759	//   "parameters": {
37760	//     "name": {
37761	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
37762	//       "location": "path",
37763	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
37764	//       "required": true,
37765	//       "type": "string"
37766	//     }
37767	//   },
37768	//   "path": "v1/{+name}",
37769	//   "response": {
37770	//     "$ref": "GoogleCloudApigeeV1DeleteCustomReportResponse"
37771	//   },
37772	//   "scopes": [
37773	//     "https://www.googleapis.com/auth/cloud-platform"
37774	//   ]
37775	// }
37776
37777}
37778
37779// method id "apigee.organizations.reports.get":
37780
37781type OrganizationsReportsGetCall struct {
37782	s            *Service
37783	name         string
37784	urlParams_   gensupport.URLParams
37785	ifNoneMatch_ string
37786	ctx_         context.Context
37787	header_      http.Header
37788}
37789
37790// Get: Retrieve a custom report definition.
37791func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
37792	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37793	c.name = name
37794	return c
37795}
37796
37797// Fields allows partial responses to be retrieved. See
37798// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37799// for more information.
37800func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
37801	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37802	return c
37803}
37804
37805// IfNoneMatch sets the optional parameter which makes the operation
37806// fail if the object's ETag matches the given value. This is useful for
37807// getting updates only after the object has changed since the last
37808// request. Use googleapi.IsNotModified to check whether the response
37809// error from Do is the result of In-None-Match.
37810func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
37811	c.ifNoneMatch_ = entityTag
37812	return c
37813}
37814
37815// Context sets the context to be used in this call's Do method. Any
37816// pending HTTP request will be aborted if the provided context is
37817// canceled.
37818func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
37819	c.ctx_ = ctx
37820	return c
37821}
37822
37823// Header returns an http.Header that can be modified by the caller to
37824// add HTTP headers to the request.
37825func (c *OrganizationsReportsGetCall) Header() http.Header {
37826	if c.header_ == nil {
37827		c.header_ = make(http.Header)
37828	}
37829	return c.header_
37830}
37831
37832func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
37833	reqHeaders := make(http.Header)
37834	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
37835	for k, v := range c.header_ {
37836		reqHeaders[k] = v
37837	}
37838	reqHeaders.Set("User-Agent", c.s.userAgent())
37839	if c.ifNoneMatch_ != "" {
37840		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37841	}
37842	var body io.Reader = nil
37843	c.urlParams_.Set("alt", alt)
37844	c.urlParams_.Set("prettyPrint", "false")
37845	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37846	urls += "?" + c.urlParams_.Encode()
37847	req, err := http.NewRequest("GET", urls, body)
37848	if err != nil {
37849		return nil, err
37850	}
37851	req.Header = reqHeaders
37852	googleapi.Expand(req.URL, map[string]string{
37853		"name": c.name,
37854	})
37855	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37856}
37857
37858// Do executes the "apigee.organizations.reports.get" call.
37859// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
37860// non-nil. Any non-2xx status code is an error. Response headers are in
37861// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
37862// a response was returned at all) in error.(*googleapi.Error).Header.
37863// Use googleapi.IsNotModified to check whether the returned error was
37864// because http.StatusNotModified was returned.
37865func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
37866	gensupport.SetOptions(c.urlParams_, opts...)
37867	res, err := c.doRequest("json")
37868	if res != nil && res.StatusCode == http.StatusNotModified {
37869		if res.Body != nil {
37870			res.Body.Close()
37871		}
37872		return nil, &googleapi.Error{
37873			Code:   res.StatusCode,
37874			Header: res.Header,
37875		}
37876	}
37877	if err != nil {
37878		return nil, err
37879	}
37880	defer googleapi.CloseBody(res)
37881	if err := googleapi.CheckResponse(res); err != nil {
37882		return nil, err
37883	}
37884	ret := &GoogleCloudApigeeV1CustomReport{
37885		ServerResponse: googleapi.ServerResponse{
37886			Header:         res.Header,
37887			HTTPStatusCode: res.StatusCode,
37888		},
37889	}
37890	target := &ret
37891	if err := gensupport.DecodeResponse(target, res); err != nil {
37892		return nil, err
37893	}
37894	return ret, nil
37895	// {
37896	//   "description": "Retrieve a custom report definition.",
37897	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
37898	//   "httpMethod": "GET",
37899	//   "id": "apigee.organizations.reports.get",
37900	//   "parameterOrder": [
37901	//     "name"
37902	//   ],
37903	//   "parameters": {
37904	//     "name": {
37905	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
37906	//       "location": "path",
37907	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
37908	//       "required": true,
37909	//       "type": "string"
37910	//     }
37911	//   },
37912	//   "path": "v1/{+name}",
37913	//   "response": {
37914	//     "$ref": "GoogleCloudApigeeV1CustomReport"
37915	//   },
37916	//   "scopes": [
37917	//     "https://www.googleapis.com/auth/cloud-platform"
37918	//   ]
37919	// }
37920
37921}
37922
37923// method id "apigee.organizations.reports.list":
37924
37925type OrganizationsReportsListCall struct {
37926	s            *Service
37927	parent       string
37928	urlParams_   gensupport.URLParams
37929	ifNoneMatch_ string
37930	ctx_         context.Context
37931	header_      http.Header
37932}
37933
37934// List: Return a list of Custom Reports
37935func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
37936	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37937	c.parent = parent
37938	return c
37939}
37940
37941// Expand sets the optional parameter "expand": Set to 'true' to get
37942// expanded details about each custom report.
37943func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
37944	c.urlParams_.Set("expand", fmt.Sprint(expand))
37945	return c
37946}
37947
37948// Fields allows partial responses to be retrieved. See
37949// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37950// for more information.
37951func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
37952	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37953	return c
37954}
37955
37956// IfNoneMatch sets the optional parameter which makes the operation
37957// fail if the object's ETag matches the given value. This is useful for
37958// getting updates only after the object has changed since the last
37959// request. Use googleapi.IsNotModified to check whether the response
37960// error from Do is the result of In-None-Match.
37961func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
37962	c.ifNoneMatch_ = entityTag
37963	return c
37964}
37965
37966// Context sets the context to be used in this call's Do method. Any
37967// pending HTTP request will be aborted if the provided context is
37968// canceled.
37969func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
37970	c.ctx_ = ctx
37971	return c
37972}
37973
37974// Header returns an http.Header that can be modified by the caller to
37975// add HTTP headers to the request.
37976func (c *OrganizationsReportsListCall) Header() http.Header {
37977	if c.header_ == nil {
37978		c.header_ = make(http.Header)
37979	}
37980	return c.header_
37981}
37982
37983func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
37984	reqHeaders := make(http.Header)
37985	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
37986	for k, v := range c.header_ {
37987		reqHeaders[k] = v
37988	}
37989	reqHeaders.Set("User-Agent", c.s.userAgent())
37990	if c.ifNoneMatch_ != "" {
37991		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37992	}
37993	var body io.Reader = nil
37994	c.urlParams_.Set("alt", alt)
37995	c.urlParams_.Set("prettyPrint", "false")
37996	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
37997	urls += "?" + c.urlParams_.Encode()
37998	req, err := http.NewRequest("GET", urls, body)
37999	if err != nil {
38000		return nil, err
38001	}
38002	req.Header = reqHeaders
38003	googleapi.Expand(req.URL, map[string]string{
38004		"parent": c.parent,
38005	})
38006	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38007}
38008
38009// Do executes the "apigee.organizations.reports.list" call.
38010// Exactly one of *GoogleCloudApigeeV1ListCustomReportsResponse or error
38011// will be non-nil. Any non-2xx status code is an error. Response
38012// headers are in either
38013// *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header
38014// or (if a response was returned at all) in
38015// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38016// whether the returned error was because http.StatusNotModified was
38017// returned.
38018func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
38019	gensupport.SetOptions(c.urlParams_, opts...)
38020	res, err := c.doRequest("json")
38021	if res != nil && res.StatusCode == http.StatusNotModified {
38022		if res.Body != nil {
38023			res.Body.Close()
38024		}
38025		return nil, &googleapi.Error{
38026			Code:   res.StatusCode,
38027			Header: res.Header,
38028		}
38029	}
38030	if err != nil {
38031		return nil, err
38032	}
38033	defer googleapi.CloseBody(res)
38034	if err := googleapi.CheckResponse(res); err != nil {
38035		return nil, err
38036	}
38037	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
38038		ServerResponse: googleapi.ServerResponse{
38039			Header:         res.Header,
38040			HTTPStatusCode: res.StatusCode,
38041		},
38042	}
38043	target := &ret
38044	if err := gensupport.DecodeResponse(target, res); err != nil {
38045		return nil, err
38046	}
38047	return ret, nil
38048	// {
38049	//   "description": "Return a list of Custom Reports",
38050	//   "flatPath": "v1/organizations/{organizationsId}/reports",
38051	//   "httpMethod": "GET",
38052	//   "id": "apigee.organizations.reports.list",
38053	//   "parameterOrder": [
38054	//     "parent"
38055	//   ],
38056	//   "parameters": {
38057	//     "expand": {
38058	//       "description": "Set to 'true' to get expanded details about each custom report.",
38059	//       "location": "query",
38060	//       "type": "boolean"
38061	//     },
38062	//     "parent": {
38063	//       "description": "Required. The parent organization name under which the API product will be listed `organizations/{organization_id}/reports`",
38064	//       "location": "path",
38065	//       "pattern": "^organizations/[^/]+$",
38066	//       "required": true,
38067	//       "type": "string"
38068	//     }
38069	//   },
38070	//   "path": "v1/{+parent}/reports",
38071	//   "response": {
38072	//     "$ref": "GoogleCloudApigeeV1ListCustomReportsResponse"
38073	//   },
38074	//   "scopes": [
38075	//     "https://www.googleapis.com/auth/cloud-platform"
38076	//   ]
38077	// }
38078
38079}
38080
38081// method id "apigee.organizations.reports.update":
38082
38083type OrganizationsReportsUpdateCall struct {
38084	s                               *Service
38085	name                            string
38086	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
38087	urlParams_                      gensupport.URLParams
38088	ctx_                            context.Context
38089	header_                         http.Header
38090}
38091
38092// Update: Update an existing custom report definition
38093func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
38094	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38095	c.name = name
38096	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
38097	return c
38098}
38099
38100// Fields allows partial responses to be retrieved. See
38101// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38102// for more information.
38103func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
38104	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38105	return c
38106}
38107
38108// Context sets the context to be used in this call's Do method. Any
38109// pending HTTP request will be aborted if the provided context is
38110// canceled.
38111func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
38112	c.ctx_ = ctx
38113	return c
38114}
38115
38116// Header returns an http.Header that can be modified by the caller to
38117// add HTTP headers to the request.
38118func (c *OrganizationsReportsUpdateCall) Header() http.Header {
38119	if c.header_ == nil {
38120		c.header_ = make(http.Header)
38121	}
38122	return c.header_
38123}
38124
38125func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
38126	reqHeaders := make(http.Header)
38127	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
38128	for k, v := range c.header_ {
38129		reqHeaders[k] = v
38130	}
38131	reqHeaders.Set("User-Agent", c.s.userAgent())
38132	var body io.Reader = nil
38133	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
38134	if err != nil {
38135		return nil, err
38136	}
38137	reqHeaders.Set("Content-Type", "application/json")
38138	c.urlParams_.Set("alt", alt)
38139	c.urlParams_.Set("prettyPrint", "false")
38140	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38141	urls += "?" + c.urlParams_.Encode()
38142	req, err := http.NewRequest("PUT", urls, body)
38143	if err != nil {
38144		return nil, err
38145	}
38146	req.Header = reqHeaders
38147	googleapi.Expand(req.URL, map[string]string{
38148		"name": c.name,
38149	})
38150	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38151}
38152
38153// Do executes the "apigee.organizations.reports.update" call.
38154// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
38155// non-nil. Any non-2xx status code is an error. Response headers are in
38156// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
38157// a response was returned at all) in error.(*googleapi.Error).Header.
38158// Use googleapi.IsNotModified to check whether the returned error was
38159// because http.StatusNotModified was returned.
38160func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
38161	gensupport.SetOptions(c.urlParams_, opts...)
38162	res, err := c.doRequest("json")
38163	if res != nil && res.StatusCode == http.StatusNotModified {
38164		if res.Body != nil {
38165			res.Body.Close()
38166		}
38167		return nil, &googleapi.Error{
38168			Code:   res.StatusCode,
38169			Header: res.Header,
38170		}
38171	}
38172	if err != nil {
38173		return nil, err
38174	}
38175	defer googleapi.CloseBody(res)
38176	if err := googleapi.CheckResponse(res); err != nil {
38177		return nil, err
38178	}
38179	ret := &GoogleCloudApigeeV1CustomReport{
38180		ServerResponse: googleapi.ServerResponse{
38181			Header:         res.Header,
38182			HTTPStatusCode: res.StatusCode,
38183		},
38184	}
38185	target := &ret
38186	if err := gensupport.DecodeResponse(target, res); err != nil {
38187		return nil, err
38188	}
38189	return ret, nil
38190	// {
38191	//   "description": "Update an existing custom report definition",
38192	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
38193	//   "httpMethod": "PUT",
38194	//   "id": "apigee.organizations.reports.update",
38195	//   "parameterOrder": [
38196	//     "name"
38197	//   ],
38198	//   "parameters": {
38199	//     "name": {
38200	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
38201	//       "location": "path",
38202	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
38203	//       "required": true,
38204	//       "type": "string"
38205	//     }
38206	//   },
38207	//   "path": "v1/{+name}",
38208	//   "request": {
38209	//     "$ref": "GoogleCloudApigeeV1CustomReport"
38210	//   },
38211	//   "response": {
38212	//     "$ref": "GoogleCloudApigeeV1CustomReport"
38213	//   },
38214	//   "scopes": [
38215	//     "https://www.googleapis.com/auth/cloud-platform"
38216	//   ]
38217	// }
38218
38219}
38220
38221// method id "apigee.organizations.sharedflows.create":
38222
38223type OrganizationsSharedflowsCreateCall struct {
38224	s                 *Service
38225	parent            string
38226	googleapihttpbody *GoogleApiHttpBody
38227	urlParams_        gensupport.URLParams
38228	ctx_              context.Context
38229	header_           http.Header
38230}
38231
38232// Create: Uploads a ZIP-formatted shared flow configuration bundle to
38233// an organization. If the shared flow already exists, this creates a
38234// new revision of it. If the shared flow does not exist, this creates
38235// it. Once imported, the shared flow revision must be deployed before
38236// it can be accessed at runtime. The size limit of a shared flow bundle
38237// is 15 MB.
38238func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
38239	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38240	c.parent = parent
38241	c.googleapihttpbody = googleapihttpbody
38242	return c
38243}
38244
38245// Action sets the optional parameter "action": Required. Must be set to
38246// either `import` or `validate`.
38247func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
38248	c.urlParams_.Set("action", action)
38249	return c
38250}
38251
38252// Name sets the optional parameter "name": Required. The name to give
38253// the shared flow
38254func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
38255	c.urlParams_.Set("name", name)
38256	return c
38257}
38258
38259// Fields allows partial responses to be retrieved. See
38260// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38261// for more information.
38262func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
38263	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38264	return c
38265}
38266
38267// Context sets the context to be used in this call's Do method. Any
38268// pending HTTP request will be aborted if the provided context is
38269// canceled.
38270func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
38271	c.ctx_ = ctx
38272	return c
38273}
38274
38275// Header returns an http.Header that can be modified by the caller to
38276// add HTTP headers to the request.
38277func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
38278	if c.header_ == nil {
38279		c.header_ = make(http.Header)
38280	}
38281	return c.header_
38282}
38283
38284func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
38285	reqHeaders := make(http.Header)
38286	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
38287	for k, v := range c.header_ {
38288		reqHeaders[k] = v
38289	}
38290	reqHeaders.Set("User-Agent", c.s.userAgent())
38291	var body io.Reader = nil
38292	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
38293	if err != nil {
38294		return nil, err
38295	}
38296	reqHeaders.Set("Content-Type", "application/json")
38297	c.urlParams_.Set("alt", alt)
38298	c.urlParams_.Set("prettyPrint", "false")
38299	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
38300	urls += "?" + c.urlParams_.Encode()
38301	req, err := http.NewRequest("POST", urls, body)
38302	if err != nil {
38303		return nil, err
38304	}
38305	req.Header = reqHeaders
38306	googleapi.Expand(req.URL, map[string]string{
38307		"parent": c.parent,
38308	})
38309	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38310}
38311
38312// Do executes the "apigee.organizations.sharedflows.create" call.
38313// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
38314// be non-nil. Any non-2xx status code is an error. Response headers are
38315// in either
38316// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
38317// response was returned at all) in error.(*googleapi.Error).Header. Use
38318// googleapi.IsNotModified to check whether the returned error was
38319// because http.StatusNotModified was returned.
38320func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
38321	gensupport.SetOptions(c.urlParams_, opts...)
38322	res, err := c.doRequest("json")
38323	if res != nil && res.StatusCode == http.StatusNotModified {
38324		if res.Body != nil {
38325			res.Body.Close()
38326		}
38327		return nil, &googleapi.Error{
38328			Code:   res.StatusCode,
38329			Header: res.Header,
38330		}
38331	}
38332	if err != nil {
38333		return nil, err
38334	}
38335	defer googleapi.CloseBody(res)
38336	if err := googleapi.CheckResponse(res); err != nil {
38337		return nil, err
38338	}
38339	ret := &GoogleCloudApigeeV1SharedFlowRevision{
38340		ServerResponse: googleapi.ServerResponse{
38341			Header:         res.Header,
38342			HTTPStatusCode: res.StatusCode,
38343		},
38344	}
38345	target := &ret
38346	if err := gensupport.DecodeResponse(target, res); err != nil {
38347		return nil, err
38348	}
38349	return ret, nil
38350	// {
38351	//   "description": "Uploads a ZIP-formatted shared flow configuration bundle to an organization. If the shared flow already exists, this creates a new revision of it. If the shared flow does not exist, this creates it. Once imported, the shared flow revision must be deployed before it can be accessed at runtime. The size limit of a shared flow bundle is 15 MB.",
38352	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
38353	//   "httpMethod": "POST",
38354	//   "id": "apigee.organizations.sharedflows.create",
38355	//   "parameterOrder": [
38356	//     "parent"
38357	//   ],
38358	//   "parameters": {
38359	//     "action": {
38360	//       "description": "Required. Must be set to either `import` or `validate`.",
38361	//       "location": "query",
38362	//       "type": "string"
38363	//     },
38364	//     "name": {
38365	//       "description": "Required. The name to give the shared flow",
38366	//       "location": "query",
38367	//       "type": "string"
38368	//     },
38369	//     "parent": {
38370	//       "description": "Required. The name of the parent organization under which to create the shared flow. Must be of the form: `organizations/{organization_id}`",
38371	//       "location": "path",
38372	//       "pattern": "^organizations/[^/]+$",
38373	//       "required": true,
38374	//       "type": "string"
38375	//     }
38376	//   },
38377	//   "path": "v1/{+parent}/sharedflows",
38378	//   "request": {
38379	//     "$ref": "GoogleApiHttpBody"
38380	//   },
38381	//   "response": {
38382	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
38383	//   },
38384	//   "scopes": [
38385	//     "https://www.googleapis.com/auth/cloud-platform"
38386	//   ]
38387	// }
38388
38389}
38390
38391// method id "apigee.organizations.sharedflows.delete":
38392
38393type OrganizationsSharedflowsDeleteCall struct {
38394	s          *Service
38395	name       string
38396	urlParams_ gensupport.URLParams
38397	ctx_       context.Context
38398	header_    http.Header
38399}
38400
38401// Delete: Deletes a shared flow and all it's revisions. The shared flow
38402// must be undeployed before you can delete it.
38403func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
38404	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38405	c.name = name
38406	return c
38407}
38408
38409// Fields allows partial responses to be retrieved. See
38410// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38411// for more information.
38412func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
38413	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38414	return c
38415}
38416
38417// Context sets the context to be used in this call's Do method. Any
38418// pending HTTP request will be aborted if the provided context is
38419// canceled.
38420func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
38421	c.ctx_ = ctx
38422	return c
38423}
38424
38425// Header returns an http.Header that can be modified by the caller to
38426// add HTTP headers to the request.
38427func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
38428	if c.header_ == nil {
38429		c.header_ = make(http.Header)
38430	}
38431	return c.header_
38432}
38433
38434func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
38435	reqHeaders := make(http.Header)
38436	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
38437	for k, v := range c.header_ {
38438		reqHeaders[k] = v
38439	}
38440	reqHeaders.Set("User-Agent", c.s.userAgent())
38441	var body io.Reader = nil
38442	c.urlParams_.Set("alt", alt)
38443	c.urlParams_.Set("prettyPrint", "false")
38444	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38445	urls += "?" + c.urlParams_.Encode()
38446	req, err := http.NewRequest("DELETE", urls, body)
38447	if err != nil {
38448		return nil, err
38449	}
38450	req.Header = reqHeaders
38451	googleapi.Expand(req.URL, map[string]string{
38452		"name": c.name,
38453	})
38454	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38455}
38456
38457// Do executes the "apigee.organizations.sharedflows.delete" call.
38458// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
38459// non-nil. Any non-2xx status code is an error. Response headers are in
38460// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
38461// response was returned at all) in error.(*googleapi.Error).Header. Use
38462// googleapi.IsNotModified to check whether the returned error was
38463// because http.StatusNotModified was returned.
38464func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
38465	gensupport.SetOptions(c.urlParams_, opts...)
38466	res, err := c.doRequest("json")
38467	if res != nil && res.StatusCode == http.StatusNotModified {
38468		if res.Body != nil {
38469			res.Body.Close()
38470		}
38471		return nil, &googleapi.Error{
38472			Code:   res.StatusCode,
38473			Header: res.Header,
38474		}
38475	}
38476	if err != nil {
38477		return nil, err
38478	}
38479	defer googleapi.CloseBody(res)
38480	if err := googleapi.CheckResponse(res); err != nil {
38481		return nil, err
38482	}
38483	ret := &GoogleCloudApigeeV1SharedFlow{
38484		ServerResponse: googleapi.ServerResponse{
38485			Header:         res.Header,
38486			HTTPStatusCode: res.StatusCode,
38487		},
38488	}
38489	target := &ret
38490	if err := gensupport.DecodeResponse(target, res); err != nil {
38491		return nil, err
38492	}
38493	return ret, nil
38494	// {
38495	//   "description": "Deletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.",
38496	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
38497	//   "httpMethod": "DELETE",
38498	//   "id": "apigee.organizations.sharedflows.delete",
38499	//   "parameterOrder": [
38500	//     "name"
38501	//   ],
38502	//   "parameters": {
38503	//     "name": {
38504	//       "description": "Required. shared flow name of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
38505	//       "location": "path",
38506	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
38507	//       "required": true,
38508	//       "type": "string"
38509	//     }
38510	//   },
38511	//   "path": "v1/{+name}",
38512	//   "response": {
38513	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
38514	//   },
38515	//   "scopes": [
38516	//     "https://www.googleapis.com/auth/cloud-platform"
38517	//   ]
38518	// }
38519
38520}
38521
38522// method id "apigee.organizations.sharedflows.get":
38523
38524type OrganizationsSharedflowsGetCall struct {
38525	s            *Service
38526	name         string
38527	urlParams_   gensupport.URLParams
38528	ifNoneMatch_ string
38529	ctx_         context.Context
38530	header_      http.Header
38531}
38532
38533// Get: Gets a shared flow by name, including a list of its revisions.
38534func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
38535	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38536	c.name = name
38537	return c
38538}
38539
38540// Fields allows partial responses to be retrieved. See
38541// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38542// for more information.
38543func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
38544	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38545	return c
38546}
38547
38548// IfNoneMatch sets the optional parameter which makes the operation
38549// fail if the object's ETag matches the given value. This is useful for
38550// getting updates only after the object has changed since the last
38551// request. Use googleapi.IsNotModified to check whether the response
38552// error from Do is the result of In-None-Match.
38553func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
38554	c.ifNoneMatch_ = entityTag
38555	return c
38556}
38557
38558// Context sets the context to be used in this call's Do method. Any
38559// pending HTTP request will be aborted if the provided context is
38560// canceled.
38561func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
38562	c.ctx_ = ctx
38563	return c
38564}
38565
38566// Header returns an http.Header that can be modified by the caller to
38567// add HTTP headers to the request.
38568func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
38569	if c.header_ == nil {
38570		c.header_ = make(http.Header)
38571	}
38572	return c.header_
38573}
38574
38575func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
38576	reqHeaders := make(http.Header)
38577	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
38578	for k, v := range c.header_ {
38579		reqHeaders[k] = v
38580	}
38581	reqHeaders.Set("User-Agent", c.s.userAgent())
38582	if c.ifNoneMatch_ != "" {
38583		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38584	}
38585	var body io.Reader = nil
38586	c.urlParams_.Set("alt", alt)
38587	c.urlParams_.Set("prettyPrint", "false")
38588	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38589	urls += "?" + c.urlParams_.Encode()
38590	req, err := http.NewRequest("GET", urls, body)
38591	if err != nil {
38592		return nil, err
38593	}
38594	req.Header = reqHeaders
38595	googleapi.Expand(req.URL, map[string]string{
38596		"name": c.name,
38597	})
38598	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38599}
38600
38601// Do executes the "apigee.organizations.sharedflows.get" call.
38602// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
38603// non-nil. Any non-2xx status code is an error. Response headers are in
38604// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
38605// response was returned at all) in error.(*googleapi.Error).Header. Use
38606// googleapi.IsNotModified to check whether the returned error was
38607// because http.StatusNotModified was returned.
38608func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
38609	gensupport.SetOptions(c.urlParams_, opts...)
38610	res, err := c.doRequest("json")
38611	if res != nil && res.StatusCode == http.StatusNotModified {
38612		if res.Body != nil {
38613			res.Body.Close()
38614		}
38615		return nil, &googleapi.Error{
38616			Code:   res.StatusCode,
38617			Header: res.Header,
38618		}
38619	}
38620	if err != nil {
38621		return nil, err
38622	}
38623	defer googleapi.CloseBody(res)
38624	if err := googleapi.CheckResponse(res); err != nil {
38625		return nil, err
38626	}
38627	ret := &GoogleCloudApigeeV1SharedFlow{
38628		ServerResponse: googleapi.ServerResponse{
38629			Header:         res.Header,
38630			HTTPStatusCode: res.StatusCode,
38631		},
38632	}
38633	target := &ret
38634	if err := gensupport.DecodeResponse(target, res); err != nil {
38635		return nil, err
38636	}
38637	return ret, nil
38638	// {
38639	//   "description": "Gets a shared flow by name, including a list of its revisions.",
38640	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
38641	//   "httpMethod": "GET",
38642	//   "id": "apigee.organizations.sharedflows.get",
38643	//   "parameterOrder": [
38644	//     "name"
38645	//   ],
38646	//   "parameters": {
38647	//     "name": {
38648	//       "description": "Required. The name of the shared flow to get. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
38649	//       "location": "path",
38650	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
38651	//       "required": true,
38652	//       "type": "string"
38653	//     }
38654	//   },
38655	//   "path": "v1/{+name}",
38656	//   "response": {
38657	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
38658	//   },
38659	//   "scopes": [
38660	//     "https://www.googleapis.com/auth/cloud-platform"
38661	//   ]
38662	// }
38663
38664}
38665
38666// method id "apigee.organizations.sharedflows.list":
38667
38668type OrganizationsSharedflowsListCall struct {
38669	s            *Service
38670	parent       string
38671	urlParams_   gensupport.URLParams
38672	ifNoneMatch_ string
38673	ctx_         context.Context
38674	header_      http.Header
38675}
38676
38677// List: Lists all shared flows in the organization.
38678func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
38679	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38680	c.parent = parent
38681	return c
38682}
38683
38684// IncludeMetaData sets the optional parameter "includeMetaData":
38685// Indicates whether to include shared flow metadata in the response.
38686func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
38687	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
38688	return c
38689}
38690
38691// IncludeRevisions sets the optional parameter "includeRevisions":
38692// Indicates whether to include a list of revisions in the response.
38693func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
38694	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
38695	return c
38696}
38697
38698// Fields allows partial responses to be retrieved. See
38699// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38700// for more information.
38701func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
38702	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38703	return c
38704}
38705
38706// IfNoneMatch sets the optional parameter which makes the operation
38707// fail if the object's ETag matches the given value. This is useful for
38708// getting updates only after the object has changed since the last
38709// request. Use googleapi.IsNotModified to check whether the response
38710// error from Do is the result of In-None-Match.
38711func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
38712	c.ifNoneMatch_ = entityTag
38713	return c
38714}
38715
38716// Context sets the context to be used in this call's Do method. Any
38717// pending HTTP request will be aborted if the provided context is
38718// canceled.
38719func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
38720	c.ctx_ = ctx
38721	return c
38722}
38723
38724// Header returns an http.Header that can be modified by the caller to
38725// add HTTP headers to the request.
38726func (c *OrganizationsSharedflowsListCall) Header() http.Header {
38727	if c.header_ == nil {
38728		c.header_ = make(http.Header)
38729	}
38730	return c.header_
38731}
38732
38733func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
38734	reqHeaders := make(http.Header)
38735	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
38736	for k, v := range c.header_ {
38737		reqHeaders[k] = v
38738	}
38739	reqHeaders.Set("User-Agent", c.s.userAgent())
38740	if c.ifNoneMatch_ != "" {
38741		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38742	}
38743	var body io.Reader = nil
38744	c.urlParams_.Set("alt", alt)
38745	c.urlParams_.Set("prettyPrint", "false")
38746	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
38747	urls += "?" + c.urlParams_.Encode()
38748	req, err := http.NewRequest("GET", urls, body)
38749	if err != nil {
38750		return nil, err
38751	}
38752	req.Header = reqHeaders
38753	googleapi.Expand(req.URL, map[string]string{
38754		"parent": c.parent,
38755	})
38756	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38757}
38758
38759// Do executes the "apigee.organizations.sharedflows.list" call.
38760// Exactly one of *GoogleCloudApigeeV1ListSharedFlowsResponse or error
38761// will be non-nil. Any non-2xx status code is an error. Response
38762// headers are in either
38763// *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or
38764// (if a response was returned at all) in
38765// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38766// whether the returned error was because http.StatusNotModified was
38767// returned.
38768func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
38769	gensupport.SetOptions(c.urlParams_, opts...)
38770	res, err := c.doRequest("json")
38771	if res != nil && res.StatusCode == http.StatusNotModified {
38772		if res.Body != nil {
38773			res.Body.Close()
38774		}
38775		return nil, &googleapi.Error{
38776			Code:   res.StatusCode,
38777			Header: res.Header,
38778		}
38779	}
38780	if err != nil {
38781		return nil, err
38782	}
38783	defer googleapi.CloseBody(res)
38784	if err := googleapi.CheckResponse(res); err != nil {
38785		return nil, err
38786	}
38787	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
38788		ServerResponse: googleapi.ServerResponse{
38789			Header:         res.Header,
38790			HTTPStatusCode: res.StatusCode,
38791		},
38792	}
38793	target := &ret
38794	if err := gensupport.DecodeResponse(target, res); err != nil {
38795		return nil, err
38796	}
38797	return ret, nil
38798	// {
38799	//   "description": "Lists all shared flows in the organization.",
38800	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
38801	//   "httpMethod": "GET",
38802	//   "id": "apigee.organizations.sharedflows.list",
38803	//   "parameterOrder": [
38804	//     "parent"
38805	//   ],
38806	//   "parameters": {
38807	//     "includeMetaData": {
38808	//       "description": "Indicates whether to include shared flow metadata in the response.",
38809	//       "location": "query",
38810	//       "type": "boolean"
38811	//     },
38812	//     "includeRevisions": {
38813	//       "description": "Indicates whether to include a list of revisions in the response.",
38814	//       "location": "query",
38815	//       "type": "boolean"
38816	//     },
38817	//     "parent": {
38818	//       "description": "Required. The name of the parent organization under which to get shared flows. Must be of the form: `organizations/{organization_id}`",
38819	//       "location": "path",
38820	//       "pattern": "^organizations/[^/]+$",
38821	//       "required": true,
38822	//       "type": "string"
38823	//     }
38824	//   },
38825	//   "path": "v1/{+parent}/sharedflows",
38826	//   "response": {
38827	//     "$ref": "GoogleCloudApigeeV1ListSharedFlowsResponse"
38828	//   },
38829	//   "scopes": [
38830	//     "https://www.googleapis.com/auth/cloud-platform"
38831	//   ]
38832	// }
38833
38834}
38835
38836// method id "apigee.organizations.sharedflows.deployments.list":
38837
38838type OrganizationsSharedflowsDeploymentsListCall struct {
38839	s            *Service
38840	parent       string
38841	urlParams_   gensupport.URLParams
38842	ifNoneMatch_ string
38843	ctx_         context.Context
38844	header_      http.Header
38845}
38846
38847// List: Lists all deployments of a shared flow.
38848func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
38849	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38850	c.parent = parent
38851	return c
38852}
38853
38854// Fields allows partial responses to be retrieved. See
38855// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38856// for more information.
38857func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
38858	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38859	return c
38860}
38861
38862// IfNoneMatch sets the optional parameter which makes the operation
38863// fail if the object's ETag matches the given value. This is useful for
38864// getting updates only after the object has changed since the last
38865// request. Use googleapi.IsNotModified to check whether the response
38866// error from Do is the result of In-None-Match.
38867func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
38868	c.ifNoneMatch_ = entityTag
38869	return c
38870}
38871
38872// Context sets the context to be used in this call's Do method. Any
38873// pending HTTP request will be aborted if the provided context is
38874// canceled.
38875func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
38876	c.ctx_ = ctx
38877	return c
38878}
38879
38880// Header returns an http.Header that can be modified by the caller to
38881// add HTTP headers to the request.
38882func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
38883	if c.header_ == nil {
38884		c.header_ = make(http.Header)
38885	}
38886	return c.header_
38887}
38888
38889func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
38890	reqHeaders := make(http.Header)
38891	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
38892	for k, v := range c.header_ {
38893		reqHeaders[k] = v
38894	}
38895	reqHeaders.Set("User-Agent", c.s.userAgent())
38896	if c.ifNoneMatch_ != "" {
38897		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38898	}
38899	var body io.Reader = nil
38900	c.urlParams_.Set("alt", alt)
38901	c.urlParams_.Set("prettyPrint", "false")
38902	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
38903	urls += "?" + c.urlParams_.Encode()
38904	req, err := http.NewRequest("GET", urls, body)
38905	if err != nil {
38906		return nil, err
38907	}
38908	req.Header = reqHeaders
38909	googleapi.Expand(req.URL, map[string]string{
38910		"parent": c.parent,
38911	})
38912	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38913}
38914
38915// Do executes the "apigee.organizations.sharedflows.deployments.list" call.
38916// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
38917// will be non-nil. Any non-2xx status code is an error. Response
38918// headers are in either
38919// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
38920// (if a response was returned at all) in
38921// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38922// whether the returned error was because http.StatusNotModified was
38923// returned.
38924func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
38925	gensupport.SetOptions(c.urlParams_, opts...)
38926	res, err := c.doRequest("json")
38927	if res != nil && res.StatusCode == http.StatusNotModified {
38928		if res.Body != nil {
38929			res.Body.Close()
38930		}
38931		return nil, &googleapi.Error{
38932			Code:   res.StatusCode,
38933			Header: res.Header,
38934		}
38935	}
38936	if err != nil {
38937		return nil, err
38938	}
38939	defer googleapi.CloseBody(res)
38940	if err := googleapi.CheckResponse(res); err != nil {
38941		return nil, err
38942	}
38943	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
38944		ServerResponse: googleapi.ServerResponse{
38945			Header:         res.Header,
38946			HTTPStatusCode: res.StatusCode,
38947		},
38948	}
38949	target := &ret
38950	if err := gensupport.DecodeResponse(target, res); err != nil {
38951		return nil, err
38952	}
38953	return ret, nil
38954	// {
38955	//   "description": "Lists all deployments of a shared flow.",
38956	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/deployments",
38957	//   "httpMethod": "GET",
38958	//   "id": "apigee.organizations.sharedflows.deployments.list",
38959	//   "parameterOrder": [
38960	//     "parent"
38961	//   ],
38962	//   "parameters": {
38963	//     "parent": {
38964	//       "description": "Required. Name of the shared flow for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}`",
38965	//       "location": "path",
38966	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
38967	//       "required": true,
38968	//       "type": "string"
38969	//     }
38970	//   },
38971	//   "path": "v1/{+parent}/deployments",
38972	//   "response": {
38973	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
38974	//   },
38975	//   "scopes": [
38976	//     "https://www.googleapis.com/auth/cloud-platform"
38977	//   ]
38978	// }
38979
38980}
38981
38982// method id "apigee.organizations.sharedflows.revisions.delete":
38983
38984type OrganizationsSharedflowsRevisionsDeleteCall struct {
38985	s          *Service
38986	name       string
38987	urlParams_ gensupport.URLParams
38988	ctx_       context.Context
38989	header_    http.Header
38990}
38991
38992// Delete: Deletes a shared flow and all associated policies, resources,
38993// and revisions. You must undeploy the shared flow before deleting it.
38994func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
38995	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38996	c.name = name
38997	return c
38998}
38999
39000// Fields allows partial responses to be retrieved. See
39001// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39002// for more information.
39003func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
39004	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39005	return c
39006}
39007
39008// Context sets the context to be used in this call's Do method. Any
39009// pending HTTP request will be aborted if the provided context is
39010// canceled.
39011func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
39012	c.ctx_ = ctx
39013	return c
39014}
39015
39016// Header returns an http.Header that can be modified by the caller to
39017// add HTTP headers to the request.
39018func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
39019	if c.header_ == nil {
39020		c.header_ = make(http.Header)
39021	}
39022	return c.header_
39023}
39024
39025func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
39026	reqHeaders := make(http.Header)
39027	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39028	for k, v := range c.header_ {
39029		reqHeaders[k] = v
39030	}
39031	reqHeaders.Set("User-Agent", c.s.userAgent())
39032	var body io.Reader = nil
39033	c.urlParams_.Set("alt", alt)
39034	c.urlParams_.Set("prettyPrint", "false")
39035	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39036	urls += "?" + c.urlParams_.Encode()
39037	req, err := http.NewRequest("DELETE", urls, body)
39038	if err != nil {
39039		return nil, err
39040	}
39041	req.Header = reqHeaders
39042	googleapi.Expand(req.URL, map[string]string{
39043		"name": c.name,
39044	})
39045	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39046}
39047
39048// Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
39049// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
39050// be non-nil. Any non-2xx status code is an error. Response headers are
39051// in either
39052// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
39053// response was returned at all) in error.(*googleapi.Error).Header. Use
39054// googleapi.IsNotModified to check whether the returned error was
39055// because http.StatusNotModified was returned.
39056func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
39057	gensupport.SetOptions(c.urlParams_, opts...)
39058	res, err := c.doRequest("json")
39059	if res != nil && res.StatusCode == http.StatusNotModified {
39060		if res.Body != nil {
39061			res.Body.Close()
39062		}
39063		return nil, &googleapi.Error{
39064			Code:   res.StatusCode,
39065			Header: res.Header,
39066		}
39067	}
39068	if err != nil {
39069		return nil, err
39070	}
39071	defer googleapi.CloseBody(res)
39072	if err := googleapi.CheckResponse(res); err != nil {
39073		return nil, err
39074	}
39075	ret := &GoogleCloudApigeeV1SharedFlowRevision{
39076		ServerResponse: googleapi.ServerResponse{
39077			Header:         res.Header,
39078			HTTPStatusCode: res.StatusCode,
39079		},
39080	}
39081	target := &ret
39082	if err := gensupport.DecodeResponse(target, res); err != nil {
39083		return nil, err
39084	}
39085	return ret, nil
39086	// {
39087	//   "description": "Deletes a shared flow and all associated policies, resources, and revisions. You must undeploy the shared flow before deleting it.",
39088	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
39089	//   "httpMethod": "DELETE",
39090	//   "id": "apigee.organizations.sharedflows.revisions.delete",
39091	//   "parameterOrder": [
39092	//     "name"
39093	//   ],
39094	//   "parameters": {
39095	//     "name": {
39096	//       "description": "Required. The name of the shared flow revision to delete. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id}`",
39097	//       "location": "path",
39098	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
39099	//       "required": true,
39100	//       "type": "string"
39101	//     }
39102	//   },
39103	//   "path": "v1/{+name}",
39104	//   "response": {
39105	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
39106	//   },
39107	//   "scopes": [
39108	//     "https://www.googleapis.com/auth/cloud-platform"
39109	//   ]
39110	// }
39111
39112}
39113
39114// method id "apigee.organizations.sharedflows.revisions.get":
39115
39116type OrganizationsSharedflowsRevisionsGetCall struct {
39117	s            *Service
39118	name         string
39119	urlParams_   gensupport.URLParams
39120	ifNoneMatch_ string
39121	ctx_         context.Context
39122	header_      http.Header
39123}
39124
39125// Get: Gets a revision of a shared flow. To download the shared flow
39126// configuration bundle for the specified revision as a zip file, set
39127// the `format` query parameter to `bundle`. If you are using curl,
39128// specify `-o filename.zip` to save the output to a file; otherwise, it
39129// displays to `stdout`. Then, develop the shared flow configuration
39130// locally and upload the updated sharedFlow configuration revision, as
39131// described in updateSharedFlowRevision (updateSharedFlowRevision).
39132func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
39133	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39134	c.name = name
39135	return c
39136}
39137
39138// Format sets the optional parameter "format": Specify `bundle` to
39139// export the contents of the shared flow bundle. Otherwise, the bundle
39140// metadata is returned.
39141func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
39142	c.urlParams_.Set("format", format)
39143	return c
39144}
39145
39146// Fields allows partial responses to be retrieved. See
39147// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39148// for more information.
39149func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
39150	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39151	return c
39152}
39153
39154// IfNoneMatch sets the optional parameter which makes the operation
39155// fail if the object's ETag matches the given value. This is useful for
39156// getting updates only after the object has changed since the last
39157// request. Use googleapi.IsNotModified to check whether the response
39158// error from Do is the result of In-None-Match.
39159func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
39160	c.ifNoneMatch_ = entityTag
39161	return c
39162}
39163
39164// Context sets the context to be used in this call's Do method. Any
39165// pending HTTP request will be aborted if the provided context is
39166// canceled.
39167func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
39168	c.ctx_ = ctx
39169	return c
39170}
39171
39172// Header returns an http.Header that can be modified by the caller to
39173// add HTTP headers to the request.
39174func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
39175	if c.header_ == nil {
39176		c.header_ = make(http.Header)
39177	}
39178	return c.header_
39179}
39180
39181func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
39182	reqHeaders := make(http.Header)
39183	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39184	for k, v := range c.header_ {
39185		reqHeaders[k] = v
39186	}
39187	reqHeaders.Set("User-Agent", c.s.userAgent())
39188	if c.ifNoneMatch_ != "" {
39189		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39190	}
39191	var body io.Reader = nil
39192	c.urlParams_.Set("alt", alt)
39193	c.urlParams_.Set("prettyPrint", "false")
39194	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39195	urls += "?" + c.urlParams_.Encode()
39196	req, err := http.NewRequest("GET", urls, body)
39197	if err != nil {
39198		return nil, err
39199	}
39200	req.Header = reqHeaders
39201	googleapi.Expand(req.URL, map[string]string{
39202		"name": c.name,
39203	})
39204	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39205}
39206
39207// Do executes the "apigee.organizations.sharedflows.revisions.get" call.
39208// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
39209// non-2xx status code is an error. Response headers are in either
39210// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
39211// returned at all) in error.(*googleapi.Error).Header. Use
39212// googleapi.IsNotModified to check whether the returned error was
39213// because http.StatusNotModified was returned.
39214func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
39215	gensupport.SetOptions(c.urlParams_, opts...)
39216	res, err := c.doRequest("json")
39217	if res != nil && res.StatusCode == http.StatusNotModified {
39218		if res.Body != nil {
39219			res.Body.Close()
39220		}
39221		return nil, &googleapi.Error{
39222			Code:   res.StatusCode,
39223			Header: res.Header,
39224		}
39225	}
39226	if err != nil {
39227		return nil, err
39228	}
39229	defer googleapi.CloseBody(res)
39230	if err := googleapi.CheckResponse(res); err != nil {
39231		return nil, err
39232	}
39233	ret := &GoogleApiHttpBody{
39234		ServerResponse: googleapi.ServerResponse{
39235			Header:         res.Header,
39236			HTTPStatusCode: res.StatusCode,
39237		},
39238	}
39239	target := &ret
39240	if err := gensupport.DecodeResponse(target, res); err != nil {
39241		return nil, err
39242	}
39243	return ret, nil
39244	// {
39245	//   "description": "Gets a revision of a shared flow. To download the shared flow configuration bundle for the specified revision as a zip file, set the `format` query parameter to `bundle`. If you are using curl, specify `-o filename.zip` to save the output to a file; otherwise, it displays to `stdout`. Then, develop the shared flow configuration locally and upload the updated sharedFlow configuration revision, as described in [updateSharedFlowRevision](updateSharedFlowRevision).",
39246	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
39247	//   "httpMethod": "GET",
39248	//   "id": "apigee.organizations.sharedflows.revisions.get",
39249	//   "parameterOrder": [
39250	//     "name"
39251	//   ],
39252	//   "parameters": {
39253	//     "format": {
39254	//       "description": "Specify `bundle` to export the contents of the shared flow bundle. Otherwise, the bundle metadata is returned.",
39255	//       "location": "query",
39256	//       "type": "string"
39257	//     },
39258	//     "name": {
39259	//       "description": "Required. The name of the shared flow revision to get. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id}`",
39260	//       "location": "path",
39261	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
39262	//       "required": true,
39263	//       "type": "string"
39264	//     }
39265	//   },
39266	//   "path": "v1/{+name}",
39267	//   "response": {
39268	//     "$ref": "GoogleApiHttpBody"
39269	//   },
39270	//   "scopes": [
39271	//     "https://www.googleapis.com/auth/cloud-platform"
39272	//   ]
39273	// }
39274
39275}
39276
39277// method id "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision":
39278
39279type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
39280	s                 *Service
39281	name              string
39282	googleapihttpbody *GoogleApiHttpBody
39283	urlParams_        gensupport.URLParams
39284	ctx_              context.Context
39285	header_           http.Header
39286}
39287
39288// UpdateSharedFlowRevision: Updates a shared flow revision. This
39289// operation is only allowed on revisions which have never been
39290// deployed. After deployment a revision becomes immutable, even if it
39291// becomes undeployed. The payload is a ZIP-formatted shared flow.
39292// Content type must be either multipart/form-data or
39293// application/octet-stream.
39294func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
39295	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39296	c.name = name
39297	c.googleapihttpbody = googleapihttpbody
39298	return c
39299}
39300
39301// Validate sets the optional parameter "validate": Ignored. All uploads
39302// are validated regardless of the value of this field. It is kept for
39303// compatibility with existing APIs. Must be `true` or `false` if
39304// provided.
39305func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
39306	c.urlParams_.Set("validate", fmt.Sprint(validate))
39307	return c
39308}
39309
39310// Fields allows partial responses to be retrieved. See
39311// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39312// for more information.
39313func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
39314	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39315	return c
39316}
39317
39318// Context sets the context to be used in this call's Do method. Any
39319// pending HTTP request will be aborted if the provided context is
39320// canceled.
39321func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
39322	c.ctx_ = ctx
39323	return c
39324}
39325
39326// Header returns an http.Header that can be modified by the caller to
39327// add HTTP headers to the request.
39328func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
39329	if c.header_ == nil {
39330		c.header_ = make(http.Header)
39331	}
39332	return c.header_
39333}
39334
39335func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
39336	reqHeaders := make(http.Header)
39337	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39338	for k, v := range c.header_ {
39339		reqHeaders[k] = v
39340	}
39341	reqHeaders.Set("User-Agent", c.s.userAgent())
39342	var body io.Reader = nil
39343	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
39344	if err != nil {
39345		return nil, err
39346	}
39347	reqHeaders.Set("Content-Type", "application/json")
39348	c.urlParams_.Set("alt", alt)
39349	c.urlParams_.Set("prettyPrint", "false")
39350	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39351	urls += "?" + c.urlParams_.Encode()
39352	req, err := http.NewRequest("POST", urls, body)
39353	if err != nil {
39354		return nil, err
39355	}
39356	req.Header = reqHeaders
39357	googleapi.Expand(req.URL, map[string]string{
39358		"name": c.name,
39359	})
39360	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39361}
39362
39363// Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
39364// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
39365// be non-nil. Any non-2xx status code is an error. Response headers are
39366// in either
39367// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
39368// response was returned at all) in error.(*googleapi.Error).Header. Use
39369// googleapi.IsNotModified to check whether the returned error was
39370// because http.StatusNotModified was returned.
39371func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
39372	gensupport.SetOptions(c.urlParams_, opts...)
39373	res, err := c.doRequest("json")
39374	if res != nil && res.StatusCode == http.StatusNotModified {
39375		if res.Body != nil {
39376			res.Body.Close()
39377		}
39378		return nil, &googleapi.Error{
39379			Code:   res.StatusCode,
39380			Header: res.Header,
39381		}
39382	}
39383	if err != nil {
39384		return nil, err
39385	}
39386	defer googleapi.CloseBody(res)
39387	if err := googleapi.CheckResponse(res); err != nil {
39388		return nil, err
39389	}
39390	ret := &GoogleCloudApigeeV1SharedFlowRevision{
39391		ServerResponse: googleapi.ServerResponse{
39392			Header:         res.Header,
39393			HTTPStatusCode: res.StatusCode,
39394		},
39395	}
39396	target := &ret
39397	if err := gensupport.DecodeResponse(target, res); err != nil {
39398		return nil, err
39399	}
39400	return ret, nil
39401	// {
39402	//   "description": "Updates a shared flow revision. This operation is only allowed on revisions which have never been deployed. After deployment a revision becomes immutable, even if it becomes undeployed. The payload is a ZIP-formatted shared flow. Content type must be either multipart/form-data or application/octet-stream.",
39403	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
39404	//   "httpMethod": "POST",
39405	//   "id": "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision",
39406	//   "parameterOrder": [
39407	//     "name"
39408	//   ],
39409	//   "parameters": {
39410	//     "name": {
39411	//       "description": "Required. The name of the shared flow revision to update. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id}`",
39412	//       "location": "path",
39413	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
39414	//       "required": true,
39415	//       "type": "string"
39416	//     },
39417	//     "validate": {
39418	//       "description": "Ignored. All uploads are validated regardless of the value of this field. It is kept for compatibility with existing APIs. Must be `true` or `false` if provided.",
39419	//       "location": "query",
39420	//       "type": "boolean"
39421	//     }
39422	//   },
39423	//   "path": "v1/{+name}",
39424	//   "request": {
39425	//     "$ref": "GoogleApiHttpBody"
39426	//   },
39427	//   "response": {
39428	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
39429	//   },
39430	//   "scopes": [
39431	//     "https://www.googleapis.com/auth/cloud-platform"
39432	//   ]
39433	// }
39434
39435}
39436
39437// method id "apigee.organizations.sharedflows.revisions.deployments.list":
39438
39439type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
39440	s            *Service
39441	parent       string
39442	urlParams_   gensupport.URLParams
39443	ifNoneMatch_ string
39444	ctx_         context.Context
39445	header_      http.Header
39446}
39447
39448// List: Lists all deployments of a shared flow revision.
39449func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
39450	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39451	c.parent = parent
39452	return c
39453}
39454
39455// Fields allows partial responses to be retrieved. See
39456// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39457// for more information.
39458func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
39459	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39460	return c
39461}
39462
39463// IfNoneMatch sets the optional parameter which makes the operation
39464// fail if the object's ETag matches the given value. This is useful for
39465// getting updates only after the object has changed since the last
39466// request. Use googleapi.IsNotModified to check whether the response
39467// error from Do is the result of In-None-Match.
39468func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
39469	c.ifNoneMatch_ = entityTag
39470	return c
39471}
39472
39473// Context sets the context to be used in this call's Do method. Any
39474// pending HTTP request will be aborted if the provided context is
39475// canceled.
39476func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
39477	c.ctx_ = ctx
39478	return c
39479}
39480
39481// Header returns an http.Header that can be modified by the caller to
39482// add HTTP headers to the request.
39483func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
39484	if c.header_ == nil {
39485		c.header_ = make(http.Header)
39486	}
39487	return c.header_
39488}
39489
39490func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
39491	reqHeaders := make(http.Header)
39492	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39493	for k, v := range c.header_ {
39494		reqHeaders[k] = v
39495	}
39496	reqHeaders.Set("User-Agent", c.s.userAgent())
39497	if c.ifNoneMatch_ != "" {
39498		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39499	}
39500	var body io.Reader = nil
39501	c.urlParams_.Set("alt", alt)
39502	c.urlParams_.Set("prettyPrint", "false")
39503	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
39504	urls += "?" + c.urlParams_.Encode()
39505	req, err := http.NewRequest("GET", urls, body)
39506	if err != nil {
39507		return nil, err
39508	}
39509	req.Header = reqHeaders
39510	googleapi.Expand(req.URL, map[string]string{
39511		"parent": c.parent,
39512	})
39513	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39514}
39515
39516// Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
39517// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
39518// will be non-nil. Any non-2xx status code is an error. Response
39519// headers are in either
39520// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
39521// (if a response was returned at all) in
39522// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39523// whether the returned error was because http.StatusNotModified was
39524// returned.
39525func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
39526	gensupport.SetOptions(c.urlParams_, opts...)
39527	res, err := c.doRequest("json")
39528	if res != nil && res.StatusCode == http.StatusNotModified {
39529		if res.Body != nil {
39530			res.Body.Close()
39531		}
39532		return nil, &googleapi.Error{
39533			Code:   res.StatusCode,
39534			Header: res.Header,
39535		}
39536	}
39537	if err != nil {
39538		return nil, err
39539	}
39540	defer googleapi.CloseBody(res)
39541	if err := googleapi.CheckResponse(res); err != nil {
39542		return nil, err
39543	}
39544	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
39545		ServerResponse: googleapi.ServerResponse{
39546			Header:         res.Header,
39547			HTTPStatusCode: res.StatusCode,
39548		},
39549	}
39550	target := &ret
39551	if err := gensupport.DecodeResponse(target, res); err != nil {
39552		return nil, err
39553	}
39554	return ret, nil
39555	// {
39556	//   "description": "Lists all deployments of a shared flow revision.",
39557	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
39558	//   "httpMethod": "GET",
39559	//   "id": "apigee.organizations.sharedflows.revisions.deployments.list",
39560	//   "parameterOrder": [
39561	//     "parent"
39562	//   ],
39563	//   "parameters": {
39564	//     "parent": {
39565	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.",
39566	//       "location": "path",
39567	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
39568	//       "required": true,
39569	//       "type": "string"
39570	//     }
39571	//   },
39572	//   "path": "v1/{+parent}/deployments",
39573	//   "response": {
39574	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
39575	//   },
39576	//   "scopes": [
39577	//     "https://www.googleapis.com/auth/cloud-platform"
39578	//   ]
39579	// }
39580
39581}
39582
39583// method id "apigee.organizations.sites.apicategories.create":
39584
39585type OrganizationsSitesApicategoriesCreateCall struct {
39586	s                                  *Service
39587	parent                             string
39588	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
39589	urlParams_                         gensupport.URLParams
39590	ctx_                               context.Context
39591	header_                            http.Header
39592}
39593
39594// Create: Creates a new category on the portal.
39595func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesCreateCall {
39596	c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39597	c.parent = parent
39598	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
39599	return c
39600}
39601
39602// Fields allows partial responses to be retrieved. See
39603// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39604// for more information.
39605func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
39606	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39607	return c
39608}
39609
39610// Context sets the context to be used in this call's Do method. Any
39611// pending HTTP request will be aborted if the provided context is
39612// canceled.
39613func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
39614	c.ctx_ = ctx
39615	return c
39616}
39617
39618// Header returns an http.Header that can be modified by the caller to
39619// add HTTP headers to the request.
39620func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
39621	if c.header_ == nil {
39622		c.header_ = make(http.Header)
39623	}
39624	return c.header_
39625}
39626
39627func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
39628	reqHeaders := make(http.Header)
39629	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39630	for k, v := range c.header_ {
39631		reqHeaders[k] = v
39632	}
39633	reqHeaders.Set("User-Agent", c.s.userAgent())
39634	var body io.Reader = nil
39635	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
39636	if err != nil {
39637		return nil, err
39638	}
39639	reqHeaders.Set("Content-Type", "application/json")
39640	c.urlParams_.Set("alt", alt)
39641	c.urlParams_.Set("prettyPrint", "false")
39642	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
39643	urls += "?" + c.urlParams_.Encode()
39644	req, err := http.NewRequest("POST", urls, body)
39645	if err != nil {
39646		return nil, err
39647	}
39648	req.Header = reqHeaders
39649	googleapi.Expand(req.URL, map[string]string{
39650		"parent": c.parent,
39651	})
39652	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39653}
39654
39655// Do executes the "apigee.organizations.sites.apicategories.create" call.
39656// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
39657// non-nil. Any non-2xx status code is an error. Response headers are in
39658// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
39659// response was returned at all) in error.(*googleapi.Error).Header. Use
39660// googleapi.IsNotModified to check whether the returned error was
39661// because http.StatusNotModified was returned.
39662func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
39663	gensupport.SetOptions(c.urlParams_, opts...)
39664	res, err := c.doRequest("json")
39665	if res != nil && res.StatusCode == http.StatusNotModified {
39666		if res.Body != nil {
39667			res.Body.Close()
39668		}
39669		return nil, &googleapi.Error{
39670			Code:   res.StatusCode,
39671			Header: res.Header,
39672		}
39673	}
39674	if err != nil {
39675		return nil, err
39676	}
39677	defer googleapi.CloseBody(res)
39678	if err := googleapi.CheckResponse(res); err != nil {
39679		return nil, err
39680	}
39681	ret := &GoogleCloudApigeeV1ApiCategory{
39682		ServerResponse: googleapi.ServerResponse{
39683			Header:         res.Header,
39684			HTTPStatusCode: res.StatusCode,
39685		},
39686	}
39687	target := &ret
39688	if err := gensupport.DecodeResponse(target, res); err != nil {
39689		return nil, err
39690	}
39691	return ret, nil
39692	// {
39693	//   "description": "Creates a new category on the portal.",
39694	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
39695	//   "httpMethod": "POST",
39696	//   "id": "apigee.organizations.sites.apicategories.create",
39697	//   "parameterOrder": [
39698	//     "parent"
39699	//   ],
39700	//   "parameters": {
39701	//     "parent": {
39702	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
39703	//       "location": "path",
39704	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
39705	//       "required": true,
39706	//       "type": "string"
39707	//     }
39708	//   },
39709	//   "path": "v1/{+parent}/apicategories",
39710	//   "request": {
39711	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
39712	//   },
39713	//   "response": {
39714	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
39715	//   },
39716	//   "scopes": [
39717	//     "https://www.googleapis.com/auth/cloud-platform"
39718	//   ]
39719	// }
39720
39721}
39722
39723// method id "apigee.organizations.sites.apicategories.delete":
39724
39725type OrganizationsSitesApicategoriesDeleteCall struct {
39726	s          *Service
39727	name       string
39728	urlParams_ gensupport.URLParams
39729	ctx_       context.Context
39730	header_    http.Header
39731}
39732
39733// Delete: Deletes a category from the portal.
39734func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
39735	c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39736	c.name = name
39737	return c
39738}
39739
39740// Fields allows partial responses to be retrieved. See
39741// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39742// for more information.
39743func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
39744	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39745	return c
39746}
39747
39748// Context sets the context to be used in this call's Do method. Any
39749// pending HTTP request will be aborted if the provided context is
39750// canceled.
39751func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
39752	c.ctx_ = ctx
39753	return c
39754}
39755
39756// Header returns an http.Header that can be modified by the caller to
39757// add HTTP headers to the request.
39758func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
39759	if c.header_ == nil {
39760		c.header_ = make(http.Header)
39761	}
39762	return c.header_
39763}
39764
39765func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
39766	reqHeaders := make(http.Header)
39767	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39768	for k, v := range c.header_ {
39769		reqHeaders[k] = v
39770	}
39771	reqHeaders.Set("User-Agent", c.s.userAgent())
39772	var body io.Reader = nil
39773	c.urlParams_.Set("alt", alt)
39774	c.urlParams_.Set("prettyPrint", "false")
39775	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39776	urls += "?" + c.urlParams_.Encode()
39777	req, err := http.NewRequest("DELETE", urls, body)
39778	if err != nil {
39779		return nil, err
39780	}
39781	req.Header = reqHeaders
39782	googleapi.Expand(req.URL, map[string]string{
39783		"name": c.name,
39784	})
39785	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39786}
39787
39788// Do executes the "apigee.organizations.sites.apicategories.delete" call.
39789// Exactly one of *GoogleCloudApigeeV1ApiResponseWrapper or error will
39790// be non-nil. Any non-2xx status code is an error. Response headers are
39791// in either
39792// *GoogleCloudApigeeV1ApiResponseWrapper.ServerResponse.Header or (if a
39793// response was returned at all) in error.(*googleapi.Error).Header. Use
39794// googleapi.IsNotModified to check whether the returned error was
39795// because http.StatusNotModified was returned.
39796func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiResponseWrapper, error) {
39797	gensupport.SetOptions(c.urlParams_, opts...)
39798	res, err := c.doRequest("json")
39799	if res != nil && res.StatusCode == http.StatusNotModified {
39800		if res.Body != nil {
39801			res.Body.Close()
39802		}
39803		return nil, &googleapi.Error{
39804			Code:   res.StatusCode,
39805			Header: res.Header,
39806		}
39807	}
39808	if err != nil {
39809		return nil, err
39810	}
39811	defer googleapi.CloseBody(res)
39812	if err := googleapi.CheckResponse(res); err != nil {
39813		return nil, err
39814	}
39815	ret := &GoogleCloudApigeeV1ApiResponseWrapper{
39816		ServerResponse: googleapi.ServerResponse{
39817			Header:         res.Header,
39818			HTTPStatusCode: res.StatusCode,
39819		},
39820	}
39821	target := &ret
39822	if err := gensupport.DecodeResponse(target, res); err != nil {
39823		return nil, err
39824	}
39825	return ret, nil
39826	// {
39827	//   "description": "Deletes a category from the portal.",
39828	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
39829	//   "httpMethod": "DELETE",
39830	//   "id": "apigee.organizations.sites.apicategories.delete",
39831	//   "parameterOrder": [
39832	//     "name"
39833	//   ],
39834	//   "parameters": {
39835	//     "name": {
39836	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
39837	//       "location": "path",
39838	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
39839	//       "required": true,
39840	//       "type": "string"
39841	//     }
39842	//   },
39843	//   "path": "v1/{+name}",
39844	//   "response": {
39845	//     "$ref": "GoogleCloudApigeeV1ApiResponseWrapper"
39846	//   },
39847	//   "scopes": [
39848	//     "https://www.googleapis.com/auth/cloud-platform"
39849	//   ]
39850	// }
39851
39852}
39853
39854// method id "apigee.organizations.sites.apicategories.get":
39855
39856type OrganizationsSitesApicategoriesGetCall struct {
39857	s            *Service
39858	name         string
39859	urlParams_   gensupport.URLParams
39860	ifNoneMatch_ string
39861	ctx_         context.Context
39862	header_      http.Header
39863}
39864
39865// Get: Gets a category on the portal.
39866func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
39867	c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39868	c.name = name
39869	return c
39870}
39871
39872// Fields allows partial responses to be retrieved. See
39873// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39874// for more information.
39875func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
39876	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39877	return c
39878}
39879
39880// IfNoneMatch sets the optional parameter which makes the operation
39881// fail if the object's ETag matches the given value. This is useful for
39882// getting updates only after the object has changed since the last
39883// request. Use googleapi.IsNotModified to check whether the response
39884// error from Do is the result of In-None-Match.
39885func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
39886	c.ifNoneMatch_ = entityTag
39887	return c
39888}
39889
39890// Context sets the context to be used in this call's Do method. Any
39891// pending HTTP request will be aborted if the provided context is
39892// canceled.
39893func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
39894	c.ctx_ = ctx
39895	return c
39896}
39897
39898// Header returns an http.Header that can be modified by the caller to
39899// add HTTP headers to the request.
39900func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
39901	if c.header_ == nil {
39902		c.header_ = make(http.Header)
39903	}
39904	return c.header_
39905}
39906
39907func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
39908	reqHeaders := make(http.Header)
39909	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
39910	for k, v := range c.header_ {
39911		reqHeaders[k] = v
39912	}
39913	reqHeaders.Set("User-Agent", c.s.userAgent())
39914	if c.ifNoneMatch_ != "" {
39915		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39916	}
39917	var body io.Reader = nil
39918	c.urlParams_.Set("alt", alt)
39919	c.urlParams_.Set("prettyPrint", "false")
39920	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39921	urls += "?" + c.urlParams_.Encode()
39922	req, err := http.NewRequest("GET", urls, body)
39923	if err != nil {
39924		return nil, err
39925	}
39926	req.Header = reqHeaders
39927	googleapi.Expand(req.URL, map[string]string{
39928		"name": c.name,
39929	})
39930	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39931}
39932
39933// Do executes the "apigee.organizations.sites.apicategories.get" call.
39934// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
39935// non-nil. Any non-2xx status code is an error. Response headers are in
39936// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
39937// response was returned at all) in error.(*googleapi.Error).Header. Use
39938// googleapi.IsNotModified to check whether the returned error was
39939// because http.StatusNotModified was returned.
39940func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
39941	gensupport.SetOptions(c.urlParams_, opts...)
39942	res, err := c.doRequest("json")
39943	if res != nil && res.StatusCode == http.StatusNotModified {
39944		if res.Body != nil {
39945			res.Body.Close()
39946		}
39947		return nil, &googleapi.Error{
39948			Code:   res.StatusCode,
39949			Header: res.Header,
39950		}
39951	}
39952	if err != nil {
39953		return nil, err
39954	}
39955	defer googleapi.CloseBody(res)
39956	if err := googleapi.CheckResponse(res); err != nil {
39957		return nil, err
39958	}
39959	ret := &GoogleCloudApigeeV1ApiCategory{
39960		ServerResponse: googleapi.ServerResponse{
39961			Header:         res.Header,
39962			HTTPStatusCode: res.StatusCode,
39963		},
39964	}
39965	target := &ret
39966	if err := gensupport.DecodeResponse(target, res); err != nil {
39967		return nil, err
39968	}
39969	return ret, nil
39970	// {
39971	//   "description": "Gets a category on the portal.",
39972	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
39973	//   "httpMethod": "GET",
39974	//   "id": "apigee.organizations.sites.apicategories.get",
39975	//   "parameterOrder": [
39976	//     "name"
39977	//   ],
39978	//   "parameters": {
39979	//     "name": {
39980	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
39981	//       "location": "path",
39982	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
39983	//       "required": true,
39984	//       "type": "string"
39985	//     }
39986	//   },
39987	//   "path": "v1/{+name}",
39988	//   "response": {
39989	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
39990	//   },
39991	//   "scopes": [
39992	//     "https://www.googleapis.com/auth/cloud-platform"
39993	//   ]
39994	// }
39995
39996}
39997
39998// method id "apigee.organizations.sites.apicategories.list":
39999
40000type OrganizationsSitesApicategoriesListCall struct {
40001	s            *Service
40002	parent       string
40003	urlParams_   gensupport.URLParams
40004	ifNoneMatch_ string
40005	ctx_         context.Context
40006	header_      http.Header
40007}
40008
40009// List: Lists the categories on the portal.
40010func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
40011	c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40012	c.parent = parent
40013	return c
40014}
40015
40016// Fields allows partial responses to be retrieved. See
40017// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40018// for more information.
40019func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
40020	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40021	return c
40022}
40023
40024// IfNoneMatch sets the optional parameter which makes the operation
40025// fail if the object's ETag matches the given value. This is useful for
40026// getting updates only after the object has changed since the last
40027// request. Use googleapi.IsNotModified to check whether the response
40028// error from Do is the result of In-None-Match.
40029func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
40030	c.ifNoneMatch_ = entityTag
40031	return c
40032}
40033
40034// Context sets the context to be used in this call's Do method. Any
40035// pending HTTP request will be aborted if the provided context is
40036// canceled.
40037func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
40038	c.ctx_ = ctx
40039	return c
40040}
40041
40042// Header returns an http.Header that can be modified by the caller to
40043// add HTTP headers to the request.
40044func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
40045	if c.header_ == nil {
40046		c.header_ = make(http.Header)
40047	}
40048	return c.header_
40049}
40050
40051func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
40052	reqHeaders := make(http.Header)
40053	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
40054	for k, v := range c.header_ {
40055		reqHeaders[k] = v
40056	}
40057	reqHeaders.Set("User-Agent", c.s.userAgent())
40058	if c.ifNoneMatch_ != "" {
40059		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40060	}
40061	var body io.Reader = nil
40062	c.urlParams_.Set("alt", alt)
40063	c.urlParams_.Set("prettyPrint", "false")
40064	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
40065	urls += "?" + c.urlParams_.Encode()
40066	req, err := http.NewRequest("GET", urls, body)
40067	if err != nil {
40068		return nil, err
40069	}
40070	req.Header = reqHeaders
40071	googleapi.Expand(req.URL, map[string]string{
40072		"parent": c.parent,
40073	})
40074	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40075}
40076
40077// Do executes the "apigee.organizations.sites.apicategories.list" call.
40078// Exactly one of *GoogleCloudApigeeV1ListApiCategoriesResponse or error
40079// will be non-nil. Any non-2xx status code is an error. Response
40080// headers are in either
40081// *GoogleCloudApigeeV1ListApiCategoriesResponse.ServerResponse.Header
40082// or (if a response was returned at all) in
40083// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40084// whether the returned error was because http.StatusNotModified was
40085// returned.
40086func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
40087	gensupport.SetOptions(c.urlParams_, opts...)
40088	res, err := c.doRequest("json")
40089	if res != nil && res.StatusCode == http.StatusNotModified {
40090		if res.Body != nil {
40091			res.Body.Close()
40092		}
40093		return nil, &googleapi.Error{
40094			Code:   res.StatusCode,
40095			Header: res.Header,
40096		}
40097	}
40098	if err != nil {
40099		return nil, err
40100	}
40101	defer googleapi.CloseBody(res)
40102	if err := googleapi.CheckResponse(res); err != nil {
40103		return nil, err
40104	}
40105	ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
40106		ServerResponse: googleapi.ServerResponse{
40107			Header:         res.Header,
40108			HTTPStatusCode: res.StatusCode,
40109		},
40110	}
40111	target := &ret
40112	if err := gensupport.DecodeResponse(target, res); err != nil {
40113		return nil, err
40114	}
40115	return ret, nil
40116	// {
40117	//   "description": "Lists the categories on the portal.",
40118	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
40119	//   "httpMethod": "GET",
40120	//   "id": "apigee.organizations.sites.apicategories.list",
40121	//   "parameterOrder": [
40122	//     "parent"
40123	//   ],
40124	//   "parameters": {
40125	//     "parent": {
40126	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
40127	//       "location": "path",
40128	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
40129	//       "required": true,
40130	//       "type": "string"
40131	//     }
40132	//   },
40133	//   "path": "v1/{+parent}/apicategories",
40134	//   "response": {
40135	//     "$ref": "GoogleCloudApigeeV1ListApiCategoriesResponse"
40136	//   },
40137	//   "scopes": [
40138	//     "https://www.googleapis.com/auth/cloud-platform"
40139	//   ]
40140	// }
40141
40142}
40143
40144// method id "apigee.organizations.sites.apicategories.patch":
40145
40146type OrganizationsSitesApicategoriesPatchCall struct {
40147	s                                  *Service
40148	name                               string
40149	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
40150	urlParams_                         gensupport.URLParams
40151	ctx_                               context.Context
40152	header_                            http.Header
40153}
40154
40155// Patch: Updates a category on the portal.
40156func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesPatchCall {
40157	c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40158	c.name = name
40159	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
40160	return c
40161}
40162
40163// Fields allows partial responses to be retrieved. See
40164// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40165// for more information.
40166func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
40167	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40168	return c
40169}
40170
40171// Context sets the context to be used in this call's Do method. Any
40172// pending HTTP request will be aborted if the provided context is
40173// canceled.
40174func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
40175	c.ctx_ = ctx
40176	return c
40177}
40178
40179// Header returns an http.Header that can be modified by the caller to
40180// add HTTP headers to the request.
40181func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
40182	if c.header_ == nil {
40183		c.header_ = make(http.Header)
40184	}
40185	return c.header_
40186}
40187
40188func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
40189	reqHeaders := make(http.Header)
40190	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
40191	for k, v := range c.header_ {
40192		reqHeaders[k] = v
40193	}
40194	reqHeaders.Set("User-Agent", c.s.userAgent())
40195	var body io.Reader = nil
40196	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
40197	if err != nil {
40198		return nil, err
40199	}
40200	reqHeaders.Set("Content-Type", "application/json")
40201	c.urlParams_.Set("alt", alt)
40202	c.urlParams_.Set("prettyPrint", "false")
40203	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40204	urls += "?" + c.urlParams_.Encode()
40205	req, err := http.NewRequest("PATCH", urls, body)
40206	if err != nil {
40207		return nil, err
40208	}
40209	req.Header = reqHeaders
40210	googleapi.Expand(req.URL, map[string]string{
40211		"name": c.name,
40212	})
40213	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40214}
40215
40216// Do executes the "apigee.organizations.sites.apicategories.patch" call.
40217// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
40218// non-nil. Any non-2xx status code is an error. Response headers are in
40219// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
40220// response was returned at all) in error.(*googleapi.Error).Header. Use
40221// googleapi.IsNotModified to check whether the returned error was
40222// because http.StatusNotModified was returned.
40223func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
40224	gensupport.SetOptions(c.urlParams_, opts...)
40225	res, err := c.doRequest("json")
40226	if res != nil && res.StatusCode == http.StatusNotModified {
40227		if res.Body != nil {
40228			res.Body.Close()
40229		}
40230		return nil, &googleapi.Error{
40231			Code:   res.StatusCode,
40232			Header: res.Header,
40233		}
40234	}
40235	if err != nil {
40236		return nil, err
40237	}
40238	defer googleapi.CloseBody(res)
40239	if err := googleapi.CheckResponse(res); err != nil {
40240		return nil, err
40241	}
40242	ret := &GoogleCloudApigeeV1ApiCategory{
40243		ServerResponse: googleapi.ServerResponse{
40244			Header:         res.Header,
40245			HTTPStatusCode: res.StatusCode,
40246		},
40247	}
40248	target := &ret
40249	if err := gensupport.DecodeResponse(target, res); err != nil {
40250		return nil, err
40251	}
40252	return ret, nil
40253	// {
40254	//   "description": "Updates a category on the portal.",
40255	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
40256	//   "httpMethod": "PATCH",
40257	//   "id": "apigee.organizations.sites.apicategories.patch",
40258	//   "parameterOrder": [
40259	//     "name"
40260	//   ],
40261	//   "parameters": {
40262	//     "name": {
40263	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
40264	//       "location": "path",
40265	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
40266	//       "required": true,
40267	//       "type": "string"
40268	//     }
40269	//   },
40270	//   "path": "v1/{+name}",
40271	//   "request": {
40272	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
40273	//   },
40274	//   "response": {
40275	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
40276	//   },
40277	//   "scopes": [
40278	//     "https://www.googleapis.com/auth/cloud-platform"
40279	//   ]
40280	// }
40281
40282}
40283
40284// method id "apigee.projects.provisionOrganization":
40285
40286type ProjectsProvisionOrganizationCall struct {
40287	s                                               *Service
40288	project                                         string
40289	googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
40290	urlParams_                                      gensupport.URLParams
40291	ctx_                                            context.Context
40292	header_                                         http.Header
40293}
40294
40295// ProvisionOrganization: Provisions a new Apigee organization with a
40296// functioning runtime. This is the standard way to create trial
40297// organizations for a free Apigee trial.
40298func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
40299	c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40300	c.project = project
40301	c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
40302	return c
40303}
40304
40305// Fields allows partial responses to be retrieved. See
40306// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40307// for more information.
40308func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
40309	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40310	return c
40311}
40312
40313// Context sets the context to be used in this call's Do method. Any
40314// pending HTTP request will be aborted if the provided context is
40315// canceled.
40316func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
40317	c.ctx_ = ctx
40318	return c
40319}
40320
40321// Header returns an http.Header that can be modified by the caller to
40322// add HTTP headers to the request.
40323func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
40324	if c.header_ == nil {
40325		c.header_ = make(http.Header)
40326	}
40327	return c.header_
40328}
40329
40330func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
40331	reqHeaders := make(http.Header)
40332	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
40333	for k, v := range c.header_ {
40334		reqHeaders[k] = v
40335	}
40336	reqHeaders.Set("User-Agent", c.s.userAgent())
40337	var body io.Reader = nil
40338	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
40339	if err != nil {
40340		return nil, err
40341	}
40342	reqHeaders.Set("Content-Type", "application/json")
40343	c.urlParams_.Set("alt", alt)
40344	c.urlParams_.Set("prettyPrint", "false")
40345	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
40346	urls += "?" + c.urlParams_.Encode()
40347	req, err := http.NewRequest("POST", urls, body)
40348	if err != nil {
40349		return nil, err
40350	}
40351	req.Header = reqHeaders
40352	googleapi.Expand(req.URL, map[string]string{
40353		"project": c.project,
40354	})
40355	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40356}
40357
40358// Do executes the "apigee.projects.provisionOrganization" call.
40359// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40360// Any non-2xx status code is an error. Response headers are in either
40361// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40362// was returned at all) in error.(*googleapi.Error).Header. Use
40363// googleapi.IsNotModified to check whether the returned error was
40364// because http.StatusNotModified was returned.
40365func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40366	gensupport.SetOptions(c.urlParams_, opts...)
40367	res, err := c.doRequest("json")
40368	if res != nil && res.StatusCode == http.StatusNotModified {
40369		if res.Body != nil {
40370			res.Body.Close()
40371		}
40372		return nil, &googleapi.Error{
40373			Code:   res.StatusCode,
40374			Header: res.Header,
40375		}
40376	}
40377	if err != nil {
40378		return nil, err
40379	}
40380	defer googleapi.CloseBody(res)
40381	if err := googleapi.CheckResponse(res); err != nil {
40382		return nil, err
40383	}
40384	ret := &GoogleLongrunningOperation{
40385		ServerResponse: googleapi.ServerResponse{
40386			Header:         res.Header,
40387			HTTPStatusCode: res.StatusCode,
40388		},
40389	}
40390	target := &ret
40391	if err := gensupport.DecodeResponse(target, res); err != nil {
40392		return nil, err
40393	}
40394	return ret, nil
40395	// {
40396	//   "description": "Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial.",
40397	//   "flatPath": "v1/projects/{projectsId}:provisionOrganization",
40398	//   "httpMethod": "POST",
40399	//   "id": "apigee.projects.provisionOrganization",
40400	//   "parameterOrder": [
40401	//     "project"
40402	//   ],
40403	//   "parameters": {
40404	//     "project": {
40405	//       "description": "Required. Name of the GCP project with which to associate the Apigee organization.",
40406	//       "location": "path",
40407	//       "pattern": "^projects/[^/]+$",
40408	//       "required": true,
40409	//       "type": "string"
40410	//     }
40411	//   },
40412	//   "path": "v1/{+project}:provisionOrganization",
40413	//   "request": {
40414	//     "$ref": "GoogleCloudApigeeV1ProvisionOrganizationRequest"
40415	//   },
40416	//   "response": {
40417	//     "$ref": "GoogleLongrunningOperation"
40418	//   },
40419	//   "scopes": [
40420	//     "https://www.googleapis.com/auth/cloud-platform"
40421	//   ]
40422	// }
40423
40424}
40425